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-03-07] [HOLD][$500] [MEDIUM] Tags: All tags are revealed when searching for hidden tag and clearing the search field #37335

Closed
6 tasks done
kbecciv opened this issue Feb 27, 2024 · 18 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production 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

@kbecciv
Copy link

kbecciv commented Feb 27, 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: v1.4.44-0
Reproducible in staging?: y
Reproducible in production?: n
Issue reported by: Applause - Internal Team

Action Performed:

Precondition:

  • User is an employee of Collect workspace.
  • The Collect workspace has more than 500 tags.
  1. Go to workspace chat.
  2. Open money request page.
  3. Proceed to confirmation page.
  4. Click Show more > Tag.
  5. Search for a term that is originally hidden behind "Show more" button.
    (If there are 700 tags, the last 200 will be hidden behind "Show more". In this case, we can search for the 700th tag.)
  6. Clear the search field.
  7. Scroll down.

Expected Result:

Only the first 500 tags will appear and the remaining will be hidden with "Show more" button.

Actual Result:

All the tags are revealed and there is no "Show more" button.

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

Bug6394409_1709057092251.20240227-182403_QJFQ1NX9.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0171a76cd580844a9b
  • Upwork Job ID: 1762547976110538752
  • Last Price Increase: 2024-02-27
@kbecciv kbecciv added DeployBlockerCash This issue or pull request should block deployment External Added to denote the issue can be worked on by a contributor labels Feb 27, 2024
@melvin-bot melvin-bot bot changed the title Tag - All tags are revealed when searching for hidden tag and clearing the search field [$500] Tag - All tags are revealed when searching for hidden tag and clearing the search field Feb 27, 2024
Copy link

melvin-bot bot commented Feb 27, 2024

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

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

melvin-bot bot commented Feb 27, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Feb 27, 2024
@kbecciv
Copy link
Author

kbecciv commented Feb 27, 2024

We think that this bug might be related to #wave6-collect-submitters
CC @greg-schroeder

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Feb 27, 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.

Copy link

melvin-bot bot commented Feb 27, 2024

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

@eucool
Copy link
Contributor

eucool commented Feb 27, 2024

Proposal

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

All tags are revealed when searching for hidden tag and clearing the search field

What is the root cause of that problem?

We multiply by extra paginationPage variable

const shouldShowShowMoreButton = allOptions.length > CONST.MAX_OPTIONS_SELECTOR_PAGE_LENGTH * paginationPage;

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

Remove the paginationPage variable,

What alternative solutions did you explore? (Optional)

N/A

@nexarvo
Copy link
Contributor

nexarvo commented Feb 27, 2024

Proposal

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

All tags are revealed when searching for hidden tag and clearing the search field

What is the root cause of that problem?

We are using paginationPage to decide whether to use show more button or not here:

const shouldShowShowMoreButton = allOptions.length > CONST.MAX_OPTIONS_SELECTOR_PAGE_LENGTH * paginationPage;

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

We need to remove paginationPage from Line 523 and it should solve the issue but paginationPage is used a couple of times in this file and it does not seems to have any use as we are not using pagination in tags page. Ideally we should remove the paginationPage reference to avoid any confusion in future. like this:

<ShowMoreButton
containerStyle={{...themeStyles.mt2, ...themeStyles.mb5}}
currentCount={CONST.MAX_OPTIONS_SELECTOR_PAGE_LENGTH * paginationPage}
totalCount={allOptions.length}
onPress={incrementPage}
/>

What alternative solutions did you explore? (Optional)

@greg-schroeder greg-schroeder changed the title [$500] Tag - All tags are revealed when searching for hidden tag and clearing the search field [$500] [MEDIUM] Tag - All tags are revealed when searching for hidden tag and clearing the search field Feb 27, 2024
@greg-schroeder greg-schroeder changed the title [$500] [MEDIUM] Tag - All tags are revealed when searching for hidden tag and clearing the search field [$500] [MEDIUM] Tags: All tags are revealed when searching for hidden tag and clearing the search field Feb 27, 2024
@NikkiWines
Copy link
Contributor

Looks like this is a regression from #31606, which has several other regressions tied to it as well. cc: @Piotrfj since it looks like you're handling the regressions that arose from that PR

@dragnoir
Copy link
Contributor

@NikkiWines ther's an ongoing refactor and a cleanup for the BaseOptionsSelector #37353 , I think this should be onhold for now

@NikkiWines
Copy link
Contributor

Yeah, that PR came about as a result of the multiple regressions from #31606. You're right though that this issue will be handled by that PR (unless we ultimately decide to revert #31606). Will put it on hold 👍

@NikkiWines NikkiWines changed the title [$500] [MEDIUM] Tags: All tags are revealed when searching for hidden tag and clearing the search field [HOLD][$500] [MEDIUM] Tags: All tags are revealed when searching for hidden tag and clearing the search field Feb 28, 2024
@roryabraham
Copy link
Contributor

ended up closing #37353 in favor of the revert of #31606. I'll closely review the 2nd attempt to migrate this component in hopes that most or all of the simplifications from #37353 make it into the migration round 2.

@Piotrfj
Copy link
Contributor

Piotrfj commented Feb 29, 2024

Update: re-refactoring is ready to be tested, it fixes all the regression issues I was aware of. Please test it (especially the tags, because I could not yet replicate the scenario on my site).
The fix is based on the @roryabraham solution, so special thanks for him!
Link to PR: #37494

@puneetlath puneetlath removed the DeployBlockerCash This issue or pull request should block deployment label Feb 29, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 29, 2024
@melvin-bot melvin-bot bot changed the title [HOLD][$500] [MEDIUM] Tags: All tags are revealed when searching for hidden tag and clearing the search field [HOLD for payment 2024-03-07] [HOLD][$500] [MEDIUM] Tags: All tags are revealed when searching for hidden tag and clearing the search field Feb 29, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 29, 2024
Copy link

melvin-bot bot commented Feb 29, 2024

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

Copy link

melvin-bot bot commented Feb 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.45-6 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-03-07. 🎊

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

  • @fedirjh requires payment (Needs manual offer from BZ)

@greg-schroeder
Copy link
Contributor

Okay @ishpaul777 you were assigned on the other issue for payment i believe (#37256) so I don't think this one actually requires payment based on what happened, as @fedirjh didn't actually do the review on the linked PR

@greg-schroeder
Copy link
Contributor

We may be able to close in that case

@ishpaul777
Copy link
Contributor

yes this can be closed 👍

@trjExpensify
Copy link
Contributor

Let's close it then! :)

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 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
No open projects
Development

No branches or pull requests