Skip to content
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

5346: Ensure that cancelled uploads are really getting cancelled #5367

Conversation

RitikaPahwa4444
Copy link
Collaborator

Description (required)

The queuedContributions list does not get updated once the changes have been fetched from the database. So, even the contributions that have been cancelled by the user exist in this list and get uploaded.

Fixes #5346

What changes did you make and why?
Added an in-memory hashset for cancelled uploads to ensure that they do not get uploaded even after being cancelled.

Tests performed (required)

Tested prodDebug on Redmi 5A with API level 27.

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested one multi-upload of 20 pics, among which I removed 2. That worked well. :-)
Now testing a bit more, with several multi-uploads launched before the previous one finished.

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great, thanks a lot! 🙂

@nicolas-raoul nicolas-raoul merged commit 39a2fbe into commons-app:main Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cancelling an upload does not really cancel it
2 participants