Skip to content
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

[HOLD for payment 2024-10-07][Search v2.3] - Dropdown title does not follow search name, "type:expense" is shown in the list #49208

Closed
3 of 6 tasks
IuliiaHerets opened this issue Sep 14, 2024 · 23 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Sep 14, 2024

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: 9.0.35-0
Reproducible in staging?: Y
Reproducible in production?: N/A - new feature, doesn't exist in prod
Issue was found when executing this PR: #48566
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

Precondition:

  • User has saved a few searches.
  1. Go to staging.new.expensify.com
  2. Go to Search.
  3. Tap on the dropdown.
  4. Open any saved search.
  5. Tap on the dropdown.

Expected Result:

In Step 4, the dropdown title should follow the name of the search.
In Step 5, when viewing a saved search, there should not be "type:expense" tab in the dropdown list.

Actual Result:

In Step 4, the dropdown title shows the name "type:expense".
In Step 5, when viewing a saved search, there is a "type:expense" tab in the dropdown list.

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6603107_1726282285065.ScreenRecording_09-14-2024_10-48-24_1.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @JmillsExpensify
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 14, 2024
Copy link

melvin-bot bot commented Sep 14, 2024

Triggered auto assignment to @JmillsExpensify (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 Sep 14, 2024

Triggered auto assignment to @danieldoglas (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 Sep 14, 2024
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.

@dominictb
Copy link
Contributor

Proposal

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

  • In Step 4, the dropdown title shows the name "type:expense".
  • In Step 5, when viewing a saved search, there is a "type:expense" tab in the dropdown list.

What is the root cause of that problem?

  • If the saved search have custom name, we don't display it
    const title = isCannedQuery ? undefined : SearchUtils.getSearchHeaderTitle(queryJSON, personalDetails, cardList, reports, taxRates);

    but we display its query json instead.

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

  • When user click on any saved search, we need to add its custom name to the url, such as &name=.... Based on it, we can display the dropdown title.

  • First, we need to update:

    Navigation.navigate(ROUTES.SEARCH_CENTRAL_PANE.getRoute({query: item?.query ?? ''}));

                    Navigation.navigate(ROUTES.SEARCH_CENTRAL_PANE.getRoute({query: item?.query ?? '', name: item.name}));
  • And modify the ROUTES:

getRoute: ({query}: {query: SearchQueryString}) => `search?q=${encodeURIComponent(query)}` as const,

        getRoute: ({query, name}: {query: SearchQueryString; name: string}) => `search?q=${encodeURIComponent(query)}${name ? `&name=${name}` : ''}` as const,
  • Finally, update:

const title = isCannedQuery ? undefined : SearchUtils.getSearchHeaderTitle(queryJSON, personalDetails, cardList, reports, taxRates);

        const title = searchName ?? (isCannedQuery ? undefined : SearchUtils.getSearchHeaderTitle(queryJSON, personalDetails, cardList, reports, taxRates));

with the searchName comes from url.

What alternative solutions did you explore? (Optional)

@luacmartins
Copy link
Contributor

This is known and will be addressed in a follow up.

@luacmartins luacmartins added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Sep 15, 2024
@melvin-bot melvin-bot bot added the Overdue label Sep 18, 2024
@luacmartins luacmartins changed the title Saved search - Dropdown title does not follow search name, "type:expense" is shown in the list [Search v2.3] - Dropdown title does not follow search name, "type:expense" is shown in the list Sep 19, 2024
@lakchote
Copy link
Contributor

@dominictb are you available to implement the fix?

@brunovjk
Copy link
Contributor

brunovjk commented Oct 2, 2024

👋 @lakchote I have reviewed the PR, can you please assign me here so I can complete the BugZero Checklist? Thank you.

@brunovjk
Copy link
Contributor

brunovjk commented Oct 7, 2024

  • [@brunovjk] The PR that introduced the bug has been identified. Link to the PR: [Search v2.3] [App] Implement Saved Search feature #48566
  • [@brunovjk] 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: I don't believe it can be considered a regression, but rather a polishing, already pointed out in the PR here.
  • [@brunovjk] A discussion in #expensify-bugs 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:
  • [@brunovjk] Determine if we should create a regression test for this bug. Yes
  • [@brunovjk] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

Regression Test Proposal

Precondition: Small screen device. User has saved a few searches.

  1. Test case 1:
  • Go to Search.
  • Tap on the dropdown.
  • Open any saved search. Verify the dropdown title should follow the name of the search.
  1. Test case 2:
  • Go to Search.
  • Tap on the dropdown.
  • Click three dots on any option > Rename > Enter a new name > Save.
  • Verify the dropdown title should follow the new name.
  1. Test case 3:
  • Go to Search.
  • Tap on the dropdown.
  • Verify we dont see the custom menu item, if we're viewing a saved search.

Do we agree 👍 or 👎?

@dominictb
Copy link
Contributor

@luacmartins @lakchote We can proceed payment now.

@luacmartins luacmartins changed the title [Search v2.3] - Dropdown title does not follow search name, "type:expense" is shown in the list [HOLD for payment 2024-10-07][Search v2.3] - Dropdown title does not follow search name, "type:expense" is shown in the list Oct 18, 2024
@luacmartins luacmartins added Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review labels Oct 18, 2024
@melvin-bot melvin-bot bot added the Overdue label Oct 18, 2024
@luacmartins luacmartins added the Daily KSv2 label Oct 18, 2024
@melvin-bot melvin-bot bot added the Overdue label Oct 18, 2024
@luacmartins luacmartins removed the Weekly KSv2 label Oct 18, 2024
@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 18, 2024
@luacmartins
Copy link
Contributor

@JmillsExpensify bump for payment

Copy link

melvin-bot bot commented Oct 21, 2024

@JmillsExpensify, @lakchote, @luacmartins, @brunovjk, @dominictb Whoops! This issue is 2 days overdue. Let's get this updated quick!

@JmillsExpensify
Copy link

Payment summary:

@melvin-bot melvin-bot bot removed the Overdue label Oct 23, 2024
@JmillsExpensify
Copy link

Offer sent to @brunovjk. @dominictb can you remind me of your Upwork profile?

@brunovjk
Copy link
Contributor

Accepted :D

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Daily KSv2 labels Oct 24, 2024
@dominictb
Copy link
Contributor

can you remind me of your Upwork profile?

@JmillsExpensify It's https://www.upwork.com/freelancers/~01f70bed1934fd35d5

Copy link

melvin-bot bot commented Oct 29, 2024

@JmillsExpensify, @lakchote, @luacmartins, @brunovjk, @dominictb Eep! 4 days overdue now. Issues have feelings too...

@JmillsExpensify
Copy link

Offer sent

@melvin-bot melvin-bot bot removed the Overdue label Oct 30, 2024
@dominictb
Copy link
Contributor

Offer accepted

@JmillsExpensify
Copy link

All contributors paid out!

Copy link

melvin-bot bot commented Oct 30, 2024

@JmillsExpensify @lakchote @luacmartins Be sure to fill out the Contact List!

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. Daily KSv2 Engineering
Projects
Status: Done
Development

No branches or pull requests

7 participants