-
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
[$500] [HOLD for payment 2023-10-24] [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-23] LHN - Split bill description having line breaks is not truncated in LHN #29676
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @flodnv ( |
Proposal by: @esh-g ProposalPlease re-state the problemSplit bill description having line breaks is not truncated in LHN What is the root cause of the problem?The root cause is that we are using
This change was made in this PR: #27822 What changes should be made to fix this?In the fore-mentioned PR, a similar problem was occurring and it was fixed by adding the App/src/libs/OptionsListUtils.js Lines 379 to 380 in 5ec2e8a
So, we can follow a similar approach and change the App/src/libs/OptionsListUtils.js Lines 366 to 367 in 5ec2e8a
to the following: const properSchemaForMoneyRequestMessage = ReportUtils.getReportPreviewMessage(report, lastReportAction, true);
lastMessageTextFromReport = ReportUtils.formatReportLastMessageText(properSchemaForMoneyRequestMessage); this would also match the backend which currently returns only the first line before the line break for the last message text What alternate approach did you explore?This is actually a big change in the whole approach of handling the formatting of Currently we are formatting the What can be done is that all the logic for the line break formatting can be removed from backend as well as while creating optimistic reports and just keep it exclusively in Additionally, function formatReportLastMessageText(lastMessageText,) {
return String(lastMessageText).trim().replace(CONST.REGEX.LINE_BREAK, ' ').substring(0, CONST.REPORT.LAST_MESSAGE_TEXT_MAX_LENGTH).trim();
} this would remove the need to have the "hacky" logic we use for modified expense currently: Lines 927 to 932 in 5ec2e8a
|
@esh-g your solution works, are you available to send a PR for it? |
Triggered auto assignment to @NicMendonca ( |
Bug0 Triage Checklist (Main S/O)
|
Thanks for handling this @francoisl, leaving this in your hands |
@francoisl Yes, I'm available just doing so in 10 min |
@francoisl PR is here: #29693 🚀 |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.84-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 2023-10-23. 🎊 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.
For reference, here are some details about the assignees on this issue: As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.85-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-10-24. 🎊 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.
For reference, here are some details about the assignees on this issue: As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
Job added to Upwork: https://www.upwork.com/jobs/~0103feec7f2a1def39 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
@esh-g can you please apply to the job in Upwork? https://www.upwork.com/jobs/~0103feec7f2a1def39 |
@NicMendonca Applied to the job! |
@NicMendonca This is my profile: https://www.upwork.com/freelancers/~0186b1d7cc69656f22 |
offer sent! |
@esh-g paid! 🎉 |
@NicMendonca This PR was merged within the bonus period... please also consider the speed bonus.. |
@NicMendonca the PR was merged between the bonus period... please reconsider the bonus |
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: 1.3.84.1
Reproducible in staging?: y
Reproducible in production?: y
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: @esh-g
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697385230621939
Action Performed:
Expected Result:
The description should be truncated in LHN
Actual Result:
The description is not truncated in LHN
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
Screen_Recording_20231016_094335_Chrome.mp4
iOS: Native
iOS: mWeb Safari
RPReplay_Final1697464542.1.MP4
MacOS: Chrome / Safari
Screen.Recording.2023-10-15.at.9.20.56.PM.mov
Recording.5006.mp4
MacOS: Desktop
Recording.545.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: