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

[C+ Checklist Needs Completion] CRITICAL: [Actionable Whispers] [$250] Categorize it - No workspace found appears briefly after clearing search field #40520

Closed
1 of 6 tasks
kavimuru opened this issue Apr 18, 2024 · 29 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 External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented Apr 18, 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: 1.4.63-0
Reproducible in staging?: y
Reproducible in production?: no, this is a new feature
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: Applause internal team
Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Track expense.
  3. Create a track manual expense.
  4. Select Categorize it from the whisper.
  5. Enter an invalid string in the search field.
  6. Clear the search field.

Expected Result:

In step 5: The error message should appear when entering the invalid string
In step 6: Workspace list will show up immediately after clearing the search field.

Actual Result:

In step 5: Nothing showing to indicate for no results found
In step 6: Workspace list empty state (No workspace found) appears briefly after clearing the search field.

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

Add any screenshot/video evidence

Bug6454146_1713466866957.bandicam_2024-04-18_23-33-12-401.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b97ed1aa9534847a
  • Upwork Job ID: 1781102371560218624
  • Last Price Increase: 2024-04-18
  • Automatic offers:
    • c3024 | Reviewer | 0
    • bernhardoj | Contributor | 0
@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 2024

Triggered auto assignment to @greg-schroeder (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 18, 2024

Triggered auto assignment to @marcaaron (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 Apr 18, 2024
@melvin-bot melvin-bot bot added the Daily KSv2 label Apr 18, 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.

@melvin-bot melvin-bot bot removed the Hourly KSv2 label Apr 18, 2024
@kavimuru
Copy link
Author

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

@kavimuru
Copy link
Author

We think this bug might be related to #wave-collect - Release 1

@thienlnam
Copy link
Contributor

Will take this one since it's related to track

@thienlnam thienlnam assigned thienlnam and unassigned marcaaron Apr 18, 2024
@thienlnam thienlnam removed the DeployBlockerCash This issue or pull request should block deployment label Apr 18, 2024
@thienlnam
Copy link
Contributor

Doesn't look like it needs to be a blocker

@thienlnam thienlnam added the External Added to denote the issue can be worked on by a contributor label Apr 18, 2024
@melvin-bot melvin-bot bot changed the title Track expense- Categorize it - No workspace found appears briefly after clearing search field [$250] Track expense- Categorize it - No workspace found appears briefly after clearing search field Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 2024

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

@neonbhai
Copy link
Contributor

neonbhai commented Apr 18, 2024

Proposal

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

Track expense- Categorize it - No workspace found appears briefly after clearing search field

What is the root cause of that problem?

We flash the not found page even when the search term is empty as there are no search results:

if ([CONST.IOU.ACTION.CATEGORIZE, CONST.IOU.ACTION.SHARE].includes(action) && isAllSectionsEmpty && didScreenTransitionEnd && searchTerm.trim() === '') {

This results in current behavior.

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

We should check if the user actually has workspaces by adding a check for active Policies:

&&  !Policy.hasActiveChatEnabledPolicies(allPolicies)

here:

if ([CONST.IOU.ACTION.CATEGORIZE, CONST.IOU.ACTION.SHARE].includes(action) && isAllSectionsEmpty && didScreenTransitionEnd && searchTerm.trim() === '') {

@gijoe0295
Copy link
Contributor

gijoe0295 commented Apr 18, 2024

Proposal

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

No workspace found appears briefly after clearing search field

What is the root cause of that problem?

This condition changes immediately when searchTerm changes:

if ([CONST.IOU.ACTION.CATEGORIZE, CONST.IOU.ACTION.SHARE].includes(action) && isAllSectionsEmpty && didScreenTransitionEnd && searchTerm.trim() === '') {

On the other hand, we used debouncedSearchTerm to compute sections. That caused an un-synchronization. Initially, sections was empty when results contain nothing, then when user deleted the search, searchTerm immediately changed to empty first while debouncedSearchTerm has not and thus sections has not been re-computed. At this moment, both sections and searchTerm is empty causing the empty workspace view to render.

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

Replace the condition above with debouncedSearchTerm.

What alternative solutions did you explore? (Optional)

NA

@neonbhai
Copy link
Contributor

Proposal updated

@melvin-bot melvin-bot bot added Overdue and removed Help Wanted Apply this label when an issue is open to proposals by contributors labels Apr 22, 2024
Copy link

melvin-bot bot commented Apr 22, 2024

📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Apr 22, 2024

📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@bernhardoj
Copy link
Contributor

PR is ready

cc: @c3024

@quinthar
Copy link

Wow great!

@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 25, 2024
@melvin-bot melvin-bot bot changed the title CRITICAL: [Actionable Whispers] [$250] Categorize it - No workspace found appears briefly after clearing search field [HOLD for payment 2024-05-02] CRITICAL: [Actionable Whispers] [$250] Categorize it - No workspace found appears briefly after clearing search field Apr 25, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 25, 2024
Copy link

melvin-bot bot commented Apr 25, 2024

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

Copy link

melvin-bot bot commented Apr 25, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.65-5 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 2024-05-02. 🎊

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

Copy link

melvin-bot bot commented Apr 25, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@c3024] The PR that introduced the bug has been identified. Link to the PR:
  • [@c3024] 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:
  • [@c3024] 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:
  • [@c3024] Determine if we should create a regression test for this bug.
  • [@c3024] 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.
  • [@greg-schroeder] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 1, 2024
@greg-schroeder greg-schroeder changed the title [HOLD for payment 2024-05-02] CRITICAL: [Actionable Whispers] [$250] Categorize it - No workspace found appears briefly after clearing search field [C+ Checklist Needs Completion] CRITICAL: [Actionable Whispers] [$250] Categorize it - No workspace found appears briefly after clearing search field May 3, 2024
@greg-schroeder
Copy link
Contributor

@c3024 All that's left is the checklist and we can close this out!

@melvin-bot melvin-bot bot added the Overdue label May 6, 2024
Copy link

melvin-bot bot commented May 7, 2024

@greg-schroeder, @thienlnam, @bernhardoj, @c3024 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@c3024
Copy link
Contributor

c3024 commented May 7, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@c3024] The PR that introduced the bug has been identified. Link to the PR: 20354 money request participants selector list refactoring #32692
  • [@c3024] 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: bernhardoj@9c79b10#r141745523
  • [@c3024] 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: No discussion started because no specific steps can be included in the checklist for early detection of the bug.
  • [@c3024] Determine if we should create a regression test for this bug. Yes
  • [@c3024] 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

  1. Open your self DM chat
  2. Track a new expense. Wait until the concierge message shows up
  3. Choose Categorize it
  4. Search for a text that matches with no workspace name but does with a user display name/login
  5. Verify the No result found header message is shown with no results

👍 or 👎

@melvin-bot melvin-bot bot removed the Overdue label May 7, 2024
@greg-schroeder
Copy link
Contributor

Thanks @c3024 - filing regression test

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 External Added to denote the issue can be worked on by a contributor
Projects
Status: CRITICAL
Development

No branches or pull requests

10 participants