-
Notifications
You must be signed in to change notification settings - Fork 179
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
Media: Better prepend uploading items to library #12123
Conversation
This PR seems to works as described however noticing some odd behavior --- when filtering. Sometimes seems to double or triple (duplicated) results |
OK I think I have fixed it now: Screen.Recording.2022-08-18.at.16.43.16.movAs you can see I was able to keep the nice benefit of keeping existing items in there when filtering by type. Improves UX a little. |
This pull request introduces 1 alert when merging d1e84e2 into 328288b - view on LGTM.com new alerts:
|
Nice ya --- re-tested and working as fully working as expected now. |
Plugin builds for f570309 are ready 🛎️!
|
From testing: I'm still seeing the duplicate media issue, seems to happen with images only. To repro:
media-queue.mp4Additional note: |
Hmm weird, I'll try to reproduce again with these steps. Thanks for testing!
That's a good point. It's definitely confusing. I like this suggestion. |
@miina I implemented your suggestion with hiding the uploading items, but I was not able to get items to show up twice. Still happening for you? |
Unfortunately yes, seeing this error, too: Maybe it depends on the image size, perhaps if you try with throttling? The image has to be still uploading when switching the filter back to "Image" for it to happen. |
Strange. I tried with large and small images as well as network and CPU throttling without luck. Still added some safeguards now, just in case. Don't see how this would still happen with those in place. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work now without duplicates!
Context
Summary
Changes the way in-progress (uploading) items are displayed in the media library to ensure they're never lost when e.g. filtering the library afterwards.
Relevant Technical Choices
To-do
User-facing changes
Uploading items are still being displayed, even when changing filters in the library:
Screen.Recording.2022-08-18.at.16.43.16.mov
Testing Instructions
This PR can be tested by following these steps:
Reviews
Does this PR have a security-related impact?
No
Does this PR change what data or activity we track or use?
No
Does this PR have a legal-related impact?
No
Checklist
Type: XYZ
label to the PRFixes #9964