Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOLD for payment 2023-09-07] [HOLD for payment 2023-09-06] [$1000] Attachment- Uploading PDF displays error #26193

Closed
1 of 6 tasks
lanitochka17 opened this issue Aug 29, 2023 · 42 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 29, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Launch app
  2. Tap on a report
  3. Tap plus icon to add attachment
  4. Select a pdf file

Expected Result:

The user must able to see preview and send pdf file

Actual Result:

The user was shown error message after selecting a pdf file

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.58-1

Reproducible in staging?: Yes

Reproducible in production?: No

If this was caught during regression testing, add the test name, ID and link from TestRail:

Email or phone of affected tester (no customers):

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

error.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b6f875237866634b
  • Upwork Job ID: 1696592406863446016
  • Last Price Increase: 2023-08-29
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Aug 29, 2023
@OSBotify
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@melvin-bot
Copy link

melvin-bot bot commented Aug 29, 2023

Triggered auto assignment to @Li357 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@hannojg
Copy link
Contributor

hannojg commented Aug 29, 2023

Do we have a stack trace for this?

@pradeepmdk
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Attachment- Uploading PDF displays error

What is the root cause of that problem?

NewExpensify crash caught by error boundary - Cannot read property 'onPinchGestureChange' of null

attachmentCarouselPagerContext.onPinchGestureChange(false);

from this pr https://github.com/Expensify/App/pull/25529/files

What changes do you think we should make in order to solve the problem?

we need check attachmentCarouselPagerContext is there or not

   useEffect(() => {
        if(attachmentCarouselPagerContext) {
            attachmentCarouselPagerContext.onPinchGestureChange(false);
        }        
        // eslint-disable-next-line react-hooks/exhaustive-deps -- we just want to call this function when component is mounted
    }, [attachmentCarouselPagerContext]);

@Li357
Copy link
Contributor

Li357 commented Aug 29, 2023

@pradeepmdk That looks reasonable, can you show a video of the fix working? Since this is a deploy blocker, we want to fix this fast!

@aimane-chnaif
Copy link
Contributor

This is regression from #25529
Dupe of #26000.

@pradeepmdk
Copy link
Contributor

pradeepmdk commented Aug 29, 2023

@Li357

Screen.Recording.2023-08-29.at.7.05.45.PM.mov

@aimane-chnaif
Copy link
Contributor

@pradeepmdk's proposal works but let's see if @tienifr is able to raise PR quickly as it's in regression period.

@Li357
Copy link
Contributor

Li357 commented Aug 29, 2023

@aimane-chnaif @tienifr has gone offline and we want to keep this blocker fix moving. @pradeepmdk can you raise a PR?

@pradeepmdk
Copy link
Contributor

sure @Li357 i am ready

@aimane-chnaif
Copy link
Contributor

@aimane-chnaif @tienifr has gone offline and we want to keep this blocker fix moving. @pradeepmdk can you raise a PR?

Agree. @Li357 can you please assign @pradeepmdk (C) and me (C+) to the issue?

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Aug 29, 2023
@pradeepmdk
Copy link
Contributor

@aimane-chnaif PR is ready https://github.com/Expensify/App/pull/26218/files

@luacmartins luacmartins added the Bug Something is broken. Auto assigns a BugZero manager. label Aug 29, 2023
@luacmartins luacmartins self-assigned this Aug 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 29, 2023

Triggered auto assignment to @MitchExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot added the Daily KSv2 label Aug 29, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.58-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-09-06. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Aug 30, 2023

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@aimane-chnaif] The PR that introduced the bug has been identified. Link to the PR:
  • [@aimane-chnaif] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@aimane-chnaif] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@aimane-chnaif] Determine if we should create a regression test for this bug.
  • [@aimane-chnaif] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@MitchExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Aug 31, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-09-06] [$1000] Attachment- Uploading PDF displays error [HOLD for payment 2023-09-07] [HOLD for payment 2023-09-06] [$1000] Attachment- Uploading PDF displays error Aug 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 31, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.59-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-09-07. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Aug 31, 2023

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@aimane-chnaif] The PR that introduced the bug has been identified. Link to the PR:
  • [@aimane-chnaif] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@aimane-chnaif] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@aimane-chnaif] Determine if we should create a regression test for this bug.
  • [@aimane-chnaif] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@MitchExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 5, 2023
@MitchExpensify
Copy link
Contributor

Payment summary:

Reporting: NA
C: @pradeepmdk: $1500 (Upwork)
C+: @aimane-chnaif: $1500 (Upwork)

@luacmartins Was there a regression here just to be sure? Seems not but double checking

@luacmartins
Copy link
Contributor

yes, this was a regression - #26193 (comment)

@aimane-chnaif
Copy link
Contributor

yes, regression but not affect payment. Both @pradeepmdk and me didn't work on the offending PR.

@MitchExpensify
Copy link
Contributor

Ok cool, thanks for confirming. Let's get the BZ steps squared away @aimane-chnaif - Issuing payment now

@MitchExpensify
Copy link
Contributor

Invited you to the job @aimane-chnaif

Please apply to the job for payment, thank you! @pradeepmdk https://www.upwork.com/jobs/~01b6f875237866634b

@pradeepmdk
Copy link
Contributor

pradeepmdk commented Sep 7, 2023

@MitchExpensify can you please invite me as well https://www.upwork.com/freelancers/~0146d771ed1c776acb

@MitchExpensify
Copy link
Contributor

Sent! @pradeepmdk

@pradeepmdk
Copy link
Contributor

@MitchExpensify Thank you!! accepted..

@MitchExpensify
Copy link
Contributor

Paid and contract ended. Next step - BZ steps cc @aimane-chnaif

@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

@Li357, @pradeepmdk, @luacmartins, @MitchExpensify, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Sep 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

@Li357, @pradeepmdk, @luacmartins, @MitchExpensify, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@luacmartins
Copy link
Contributor

@aimane-chnaif could you complete the BZ checklist please?

@melvin-bot melvin-bot bot removed the Overdue label Sep 11, 2023
@aimane-chnaif
Copy link
Contributor

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

I believe this is one of the main flow which already exists in Testrail. And caught by Applause team.
No duplicated regression test needed.

@luacmartins
Copy link
Contributor

I think we're all done here, right? Gonna close the issue, let me know if we're missing anything.

@aimane-chnaif
Copy link
Contributor

I think we're all done here, right? Gonna close the issue, let me know if we're missing anything.

@luacmartins my payment is pending

@luacmartins
Copy link
Contributor

@MitchExpensify can you please check on that?

@MitchExpensify
Copy link
Contributor

Oops, sorry about that. Not sure how that payment was missed - Fixed! @aimane-chnaif cc @luacmartins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

8 participants