-
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-09-20] [$1000] Removing edit from URL of request money report description edit make the description page as task description #25950
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.The app should either display 'Hmm its not here' page with when open edit task when the report is not found What is the root cause of that problem?When we delete
What changes do you think we should make in order to solve the problem?We should wrap content by What alternative solutions did you explore? (Optional)N/A |
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.TaskDescriptionPage is shown in a request report What is the root cause of that problem?'Hmm its not here' is shown when a URL that does not exist is accessed, in this case this is known URL, specifically What changes do you think we should make in order to solve the problem?Use the method if(!ReportUtils.isTaskReport(props.report)) {
Navigation.isNavigationReady().then(() => {
Navigation.dismissModal();
});
} Solution working: RedirectTask.-.8_25_2023.10_40_46.AM.webmWhat alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Removing edit from URL of request money report description edit make the description page as task description What is the root cause of that problem?We are not checking on the task description page that report is indeed a task report. We should be checking the validity of the reportID and showing FullPageNotFoundView What changes do you think we should make in order to solve the problem?We should wrap the
showShow prop checking the validity of reportID.
This should be extended to other pages in the Task Flow What alternative solutions did you explore? (Optional)xx |
ProposalPlease re-state the problem that we are trying to solve in this issue.Removing edit from URL of request money report description edit make the description page as task description What is the root cause of that problem?For all other fields on the page, such as date, amount and merchant, when the For the description however, when What changes do you think we should make in order to solve the problem?There are multiple ways to solve this inconsistency. I'll give a high level of each and we can iron out details in the PR. Approach 1 Approach 2 What alternative solutions did you explore? (Optional)N/A |
@sonialiap Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~01573d261a91377f32 |
Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
I tested the same reproduction step on the Besides that, I did a test in the opposite direction. I am accessing the App/src/pages/EditRequestPage.js Lines 84 to 92 in a19a672
So it's better we follow the same behavior. It looks like @daordonez11 is proposing that in their proposal. @daordonez11 I tested your solution, but it's not working if I put a random reportID in the URL. So we need to use |
Hey @mollfpr you are right regarding the random id, we would have to validate in some way if its an existent report, better just to use dismissModal.
|
@daordonez11 Could you share a video of this case? |
@sonialiap, @mollfpr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Friendly bump @daordonez11 on the comment |
Here it is @mollfpr first time it tries to dismiss it fails: In the end, it hides the modal due to a rerender of TaskDescriptionPage. In that second render the navigation is ready and it is dismissed. Dismiss.Modal.fails-.9_4_2023.3_40_30.PM.webm |
Thanks @daordonez11 The proposal from @daordonez11 looks good to me. When accessing the edit page on request with task report ID, we are already navigating to the report page, explained here. So, let's do the same thing for the description page for the task report. @daordonez11 Could you update your proposal by using the 🎀 👀 🎀 C+ reviewed! |
@daordonez11 Could you check if it's resulting the same as the above test? |
The OP only put @daordonez11 Could you check if it's an easy fix for you to get the same result on all platforms? |
For sure! @mollfpr I'm about to go to sleep but tomorrow I can try a poc with the dismissModal using the targetReportID param and check if it does work on mobile. And see what happens if someone "invents" a report id same as you did when you tested my original proposal. |
NVM had to try 😂 @mollfpr that does work actually: Poc.dismiss.with.id.-.9_6_2023.11_56_57.PM.webmcc @francoisl |
Looks good to me! Please, go to sleep @daordonez11 🤣 |
Hi @mollfpr, the issue was raised on 25 August but melvin bot has provided me with 50$ offer. Can you check that once you are available? |
@sonialiap Could you help with @dhanashree-sawant problem? Thanks! |
🎯 ⚡️ Woah @mollfpr / @daordonez11, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
Confirming that @dhanashree-sawant should receive $250 for reporting this because the issue was raised before the pay scale change I have sent an updated offer of $250. I will complete payment once this issue is ready for payment |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.68-17 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-20. 🎊 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:
|
No PR is causing the regression. This is an improvement we do to handle the non-task report field page open.
The regression step should be enough.
All
Web-mWeb
Native (iOS/Android)
|
Friendly bump @sonialiap |
@daordonez11 fix + bonus = $1500 - paid ✔️ Merge time calculation |
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 either display 'Hmm its not here' page or redirect user back to URL with 'edit/' in it
Actual Result:
App displays 'Task' in header when we remove 'edit/' from URL of request money description page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.57-3
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
removing.edit.from.URL.opens.task.description.page.mp4
Recording.401.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692178308914769
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: