djpetti / MALLARD

Store image objects to MinIO object storage and metadata to MySQL database. Easily store and retrieve using metadata.
Apache License 2.0
0 stars 0 forks source link

Wait to close upload modal until `batch_update` completes. #3

Closed djpetti closed 1 year ago

djpetti commented 1 year ago

With really big uploads, batch_upload can take a non-trivial amount of time. If you close the modal before it's complete, the user will see incorrect data. If the user then reloads the page, batch_upload will be cancelled and that incorrect data will become permanent.

So... we should probably wait for batch_upload to complete before closing the modal. This can be implemented similar to the bulk deletion action.