-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-28] [$250] Tags - Enable tag option is no longer grayed out after renaming tag offline #42917
Comments
Triggered auto assignment to @garrettmknight ( |
@garrettmknight 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 |
We think that this bug might be related to #wave-collect - Release 1 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Tags - Enable tag option is no longer grayed out after renaming tag offline What is the root cause of that problem?The current pending actions are replaced by new pending actions. App/src/libs/actions/Policy/Tag.ts Lines 380 to 382 in 81fedce
App/src/libs/actions/Policy/Tag.ts Lines 196 to 198 in 81fedce
What changes do you think we should make in order to solve the problem?We need to spread the We will also need to give a type for const oldTag: PolicyTag | Record<string, never> = allPolicyTags?.[`${ONYXKEYS.COLLECTION.POLICY_TAGS}${policyID}`]?.[tagListName]?.tags?.[oldTagName] ?? {};
pendingFields: {
...(oldTag.pendingFields ?? {}),
name: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
}, We will also spread the previous pending field in success and failure data. We will also check for similar bugs in policy pages or pages with similar functionality. What alternative solutions did you explore? (Optional) |
|
I couldn't get the tag to disable offline when testing. @Krishna2323 are you getting a different result on Step 6? |
@garrettmknight, yup I can disable the tag, the updated styles (grayed out) is applied to switch until we edit the tag name. Both should be grayed out, but switch returns to normal state as if it wasn't updated offline. Monosnap.screencast.2024-06-05.02-01-51.mp4 |
Cool - just replicated, opening up. |
Job added to Upwork: https://www.upwork.com/jobs/~014348229109c8ccb2 |
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.Enable tag option is no longer grayed out after renaming tag offline What is the root cause of that problem?When renaming the tag, we remove the old Tag and add the new tag. App/src/libs/actions/Policy/Tag.ts Lines 375 to 382 in 90dee7a
What changes do you think we should make in order to solve the problem?In renamePolicyTag function, we need to make adjustments to these points:
App/src/libs/actions/Policy/Tag.ts Lines 397 to 401 in 90dee7a
We utilize oldTag.errors, errors.pendingAction, and oldTag.pendingFields.
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. |
@thesahindia looks like we've got a proposal here! |
@Krishna2323's proposal looks good to me! 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @marcochavezf, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@thesahindia, PR ready for review. |
@garrettmknight , can you please assign me here(context), I’ll be reviewing the PR |
📣 @allgandalf 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.85-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 2024-06-28. 🎊 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:
|
Payment Summary:
@allgandalf can you complete the checklist when you get a chance? |
Shouldn't be overdue? |
completing the checklist @garrettmknight , should update this in sometime, sorry my K2 api token expired and this didn't update in my K2 at all whole week :) |
Regression Test Proposal
Do we agree 👍 or 👎 |
Done! |
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: 1.4.78-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4587701
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Enable tag option will remain grayed out after renaming tag offline
Actual Result:
Enable tag option is no longer grayed out after renaming tag offline
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6497093_1717139350416.20240531_150625.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @garrettmknightThe text was updated successfully, but these errors were encountered: