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

[$250] Workspace - "[Onyx] Provided collection" console errors appear after creating a WS #42299

Closed
1 of 6 tasks
lanitochka17 opened this issue May 16, 2024 · 10 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented May 16, 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: 1.4.74.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: N/A
Issue reported by: Applause - Internal Team

Issue found when executing PR #41651

Action Performed:

  1. Log in with a new expensifail account in Chrome incognito mode
  2. Open Chrome console
  3. Create a workspace
  4. Navigate to any of the default workspace rooms

Expected Result:

No console errors should appear

Actual Result:

"Expensify.tsx:43 [Onyx] Provided collection doesn't have all its data belonging to the same parent." console errors appear after creating a WS. Sometimes the errors appear after a few seconds, sometimes it takes 1-2 minutes

Workaround:

Unknown

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

Add any screenshot/video evidence

Bug6481631_1715778347799.bandicam_2024-05-15_14-59-11-002.mp4

logs (2).txt

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014ddfbda5cc9dce3a
  • Upwork Job ID: 1792511092144250880
  • Last Price Increase: 2024-05-20
Issue OwnerCurrent Issue Owner: @shubham1206agra
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 16, 2024
Copy link

melvin-bot bot commented May 16, 2024

Triggered auto assignment to @MitchExpensify (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.

@lanitochka17
Copy link
Author

@MitchExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@MitchExpensify
Copy link
Contributor

@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label May 20, 2024
@melvin-bot melvin-bot bot changed the title Workspace - "[Onyx] Provided collection" console errors appear after creating a WS [$250] Workspace - "[Onyx] Provided collection" console errors appear after creating a WS May 20, 2024
Copy link

melvin-bot bot commented May 20, 2024

Job added to Upwork: https://www.upwork.com/jobs/~014ddfbda5cc9dce3a

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 20, 2024
Copy link

melvin-bot bot commented May 20, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (External)

@mountiny
Copy link
Contributor

Can you please help identify what response from the OpenReport is causing this error @shubham1206agra?

Seems like some of the onyx data might be malformed

@shubham1206agra
Copy link
Contributor

I am not able to repro this.

@mountiny
Copy link
Contributor

I think this is related to this PR https://github.com/Expensify/Auth/pull/10090 that was deployed for a bit.

it causes reports to be duplicated in the mergeCollection call but one set of reports is incorrectly added with 0,1,2,.. indices.

That as a consequence and the mergeCollection as a whole is not applied cc @jasperhuangg

Thats because here, we are going to mark the entire update as malformed and none of the reports from the mergeCollection will get merged into onyx.

@iwiznia iwiznia closed this as completed May 20, 2024
@shubham1206agra shubham1206agra removed their assignment May 21, 2024
@mountiny mountiny self-assigned this May 21, 2024
@mountiny mountiny removed the Help Wanted Apply this label when an issue is open to proposals by contributors label May 21, 2024
@jasperhuangg
Copy link
Contributor

Thank you @mountiny for looking into it. I didn't realize that mergeCollection worked like this and should have been more careful when adding the changes.

The incorrect indices were not intended to be on production at all–a Web PR that was held on the Auth PR was meant to go out shortly afterwards, but was held up on the merge freeze.

@mountiny
Copy link
Contributor

This is hard to catch, no problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

5 participants