Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #6401
There seems to be an issue with rolling back workbench uploads through the unupload API.
From this commit for batch edit 25eef3f
The return value for the unupload view function changed from
return http.JsonResponse(async_result.id, safe=False)
to
return http.JsonResponse("w", safe=False)
It seems reverting it might fix this issue.
A follow-up issue is that in the an unupload task might get stuck, and no new unupload task can be made on the dataset until the existing tasks finishes. So, we might want the user to be able to reset the task state from the UI.
One other thing is to allow for the option of running the unupload task in the main Specify container, rather than as a background task. This is to match this option we created for the upload task, to help with debugging.
Checklist
self-explanatory (or properly documented)
Testing instructions