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-06-21] [$250] mWeb - Chat - Quote markdown is not applied #43180

Closed
1 of 6 tasks
lanitochka17 opened this issue Jun 6, 2024 · 31 comments
Closed
1 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 6, 2024

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: 1.4.82-1
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. Go to https://staging.new.expensify.com/home
  2. Tap on report
  3. Enter >hsjd
  4. Send the message

Expected Result:

Quote markdown must be applied

Actual Result:

Quote markdown is not applied

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

Bug6503955_1717682774519.Screenrecorder-2024-06-06-19-33-11-542.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0162a44a8fd308afd5
  • Upwork Job ID: 1798839739922152623
  • Last Price Increase: 2024-06-06
  • Automatic offers:
    • ishpaul777 | Contributor | 102639567
Issue OwnerCurrent Issue Owner: @anmurali
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jun 6, 2024
Copy link

melvin-bot bot commented Jun 6, 2024

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

Copy link
Contributor

github-actions bot commented Jun 6, 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

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

@neil-marcellini neil-marcellini removed the DeployBlocker Indicates it should block deploying the API label Jun 6, 2024
@dragnoir
Copy link
Contributor

dragnoir commented Jun 6, 2024

Not a deploy blocker.

Offended PR Expensify/expensify-common#691

this is a new expected behavior:

This PR changes quote regex to enforce following space after >.
not followed by space won't be parsed as quote. In the multiple level quote context spaces between > signs are irrelevent

@roryabraham
Copy link
Contributor

If this is indeed the new expected behavior, then react-native-live-markdown needs to be updated such that it's using the new rule. Because right now it's confusing that the markdown processing in the composer is different than what we show in the chat. I think this is a legitimate blocker.

@roryabraham
Copy link
Contributor

roryabraham commented Jun 6, 2024

These are our options:

in any event, both PRs need to be included in the same release, or we'll have this inconsistency

@luacmartins
Copy link
Contributor

I think reverting #42387 might not be a good solution since there's at least another PR that depends on it #42504

@luacmartins
Copy link
Contributor

TBH I think we should have a full regression test on Expensify/react-native-live-markdown#360, so I'm not sure that we should push it forward and CP a package bump in App. So that leaves us with adding a patch or demoting this to NAB since we know the root cause and will have a fix out soon

@luacmartins
Copy link
Contributor

Discussing our options here, let's try to go with:

Making this external for the time being so we can get some contributor eyes to work on the solution above

@luacmartins luacmartins added the External Added to denote the issue can be worked on by a contributor label Jun 6, 2024
Copy link

melvin-bot bot commented Jun 6, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0162a44a8fd308afd5

@melvin-bot melvin-bot bot changed the title mWeb - Chat - Quote markdown is not applied [$250] mWeb - Chat - Quote markdown is not applied Jun 6, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 6, 2024
Copy link

melvin-bot bot commented Jun 6, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif (External)

@dominictb
Copy link
Contributor

dominictb commented Jun 7, 2024

Proposal

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

Quote markdown is not applied consistently in the live preview and after sent.

What is the root cause of that problem?

This is because of version mismatch of expensify-common in react-native-live-markdown package.

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

Here's the decided solution for now

Include Expensify/expensify-common#691 in react-native-live-markdown via a patch

To do this, we should add the changes of Expensify/expensify-common#691 in node_modules/@expensify/react-native-live-markdown/lib/parser/react-native-live-markdown-parser.js, then create a patch file via npx patch-package @expensify/react-native-live-markdown

Here's the generated patch file
@expensify+react-native-live-markdown+0.1.70.patch

It should be added in patches directory.

It's working well after the patch:
https://github.com/Expensify/App/assets/165644294/f56b689f-9fa4-4d9c-b307-fa85541452e2

What alternative solutions did you explore? (Optional)

We can build the react-native-live-markdown-parser.js again inside the react-native-live-markdown repo, then copy it over, the patch package process is the same

@tomekzaw
Copy link
Contributor

tomekzaw commented Jun 7, 2024

Hey, fyi we're already bumping expensify-common in react-native-live-markdown to 2.0.10 here:

@tomekzaw
Copy link
Contributor

tomekzaw commented Jun 7, 2024

@BartoszGrajdek will submit a PR bumping react-native-live-markdown to 0.1.82 that is supposed to resolve this bug.

@dominictb
Copy link
Contributor

@tomekzaw According to this, it seems we won't be able to deploy Expensify/react-native-live-markdown#360 to prod any time soon. So it was suggested here to use a patch for the time being.

What do you think?

@luacmartins luacmartins assigned ishpaul777 and unassigned bondydaa Jun 7, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 7, 2024
Copy link

melvin-bot bot commented Jun 7, 2024

📣 @ishpaul777 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@mountiny mountiny added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Jun 9, 2024
@mountiny
Copy link
Contributor

mountiny commented Jun 9, 2024

Noting from @ShridharGoel this might have not been fixed completely yet in native @kavimuru can you please retest?

@ishpaul777
Copy link
Contributor

@tomekzaw Do we have another PR coming for this issue

@ishpaul777
Copy link
Contributor

oh wait i think this issue is fixed already with that PR since the expected here was this #43255 (comment)

cc @mountiny

@BartoszGrajdek
Copy link
Contributor

Yes this should be fixed now. There was a problem with different versions of expensify-common in react-native-live-markdown and E/App. Can we close this one? cc @mountiny @thienlnam

@luacmartins
Copy link
Contributor

Yea, we can close since this is fixed.

@ishpaul777
Copy link
Contributor

hello @luacmartins, payment for the PR is pending can we please reopen

@mountiny mountiny reopened this Jun 17, 2024
@ishpaul777
Copy link
Contributor

ishpaul777 commented Jun 19, 2024

@luacmartins/ @mountiny Can we please assign a BZ member for payment

@thienlnam thienlnam moved this to Done in Live Markdown Jun 19, 2024
@mountiny mountiny added the Bug Something is broken. Auto assigns a BugZero manager. label Jun 20, 2024
Copy link

melvin-bot bot commented Jun 20, 2024

Triggered auto assignment to @anmurali (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@mountiny mountiny added the Awaiting Payment Auto-added when associated PR is deployed to production label Jun 20, 2024
@mountiny mountiny changed the title [$250] mWeb - Chat - Quote markdown is not applied [HOLD for payment 2024-06-21] [$250] mWeb - Chat - Quote markdown is not applied Jun 20, 2024
@melvin-bot melvin-bot bot added Daily KSv2 and removed Daily KSv2 labels Jun 27, 2024
Copy link

melvin-bot bot commented Jul 4, 2024

@anmurali, @luacmartins, @ishpaul777 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Jul 8, 2024

@anmurali, @luacmartins, @ishpaul777 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@anmurali
Copy link

Paid.

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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
Status: Done
Development

No branches or pull requests