-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 - Opening tag with certain text shows hhm not here while opening for the first time #41083
Comments
Triggered auto assignment to @johncschuster ( |
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.Creating a new tag with a specific text and then open it quickly will show a not found page after a few seconds. What is the root cause of that problem?The issue can be reproduced if the text name contains a colon (:). When we create a tag with a name with a colon, the BE response will give us a different tag name. All the colon is replaced with Lines 236 to 241 in 30bfabc
The policy tag is accessed by its name, App/src/pages/workspace/tags/TagSettingsPage.tsx Lines 49 to 53 in 30bfabc
and because the name from the FE doesn't match the new name from the BE, the data is now not found, thus the not found page is shown. What changes do you think we should make in order to solve the problem?We should match the optimistic data with the BE data by replacing the colon with For example, App/src/libs/actions/Policy.ts Lines 3242 to 3253 in 30bfabc
do the same for renaming in renamePolicyTag for the old and new tag name |
@johncschuster Whoops! This issue is 2 days overdue. Let's get this updated quick! |
I don't think this is a blocker, but I wonder if entering a URL as the tag name is part of the reason for this behavior. |
Job added to Upwork: https://www.upwork.com/jobs/~0178b10f7b05e6e2ba |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann ( |
@bernhardoj Your proposal looks promising. But we need to understand why the BE changed 🎀 👀 🎀 C+ reviewed Add this label to get more information about the BE logic from the internal engineer |
Triggered auto assignment to @techievivek, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@techievivek Before moving forward with this issue, could you help to check the logic in BE and give an answer to the above question |
@johncschuster, @techievivek, @DylanDylann Eep! 4 days overdue now. Issues have feelings too... |
@techievivek bump on the above question! |
@johncschuster @techievivek @DylanDylann this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Bumped in ND! |
Bumped in Slack as well! |
Yes, we allow colon in category name in NewDot and that achieves the sub-category nesting I highlighted above. For tags, I think you should be able to use a colon in the name, it just doesn't do anything special - and it certainly doesn't create a multiTag list when you do. (Just like OldDot). |
ProposalPlease re-state the problem that we are trying to solve in this issue.As confirmed here, we will allow user use a colon in the name What is the root cause of that problem?Currently if the tag name include a colon the BE will replace it to Lines 236 to 241 in 30bfabc
What changes do you think we should make in order to solve the problem?With the new confirmation, we need a change from BE to avoid replacing the tag name with a colon. In the FE we also don't need this function to convert the tag name back 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. |
As this comment, @nkdengineer's proposal looks promising. We don't need to convert anything in the tag name anymore. @techievivek What do you think about their proposal? |
I see we have some conflicts in decisions. @amyevans @techievivek Could you help to confirm the final expectation for this issue? Should we convert the colon in the tag name? |
We should match the optimistic data to what is returned from the server as @bernhardoj suggested. I think going down the road of a backend fix is inadvisable because under the hood the OldDot and NewDot API commands for creating a tag are calling the same functions, so the logic needs to be fully compatible and not create bugs on OldDot. Multi-level tags are sent to/received from the server as a string separated by unescaped colons. So if I have tag lists If we want to create a tag with a colon in its name, the colon needs to be escaped. AFAIK, independent multi-level tags are implemented in NewDot (#32828), it is only dependent multi-level tags at this point that are not. |
@amyevans Thanks for your comment |
As this comment, @techievivek Let's go with @bernhardoj's proposal |
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @DylanDylann |
Thanks for the quick PR |
|
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:
|
Sweet! I'll issue payment for this next Thursday. @DylanDylann, can you complete the BZ Checklist before then? Thank you! |
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: [@DylanDylann] The PR that introduced the bug has been identified. Link to the PR: Regression Test Proposal
Do we agree 👍 or 👎 |
Payment has been issued! Thanks for your contributions! 🎉 |
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.66-2
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
(https://hatrabbits.com/wp-content/uploads/2017/01/random.jpg)
Expected Result:
Opening tag with certain text must not show hhm not here while opening for the first time
Actual Result:
Opening tag with certain text shows hhm not here while opening for the first time
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6462637_1714123382618.tag.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @johncschusterThe text was updated successfully, but these errors were encountered: