-
Notifications
You must be signed in to change notification settings - Fork 3k
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-08-28] [HOLD] [$1000] Web - Clicking on the browser back button takes user from chat page to assign task page #23796
Comments
Triggered auto assignment to @michaelhaxhiu ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing the back button sends to task detail instead of parent report What is the root cause of that problem?The App/src/libs/Navigation/Navigation.js Lines 166 to 171 in ec1ccf8
What changes do you think we should make in order to solve the problem?There is 2 ways of solving it:
Video of solution working: WithoutReplace.webmWhat alternative solutions did you explore? (Optional)If the action is executed correctly remove previous steps from navigation stack but seems too complex code for something so simple. Something like: Clean steps, navigate to parent, navigate to child. |
Job added to Upwork: https://www.upwork.com/jobs/~01dd04525ab1095d86 |
Current assignee @michaelhaxhiu is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
Stepping in since its related to navigation @daordonez11 I think your proposal looks good, but I would go with the option 2. I think we needed the replace there for some other reasons |
📣 @eVoloshchak Please request via NewDot manual requests for the Reviewer role ($1000) |
📣 @daordonez11 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @Nathan-Mulugeta 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
@adamgrzybowski @WoLewicki do you remember why we had the replace there? I though it was for this exact reason so I am confused that the dismis modal does not work here |
Got it @mountiny will test the cases! There are 33 usages of dismissModal so probably step 2 is the best way to go, will check if there is any util to validate if it is a child of the report and will test deeply the scenarios. If any of you guys remember the origin of why replace is there would be even better to narrow the validation, specially @WoLewicki I think the first appearance of it is in the commit: d2b8e2 feat: first look on RHP Navigation created by Wojciech. |
@daordonez11 Can you please raise a PR? Thank you 🙇 |
Hmm this topic consists of two parts. First is the Second thing is browser history. All those flows worked with browser buttons as long as they were a single url. It was done with the It changed when those flows started to be different urls. While the We already found a solution to drop all the entries of history associated with the nested stacks when they are dropped in the Is it clear enough? Or should I explain something better? Another thing is that I am not sure why simply navigating in such case works correctly. @daordonez11 could you check if |
You are right, I have missed that this flow got refactored since then, great explanation, thank you very much |
Thanks for the detailed explanation! @WoLewicki ita clear why it worked and why it's failing in this case! Let me implement a log to check the status after navigating. To be clear it works because usually dismissing the modal sends back to the same report in that case navigating or replacing does the same! Navigate works because it finds the report in the stack and goes back, and replace just sends directly. Let me do some tests. @mountiny didn't raise PR because was waiting for some context to build the validation, also couldn't find an existing util to validate if one report is parent of the other. |
Note: I'm preparing to go OOO for ~2 weeks, but rather than re-assigning this to another BZ, I'm going to keep it assigned. If this sees quick progress while I'm away, please feel free to remove my assignment and re-apply the |
This is on HOLD for react navigation fix so that can take long, making it monthly |
Hey, this should be fixed by this PR |
@michaelhaxhiu could you please confirm this issue is resolved in staging? If yes, then we can close it |
Payment has not been processed yet though. Am I not eligible for reporting bonus? |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.55-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 2023-08-28. 🎊 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.
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:
|
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:
|
The bug is resolved! I paid the bug reporter just now @Nathan-Mulugeta Special shout out to @daordonez11 for his preliminary efforts in resolving this, it's much appreciated and hope to see you involved in more jobs in the future. 🙏 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
App should not open the assign task side panel
Actual Result:
App takes user to the assign task screen
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.47-2
Reproducible in staging?: y
Reproducible in production?: y
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
Expensify/Expensify Issue URL:
Issue reported by: @Nathan-Mulugeta
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690536196870419
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: