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-24] Export to Onyx state not working #45232

Closed
1 of 6 tasks
m-natarajan opened this issue Jul 11, 2024 · 27 comments
Closed
1 of 6 tasks

[HOLD for payment 2024-07-24] Export to Onyx state not working #45232

m-natarajan opened this issue Jul 11, 2024 · 27 comments
Assignees
Labels
AutoAssignerNewDotQuality Used to assign quality issues to engineers Awaiting Payment Auto-added when associated PR is deployed to production 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

@m-natarajan
Copy link

m-natarajan commented Jul 11, 2024

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:
Reproducible in staging?:
Reproducible in production?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @danielrvidal
Slack conversation: https://expensify.slack.com/archives/C05LX9D6E07/p1720630744038239

Action Performed:

  1. Go to https://staging.new.expensify.com/settings/troubleshoot from daniel@expensify.com
    2.Try to Export Onyx state
  2. I never get a file.
  3. I reloaded and navigated to other pages to try and get the button to work and show the Console/Network. But it never ended up working.

Expected Result:

Should get a file

Actual Result:

Never got a file, reloaded and navigated to other pages to try and get the button to work and show the Console/Network. But it never ended up working.

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

logs-2024-07-10 16_59_10.654.txt

2024-07-10_09-57-16.1.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @isabelastisser
@m-natarajan m-natarajan added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. AutoAssignerNewDotQuality Used to assign quality issues to engineers labels Jul 11, 2024
Copy link

melvin-bot bot commented Jul 11, 2024

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

Copy link

melvin-bot bot commented Jul 11, 2024

Triggered auto assignment to @techievivek (AutoAssignerNewDotQuality)

@melvin-bot melvin-bot bot added the Weekly KSv2 label Jul 11, 2024
@MelvinBot
Copy link

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

@techievivek
Copy link
Contributor

I am able to reproduce this on staging.

@techievivek techievivek removed the Weekly KSv2 label Jul 11, 2024
@bernhardoj
Copy link
Contributor

Proposal

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

Export to Onyx state doesn't work on staging/prod.

What is the root cause of that problem?

When pressing Export to Onyx state, we try to read the onyx database by passing the name and version (1).

const openRequest = indexedDB.open(CONST.DEFAULT_DB_NAME, 1);

However, the DB version in staging/prod could be higher than 1.
image

It's because there is an extra object store that is coming from old localForage of Onyx that is now replaced with idb-keyval. The workaround is to delete the database and relogin.

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

To fix and prevent the issue in the future, we can open the database without specifying a specific version so it will just open the current database.

@techievivek techievivek added External Added to denote the issue can be worked on by a contributor and removed Needs Reproduction Reproducible steps needed labels Jul 11, 2024
Copy link

melvin-bot bot commented Jul 11, 2024

Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

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

melvin-bot bot commented Jul 11, 2024

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

@allgandalf
Copy link
Contributor

allgandalf commented Jul 11, 2024

Proposal from @bernhardoj LGTM .

The link to docs they provided also state that the DB version is a option parameter:

Screenshot 2024-07-11 at 4 53 49 PM

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Jul 11, 2024

Current assignee @techievivek is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@muttmuure muttmuure moved this to MEDIUM in [#whatsnext] #quality Jul 11, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 11, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 11, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

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

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

  • @bernhardoj requires payment through NewDot Manual Requests
  • @allgandalf requires payment (Needs manual offer from BZ)

Copy link

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

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

@allgandalf
Copy link
Contributor

Regression Test Proposal

  1. Open App
  2. Open Settings > Troubleshoot
  3. Press Export Onyx state

Verify a file will be downloaded

Do we agree 👍 or 👎

@techievivek
Copy link
Contributor

@isabelastisser Can we please get the above regression test added to testrail, thanks.

@isabelastisser
Copy link
Contributor

All set!

@isabelastisser isabelastisser removed their assignment Jul 18, 2024
@isabelastisser isabelastisser added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Jul 18, 2024
Copy link

melvin-bot bot commented Jul 18, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 18, 2024
@isabelastisser
Copy link
Contributor

I will be OOO tomorrow and next week, so I am reassigning this until I return on July 29. Thanks, @stephanieelliott!

Status: Payment is due on July 24.

@melvin-bot melvin-bot bot added the Overdue label Jul 22, 2024
@allgandalf
Copy link
Contributor

Chill melvin payment is on 24th

@melvin-bot melvin-bot bot added Daily KSv2 and removed Overdue Daily KSv2 labels Jul 22, 2024
@allgandalf
Copy link
Contributor

Note

This is due for payment today, thanks :)

@bernhardoj
Copy link
Contributor

Requested in ND.

Copy link

melvin-bot bot commented Jul 24, 2024

Payment Summary

Upwork Job

BugZero Checklist (@stephanieelliott)

  • 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

@stephanieelliott
Copy link
Contributor

stephanieelliott commented Jul 25, 2024

Summarizing payment on this issue:

Upwork job is here: https://www.upwork.com/jobs/~1737876297360310272

@allgandalf
Copy link
Contributor

Accepted the offer, thanks :)

@stephanieelliott
Copy link
Contributor

All paid! Thanks.

@JmillsExpensify
Copy link

$250 approved for @bernhardoj

@isabelastisser
Copy link
Contributor

Thanks for your help, @stephanieelliott !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoAssignerNewDotQuality Used to assign quality issues to engineers Awaiting Payment Auto-added when associated PR is deployed to production 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
Development

No branches or pull requests

9 participants