-
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 2023-10-16] [$500] Chat - App removes space from start for text below header text #27445
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01a29ca52e1304c30b |
Triggered auto assignment to @anmurali ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @peterdbarkerUK ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Copying or editing the message removes spaces at the beginning of the line if the previous line is a header text. If the next line is a header text, copying or editing removes trailing spaces What is the root cause of that problem?We have html-to-markdown rule regarding heading here
As you can see, we match space characters(and \r\n) before and after the heading tag. The result is shown below This is the root cause What changes do you think we should make in order to solve the problem?We need to match only the
There are two test errors by this change
This is something expected in this issue. Note: In case we don't want to preserve before the heading, we should keep Result27445.mp4What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.App removes spaces before line where previous line is header text when pasting the copied text in chat. This problem is not only with selected platforms in issue description, but instead it persists on all the platforms. What is the root cause of that problem?When the html is converted to markdown it removes trailing spaces after heading tag even if there is text after trailing spaces which causes this behaviour of removing leading spaces from next line What changes do you think we should make in order to solve the problem?We should modify regex to not remove trailing spaces because trailing spaces are trimmed somewhere else. This is not a breaking change as it only removes trailing spaces and not leading spaces (see video attached below). Trailing spaces are trimmed here in case there is no text after spaces. Result: What alternative solutions did you explore? (Optional) |
@s-alves10 Please fix it and do the same in the future. |
Issue description updated |
@parasharrajat Please can you review this |
@anmurali, @peterdbarkerUK, @parasharrajat Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@jaylalakiya Please close that PR. It is not authorized. Did you get a chance to read the contribution guidelines? |
@s-alves10 Your proposal looks fine to me. But Can you tell me if it does not break Expensify/expensify-common#531? Also, I think we should trip whitespaces before the heading. it does not make sense to have spaces before heading. |
Yeah. Tests include them but my solution passed all of them
We can keep |
Ok. Thanks for clarifying. I think we can move ahead with @s-alves10's proposal as they proposed first and it solves the issue. We will continue stripping the preceding spaces in the heading rule. We will also adjust the tests to correctly set an expectation from the rule. @s-alves10 We will have to fix any inconsistencies found during PR testing from our changes. I expect that there will be more changes to satisfy all conditions. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @marcaaron, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
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 🚀 |
PRs were merged without any changes. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.79-5 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-16. 🎊 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:
|
@anmurali, @parasharrajat, @marcaaron, @s-alves10 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
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:
Regression Test Steps
Do you agree 👍 or 👎 ? |
@anmurali, @parasharrajat, @marcaaron, @s-alves10 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
|
@anmurali, @parasharrajat, @marcaaron, @s-alves10 Huh... This is 4 days overdue. Who can take care of this? |
We can close this issue. I am tracking the payment. |
Payment requested as per #27445 (comment) |
$500 approved for @parasharrajat |
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:
App should preserve space added before text in second or any other line except first line
Actual Result:
App does not preserve space added before text in second or any other line if first line has header text (text with # in beginning)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.70.2
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: Any additional supporting documentation
space.before.text.not.preserved.below.header.text.mp4
Recording.4465.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694453805196449
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @anmuraliThe text was updated successfully, but these errors were encountered: