Skip to content

[$500] Task - Unable to copy task complete/reopen message #27884

Closed

Description

@lanitochka17

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


Issue found when executing PR #27119

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to any task report
  3. Complete the task and then reopen it
  4. Right click on the task completion or reopening message > Copy to clipboard
  5. Paste it in the composer

Expected Result:

The copied task message is pasted

Actual Result:

The copied task message is not pasted. The message is not copied at all

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.72-6

Reproducible in staging?: Yes

Reproducible in production?: Yes

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

Notes/Photos/Videos: Any additional supporting documentation

Bug6207782_20230921_000923.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0181f1cb78999beeb1
  • Upwork Job ID: 1706863200146464768
  • Last Price Increase: 2023-09-27

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Sep 20, 2023
  2. melvin-bot commented on Sep 20, 2023

    @melvin-bot

    Triggered auto assignment to @anmurali (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. melvin-bot commented on Sep 20, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. lcsvcn commented on Sep 20, 2023

    @lcsvcn

    Proposal

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

    The copied task message is pasted

    What is the root cause of that problem?

    The cause of the problem is that we need to wrap the TaskAction is not using the CopyTextToClipboard, where other text are using it.

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

    We need to wrap the text with the CopyTextToClipboard component. Similar on what is done here:

    <CopyTextToClipboard
    text={CONST.EMAIL.RECEIPTS}
    textStyles={[styles.textBlue]}
    />

    So at this part, we need to wrap the report action message with the component above, that way it is know that needs to be copied:

    <View style={[styles.flex1, styles.flexRow, styles.alignItemsCenter]}>
    <Text style={[styles.chatItemMessage, styles.colorMuted]}>{Task.getTaskReportActionMessage(props.actionName, props.taskReportID, false)}</Text>
    </View>

    What alternative solutions did you explore? (Optional)

  5. melvin-bot commented on Sep 26, 2023

    @melvin-bot

    @anmurali Eep! 4 days overdue now. Issues have feelings too...

  6. anmurali commented on Sep 27, 2023

    @anmurali

    Yep, can reproduce

  7. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Sep 27, 2023
  8. changed the title [-]Task - Unable to copy task complete/reopen message[/-] [+][$500] Task - Unable to copy task complete/reopen message[/+] on Sep 27, 2023
  9. melvin-bot commented on Sep 27, 2023

    @melvin-bot
  10. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Sep 27, 2023
  11. melvin-bot commented on Sep 27, 2023

    @melvin-bot

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

  12. 39 remaining items

  13. removed
    Help WantedApply this label when an issue is open to proposals by contributors
    on Oct 18, 2023
  14. melvin-bot commented on Oct 18, 2023

    @melvin-bot

    @cead22, @MariaHCD, @anmurali, @s77rt Still overdue 6 days?! Let's take care of this!

  15. melvin-bot commented on Oct 20, 2023

    @melvin-bot

    @cead22, @MariaHCD, @anmurali, @s77rt 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

  16. MariaHCD commented on Oct 23, 2023

    @MariaHCD
    Contributor

    cc: @thienlnam if you have any context around why the childReportID is included in the TASKREOPENED / TASKCOMPLETED report actions: #27884 (comment)

  17. thienlnam commented on Oct 23, 2023

    @thienlnam
    Contributor

    That shouldn't be happening, the code that adds those reportActions doesn't include a childReportID
    https://github.com/Expensify/Auth/blob/53aea0415eddf80a82db5283ace0162feba26a19/auth/lib/Report.cpp#L5828-L5845

    I wonder if it's happening via the FE? Or if this is still reproducible with a new task report

  18. MariaHCD commented on Oct 25, 2023

    @MariaHCD
    Contributor

    Still seeing it on new task reports 🤔

    Screenshot 2023-10-25 at 6 35 06 PM

    It seems to me that we're deliberately setting the childReportID to the task reportID here?

  19. thienlnam commented on Oct 25, 2023

    @thienlnam
    Contributor

    Ahhh yes, so this was only meant to be added to the ADD_COMMENT reportActions not these other task actions. I can update it so that happens

    Context: You can assign a task to an infinite number of people, and they might not have access to the parent report of the task so they get a reportAction in the DM between the owner and the assignee with a link to the task report. The childReportID is added to those to make sure they all link to the same task report.

  20. MariaHCD commented on Oct 26, 2023

    @MariaHCD
    Contributor

    Thanks, @thienlnam! Approved the BE fix, tested locally and it worked as expected:

    Screen.Recording.2023-10-26.at.11.30.24.AM.mov

    We'll update this issue once the fix is deployed.

  21. MariaHCD commented on Oct 30, 2023

    @MariaHCD
    Contributor

    Heads up, @s77rt, the backend fix was deployed to production. Can we retest? Thanks!

  22. s77rt commented on Oct 30, 2023

    @s77rt
    Member

    @MariaHCD It's fixed! 🚀

  23. MariaHCD commented on Oct 30, 2023

    @MariaHCD
    Contributor

    Nice, thanks! I don't think any payments are required or anything else is needed from engineering? So we should be good to close this one out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringInternalRequires API changes or must be handled by Expensify staff

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions