-
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-03-31] [$4000] Adding the 2 line break in message that is inside the code block with header text is hiding the edited messaged #15302
Comments
Triggered auto assignment to @adelekennedy ( |
Bug0 Triage Checklist (Main S/O)
|
I haven't been able to find a dupe for this one (though my searching might be failing me) and still reproducible |
Job added to Upwork: https://www.upwork.com/jobs/~01a0e20796efbb701d |
Current assignee @adelekennedy is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
Triggered auto assignment to @deetergp ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.
Send a code block message like the above one, then edit the message and add 2 line break before What is the root cause of that problem?App/src/libs/ReportActionsUtils.js Line 196 in 94057ba
![]() When we update with the same content as the original message, the backend will push an empty html data, it means that this message is deleted and will be hidden. App/src/libs/actions/Report.js Lines 842 to 844 in 94057ba
when we save changes , the above condition is What changes do you think we should make in order to solve the problem?When making comparisons, we should have consistent conversion rules. {
name: 'codeFence',
regex: /<(pre)(?:"[^"]*"|'[^']*'|[^'">])*>([\s\S]*?)(\n?)<\/\1>(?![^<]*(<\/pre>|<\/code>))/gi,
replacement: (match, g1, g2, g3) => `\`\`\`\n${g2}${g3 || '\n'}\`\`\``,
}, related comment and pr: What alternative solutions did you explore? (Optional)I'm not sure if the backend acts for any other purpose, maybe we could push the same content instead of empty data if the comment remains the same? The problem of pushing empty message may be treated as a separate bug. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Editing a code block message by adding 2 line break in the message will hide the message after saving. What is the root cause of that problem?When deciding to save an edited message, we do What changes do you think we should make in order to solve the problem?To fix this issue, we should ensure code fence
to
What alternative solutions did you explore? (Optional)NA |
Proposal |
I think issue description needs updated a bit. This happens on all text (not only header text) inside code block. The weird thing in this video is that when refresh Report page (either go to another tab or to switch chat and come back), disappeared message shows again. bug.mov |
@deetergp, @adelekennedy, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
I have not been able to reproduce the disappearing behavior in either staging, nor production. The number of line breaks I put before the text does not stay consistent, but the code block never ceases to be visible. Can I get a re-test from someone else? |
@deetergp, @adelekennedy, @aimane-chnaif, @situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@harshad2711 will you apply for the reporting bonus here? |
@adelekennedy this is eligible for timeline bonus. PR was merged within 5 days but 2 days were weekend |
@aimane-chnaif shoot - good catch, adding 50% bonus |
Thanks @adelekennedy , I have applied |
@deetergp, @adelekennedy, @aimane-chnaif, @situchan Eep! 4 days overdue now. Issues have feelings too... |
@deetergp, @adelekennedy, @aimane-chnaif, @situchan Huh... This is 4 days overdue. Who can take care of this? |
Still on hold |
still on hold |
@deetergp, @adelekennedy, @aimane-chnaif, @situchan Whoops! This issue is 2 days overdue. Let's get this updated quick! |
what are we holding here for? All payments have been made but do we need to take any other steps? @deetergp @aimane-chnaif |
Not able to find exact PR which caused regression. I think this issue existed from the beginning when we add For regression test steps, I think new automated test cases added in expensify-common PR should be enough. |
Sounds good, @aimane-chnaif, I agree with your assessment an checked off everything on the list. Let's close this one out 👍 |
@adelekennedy Sorry to bother you, but please confirm if you have approved my payment, as the milestone is showing In the review to me |
@harshad2711 ended the contract and added a bonus for the delay |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
# hello
)Expected Result:
Message should not be hidden and it should display edited message
Actual Result:
Message will be hidden after a second
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.74-0
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
Notes/Photos/Videos:
Recording.3738.mp4
message-hide-vodeblock.1.mp4
message-hidden.1.mov
Expensify/Expensify Issue URL:
Issue reported by: @harshad2711
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1676710142677019
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: