-
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-11-30] [$500] Task - Not here page appears briefly when closing task error message in public room #31446
Comments
Job added to Upwork: https://www.upwork.com/jobs/~010013646d8714a6e0 |
Triggered auto assignment to @laurenreidexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
App/src/libs/actions/ReportActions.ts Lines 29 to 32 in 1deced4
to:
What alternative solutions did you explore? (Optional)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The task show not found briefly when close the error What is the root cause of that problem?We always delete the task report if we close the error from the task action in the task report, its purpose here is to delete the task report created with error by delete task preview. App/src/libs/actions/ReportActions.ts Lines 29 to 32 in 1deced4
What changes do you think we should make in order to solve the problemWe should get exactly the task report if (reportAction.childReportID && reportActions.childType === 'task') {
Report.deleteReport(reportAction.childReportID);
} What alternative solutions did you explore? (Optional)N/A |
📣 @aaabccczzz05! 📣
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Not here page appears for a brief moment when closing task error in a public room What is the root cause of that problem?When closing a error, clearReportActionErrors is called Let's take a look into this function App/src/libs/actions/ReportActions.ts Lines 28 to 32 in 1deced4
As you can see above, we delete task report if message.[0].taskReportID exists. This was added to delete a task report failed in creation in the PR #26848. It looks like the author assumed that message.[0].taskReportID exists only when creating a task, but this field exists in optimistic report action for completing/reopening/cancelling a task as well. Please refer the below code segmentLines 2862 to 2868 in 1deced4
That is why the task report is deleted from onyx store This is the root cause What changes do you think we should make in order to solve the problem?In order to solve this issue, we need to modify the condition for deleting a task report App/src/libs/actions/ReportActions.ts Lines 28 to 32 in e5e1965
to
This works as expected Result31446.mp4What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Not here page appears briefly when closing task error message in public room What is the root cause of that problem?We don't check to not allow anonymous user complete or re-open task here. And then error is returned from BE after anonymous user does this action.
When we close the error, the task report is deleted here. App/src/libs/actions/ReportActions.ts Lines 28 to 32 in e5e1965
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional) |
I think the main root case here - that we allow anonymous user to ability complete / re-open task interaction - which should not be - and BE correctly rejecting that try - but we should block it before on FE side (which will avoid any bugs which we see now or may see in future). |
Triggered auto assignment to @tylerkaraszewski, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I think calling |
I think when user click on Complete Task - we should show right panel with Login flow - and ask user to login to make this action, rather than allow user to try to complete.
In any case final decision for @tylerkaraszewski |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@narefyev91 The PR is ready for review. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.2-3 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-11-30. 🎊 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:
|
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:
|
Payment Summary: Contributor - $500 @dukenv0307 payment issued in Upwork |
@narefyev91 pls complete checklist and advise on regression test thanks |
|
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.0
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
).
Expected Result:
Error message will be dismissed without any error message.
Actual Result:
Not here page shows up briefly after closing the error message
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6279168_1700143737096.RPReplay_Final1700135526.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: