You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently importing an S3 bucket fires off a background task which exports files and then creates an ImageUpload. This works great, but the user experience is that they see an "Importing" message, then wait an hour, then see the new thing appear under uploads.
Here's what I'd like to see happen:
The user is directed to the ImageUpload list and sees their new bucket in a "uploading" state.
If they click on the upload they see a count of the files to be exported and the files currently exported.
Once the export finishes, the ImageUpload status changes and they see the regular image upload screen.
Here's how I'd do it:
On export start:
Create new ImageUpload record with
a new attribute for the number of files expected (to be pulled from the S3Bucket::ls
results -- it'd be fine to store the ls contents in an array instead, though)
a status of "Importing"
Launch the export
During the export, when the admin clicks on an ImageUpload in the 'Importing' status, either redirect to a new view/page or conditionally render a page displaying the normal ImageUpload attributes but also including
The total count of files to be exported, as recorded above, and
The count of files already exported, as generated by listing the current contents of the export directory
(It would be fine if this included filenames and sizes exported already)
On export completion
Mark the ImageUpload status as 'New'
The text was updated successfully, but these errors were encountered:
Currently importing an S3 bucket fires off a background task which exports files and then creates an ImageUpload. This works great, but the user experience is that they see an "Importing" message, then wait an hour, then see the new thing appear under uploads.
Here's what I'd like to see happen:
The user is directed to the ImageUpload list and sees their new bucket in a "uploading" state.
If they click on the upload they see a count of the files to be exported and the files currently exported.
Once the export finishes, the ImageUpload status changes and they see the regular image upload screen.
Here's how I'd do it:
On export start:
results -- it'd be fine to store the ls contents in an array instead, though)
During the export, when the admin clicks on an ImageUpload in the 'Importing' status, either redirect to a new view/page or conditionally render a page displaying the normal ImageUpload attributes but also including
(It would be fine if this included filenames and sizes exported already)
On export completion
The text was updated successfully, but these errors were encountered: