-
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 2024-04-09] [$500] Task - A new line is added to code block when saving unchanged description with code block #38001
Comments
Triggered auto assignment to @jliexpensify ( |
@jliexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.A new line is added to code block when saving unchanged description with code block What is the root cause of that problem?This is a issue with expensify-common library, we use App/src/pages/tasks/TaskDescriptionPage.tsx Line 114 in 39bd108
Everytime we use What changes do you think we should make in order to solve the problem?We can make use of the In the defaultValue={parser.htmlToMarkdown((props.report && parser.replace(props.report.description, {
filterRules: ["markdownInBackticks"]
})) || '')}
Result:simplescreenrecorder-2024-03-09_02.03.02.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Saving an unchanged codefence markdown will add 1 new line. What is the root cause of that problem?When we save a codefence markdown with new line,
EditTask response will return the new line as So, when we convert it to markdown, there will be an extra new line by It's know that the sever might returns App/src/pages/tasks/TaskDescriptionPage.tsx Lines 50 to 51 in 9302ade
What changes do you think we should make in order to solve the problem?To solve it case by case, we can also apply What alternative solutions did you explore? (Optional)Update the codefence regex to match either
|
@jliexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~01e1f69c2987288ad8 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann ( |
Sorry, was sick yesterday. Can repro - what a weird bug. |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
This is because when we save
as codeblock, we'll save it as is. Meanwhile, when we display it here, we normalize it by adding extra new lines, this is what we do in the main composer as well.
Now when we save, it will be saved with the extra new lines, we detect changes and the What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
|
Thanks for all your proposals @GandalfGwaihir's proposal is to filter out the @bernhardoj's proposal doesn't fix the second point @tienifr's solution makes sense since it fixes 2 points in the OP 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @johnmlee101, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Waiting internal engineer give a final approval |
❌ There was an error making the offer to @DylanDylann for the Reviewer role. The BZ member will need to manually hire the contributor. |
❌ There was an error making the offer to @tienifr for the Contributor role. The BZ member will need to manually hire the contributor. |
Triggered auto assignment to @muttmuure ( |
Hi @muttmuure - I am headed OOO from 21st to 31st March. Here's a summary of where we are at:
PAYMENT SUMMARY
I'll grab this one if when I'm back, thanks! |
@tienifr Is there any update here? |
@DylanDylann Expensify/expensify-common#669, #38908 these PRs are ready for review. |
Back, removed Matt! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.58-8 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 2024-04-09. 🎊 For reference, here are some details about the assignees on this 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:
|
BugZero Checklist:
Regression test:
Do we 👍 or 👎 |
PAYMENT SUMMARY
|
Payment Summary
BugZero Checklist (@jliexpensify)
|
Paid and job closed |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number:
Reproducible in staging?:
Reproducible in production?:
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: Applause - Internal team
Slack conversation:
Action Performed:
Expected Result:
No extra line will be added each time saving unchanged description with code block
The system message for task descrption will not appear each time saving unchanged description with code block
Actual Result:
An extra line will be added each time saving unchanged description with code block
The system message for task descrption appears each time saving unchanged description with code block
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6407279_1709922210048.20240309_021530.1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: