You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-07-17] report.errorFields.notFound is being cleared incorrectly #43357
Version Number: Latest Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers): N/A Logs: N/A Expensify/Expensify Issue URL: N/A Issue reported by:@arosiclair Slack conversation:#35671 (comment)
Action Performed:
Create a workspace
Create a workspace room
Copy the URL
Log in as a non-workspace member
Visit the room URL
Verify a not found page displays
Invite the user to the workspace
Expected Result:
The not found error is cleared by an update from the backend
Actual Result:
We're clearing the error using a side effect in ReportScreen here.
Workaround:
N/A
Platforms:
Which of our officially supported platforms is this issue occurring on?
errorFields.notFound gets set by OpenReport when the report doesn't exist or you don't have access to it. It gets cleared on success here but we should also clear it when the report gets shared to the user and we push it with an Onyx update. We can do that by updating Report::structureReportForOnyx. Once that's done we can remove this side effect.
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:
[@shubham1206agra] 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: NA
[@shubham1206agra] Determine if we should create a regression test for this bug. Yes
[@shubham1206agra] 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.
[User A] Log in as workspace admin
[User A] Create a room
[User A] Copy the URL and send it to user B.
[User B] As a non-workspace member, go to the URL
[User B] Verify a Not Found screen displays
[User A] As the admin, invite the user to the room
[User B] Verify the Not Found screen is removed and the non-member can see the room
[@puneetlath] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Activity
melvin-bot commentedon Jun 10, 2024
Triggered auto assignment to @puneetlath (
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.arosiclair commentedon Jun 10, 2024
errorFields.notFoundgets set byOpenReportwhen the report doesn't exist or you don't have access to it. It gets cleared on success here but we should also clear it when the report gets shared to the user and we push it with an Onyx update. We can do that by updating Report::structureReportForOnyx. Once that's done we can remove this side effect.puneetlath commentedon Jun 18, 2024
Makes sense @arosiclair. Will you raise a PR?
arosiclair commentedon Jun 19, 2024
Yup this is just low priority for me atm. I'll get to it soon
arosiclair commentedon Jun 21, 2024
PR's are ready just have to wait for the Auth PR to be deployed before posting the App PR. ETA is end of next week.
puneetlath commentedon Jun 24, 2024
Is there any App aspect to this? Or it's al back-end?
28 remaining items
puneetlath commentedon Jul 16, 2024
@shubham1206agra friendly reminder about the checklist so we can pay tomorrow.
melvin-bot commentedon Jul 17, 2024
Payment Summary
Upwork Job
BugZero Checklist (@puneetlath)
melvin-bot commentedon Jul 22, 2024
@puneetlath, @arosiclair, @shubham1206agra Eep! 4 days overdue now. Issues have feelings too...
puneetlath commentedon Jul 22, 2024
@shubham1206agra bump on the checklist.
shubham1206agra commentedon Jul 23, 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:
puneetlath commentedon Jul 24, 2024
@shubham1206agra I sent you an offer: https://www.upwork.com/nx/wm/offer/103254802
Please ping me here when you've accepted.
puneetlath commentedon Jul 24, 2024
Regression test update: https://github.com/Expensify/Expensify/issues/415177
shubham1206agra commentedon Jul 25, 2024
@puneetlath Accepted
puneetlath commentedon Jul 25, 2024
Paid, thanks!