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 2022-04-13] When [Attachment] is sent as the message, 'Edit Comment' option does not appear in contextMenu - reported by @sobitneupane #7739

Closed
mvtglobally opened this issue Feb 14, 2022 · 31 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Reviewing Has a PR in review

Comments

@mvtglobally
Copy link

mvtglobally commented Feb 14, 2022

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:

  1. Navigate to any chat
  2. Send message [Attachment].
  3. Hover over the message for context menu.

Expected Result:

Edit option should display

Actual Result:

Edit Option does not appear in contextMenu.

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.1.38-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screenshot from 2022-02-03 15-52-29

Upwork job URL: https://www.upwork.com/jobs/~01555eaa1328846469
Issue reported by: @sobitneupane
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1643885274749229

View all open jobs on GitHub

@mvtglobally mvtglobally added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Feb 14, 2022
@MelvinBot
Copy link

Triggered auto assignment to @laurenreidexpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@MelvinBot MelvinBot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Feb 14, 2022
@sobitneupane
Copy link
Contributor

sobitneupane commented Feb 14, 2022

PROPOSAL
Reason:
Message Text is being compared to '[Attachment]' to decide whether the message is editable or not.

function isReportMessageAttachment(reportMessageText) {
return reportMessageText === '[Attachment]';
}

Solution:
Use Message HTML instead of Message Text to decide whether the message is editable or not.

function isReportMessageAttachment(reportMessageHtml, reportMessageText) {
    console.log('debug1', reportMessageHtml);
    return (/<img([^>]+)\/>/gi.test(reportMessageHtml) || /<a/gi.test(reportMessageHtml)) && reportMessageText === '[Attachment]';
}

@laurenreidexpensify
Copy link
Contributor

@sobitneupane can you confirm if this happening only on Web app or across all platforms

@sobitneupane
Copy link
Contributor

@laurenreidexpensify Issue exists across all platforms.

@MelvinBot
Copy link

Triggered auto assignment to @Gonals (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@Gonals Gonals added Weekly KSv2 and removed Daily KSv2 labels Feb 21, 2022
@MelvinBot MelvinBot removed the Overdue label Feb 21, 2022
@Gonals Gonals added Improvement Item broken or needs improvement. External Added to denote the issue can be worked on by a contributor labels Feb 21, 2022
@MelvinBot
Copy link

Triggered auto assignment to @trjExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@MelvinBot MelvinBot added Daily KSv2 and removed Weekly KSv2 labels Feb 21, 2022
@Gonals Gonals assigned trjExpensify and unassigned trjExpensify and Gonals Feb 21, 2022
@Gonals
Copy link
Contributor

Gonals commented Feb 21, 2022

Added tags!

@trjExpensify
Copy link
Contributor

Job is on upwork here: https://www.upwork.com/jobs/~01555eaa1328846469

@botify botify removed the Daily KSv2 label Feb 21, 2022
@MelvinBot MelvinBot added the Weekly KSv2 label Feb 21, 2022
@Luke9389
Copy link
Contributor

Luke9389 commented Mar 3, 2022

Oh, I see. Then yea, let's do all places with this PR. 👍

@trjExpensify
Copy link
Contributor

@sobitneupane, I can't see that you've applied to the job on Upwork yet. Are you still interested?

@sobitneupane
Copy link
Contributor

@sobitneupane, I can't see that you've applied to the job on Upwork yet. Are you still interested?

Yes, I am. Applied for the job.

@MelvinBot MelvinBot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 7, 2022
@MelvinBot
Copy link

📣 @sobitneupane You have been assigned to this job by @trjExpensify!
Please apply to this job in Upwork 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 📖

@trjExpensify
Copy link
Contributor

Perfect, hired. 👍

@Luke9389 Luke9389 added the Reviewing Has a PR in review label Mar 15, 2022
@MelvinBot MelvinBot removed the Overdue label Mar 15, 2022
@trjExpensify
Copy link
Contributor

How are we getting on with the PR review here? Looks like @parasharrajat is done with the C+ review, so is this one with @Luke9389 now?

@Luke9389
Copy link
Contributor

Oh man, this got past me. Thanks for the bump @trjExpensify!

@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 6, 2022
@melvin-bot melvin-bot bot changed the title When [Attachment] is sent as the message, 'Edit Comment' option does not appear in contextMenu - reported by @sobitneupane [HOLD for payment 2022-04-13] When [Attachment] is sent as the message, 'Edit Comment' option does not appear in contextMenu - reported by @sobitneupane Apr 6, 2022
@melvin-bot
Copy link

melvin-bot bot commented Apr 6, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.51-0 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 2022-04-13. 🎊

@trjExpensify trjExpensify removed their assignment Apr 8, 2022
@trjExpensify trjExpensify added External Added to denote the issue can be worked on by a contributor and removed External Added to denote the issue can be worked on by a contributor labels Apr 8, 2022
@melvin-bot
Copy link

melvin-bot bot commented Apr 8, 2022

Triggered auto assignment to @Christinadobrzyn (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 8, 2022
@trjExpensify
Copy link
Contributor

👋 I'm OoO next week, so reassigning for another CM to handle the payment after the regression period. Thanks, @Christinadobrzyn!

Upwork job is here: https://www.upwork.com/jobs/~01555eaa1328846469

@melvin-bot melvin-bot bot added Daily KSv2 and removed Daily KSv2 labels Apr 12, 2022
@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented Apr 14, 2022

Looks like PR is deployed and no regressions so paying

@sobitneupane for the fix + $250 for reporting
@parasharrajat as the C+

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 External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests