-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 2024-06-05] [$250] Chat - Text with attachment message can be edited when the attachment is uploading #40400
Comments
Triggered auto assignment to @MariaHCD ( |
Triggered auto assignment to @MitchExpensify ( |
👋 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:
|
@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. |
We think this issue might be related to the #collect project. |
Production bandicam.2024-04-18.10-50-01-227.mp4 |
ProposalPlease 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) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - Text with attachment message can be edited when the attachment is uploading What is the root cause of that problem?Currently isReportActionAttachment function does not return What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~016d10a063fea0e0dc |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
@Nodebrute @shahinyan11 Did you guys find the offending PR? |
ProposalPlease 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?Edit option shows even when attachment is uploading. It should only show after the upload is complete. Also, the existing logic doesn't consider "text+attachments" combination as an attachment, What changes do you think we should make in order to solve the problem?When attachment is uploading, edit action shouldn't show. We have to get the message HTML and check for Move the below existing method to App/src/pages/home/report/ContextMenu/ContextMenuActions.tsx Lines 36 to 40 in 68e6962
Sample code:
Also, update the condition to check for attachments in
Screen.Recording.2024-04-18.at.6.34.36.PM.mov |
Offending PR: #39007 (It's a new feature which combines text and attachments). |
ProposalPlease 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?It is a regression from #39007 which modifies optimistic data for text+attachment but doesn't align with what BE returns b/c for text+attachment it doesn't set App/src/libs/ReportActionsUtils.ts Lines 845 to 846 in 3ec8f2f
it will return false because we have set isAttachment to false here Lines 3223 to 3224 in 3ec8f2f
What changes do you think we should make in order to solve the problem?For text + attachment we should set isAttachment to Lines 3253 to 3254 in 3ec8f2f
to
What alternative solutions did you explore? (Optional)If we want to edit text+attachment messages we should change our logic from using Line 2557 in 3ec8f2f
|
@Nodebrute @shahinyan11 I try your solution but it's not working. @FitseTLT I think your solution will block the user after the message is sent. |
@ShridharGoel Where is this check implemented? |
@MariaHCD, @mollfpr, @MitchExpensify, @FitseTLT Huh... This is 4 days overdue. Who can take care of this? |
@FitseTLT Let me know when the PR ready, thanks! |
Not overdue; we're waiting on a PR from @FitseTLT |
|
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:
|
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:
|
Reminder set to pay, thoughts on BZ steps @mollfpr ? |
Payment summary:
|
Paid and contract ended @FitseTLT |
Sorry for the delay 🙏
No offending PR was found.
This is an improvement for a new feature, so the regression step should be enough.
|
@MariaHCD, @mollfpr, @MitchExpensify, @FitseTLT Huh... This is 4 days overdue. Who can take care of this? |
Thank you! |
$250 approved for @mollfpr |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.63-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
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?
Screenshots/Videos
Bug6453282_1713425265582.text_and_attachment.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @MitchExpensifyThe text was updated successfully, but these errors were encountered: