-
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
[$4000] Deleting an image file which is still uploading displays empty image file and disappears after adding a reaction #15863
Comments
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @deetergp ( |
I was able to reproduce it. Started the upload, deleted. The blank box popped up in chat and "[Attachment]" in LHB. Seconds later both disappeared and the chat moved down to where it was before I attempted to send the message. Same behavior if I reacji to the blank box, the blank box disappears and the "[Attachment]" also disappears within a few seconds. Looks like it's some kind of delay |
@kavimuru Just to confirm, this only happens in web? Regardless, I'm sure it's can be dealt with in the front end by a contributor. Setting as External. |
Job added to Upwork: https://www.upwork.com/jobs/~014d0fc7ae438c05c4 |
Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @stitesExpensify ( |
Just FYI, I'll be OOO Mar 17-25 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Deleting an image file which is still uploading displays empty image file and disappears after adding a reaction What is the root cause of that problem?SequentialQueue processes finalization order is LIFO, but the order-sensitive operations that should be executed after every SequentialQueue process (like Onyx.update) should be FIFO order. Details: Here Onyx.update(pushJSON) will be called when the SequentialQueue current request is finished. But when we delete the attachment which is still uploading the Onyx.update(AddAttachment) won't be called until the delete process is finished, so it will be called last. The visualization looks like this:
So the Onyx.update(AddAttachment) will be called only after the next processes are finished, including the DeleteComment process. What changes do you think we should make in order to solve the problem?We can keep another list of promises and for The result is: Screen.Recording.2023-03-30.at.11.36.27.AM.mp4What alternative solutions did you explore? (Optional)Another solution would be: |
@sonialiap, @parasharrajat, @stitesExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
If I am not wrong we have plans to remove "uploading attachment" text, so I think we should do nothing here. |
@stitesExpensify can you please confirm this? |
@sonialiap @stitesExpensify @0xmiroslav this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
This is the first I've heard of this, but it's definitely possible. @thesahindia do you have the context for your comment? |
I think we should not allow deleting/any action while the attachment is uploading. Same I have proposed here and for inspiration, we can consider a similar pattern in the slack. |
Here's the thread for more info. |
Proposal |
@sonialiap @stitesExpensify @0xmiroslav this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
@sonialiap, @stitesExpensify, @0xmiroslav Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Are we going to close this GH issue or open for proposals? |
The discussion was 6 months ago but it seems no progress yet as low priority. |
@sonialiap, @stitesExpensify, @0xmiroslav Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
I believe we should just close this issue because we have plans to remove "uploading attachment" text (Previous discussion thread) |
@stitesExpensify what do you think of closing this one in favor of #9402? |
This will be the expected result:
So uploading text will be replaced with grayed image or local thumbnail and it will still be reactionable. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I think that closing it makes sense @sonialiap. If we're getting rid of this functionality, we don't really need to fix it. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Deleting an image file that hasn't yet uploaded should not display an empty image file on the chat and should not display ‘Attachment’ on the chat menu
Actual Result:
Deleting an image file displays an empty image file on the chat and displays ‘Attachment’ on the chat menu.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.82-3
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
Notes/Photos/Videos:
Recording.1674.mp4
image-2023-03-10_10.35.33.mp4
Expensify/Expensify Issue URL:
Issue reported by: @avi-shek-jha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1678424033842019
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: