You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-07-17] [$1000] Chat - A line break is resulted from pasting quote message #20725
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
// We want to keep <blockquote> tag here and let method replaceBlockElementWithNewLine to handle the line break laterreturn`<blockquote>${resultString}</blockquote>`;
changed the title [-]Chat - A line break is resulted from pasting quote message[/-][+][$1000] Chat - A line break is resulted from pasting quote message[/+]on Jun 14, 2023
changed the title [-][$1000] Chat - A line break is resulted from pasting quote message[/-][+][HOLD for payment 2023-07-17] [$1000] Chat - A line break is resulted from pasting quote message[/+]on Jul 10, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.38-7 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-07-17. 🎊
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.
External issue reporter - N/A - reported by Applause
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:
[@narefyev91] The PR that introduced the bug has been identified. Link to the PR:
[@narefyev91] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@narefyev91] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@narefyev91] Determine if we should create a regression test for this bug.
[@narefyev91] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@conorpendergrast] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
The PR that introduced the bug has been identified - it was fully new requirements and fixes to make it working during pasting - i can say that those code changes fix any regression from someone - it was fully missed implementation
The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment - no comments
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion - no discussions
Determine if we should create a regression test for this bug - in case that it's not a regression - we are good to not have any steps here
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jun 13, 2023
Triggered auto assignment to @conorpendergrast (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 13, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)Nikhil-Vats commentedon Jun 13, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
A line break is resulted from pasting quote message.
What is the root cause of that problem?
For pasting HTML, we use expensify-common -
App/src/components/Composer/index.js
Lines 280 to 283 in d7c45a2
In expensify-common quote rule for
htmlToMarkdown, we add new line at the beginning and end of the return value here -https://github.com/Expensify/expensify-common/blob/9dfabe1de4213b0fd60ae3aa6a57012dd6545c72/lib/ExpensiMark.js#L289-L299
What changes do you think we should make in order to solve the problem?
Remove
\nfrom beginning and end of return value to make line 299 in expensify-common -What alternative solutions did you explore? (Optional)
NA
Result
Screen.Recording.2023-06-14.at.4.17.21.AM.mov
eh2077 commentedon Jun 14, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
A line break is resulted from pasting quote message.
What is the root cause of that problem?
Copying a quote comment, like
save following html
to clipboard, see
App/src/components/CopySelectionHelper.js
Line 40 in 0a471b0
Pasting into composer converts the above html to following markdown
See quote-html-to-markdown rule translates html piece
to text
And the ending line break is removed in method replaceBlockElementWithNewLine when stripping
<div>tags. That's in the composer we getInstead of
What changes do you think we should make in order to solve the problem?
To fix this issue, we can let method replaceBlockElementWithNewLine handle line break for
<blockquote>tag, like what we do for<h1>tag, see here.To achieve it, we can
to
to
What alternative solutions did you explore? (Optional)
N/A
conorpendergrast commentedon Jun 14, 2023
Weird, I wonder if this is a regression.
I see this happening and so it's reproducible:
After sending the message though, it doesn't show the line breaks:
[-]Chat - A line break is resulted from pasting quote message[/-][+][$1000] Chat - A line break is resulted from pasting quote message[/+]melvin-bot commentedon Jun 14, 2023
Job added to Upwork: https://www.upwork.com/jobs/~018cc9d1380c77d6b3
melvin-bot commentedon Jun 14, 2023
Current assignee @conorpendergrast is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jun 14, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 (
External)83 remaining items
[-][$1000] Chat - A line break is resulted from pasting quote message[/-][+][HOLD for payment 2023-07-17] [$1000] Chat - A line break is resulted from pasting quote message[/+]melvin-bot commentedon Jul 10, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jul 10, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.38-7 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-07-17. 🎊
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.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
melvin-bot commentedon Jul 10, 2023
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:
conorpendergrast commentedon Jul 11, 2023
Ah, I withdrew the initial contract and re-sent to @eh2077
conorpendergrast commentedon Jul 18, 2023
Payment made to @eh2077. Final step is the checklist for @narefyev91 to complete, please! Then we can close this out
narefyev91 commentedon Jul 18, 2023
conorpendergrast commentedon Jul 18, 2023
Sounds good to me. Closing out as all resolved now, thank you!