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-17] report.errorFields.notFound is being cleared incorrectly #43357

Closed
6 tasks done
arosiclair opened this issue Jun 10, 2024 · 23 comments
Closed
6 tasks done
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff

Comments

@arosiclair
Copy link
Contributor

arosiclair commented Jun 10, 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: 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:

  1. Create a workspace
  2. Create a workspace room
  3. Copy the URL
  4. Log in as a non-workspace member
  5. Visit the room URL
  6. Verify a not found page displays
  7. 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?

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

Screenshots/Videos

N/A

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @puneetlath
@arosiclair arosiclair added Daily KSv2 Internal Requires API changes or must be handled by Expensify staff Bug Something is broken. Auto assigns a BugZero manager. labels Jun 10, 2024
Copy link

melvin-bot bot commented 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
Copy link
Contributor Author

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.

@melvin-bot melvin-bot bot added the Overdue label Jun 18, 2024
@puneetlath
Copy link
Contributor

Makes sense @arosiclair. Will you raise a PR?

@melvin-bot melvin-bot bot removed the Overdue label Jun 18, 2024
@arosiclair
Copy link
Contributor Author

Yup this is just low priority for me atm. I'll get to it soon

@arosiclair
Copy link
Contributor Author

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
Copy link
Contributor

Is there any App aspect to this? Or it's al back-end?

@arosiclair
Copy link
Contributor Author

Yeah we're removing App code in this PR.

@arosiclair
Copy link
Contributor Author

Already part of #newdot-quality here

Copy link

melvin-bot bot commented Jun 24, 2024

@puneetlath @arosiclair this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Awaiting Payment Auto-added when associated PR is deployed to production label Jul 10, 2024
@melvin-bot melvin-bot bot changed the title report.errorFields.notFound is being cleared incorrectly [HOLD for payment 2024-07-17] report.errorFields.notFound is being cleared incorrectly Jul 10, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 10, 2024
Copy link

melvin-bot bot commented Jul 10, 2024

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

Copy link

melvin-bot bot commented Jul 10, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.5-13 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-17. 🎊

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

Copy link

melvin-bot bot commented Jul 10, 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:

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

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jul 15, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-07-17] report.errorFields.notFound is being cleared incorrectly [HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] report.errorFields.notFound is being cleared incorrectly Jul 15, 2024
Copy link

melvin-bot bot commented Jul 15, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-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-22. 🎊

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

Copy link

melvin-bot bot commented Jul 15, 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:

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 16, 2024
@puneetlath puneetlath changed the title [HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] report.errorFields.notFound is being cleared incorrectly HOLD for payment 2024-07-17] report.errorFields.notFound is being cleared incorrectly Jul 16, 2024
@puneetlath puneetlath changed the title HOLD for payment 2024-07-17] report.errorFields.notFound is being cleared incorrectly [HOLD for payment 2024-07-17] report.errorFields.notFound is being cleared incorrectly Jul 16, 2024
@puneetlath
Copy link
Contributor

@shubham1206agra friendly reminder about the checklist so we can pay tomorrow.

Copy link

melvin-bot bot commented Jul 17, 2024

Payment Summary

Upwork Job

BugZero Checklist (@puneetlath)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@melvin-bot melvin-bot bot added the Overdue label Jul 19, 2024
Copy link

melvin-bot bot commented Jul 22, 2024

@puneetlath, @arosiclair, @shubham1206agra Eep! 4 days overdue now. Issues have feelings too...

@puneetlath
Copy link
Contributor

@shubham1206agra bump on the checklist.

@melvin-bot melvin-bot bot removed the Overdue label Jul 22, 2024
@shubham1206agra
Copy link
Contributor

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:

  1. [User A] Log in as workspace admin
  2. [User A] Create a room
  3. [User A] Copy the URL and send it to user B.
  4. [User B] As a non-workspace member, go to the URL
  5. [User B] Verify a Not Found screen displays
  6. [User A] As the admin, invite the user to the room
  7. [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:

@melvin-bot melvin-bot bot added the Overdue label Jul 24, 2024
@puneetlath
Copy link
Contributor

@shubham1206agra I sent you an offer: https://www.upwork.com/nx/wm/offer/103254802

Please ping me here when you've accepted.

@melvin-bot melvin-bot bot removed the Overdue label Jul 24, 2024
@puneetlath
Copy link
Contributor

Regression test update: https://github.com/Expensify/Expensify/issues/415177

@shubham1206agra
Copy link
Contributor

@puneetlath Accepted

@puneetlath
Copy link
Contributor

Paid, thanks!

@github-project-automation github-project-automation bot moved this from CRITICAL to Done in [#whatsnext] #quality Jul 25, 2024
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 Internal Requires API changes or must be handled by Expensify staff
Projects
Status: Done
Development

No branches or pull requests

3 participants