-
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 2023-12-28] [HOLD for payment 2023-12-12] Room - Inconsistent error message when entering [[<<> in the room name field #32399
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @grgia ( |
Not reproduced on Production bandicam.2023-12-02.20-21-55-204.mp4 |
Offending PR #30996 |
This comment was marked as outdated.
This comment was marked as outdated.
ProposalProblemRoom - Inconsistent error message when entering [[<<> in the room name field Root CauseWe have validation implemented for input value to be not html tags, the error meesage if Changes SuggestedHave a prop Alternatively we can consider have a more descriptive error message something like "Room names cannot include Html Tags" |
My bad, I was wrong with my comment here. ProposalPlease re-state the problem that we are trying to solve in this issue.After inputting What is the root cause of that problem?In FormProvider, we have a validation to check if there is any HTML tag and we will show "Invalid character" error message which will supercede any error message from the component validation. App/src/components/Form/FormProvider.js Lines 131 to 159 in 1682be4
This happens after we migrate it from Form to FormProvider. In the HTML tag validation logic, we actually have a whitelist for some of the tags. App/src/components/Form/FormProvider.js Lines 148 to 155 in 1682be4
Line 826 in 1682be4
If the tag is in the whitelist, we won't show the "Invalid character" error. This works correctly in Form because we return early if it's found in the whitelist. Lines 171 to 176 in 1682be4
One of the whitelist is this is how the validation works What changes do you think we should make in order to solve the problem?Copy the early return logic from Form to FormProvider by early return if the tag is in the whitelist.
This will not show the "Invalid character" error message if we input isMatch is honestly a bit confusing to understand, I think we can rename it to isWhitelisted Another issue:
Or remove Fixing this will show "Invalid character" when we input |
We're reverting the offending PR. |
There were some changes in form validation in old Here are the missing parts: Line 133 in 524593d
Lines 171 to 173 in 524593d
|
Revert deployed so closing this out! |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.7-4 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 2023-12-12. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
|
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.14-6 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 2023-12-28. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once 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.7-0
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team_
Slack conversation:
Action Performed:
Expected Result:
The error message for invalid room name should be consistent.
Actual Result:
The error message for invalid room name is not consistent.
The error message changes from "Room names can only include lowercase letters, numbers and hyphens" to "Invalid characters" when typing [[<<>.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6298720_1701526862025.bandicam_2023-12-02_20-18-13-110.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: