Skip to content

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

Description

@m-natarajan

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

Activity

  1. melvin-bot commented on Jul 11, 2024

    @melvin-bot

    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.

  2. melvin-bot commented on Jul 11, 2024

    @melvin-bot

    Triggered auto assignment to @techievivek (AutoAssignerNewDotQuality)

  3. MelvinBot commented on Jul 11, 2024

    @MelvinBot
    Contributor

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

  4. techievivek commented on Jul 11, 2024

    @techievivek
    Contributor

    I am able to reproduce this on staging.

  5. bernhardoj commented on Jul 11, 2024

    @bernhardoj
    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.

  6. 34 remaining items

  7. allgandalf commented on Jul 22, 2024

    @allgandalf
    Contributor

    Chill melvin payment is on 24th

  8. allgandalf commented on Jul 24, 2024

    @allgandalf
    Contributor

    Note

    This is due for payment today, thanks :)

  9. bernhardoj commented on Jul 24, 2024

    @bernhardoj
    Contributor

    Requested in ND.

  10. melvin-bot commented on Jul 24, 2024

    @melvin-bot

    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
  11. stephanieelliott commented on Jul 25, 2024

    @stephanieelliott
    Contributor

    Summarizing payment on this issue:

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

  12. allgandalf commented on Jul 25, 2024

    @allgandalf
    Contributor

    Accepted the offer, thanks :)

  13. stephanieelliott commented on Jul 25, 2024

    @stephanieelliott
    Contributor

    All paid! Thanks.

  14. JmillsExpensify commented on Jul 26, 2024

    @JmillsExpensify
    Contributor

    $250 approved for @bernhardoj

  15. isabelastisser commented on Jul 29, 2024

    @isabelastisser
    Contributor

    Thanks for your help, @stephanieelliott !

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

Metadata

Metadata

Labels

AutoAssignerNewDotQualityUsed to assign quality issues to engineersAwaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions