You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-02-20] [$500] Copy icon - Clicking copy icon on an offline deleted message doesn't copy the message #33893
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 1.4.21-1 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: Applause - Internal Team Slack conversation:
Action Performed:
Disable the internet connection in the main testing device
Choose the first of several messages you have already sent back-to-back
Hover over that first message
Click on the Trash icon to delete the message
Hover over the deleted message
Click on 'copy to clipboard' icon
Paste the content in the composer
Expected Result:
Content should be copied or copy to clipboard icon shouldn't be available
Actual Result:
Copy to clipboard icon is available, and content can't copied
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Copy icon - Clicking copy icon on an offline deleted message doesn't copy the message[/-][+][$500] Copy icon - Clicking copy icon on an offline deleted message doesn't copy the message[/+]on Jan 3, 2024
// If return value is true, we switch the `text` and `icon` on
We only check the reportAction deleted
What changes do you think we should make in order to solve the problem?
Option 1: Do not show the icon copy
We should add the condition pendingAction is not delete
Option 2: Can copy:
We can get from originalMessage if the pendingAction is delete and the previousMessage because when offline we edit and delete. we should prioritize from previousMessage.
What alternative solutions did you explore? (Optional)
In addition, currently, I see that when a message has a pendingAction of delete, we can still react, and mark as unread,...
I think they should be hidden because when online messages are deleted, the above actions have no meaning.
changed the title [-][$500] Copy icon - Clicking copy icon on an offline deleted message doesn't copy the message[/-][+][HOLD for payment 2024-02-20] [$500] Copy icon - Clicking copy icon on an offline deleted message doesn't copy the message[/+]on Feb 13, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.40-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
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:
[@mananjadhav] The PR that introduced the bug has been identified. Link to the PR:
[@mananjadhav] 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:
[@mananjadhav] 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:
[@mananjadhav] Determine if we should create a regression test for this bug.
[@mananjadhav] 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.
[@muttmuure] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
[-]Copy icon - Clicking copy icon on an offline deleted message doesn't copy the message[/-][+][$500] Copy icon - Clicking copy icon on an offline deleted message doesn't copy the message[/+]melvin-bot commentedon Jan 3, 2024
Triggered auto assignment to @muttmuure (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jan 3, 2024
Job added to Upwork: https://www.upwork.com/jobs/~012f0dc88d1cf0e7f2
melvin-bot commentedon Jan 3, 2024
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Jan 3, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha (
External)namhihi237 commentedon Jan 3, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Content should be copied or copy to clipboard icon shouldn't be available
What is the root cause of that problem?
We have logic show icon copy here.
App/src/pages/home/report/ContextMenu/ContextMenuActions.js
Lines 262 to 265 in 3826e5d
We only check the reportAction deleted
What changes do you think we should make in order to solve the problem?
Option 1: Do not show the icon copy
We should add the condition pendingAction is not delete
Option 2: Can copy:
We can get from
originalMessageif the pendingAction is delete and thepreviousMessagebecause when offline we edit and delete. we should prioritize from previousMessage.What alternative solutions did you explore? (Optional)
In addition, currently, I see that when a message has a pendingAction of delete, we can still react, and mark as unread,...
I think they should be hidden because when online messages are deleted, the above actions have no meaning.
FitseTLT commentedon Jan 3, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Clicking copy icon on an offline deleted message doesn't copy the message
What is the root cause of that problem?
It's because
message.htmlof the report action is empty for deleted message hereApp/src/pages/home/report/ContextMenu/ContextMenuActions.js
Lines 272 to 273 in 689c227
What changes do you think we should make in order to solve the problem?
We should fallback to
originalMessage.htmlfor cases wheremessage.htmlis emptyWhat alternative solutions did you explore? (Optional)
FitseTLT commentedon Jan 3, 2024
@namhihi237 you are incorporating my proposal in your option 2 without notifying updated comment
namhihi237 commentedon Jan 3, 2024
Updated proposal add option 2 and additional view in alternative
67 remaining items
[-][$500] Copy icon - Clicking copy icon on an offline deleted message doesn't copy the message[/-][+][HOLD for payment 2024-02-20] [$500] Copy icon - Clicking copy icon on an offline deleted message doesn't copy the message[/+]melvin-bot commentedon Feb 13, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Feb 13, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.40-5 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-02-20. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Feb 13, 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:
mananjadhav commentedon Feb 19, 2024
We have the offending PR and I raised the comment here.
I don't think we need a regression test.
@muttmuure this would be ready for payout tomorrow. Worked on the checklist.
mananjadhav commentedon Feb 23, 2024
quick bump @muttmuure
muttmuure commentedon Feb 23, 2024
$500 to @mananjadhav for C+
muttmuure commentedon Feb 23, 2024
All paid up
JmillsExpensify commentedon Feb 27, 2024
$500 approved for @mananjadhav based on summary above.