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-06] [$125] Sending image with message has ' appears as HTML for temporarily until the image appears fully #40578

Closed
1 of 6 tasks
m-natarajan opened this issue Apr 19, 2024 · 28 comments
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

Comments

@m-natarajan
Copy link

m-natarajan commented Apr 19, 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.63-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
Expensify/Expensify Issue URL:
Issue reported by: @quinthar
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1713478343633609

Action Performed:

  1. Open any chat
  2. Write a message like "It's breaking" with apostrophe
  3. Paste an image and send the image

Expected Result:

Text is sent without any weirdness

Actual Result:

Message appears as it's breaking

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

Recording.2995.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0192ead78ec42f211a
  • Upwork Job ID: 1782467123537166336
  • Last Price Increase: 2024-04-22
  • Automatic offers:
    • rojiphil | Reviewer | 0
    • ShridharGoel | Contributor | 0
@m-natarajan m-natarajan added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 19, 2024
Copy link

melvin-bot bot commented Apr 19, 2024

Triggered auto assignment to @sakluger (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.

Copy link

melvin-bot bot commented Apr 19, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Apr 19, 2024
Copy link
Contributor

👋 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.

@m-natarajan m-natarajan changed the title Sending image with message has ' appears as HTML for temporarily after sending until the image appears fully Sending image with message has ' appears as HTML for temporarily until the image appears fully Apr 19, 2024
@amyevans
Copy link
Contributor

Reproducible in production?: y

I don't think this is accurate, I cannot repro in prod.

Since the message gets corrected by the server I'd consider it a minor issue and not something that needs to block deploy.

That said, I believe all that's needed to fix the bug is updating this line

textForNewComment = `${commentText}\n${CONST.ATTACHMENT_UPLOADING_MESSAGE_HTML}`;
to

textForNewComment = `${parser.htmlToText(commentText)}\n${CONST.ATTACHMENT_UPLOADING_MESSAGE_HTML}`;

@tgolen do you want to take this one as polish to your feature?

@amyevans amyevans added Daily KSv2 and removed Hourly KSv2 DeployBlockerCash This issue or pull request should block deployment labels Apr 19, 2024
@ShridharGoel
Copy link
Contributor

Proposal

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

Text + attachment shows ' as '.

What is the root cause of that problem?

In the below line, commentText is being used directly without parsing it.

textForNewComment = `${commentText}\n${CONST.ATTACHMENT_UPLOADING_MESSAGE_HTML}`;

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

Change that line to this:

textForNewComment = parser.htmlToText(htmlForNewComment);

@melvin-bot melvin-bot bot added the Overdue label Apr 22, 2024
@tgolen
Copy link
Contributor

tgolen commented Apr 22, 2024

I believe @ShridharGoel's proposal is probably the right fix for this. It might need to be ${parser.htmlToText(htmlForNewComment)}\n${CONST.ATTACHMENT_UPLOADING_MESSAGE_HTML}`;

@amyevans
Copy link
Contributor

Alright, the fix is certainly straightforward and agreed upon, therefore I'm going to post the price as $125 and let an open source contributor post the PR.

@melvin-bot melvin-bot bot removed the Overdue label Apr 22, 2024
@amyevans amyevans changed the title Sending image with message has ' appears as HTML for temporarily until the image appears fully [$125] Sending image with message has ' appears as HTML for temporarily until the image appears fully Apr 22, 2024
Copy link

melvin-bot bot commented Apr 22, 2024

⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

@amyevans amyevans added the External Added to denote the issue can be worked on by a contributor label Apr 22, 2024
Copy link

melvin-bot bot commented Apr 22, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0192ead78ec42f211a

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 22, 2024
Copy link

melvin-bot bot commented Apr 22, 2024

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

@amyevans
Copy link
Contributor

@rojiphil mind verifying the existing proposal so that we can get this cranked out? Thanks!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 23, 2024
@melvin-bot melvin-bot bot changed the title [$125] Sending image with message has ' appears as HTML for temporarily until the image appears fully [HOLD for payment 2024-05-06] [$125] Sending image with message has ' appears as HTML for temporarily until the image appears fully Apr 29, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 29, 2024
Copy link

melvin-bot bot commented Apr 29, 2024

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

Copy link

melvin-bot bot commented Apr 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.67-7 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-06. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Apr 29, 2024

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:

  • [@rojiphil] The PR that introduced the bug has been identified. Link to the PR:
  • [@rojiphil] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@rojiphil] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@rojiphil] Determine if we should create a regression test for this bug.
  • [@rojiphil] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@sakluger] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@sakluger sakluger removed their assignment May 3, 2024
@sakluger sakluger added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels May 3, 2024
Copy link

melvin-bot bot commented May 3, 2024

Triggered auto assignment to @greg-schroeder (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.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 3, 2024
@sakluger sakluger self-assigned this May 3, 2024
@sakluger
Copy link
Contributor

sakluger commented May 3, 2024

@greg-schroeder can you handle payment on Monday since I'll be OOO? Here are the Upwork offer links.

@melvin-bot melvin-bot bot added the Overdue label May 6, 2024
Copy link

melvin-bot bot commented May 7, 2024

@rojiphil, @sakluger, @amyevans, @greg-schroeder, @ShridharGoel Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@greg-schroeder
Copy link
Contributor

Taking care of payments

@melvin-bot melvin-bot bot removed the Overdue label May 7, 2024
@greg-schroeder
Copy link
Contributor

@ShridharGoel you have to accept the offer in Upwork before we can pay you, FYI!

@greg-schroeder
Copy link
Contributor

@rojiphil can you take care of the checklist above?

@sakluger
Copy link
Contributor

sakluger commented May 7, 2024

Thanks Greg! Taking back over.

Just waiting for @ShridharGoel to accept the Upwork offer and @rojiphil to complete the BZ Checklist before we can close the issue.

@rojiphil
Copy link
Contributor

rojiphil commented May 8, 2024

  • [@rojiphil] The PR that introduced the bug has been identified. Link to the PR: Offending PR
  • [@rojiphil] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: Added comment
  • [@rojiphil] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: Not Required. The existing checklist is good enough to capture such issues.
  • [@rojiphil] Determine if we should create a regression test for this bug. : I don’t think this is required
  • [@rojiphil] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

@rojiphil
Copy link
Contributor

rojiphil commented May 8, 2024

and @rojiphil to complete the BZ Checklist

@sakluger BZ Checklist is completed.

@sakluger
Copy link
Contributor

sakluger commented May 9, 2024

Thanks! I paid @ShridharGoel so we're all good here.

@sakluger sakluger closed this as completed May 9, 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 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
Projects
None yet
Development

No branches or pull requests

7 participants