-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$250] Tags - System message for disabling, adding tax code and deleting X: Y tag shows X\: Y tag #47804
Comments
Triggered auto assignment to @sakluger ( |
@sakluger 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 |
Edited by proposal-police: This proposal was edited at 2024-08-21 23:08:16 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The system message for disabling, adding, and deleting the X: Y tag displays as "X: Y tag." What is the root cause of that problem?The comment message is only cleaned and parsed when the tag is added, but not when it is updated or deleted. App/src/pages/home/report/ReportActionItem.tsx Lines 652 to 654 in f80d19b
What changes do you think we should make in order to solve the problem?We should add conditions for the remove, disable, enable, and update actions, as well as any other actions that display the tag name in the comment. } else if (
action.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.ADD_TAG ||
action.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_TAG_ENABLED ||
action.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_TAG_NAME ||
action.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.DELETE_TAG ||
action.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_TAG
) { we can also add other actions that show the tag name in the comment And as daledah mentioned we need to do the same in the sideBar as well since the same problem also shown in the LHN data ... so the same fix would be applied here as well What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
const isActionNeedToCleanup(actionName: string) {
return [CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.ADD_TAG, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_TAG, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_TAG_ENABLED, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.DELETE_TAG, CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.UPDATE_TAG_NAME].includes(actionName)
}
} else if (isActionNeedToCleanup(lastAction?.actionName)) {
} else if (isActionNeedToCleanup(action?.actionName)) { |
Job added to Upwork: https://www.upwork.com/jobs/~01e7a0584538b48c5f |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
Triggered auto assignment to @CortneyOfstad ( |
@CortneyOfstad could you please help manage this issue while I'm OOO through next Friday, 8/30? Thanks! |
@abzokhattab Please note the contributor guidelines:
|
Thank you for the note, Daledah. The concept remains consistent across both files, which is why I didn't add a separate proposal update comment. The core issue we are addressing here focuses on the chat comments, while the LHN behavior, although related, can be seen as a sub-issue within the broader context as the result matches the expected output of the issue. Since the change in the other file is an extension of the same logic, I believe it doesn't fundamentally alter the original proposal. |
Proposal Proposal: System Message for Disabling, Adding Tax Code, and Deleting Tag Shows X: Y Tag Issue: Proposed Solution: Technical Explanation: Implementation Plan: Conclusion: |
📣 @nabeel-tariq! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@sakluger, @CortneyOfstad, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Checking now |
@abzokhattab 's proposal here #47804 (comment) looks good and works well. Other proposal seems improvised version of core issue to fix system, so going with the original proposal. 🎀 👀 🎀 |
Triggered auto assignment to @francoisl, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
❌ There was an error making the offer to @abzokhattab for the Contributor role. The BZ member will need to manually hire the contributor. |
Here's the offer for @abzokhattab: https://www.upwork.com/nx/wm/offer/103753777 |
This issue has not been updated in over 15 days. @francoisl, @sakluger, @abdulrahuman5196, @abzokhattab eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Hi @francoisl / @sakluger I think the automation failed here. The change was pushed to production 2 weeks before. And should be up for payment. |
Changing to Daily so we can issue payments then @sakluger |
Sorry about that delay! Summarizing payment on this issue: Contributor: @abzokhattab $250, paid via Upwork |
@abdulrahuman5196 please complete the BZ checklist: 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:
|
We can close this as soon as the BZ checklist is completed. |
Not a regression
Yes.
|
Thanks! |
$250 approved for @abdulrahuman5196 |
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: 9.0.23-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: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
Expected Result:
The system message for disabling, adding tax code and deleting tag in X: Y format will display the tag correctly
Actual Result:
The system message for disabling, adding tax code and deleting tag in X: Y format displays the tag in X: Y format
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6578196_1724248326940.bandicam_2024-08-21_21-43-35-544.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: