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] Web - Workspace - Onyx and DOMException console errors appear when uploading workspace picture #47150

Open
1 of 6 tasks
IuliiaHerets opened this issue Aug 9, 2024 · 45 comments
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

@IuliiaHerets
Copy link

IuliiaHerets commented Aug 9, 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: 9.0.18-7
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4837010&group_by=cases:section_id&group_id=229065&group_order=asc
Issue reported by: Applause Internal Team

Action Performed:

  1. Navigate to https://staging.new.expensify.com/
  2. Log in with a new Gmail account
  3. Create a workspace
  4. Navigate to Workspace settings - Profile
  5. Click on Edit photo - Upload photo
  6. Upload any photo

Expected Result:

There shouldn't be any console errors when uploading a workspace picture.

Actual Result:

Onyx and DOMException console errors appear when uploading a workspace picture.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

log.txt

Bug6566433_1723189504458.bandicam_2024-08-09_09-34-52-799.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015036ca3d15e0f1c7
  • Upwork Job ID: 1823749808548336240
  • Last Price Increase: 2024-12-19
  • Automatic offers:
    • allgandalf | Contributor | 105441400
    • shubham1206agra | Contributor | 105441407
Issue OwnerCurrent Issue Owner: @ahmedGaber93
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 9, 2024
Copy link

melvin-bot bot commented Aug 9, 2024

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

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1

@IuliiaHerets
Copy link
Author

@zanyrenney 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

@melvin-bot melvin-bot bot added the Overdue label Aug 12, 2024
@zanyrenney
Copy link
Contributor

This seems like a internal issue. I'm going to apply the internal label and see if we can get some more eyes on this!

@melvin-bot melvin-bot bot removed the Overdue label Aug 12, 2024
@zanyrenney zanyrenney added the Internal Requires API changes or must be handled by Expensify staff label Aug 12, 2024
@zanyrenney
Copy link
Contributor

took another look. i think this can be external!

@zanyrenney zanyrenney added External Added to denote the issue can be worked on by a contributor and removed Internal Requires API changes or must be handled by Expensify staff labels Aug 14, 2024
@melvin-bot melvin-bot bot changed the title Web - Workspace - Onyx and DOMException console errors appear when uploading workspace picture [$250] Web - Workspace - Onyx and DOMException console errors appear when uploading workspace picture Aug 14, 2024
Copy link

melvin-bot bot commented Aug 14, 2024

Job added to Upwork: https://www.upwork.com/jobs/~015036ca3d15e0f1c7

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

melvin-bot bot commented Aug 14, 2024

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

@zanyrenney
Copy link
Contributor

similar issue #23468

@AlfredoAlc
Copy link
Contributor

AlfredoAlc commented Aug 15, 2024

Edited by proposal-police: This proposal was edited at 2024-09-03 18:27:01 UTC.

Proposal

Please re-state the problem that we are trying to solve in this issue.

Onyx and DOMException console errors appear when uploading a workspace picture.

What is the root cause of that problem?

The error is caused by saving a File to Onix store, we can only store serializable data. This is happening in the SaveResponseInOnyx middleware.

Inside of that middleware we do some checks to determine if we should apply or update the response we receive. In this case, we get all the way to the saveUpdateInformation function which calls Onyx.set() with the following params:

const responseToApply = {
    type: CONST.ONYX_UPDATE_TYPES.HTTPS,
    lastUpdateID: Number(response?.lastUpdateID ?? 0),
    previousUpdateID: Number(response?.previousUpdateID ?? 0),
    request,
    response: response ?? {},
};

The request prop has the Image File inside of it which is causing the error.

What changes do you think we should make in order to solve the problem?

Remove the File from the request prop if exists. I recommend doing this in the saveUpdateInformation function. We can also include only some information like the name of the file if needed.

With this change we could fix also the similar issue mentioned above and prevent having this errors on any other calls that saves files.

What alternative solutions did you explore? (Optional)

NA

Copy link

melvin-bot bot commented Aug 19, 2024

@ahmedGaber93, @zanyrenney Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added the Overdue label Aug 19, 2024
@ahmedGaber93
Copy link
Contributor

Reviewing today

@ahmedGaber93
Copy link
Contributor

I think this similar to #44824, asking if it will fix there or not #44824 (comment)

Copy link

melvin-bot bot commented Aug 21, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Aug 23, 2024

@ahmedGaber93 @zanyrenney this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? 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 Overdue label Aug 23, 2024
@ahmedGaber93
Copy link
Contributor

@shubham1206agra I don't have an installed environment on window machine, It reproduced with me before on Mac but not on the latest main now. Can you share a reproducible video on your machine with the latest main?

Copy link

melvin-bot bot commented Sep 4, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@zanyrenney
Copy link
Contributor

Also unable to reproduce, seems like this is not a current or critical bug - closing.

@AlfredoAlc
Copy link
Contributor

AlfredoAlc commented Sep 7, 2024

I can see it now while trying to replace a receipt.

Screen.Recording.2024-09-07.at.8.36.24.a.m.mov

@grgia grgia reopened this Dec 19, 2024
Copy link

melvin-bot bot commented Dec 19, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@allgandalf
Copy link
Contributor

@ahmedGaber93 i was able to reproduce this one, mind if i take over as C+ ?

@ahmedGaber93
Copy link
Contributor

ahmedGaber93 commented Dec 20, 2024

@allgandalf Not at all, please proceed. Thanks!

@ahmedGaber93 ahmedGaber93 removed their assignment Dec 20, 2024
@allgandalf
Copy link
Contributor

Proposal from @shubham1206agra LGTM! , this will solve the error we get!

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Dec 23, 2024

Triggered auto assignment to @cristipaval, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot removed the Overdue label Dec 23, 2024
@allgandalf
Copy link
Contributor

Also please assign me here 😅

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 23, 2024
Copy link

melvin-bot bot commented Dec 23, 2024

📣 @allgandalf 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

Copy link

melvin-bot bot commented Dec 23, 2024

📣 @shubham1206agra 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added the Overdue label Dec 26, 2024
@allgandalf
Copy link
Contributor

not overdue

@melvin-bot melvin-bot bot removed the Overdue label Dec 27, 2024
@shubham1206agra
Copy link
Contributor

Just figuring out the best fix here.

@melvin-bot melvin-bot bot added the Overdue label Dec 30, 2024
Copy link

melvin-bot bot commented Dec 30, 2024

@cristipaval, @zanyrenney, @shubham1206agra, @allgandalf Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@allgandalf
Copy link
Contributor

not overdue, still waiting for clarification

@melvin-bot melvin-bot bot removed the Overdue label Dec 30, 2024
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
No open projects
Status: Done
Development

No branches or pull requests

8 participants