-
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-11-13] [HOLD for payment 2024-11-11] Room – Unable to save room description with numbers only #51789
Comments
Triggered auto assignment to @Christinadobrzyn ( |
Triggered auto assignment to @Gonals ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 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:
|
We think that this bug might be related to #wave-collect - Release 1 |
Production: bandicam.2024-10-31.09-39-05-128.mp4 |
Regression PR: #50838 It's because when we set the room description to a number e.g 2222222 and when displaying the room description, we use Inside this function we will parse the Lines 4261 to 4271 in 6c33bba
When we set the room description something like Lines 4269 to 4271 in 6c33bba
But when we set a number value inside the room description, the JSON parse did not throw an error instead returning the report description number in type of number not string So when there's no error this catch block will not run Lines 4269 to 4271 in 6c33bba
But instead it will run this Lines 4267 to 4268 in 6c33bba
Since it's number so when we return objectDescription.html ?? '' it will return empty string
Instead of returning const reportDescription = report?.description;
const objectDescription = JSON.parse(reportDescription) as {html: string};
return objectDescription.html ?? report?.description ?? ''; |
ProposalPlease re-state the problem that we are trying to solve in this issue.Unable to save room description with numbers only. What is the root cause of that problem?We are passing only strings for the room description; if we receive a number, it cannot be processed as a string. Lines 4265 to 4271 in 6c33bba
What changes do you think we should make in order to solve the problem?We should cast numbers to string before processing like this
What alternative solutions did you explore? (Optional) |
@Gonals I can reproduce this, can this go external? Is it a blocker? |
@NJ-2020 -thanks for finding what looks like the regression, i pinged the PR authors in slack 🙏 |
Working on it ... |
PR looks great, I'll merge & CP very soon 👍 |
Note to @Christinadobrzyn : It looks like we're using @NJ-2020 's solution from here, so I believe they deserve some compensation even though they didn't make the PR |
PR is being CP'd |
Fixed in staging 👍 Not closing b/c #51789 (comment) |
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.56-9 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-11-11. 🎊 For reference, here are some details about the assignees on this issue:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.57-10 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-11-13. 🎊 For reference, here are some details about the assignees on this issue:
|
Payment Summary
BugZero Checklist (@Christinadobrzyn)
|
Unassigning myself since i didn't work on this PR. |
Payouts due:
Do we need a regression for this? |
Thank you @Christinadobrzyn @Beamanator Sure here's my Upwork profile: https://www.upwork.com/freelancers/~01ff73ff788ecf5f2e |
@Christinadobrzyn I create a follow-up PR, so no payment is needed for me |
Done accepted |
Awesome! Thanks @NJ-2020 - I sent the payment through Upwork. It does seem like a regression test would be good for this and since there was no C+ review, I'm discussing the best options to create one with QA. https://expensify.slack.com/archives/C9YU7BX5M/p1731570034074179 |
Sounds like QA already has a test for this and they are going to treat this as an edge case so no need to create a regression test. So we're good to close! |
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.56-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
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:
Expected Result:
Description is saved
Actual Result:
Description is empty
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6651150_1730381345048.bandicam_2024-10-31_15-20-54-852.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: