Skip to content

[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

Description

@mvtglobally

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

Activity

  1. added
    AutoAssignerTriage
    Daily
    on Feb 14, 2022
  2. MelvinBot commented on Feb 14, 2022

    @MelvinBot
    Contributor

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

  3. removed
    AutoAssignerTriage
    on Feb 14, 2022
  4. sobitneupane commented on Feb 14, 2022

    @sobitneupane
    Contributor

    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]';
    }
    
  5. laurenreidexpensify commented on Feb 16, 2022

    @laurenreidexpensify
    Contributor

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

  6. sobitneupane commented on Feb 16, 2022

    @sobitneupane
    Contributor

    @laurenreidexpensify Issue exists across all platforms.

  7. removed their assignment
    on Feb 17, 2022
  8. MelvinBot commented on Feb 17, 2022

    @MelvinBot
    Contributor

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

  9. added
    Weekly
    and removed
    Daily
    on Feb 21, 2022
  10. 46 remaining items

  11. added
    Awaiting Payment
    on Apr 6, 2022
  12. 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[/+] on Apr 6, 2022
  13. melvin-bot commented on Apr 6, 2022

    @melvin-bot

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

  14. removed their assignment
    on Apr 8, 2022
  15. added
    External
    and removed
    External
    on Apr 8, 2022
  16. melvin-bot commented on Apr 8, 2022

    @melvin-bot

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

  17. added
    Daily
    and removed
    Weekly
    on Apr 8, 2022
  18. trjExpensify commented on Apr 8, 2022

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

  19. added
    Daily
    and removed
    Daily
    on Apr 12, 2022
  20. Christinadobrzyn commented on Apr 14, 2022

    @Christinadobrzyn
    Contributor

    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

Metadata

Metadata

Labels

Awaiting PaymentDailyEngineeringExternalImprovementReviewing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions