Repository navigation
[HOLD for payment 2024-07-24] Export to Onyx state not working #45232
Description
Activity
- addedDailyKSv2KSv2Needs ReproductionReproducible steps neededReproducible steps neededBugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.AutoAssignerNewDotQualityUsed to assign quality issues to engineersUsed to assign quality issues to engineers
on 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.Triggered auto assignment to @techievivek (
AutoAssignerNewDotQuality)This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989
I am able to reproduce this on staging.
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).
App/src/libs/ExportOnyxState/index.ts
Line 7 in a19ef98
const openRequest = indexedDB.open(CONST.DEFAULT_DB_NAME, 1); However, the DB version in staging/prod could be higher than 1.

It's because there is an extra object store that is coming from old
localForageof 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.
Reacted by Gandalf34 remaining items
Chill melvin payment is on 24th
Note
This is due for payment today, thanks :)
Requested in ND.
Payment Summary
- Reviewer: @bernhardoj owed $250 via NewDot
- ROLE: @allgandalf paid $(AMOUNT) via Upwork (LINK)
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
Summarizing payment on this issue:
- Contributor: @allgandalf - $250 via Upwork - PAID
- Contributor+: @bernhardoj $250 via ND - please request
Upwork job is here: https://www.upwork.com/jobs/~1737876297360310272
Reacted by GandalfAccepted the offer, thanks :)
All paid! Thanks.
$250 approved for @bernhardoj
Thanks for your help, @stephanieelliott !
Metadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsDone
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:
2.Try to Export Onyx state
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?
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 Owner
Current Issue Owner: @isabelastisser