Skip to content

[Due for payment 2025-04-14] Search - Unable to perform search via CMD+K #58726

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

Closed
2 of 8 tasks
vincdargento opened this issue Mar 19, 2025 · 21 comments
Closed
2 of 8 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2

Comments

@vincdargento
Copy link

vincdargento commented Mar 19, 2025

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.15-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: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Search

Action Performed:

  1. Go to staging.new.expensify.com
  2. Open search router via CMD+K.
  3. Type anything.
  4. Hit Enter.

Expected Result:

Reports page will open and show search results.

Actual Result:

App stays in Inbox.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

bug.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021902402444813986614
  • Upwork Job ID: 1902402444813986614
  • Last Price Increase: 2025-03-19
Issue OwnerCurrent Issue Owner: @lydiabarclay
@vincdargento vincdargento added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 DeployBlockerCash This issue or pull request should block deployment labels Mar 19, 2025
Copy link

melvin-bot bot commented Mar 19, 2025

Triggered auto assignment to @lydiabarclay (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 Mar 19, 2025

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Mar 19, 2025
Copy link

melvin-bot bot commented Mar 19, 2025

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

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.

@vincdargento
Copy link
Author

@lydiabarclay FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@luacmartins luacmartins added the External Added to denote the issue can be worked on by a contributor label Mar 19, 2025
@melvin-bot melvin-bot bot changed the title Search - Unable to perform search via CMD+K [$250] Search - Unable to perform search via CMD+K Mar 19, 2025
Copy link

melvin-bot bot commented Mar 19, 2025

Job added to Upwork: https://www.upwork.com/jobs/~021902402444813986614

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 19, 2025
Copy link

melvin-bot bot commented Mar 19, 2025

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

@lydiabarclay
Copy link

lydiabarclay commented Mar 19, 2025

I was able to reproduce this on staging, as well as some related unexpected behavior (vid below).

  1. Searched for keyword "hello", reports tab did not open.
  2. Then clicked on Reports tab, and found that a filter for my keyword "hello" had been applied, despite the tab not opening.
  3. Reproduced that same pattern again for a second keyword "flower."
  4. Reset filters.
  5. Searched for a third keyword "tasty."
  6. This time the Reports tab did open, but filtered for the second keyword "flower" again
2025-03-19_09-46-44.mp4

@lydiabarclay
Copy link

Not reproducible on production

2025-03-19_09-59-23.1.mp4

@flodnv
Copy link
Contributor

flodnv commented Mar 19, 2025

I'm also able to reproduce on staging but not on production

@flodnv
Copy link
Contributor

flodnv commented Mar 19, 2025

This seems related with #58742, cc @MarioExpensify

@nkdengineer
Copy link
Contributor

Proposal

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

App stays in Inbox.

What is the root cause of that problem?

When we submit the search query using the enter key, both onListItemPress and onSubmit are triggered.

const onListItemPress = useCallback(

onListItemPress is triggered first, after that we navigate to the search page, the search router isn't displayed, and getAdditionalSections returns undefined.

if (!isSearchRouterDisplayed) {
return undefined;
}

After that the onSubmit is triggered, at this time focusedOption is the last access report because the additionalSections now is undefined, and then we navigate to the report screen again.

const focusedOption = listRef.current?.getFocusedOption();
if (!focusedOption) {
submitSearch(textInputValue);
return;

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

We should return early if the search router isn't displayed here

if (!isSearchRouterDisplayed) {
    return;
}

const focusedOption = listRef.current?.getFocusedOption();
if (!focusedOption) {
submitSearch(textInputValue);
return;

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.

@luacmartins
Copy link
Contributor

We're reverting the offending PR #58083

@luacmartins
Copy link
Contributor

This is fixed in staging.

@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Mar 19, 2025
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Hourly KSv2 labels Mar 20, 2025
@melvin-bot melvin-bot bot changed the title [$250] Search - Unable to perform search via CMD+K [Due for payment 2025-03-27] [$250] Search - Unable to perform search via CMD+K Mar 20, 2025
Copy link

melvin-bot bot commented Mar 20, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.15-9 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 2025-03-27. 🎊

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

  • @hoangzinh requires payment through NewDot Manual Requests

Copy link

melvin-bot bot commented Mar 20, 2025

@hoangzinh @lydiabarclay @hoangzinh The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@lydiabarclay
Copy link

well done everyone! no payment is due here as it was a straight revert

@lydiabarclay lydiabarclay removed the Awaiting Payment Auto-added when associated PR is deployed to production label Mar 20, 2025
@lydiabarclay lydiabarclay changed the title [Due for payment 2025-03-27] [$250] Search - Unable to perform search via CMD+K Search - Unable to perform search via CMD+K Mar 20, 2025
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Mar 21, 2025
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 7, 2025
@melvin-bot melvin-bot bot changed the title Search - Unable to perform search via CMD+K [Due for payment 2025-04-14] Search - Unable to perform search via CMD+K Apr 7, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 7, 2025
Copy link

melvin-bot bot commented Apr 7, 2025

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Apr 7, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.23-7 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 2025-04-14. 🎊

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

  • @hoangzinh requires payment through NewDot Manual Requests

Copy link

melvin-bot bot commented Apr 7, 2025

@hoangzinh @lydiabarclay @hoangzinh The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@lydiabarclay
Copy link

no payment is due here as it was a straight revert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2
Projects
Status: DONE
Development

No branches or pull requests

6 participants