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 2024-07-24] [$500] mWeb-Scan-On refreshing scan submit expense confirmation page all details are disappeared #40936

Closed
1 of 6 tasks
lanitochka17 opened this issue Apr 24, 2024 · 78 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 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Apr 24, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.65
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4510603
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/home
  2. Tap fab -- submit expense - scan
  3. Upload an image using camera
  4. Select a user
  5. Enter description and save it
  6. Refresh the page

Expected Result:

On refreshing scan submit expense confirmation page all details must not be disappeared

Actual Result:

On refreshing scan submit expense confirmation page all details are disappeared. To and description details also disappeared

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6460480_1713976463563.fhj13.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a06fc87f92014ba9
  • Upwork Job ID: 1783312719597031424
  • Last Price Increase: 2024-06-07
  • Automatic offers:
    • s77rt | Reviewer | 102676237
    • dominictb | Contributor | 102676238
Issue OwnerCurrent Issue Owner: @bfitzexpensify / @bfitzexpensify
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 24, 2024
Copy link

melvin-bot bot commented Apr 24, 2024

Triggered auto assignment to @bfitzexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@lanitochka17
Copy link
Author

@bfitzexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1

@bfitzexpensify bfitzexpensify added the External Added to denote the issue can be worked on by a contributor label Apr 25, 2024
Copy link

melvin-bot bot commented Apr 25, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01a06fc87f92014ba9

@melvin-bot melvin-bot bot changed the title mWeb-Scan-On refreshing scan submit expense confirmation page all details are disappeared [$250] mWeb-Scan-On refreshing scan submit expense confirmation page all details are disappeared Apr 25, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 25, 2024
Copy link

melvin-bot bot commented Apr 25, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 (External)

@shahinyan11
Copy link

shahinyan11 commented Apr 25, 2024

Proposal

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

mWeb-Scan-On refreshing scan submit expense confirmation page all details are disappeared

Looking at this comment I think the current Expected Result: is incorrect

What is the root cause of that problem?

After the refresh, the screen is navigated twice. The first one is when the NavigationRoot component is rendered and second from here. So when the screen opens first time the code navigates back to start screen as a result of this call and then the second navigation occurs and the scan confirmation screen opens again

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

Wrap this line in InteractionManager.runAfterInteractions

What alternative solutions did you explore? (Optional)

In shouldSkipDeepLinkNavigation function add check if the route equal to ROUTE.MONEY_REQUEST_STEP_CONFIRMATION and return true

@melvin-bot melvin-bot bot added the Overdue label Apr 29, 2024
@abdulrahuman5196
Copy link
Contributor

Checking now

@melvin-bot melvin-bot bot removed the Overdue label Apr 30, 2024
@abdulrahuman5196
Copy link
Contributor

@shahinyan11 The root cause on the proposal makes sense. I can visually see we are routing to starting step and routing again to confirmation page.

But I am not aligned on the solution suggested and have further questions.

Wrap this line in InteractionManager.runAfterInteractions

I tried this on mac web and didn't work for me.

In shouldSkipDeepLinkNavigation function add check if the route equal to ROUTE.MONEY_REQUEST_STEP_CONFIRMATION and return true

I don't think we should do this since its a centralized deeplinking code and adding screen specific logic should be avoid.

And another question is On root cause being true, this means does every screen on refresh being navigate twice? But I don't see that happening. If so we should fix the navigation happening multiple times.

@shahinyan11
Copy link

And another question is On root cause being true, this means does every screen on refresh being navigate twice? But I don't see that happening. If so we should fix the navigation happening multiple times.

In both places, there are a few if blocks with early return before navigating. So this behavior is not for every screen and there may be screens for which it happens early return.

Copy link

melvin-bot bot commented May 2, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label May 2, 2024
Copy link

melvin-bot bot commented May 3, 2024

@bfitzexpensify, @abdulrahuman5196 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@bfitzexpensify
Copy link
Contributor

Update on this one @abdulrahuman5196?

@melvin-bot melvin-bot bot removed the Overdue label May 6, 2024
@abdulrahuman5196
Copy link
Contributor

I tried this on mac web and didn't work for me.

@shahinyan11 where you able to check on this?

@abdulrahuman5196
Copy link
Contributor

Update on this one @abdulrahuman5196?

We don't have proposals to approve yet

@shahinyan11
Copy link

I tried this on mac web and didn't work for me.

@shahinyan11 where you able to check on this?

@abdulrahuman5196 It works for me on mac web with InteractionManager.runAfterInteractions

Untitled.mov

Copy link

melvin-bot bot commented May 8, 2024

@bfitzexpensify @abdulrahuman5196 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

Copy link

melvin-bot bot commented May 9, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@s77rt
Copy link
Contributor

s77rt commented Jun 10, 2024

@dominictb Thanks for looking into the bug. The updated solution looks good to me 👍.

🎀 👀 🎀 C+ reviewed
Link to proposal

Copy link

melvin-bot bot commented Jun 10, 2024

Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 10, 2024
Copy link

melvin-bot bot commented Jun 10, 2024

📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Jun 10, 2024

📣 @dominictb 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jun 13, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jun 25, 2024
@bfitzexpensify
Copy link
Contributor

Hey @dominictb - how is this one going?

@dominictb
Copy link
Contributor

@bfitzexpensify PR still under review!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 17, 2024
@melvin-bot melvin-bot bot changed the title [$500] mWeb-Scan-On refreshing scan submit expense confirmation page all details are disappeared [HOLD for payment 2024-07-24] [$500] mWeb-Scan-On refreshing scan submit expense confirmation page all details are disappeared Jul 17, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jul 17, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 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 2024-07-24. 🎊

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

Copy link

melvin-bot bot commented Jul 17, 2024

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:

  • [@s77rt] The PR that introduced the bug has been identified. Link to the PR:
  • [@s77rt] 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:
  • [@s77rt] 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:
  • [@s77rt] Determine if we should create a regression test for this bug.
  • [@s77rt] 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.
  • [@bfitzexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@s77rt
Copy link
Contributor

s77rt commented Jul 19, 2024

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 23, 2024
@bfitzexpensify
Copy link
Contributor

Payments complete, closing this out.

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 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Archived in project
Development

No branches or pull requests

8 participants