Skip to content

[HOLD for payment 2024-07-17] report.errorFields.notFound is being cleared incorrectly #43357

Description

@arosiclair

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com 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

Activity

  1. added
    InternalRequires API changes or must be handled by Expensify staff
    BugSomething is broken. Auto assigns a BugZero manager.
    on Jun 10, 2024
  2. melvin-bot commented on Jun 10, 2024

    @melvin-bot

    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.

  3. self-assigned this
    on Jun 10, 2024
  4. arosiclair commented on Jun 10, 2024

    @arosiclair
    ContributorAuthor

    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.

  5. puneetlath commented on Jun 18, 2024

    @puneetlath
    Contributor

    Makes sense @arosiclair. Will you raise a PR?

  6. arosiclair commented on Jun 19, 2024

    @arosiclair
    ContributorAuthor

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

  7. arosiclair commented on Jun 21, 2024

    @arosiclair
    ContributorAuthor

    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.

  8. puneetlath commented on Jun 24, 2024

    @puneetlath
    Contributor

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

  9. 28 remaining items

  10. puneetlath commented on Jul 16, 2024

    @puneetlath
    Contributor

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

  11. melvin-bot commented on Jul 17, 2024

    @melvin-bot

    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
  12. melvin-bot commented on Jul 22, 2024

    @melvin-bot

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

  13. puneetlath commented on Jul 22, 2024

    @puneetlath
    Contributor

    @shubham1206agra bump on the checklist.

  14. shubham1206agra commented on Jul 23, 2024

    @shubham1206agra
    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:
  15. puneetlath commented on Jul 24, 2024

    @puneetlath
    Contributor

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

    Please ping me here when you've accepted.

  16. puneetlath commented on Jul 24, 2024

    @puneetlath
    Contributor
  17. shubham1206agra commented on Jul 25, 2024

    @shubham1206agra
    Contributor

    @puneetlath Accepted

  18. puneetlath commented on Jul 25, 2024

    @puneetlath
    Contributor

    Paid, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2InternalRequires API changes or must be handled by Expensify staff

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions