Skip to content
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-05-09] Mark Down - Mark down doesn't work for task description after saving #41422

Closed
1 of 6 tasks
lanitochka17 opened this issue May 1, 2024 · 11 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering

Comments

@lanitochka17
Copy link

lanitochka17 commented May 1, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.69-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Navigate to staging.new.expensify.com
  2. Click on FAB > Assign task
  3. Input a title
  4. Input a description with a mark down text (e.g "> test")
  5. Create the task by assigning to someone and sharing it somwhere
  6. Open the task report page

Expected Result:

The description renders the markdown

Actual Result:

The description field doesn't render the appropriate markdown text

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6467994_1714573165721.bandicam_2024-05-01_17-15-16-315.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label May 1, 2024
Copy link

melvin-bot bot commented May 1, 2024

Triggered auto assignment to @srikarparsi (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
Contributor

github-actions bot commented May 1, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@lanitochka17
Copy link
Author

@srikarparsi 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

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@Nodebrute
Copy link
Contributor

Nodebrute commented May 1, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Mark Down - Mark down doesn't work for task description after saving

What is the root cause of that problem?

It's because we are escaping it. We should only escape urls. but due to false we are escaping normal description too.

shouldEscapeText={Url.hasURL(report.description ?? '') ? undefined : false}

What changes do you think we should make in order to solve the problem?

Instead of false we should change it to true

 shouldEscapeText={Url.hasURL(report.description ?? '') ? undefined : true}

shouldEscapeText={Url.hasURL(report.description ?? '') ? undefined : false}

Also remove

Solution 2
We should remove these two lines.

shouldRenderAsHTML
shouldEscapeText={Url.hasURL(report.description ?? '') ? undefined : false}

What alternative solutions did you explore? (Optional)

@ShridharGoel
Copy link
Contributor

ShridharGoel commented May 1, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Mark down doesn't work for task description after saving.

What is the root cause of that problem?

shouldEscapeText is being passed as false to MenuItemWithTopDescription via TaskView when there's no URL.

shouldEscapeText={Url.hasURL(report.description ?? '') ? undefined : false}

What changes do you think we should make in order to solve the problem?

We don't need to pass shouldEscapeText, we can simply remove the below line:

shouldEscapeText={Url.hasURL(report.description ?? '') ? undefined : false}

@francoisl
Copy link
Contributor

Thanks for the proposals. Please make sure to link to the offending PR that caused the regression when you can identify it, in this case it looks like it was #41096.

Going to test the proposals shortly.

@francoisl
Copy link
Contributor

Thanks guys, I'm going to handle this internally because it requires changing some additional values for the onboarding tasks.

@francoisl francoisl self-assigned this May 1, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels May 1, 2024
@francoisl francoisl removed the DeployBlockerCash This issue or pull request should block deployment label May 1, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 2, 2024
@melvin-bot melvin-bot bot changed the title Mark Down - Mark down doesn't work for task description after saving [HOLD for payment 2024-05-09] Mark Down - Mark down doesn't work for task description after saving May 2, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 2, 2024
Copy link

melvin-bot bot commented May 2, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented May 2, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.69-2 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-05-09. 🎊

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels May 8, 2024
@francoisl
Copy link
Contributor

This was all handled internally, closing.

@melvin-bot melvin-bot bot removed the Overdue label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

5 participants