-
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-10-05] [$500] Dev: Web - Trailing Newlines are not trimmed on the My Note page. #27596
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.Dev - Trailing Newlines are not trimmed on the My Note page. What is the root cause of that problem?we trim the
and not trim it when save App/src/pages/PrivateNotes/PrivateNotesEditPage.js Lines 69 to 76 in 76c1559
What changes do you think we should make in order to solve the problem?we need to trim the const editedNote = parser.replace(privateNote.trim()); App/src/pages/PrivateNotes/PrivateNotesEditPage.js Lines 69 to 76 in 76c1559
What alternative solutions did you explore? (Optional)N/A |
Job added to Upwork: https://www.upwork.com/jobs/~01a1c9388800197ffc |
Triggered auto assignment to @garrettmknight ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @burczu ( |
Proposal by: @jayeshmangwani ProposalPlease re-state the problem that we are trying to solve in this issue.Trailing Newlines are not trimmed on the My Note page. What is the root cause of that problem?We are not trimming Private Note Value on Private Notes page, before passing the privateNote value to the API What changes do you think we should make in order to solve the problem?We should trim the privateNote Value here before passing to the API App/src/pages/PrivateNotes/PrivateNotesEditPage.js Lines 69 to 70 in 76c1559
What alternative solutions did you explore? (Optional)none |
ProposalPlease re-state the problem that we are trying to solve in this issue.Trailing Newlines are not trimmed on the My Note page. What is the root cause of that problem?We are not trimming Private Note Value on Private Notes page, before passing the privateNote value to the API What changes do you think we should make in order to solve the problem?We should trim the privateNote Value here before passing to the API App/src/pages/PrivateNotes/PrivateNotesEditPage.js Lines 69 to 70 in 76c1559
const editedNote = parser.replace(privateNote.trim()); Note This was my proposal that I had added on Slack, so I am commenting on GH, too. What alternative solutions did you explore? (Optional)none |
I've just reviewed all the proposals - they are all the same (and correct), but in fact the one from @jayeshmangwani was the first (he posted in the slack thread first, then @kbecciv posted it for him here, and then he posted it here himself), so we should proceed with it. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @MariaHCD, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @jayeshmangwani 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @jayeshmangwani 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
PR is ready for review |
📣 @iamjey6! 📣
|
@burczu friendly bump for review |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.74-3 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-05. 🎊 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:
|
@garrettmknight today payment will released so I want to ask if the urgency bonus be considered ?, though PR merged on 4th day but PR was raised after few hours I've assigned but C+ reviewed on 4th day, TIA |
@garrettmknight, @burczu, @MariaHCD, @jayeshmangwani Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@jayeshmangwani the urgency bonus is based on the PR getting merged so this one didn't make it. Summary of payments:
Upwork job: https://www.upwork.com/jobs/~01a1c9388800197ffc |
Issue is reproducible on build 1.3.84.0 Recording.4987.mp4 |
@kbecciv Video you have attached is an expected behavior; we do not trim new lines between the notes. We trim if the note message has new lines at the start or end of the message |
@jayeshmangwani This attached is different a bit with this issue when we click edit again it is still not trimmed, I think it's another issue and caused by another PR |
Can see details here Screen.Recording.2023-10-14.at.21.21.07.mov |
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. |
@garrettmknight, @burczu, @MariaHCD, @jayeshmangwani Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Okay, I don't have the most context on if that other issue caused this issue so I've asked here: #28599 (comment) |
Looks like it is indeed a regression from the other issue: #28599 (comment) I think we can close this one out. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Trailing Newlines should be trimmed on the My Note page.
Actual Result:
Trailing Newlines are not trimmed on the My Note page, and it shows the empty lines on it.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: Dev 1.3.70.5
Reproducible in staging?: n
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
Notes/Photos/Videos: Any additional supporting documentation
empty-newlines.mov
Expensify/Expensify Issue URL:
Issue reported by: @jayeshmangwani
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694787278356809
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: