Skip to content

Import - Importing Member, Tags and Per diem cause not here page on LHP after clicking Got it #60410

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

Open
2 of 8 tasks
mitarachim opened this issue Apr 17, 2025 · 10 comments
Open
2 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Overdue Weekly KSv2

Comments

@mitarachim
Copy link

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.1.29-3
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: #59647
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Web, mweb
App Component: Workspace Settings

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Create a workspace
  3. Go to member (or Per diem, Tags)
  4. Click 3-dot menu > Import spreadsheet.
  5. Click Upload.
  6. Select a file.
  7. Map the columns and click Import.
  8. Click Got it.

Expected Result:

No not here page should appear in LHP

Actual Result:

when importing category, Tags, and Per diem not here page appears on LHP after clicking Got it.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6804650_1744867353857.bandicam_2025-04-17_08-21-19-058.mp4

View all open jobs on GitHub

@mitarachim mitarachim added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 DeployBlocker Indicates it should block deploying the API DeployBlockerCash This issue or pull request should block deployment labels Apr 17, 2025
Copy link

melvin-bot bot commented Apr 17, 2025

Triggered auto assignment to @johncschuster (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 Apr 17, 2025

Triggered auto assignment to @mjasikowski (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Apr 17, 2025

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Apr 17, 2025
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@daledah
Copy link
Contributor

daledah commented Apr 17, 2025

Proposal

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

when importing category, Tags, and Per diem not here page appears on LHP after clicking Got it.

What is the root cause of that problem?

This comes from #59395

In perdiem page:

When closing imported modal, we call

closeImportPage will remove contents in ONYXKEYS.IMPORTED_SPREADSHEET, which will cause the page to return not found page

const spreadsheetColumns = spreadsheet?.data;
if (!spreadsheetColumns) {
return <NotFoundPage />;
}

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

In the offending PR, they fixed this bug only on Imported category page, commit here. We should apply same fix to other pages as well.

Or more simple solution, we should call closeImportPage on page unmount only

    useEffect(
        () => () => {
            closeImportPage();
        },
        [],
    );

Same as other pages

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

None

What alternative solutions did you explore? (Optional)

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.

@mjasikowski
Copy link
Contributor

Demoting since it's just a visual bug

@mjasikowski mjasikowski added Daily KSv2 Weekly KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 Daily KSv2 labels Apr 17, 2025
@daledah
Copy link
Contributor

daledah commented Apr 17, 2025

I can help raise a quick PR if needed.

@dukenv0307
Copy link
Contributor

Opened the PR to fix this issue. cc @mjasikowski @rayane-d

@mjasikowski mjasikowski removed the DeployBlocker Indicates it should block deploying the API label Apr 17, 2025
@melvin-bot melvin-bot bot added the Overdue label Apr 28, 2025
@melvin-bot melvin-bot bot removed the Overdue label Apr 29, 2025
Copy link

melvin-bot bot commented May 1, 2025

@mjasikowski @johncschuster @rayane-d @dukenv0307 this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. 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 May 6, 2025
@rayane-d
Copy link
Contributor

rayane-d commented May 6, 2025

PR was deployed to production #60419 (comment)

@melvin-bot melvin-bot bot removed the Overdue label May 6, 2025
@melvin-bot melvin-bot bot added the Overdue label May 15, 2025
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. Engineering Overdue Weekly KSv2
Projects
Status: No status
Development

No branches or pull requests

6 participants