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-06-05] [$250] Chat - Text with attachment message can be edited when the attachment is uploading #40400
While the attachment is uploading, right click on the message > Edit comment.
Edit the comment and save it.
Expected Result:
In Step 7, app should prevent comment to be editable when the attachment is uploading.
Actual Result:
In Step 7, app allows editing when the attachment with text is uploading.
As a result, the attachment is not uploaded and becomes "Uploading attachment..." when editing and saving the comment (Step 8).
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
👋 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:
Identify the pull request that introduced this issue and revert it.
@MitchExpensify I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.76-7 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:
[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr] 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:
[@mollfpr] 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:
[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] 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.
[@MitchExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr] 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:
No offending PR was found.
[@mollfpr] 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:
This is an improvement for a new feature, so the regression step should be enough.
[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] 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.
Go to staging.new.expensify.com
Go to chat.
Copy an image (from any source).
Enter text in the composer.
Paste the image via CMD+V.
Send the attachment together with the text.
While the attachment is uploading, right-click on the message
Verify Edit comment is not included in the context menu list
Wait until the attachment is uploaded and open the context menu on the message
Verify Edit comment menu exists and press on it
Check that now the text+attachment message can be edited
Activity
melvin-bot commentedon Apr 18, 2024
Triggered auto assignment to @MariaHCD (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Apr 18, 2024
Triggered auto assignment to @MitchExpensify (
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.github-actions commentedon Apr 18, 2024
👋 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:
izarutskaya commentedon Apr 18, 2024
@MitchExpensify I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.
izarutskaya commentedon Apr 18, 2024
We think this issue might be related to the #collect project.
izarutskaya commentedon Apr 18, 2024
Production
bandicam.2024-04-18.10-50-01-227.mp4
Nodebrute commentedon Apr 18, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Text with attachment message can be edited when the attachment is uploading #
What is the root cause of that problem?
Here, isAttachment will be false. That's why we can see the edit icon for comments that have text and attachments.
App/src/libs/ReportActionsUtils.ts
Line 845 in 3ec8f2f
What changes do you think we should make in order to solve the problem?
App/src/libs/ReportActionsUtils.ts
Line 845 in 3ec8f2f
3. We can create a new utility function hasAttachment for cases like these.
What alternative solutions did you explore? (Optional)
84 remaining items
melvin-bot commentedon May 29, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.76-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-06-05. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 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:
MitchExpensify commentedon Jun 2, 2024
Reminder set to pay, thoughts on BZ steps @mollfpr ?
MitchExpensify commentedon Jun 5, 2024
Payment summary:
MitchExpensify commentedon Jun 5, 2024
Paid and contract ended @FitseTLT
mollfpr commentedon Jun 10, 2024
Sorry for the delay 🙏
No offending PR was found.
This is an improvement for a new feature, so the regression step should be enough.
melvin-bot commentedon Jun 10, 2024
@MariaHCD, @mollfpr, @MitchExpensify, @FitseTLT Huh... This is 4 days overdue. Who can take care of this?
MitchExpensify commentedon Jun 11, 2024
Thank you!
JmillsExpensify commentedon Jun 11, 2024
$250 approved for @mollfpr