-
Notifications
You must be signed in to change notification settings - Fork 3k
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-06-06] [$250] Tags - After deleting a Tag, the select button is not showing the correct amount #42271
Comments
Triggered auto assignment to @stephanieelliott ( |
We think this issue might be related to the #collect project. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Tags - After deleting a Tag, the select button is not showing the correct amount What is the root cause of that problem?We are not filtering out tags with pending action of delete. What changes do you think we should make in order to solve the problem?Filter out tags with pending action of delete in App/src/pages/workspace/tags/WorkspaceTagsPage.tsx Lines 122 to 125 in 1faad15
We apply same logic as in App/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx Lines 109 to 113 in 1faad15
What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~010953527677d8e414 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Tags - Upon removal of a tag, the select button fails to display the accurate quantity What is the root cause of that problem?App/src/pages/workspace/tags/WorkspaceTagsPage.tsx Lines 122 to 125 in 1faad15
The toggleAllTags function does not properly filter out tags with pending delete actions. And the logic for checking What changes do you think we should make in order to solve the problem?It's necessary to filter out tags that have pending delete actions. And then we also need to update the logic for checking
The same fix should be applied to other pages as well 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. |
Proposal: Fix for Incorrect Tag Count After DeletionOverview: Technical Explanation: Proposed Code Change: const toggleAllTags = () => {
const isAllSelected = tagList.every((tag) => selectedTags[tag.value] && tag.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE);
setSelectedTags(isAllSelected ? {} : Object.fromEntries(tagList.filter(tag => tag.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE).map((item) => [item.value, true])));
}; Note This update ensures that tags pending deletion are not considered when determining if all tags are selected and when toggling all tags. I recommend applying the same correction to other pages. After changes done: Screen.Recording.2024-05-19.at.3.14.38.AM.mov |
📣 @RandikaSilva! 📣
|
Contributor details |
@Krishna2323's proposal looks good to me! 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @cristipaval, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@thesahindia The selected proposal doesn't work in offline. Could you check again? As I mentioned in my proposal
|
@cretadn22, I don't think your proposal is different from mine. |
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Hey @Krishna2323, can you update on when we can expect a PR? |
Raising PR in few minutes. |
@thesahindia, PR ready for review. |
PR was merged earlier today |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.77-11 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-06-06. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
Hey @thesahindia can you please complete the BZ checklist? |
Summarizing payment on this issue:
Upwork job is here: https://www.upwork.com/jobs/~010953527677d8e414 |
This case should have been handled in #37621 but it was missed. We should add a general test case for all similar instances -
|
Thanks @thesahindia! Issue for regression test created here: https://github.com/Expensify/Expensify/issues/402937 |
$250 approved for @thesahindia |
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: v1.4.74-1
Reproducible in staging?: Y
Reproducible in production?: Y
Found when validating PR : #42086
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
User expects the correct number of tags to be shown in the selected area
Actual Result:
The incorrect number of tags is shown, "3 selected" is shown instead of "2 selected"
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6482146_1715817630755.Incorrect_number_of_tags_are_shown_in_selection_.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @stephanieelliottThe text was updated successfully, but these errors were encountered: