Skip to content

[Due for payment 2025-11-26] [$250] Tag - Download a backup fails #71346

Closed

Description

@nlemma

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: v9.2.18-5
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from TestRail: #71283
Email or phone of affected tester (no customers): -
Issue reported by: Applause Internal Team
Device used: Windows 11 / Chrome, MacOS Big Sur
App Component: Other

Action Performed:

Precondition: Workspace has imported multi-level DEPENDENT tags.

STR:

  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Tags.
  3. Click More > Import spreadsheet.
  4. Click Multi-level tags.
  5. Import tags modal will show "Are you sure? The existing tags will be overridden, but you can download a backup first.".
  6. Click on 'download a backup' in modal

Expected Result:

Backup file with tags downloaded.

Actual Result:

Modal "Your download couldn't be completed. Please try again later." displayed.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6955800_1758828891080.bandicam_2025-09-25_22-31-01-248.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021973037939645694288
  • Upwork Job ID: 1973037939645694288
  • Last Price Increase: 2025-10-28
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @bfitzexpensify

Activity

  1. added
    Daily
    Bug
    on Sep 25, 2025
  2. melvin-bot commented on Sep 25, 2025

    @melvin-bot

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

  3. dmkt9 commented on Sep 26, 2025

    @dmkt9
    Contributor

    Proposal

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

    Modal "Your download couldn't be completed. Please try again later." displayed.

    What is the root cause of that problem?

    We currently check for hasIndependentTags && isMultiLevelTags at this point. If there are no independent tags, the downloadTagsCSV function is used to download — however, this function only supports single-level tags, so the download will fail.

    if (hasIndependentTags && isMultiLevelTags) {
    downloadMultiLevelIndependentTagsCSV(policyID, () => {
    setIsDownloadFailureModalVisible(true);
    });
    } else {
    downloadTagsCSV(policyID, () => {
    setIsDownloadFailureModalVisible(true);
    });
    }

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

    We should remove the hasIndependentTags condition and rely solely on isMultiLevelTags for the check.

    if (hasIndependentTags && isMultiLevelTags) {

    if (hasIndependentTags && isMultiLevelTags) {

    if (hasIndependentTags) {

    if (isMultiLevelTags) {

    if (hasVisibleTags && !hasDependentTags) {

    if (hasVisibleTags) {

    Note: We should consider renaming downloadMultiLevelIndependentTagsCSV to avoid confusion.

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    NA

    What alternative solutions did you explore? (Optional)

    NA

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

    2025-09-26.18-50-45.mp4
  4. added
    External
    on Sep 30, 2025
  5. changed the title [-]Tag - Download a backup fails[/-] [+][$250] Tag - Download a backup fails[/+] on Sep 30, 2025
  6. melvin-bot commented on Sep 30, 2025

    @melvin-bot
  7. added
    Help Wanted
    on Sep 30, 2025
  8. moved this to Bugs and Follow Up Issues in #expensify-bugson Sep 30, 2025
  9. melvin-bot commented on Sep 30, 2025

    @melvin-bot

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

  10. 56 remaining items

  11. bfitzexpensify commented on Nov 28, 2025

    @bfitzexpensify
    Contributor

    Offer sent @dmkt9

    @Krishna2323, please complete the BZ checklist

  12. dmkt9 commented on Nov 28, 2025

    @dmkt9
    Contributor

    @bfitzexpensify TY. Payment requested.

  13. bfitzexpensify commented on Nov 28, 2025

    @bfitzexpensify
    Contributor

    Payment complete.

  14. Krishna2323 commented on Nov 30, 2025

    @Krishna2323
    Contributor

    BugZero Checklist:

    • [Contributor] 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: update modal content #71283 (comment)

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/A

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

      Link to issue:

    Regression Test Proposal

    Precondition:

    • Workspace has imported multi-level DEPENDENT tags.

    Test:

    • Go to staging.new.expensify.com
    • Go to workspace settings > Tags.
    • Click More > Import spreadsheet.
    • Click Multi-level tags.
    • Import tags modal will show "Are you sure? The existing tags will be overridden, but you can download a backup first.".
    • Click on 'download a backup' in modal
    • Verify that the backup file with tags downloaded.

    Do we agree 👍 or 👎

  15. Krishna2323 commented on Nov 30, 2025

    @Krishna2323
    Contributor

    @bfitzexpensify checklist done ✅

  16. bfitzexpensify commented on Dec 1, 2025

    @bfitzexpensify
    Contributor

    Payment summary:

    @Krishna2323 due $250 through NewDot Manual Requests

  17. moved this from Bugs and Follow Up Issues to Done in #expensify-bugson Dec 1, 2025
  18. Krishna2323 commented on Dec 6, 2025

    @Krishna2323
    Contributor

    Requested in ND.

  19. quinthar commented on Dec 8, 2025

    @quinthar
    Contributor

    Approved $250 to @Krishna2323

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions