-
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-09-6] [$250] Tags - mWeb - Creating expense with tag G : : displays tag no longer valid error #46494
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 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Tags - mWeb - Creating expense with tag G : : displays tag no longer valid error What is the root cause of that problem?This is because we are removing the last colons here Lines 144 to 145 in 3722b22
which will create an incompatibility with the tag of the workspace which is G ::
What changes do you think we should make in order to solve the problem?We are removing the last colons to remove empty multilevel tags which are joined by a colon here Lines 144 to 145 in 3722b22
But we need to make sure that the colons are not preceded by a backslash \ because that would mean the colon is part of the tag name as the backend normally returns colons after escaping with backslashes.So we need to change it to
What alternative solutions did you explore? (Optional) |
Making this external. Let's be careful to keep in mind that colons are how we store different levels of tags with multi-level tags. |
Job added to Upwork: https://www.upwork.com/jobs/~01c81e89645f07ad39 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Creating expense with tag G : : displays tag no longer valid error What is the root cause of that problem?In Line 144 in 881c548
: , the aim was to remove empty multi-level tags. However in this case the : is user input and is formatted as \: by the back-end, but we're wrongly removing the last : .
What changes do you think we should make in order to solve the problem?We should filter the empty item at the last of
This will preserve existing last What alternative solutions did you explore? (Optional)I tried updating the Regex to use look behind like above proposal but it doesn't work for multiple browsers (like older Safari version), reference: https://caniuse.com/js-regexp-lookbehind. Also IMO we should try to avoid using Regex as much as possible because it's hard to read. |
2 proposals in review |
📣 @webdog12345! 📣
|
} we can change this function like this
} |
Hey @situchan - it looks like we have a few proposals ready for review. |
Triggered auto assignment to @Julesssss, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
👍 |
📣 @situchan 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @daledah You have been assigned to this job! |
@paultsimura I'm working on a PR right now. |
This issue has not been updated in over 15 days. @sakluger, @Julesssss, @situchan, @daledah 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! |
Given the context above, this issue should be on [HOLD for Payment 2024-09-6] according to today's production deploy from Deploy Checklist: New Expensify 2024-08-28. |
We already have regression test - https://expensify.testrail.io/index.php?/tests/view/4784898 |
Ready for payment @sakluger 👍 |
Sorry for the delay - I missed this since it still had the monthly priority label. I'll process payment now. |
Summarizing payment on this issue: Contributor: @daledah $250, please accept the Upwork offer: https://www.upwork.com/nx/wm/offer/104520924 |
Offer is still pending. We can close as soon as it's accepted and paid. |
I haven't seen @daledah in Slack or GH for the past few days, so they may be on leave. I'm going to set this to weekly and check back in a week. |
Many thanks @sakluger I have accepted the offer |
Thanks @daledah, I've paid out the contract. |
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: 9.0.14
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/4784898
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Creating expense with tag G : : must not display tag no longer valid error
Actual Result:
Creating expense with tag G : : displays tag no longer valid error
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6556724_1722288231254.Screenrecorder-2024-07-30-02-44-18-551_compress_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @daledahThe text was updated successfully, but these errors were encountered: