discourse/app/assets/javascripts/admin/addon/templates
Martin Brennan e4350bb966
FEATURE: Direct S3 multipart uploads for backups (#14736)
This PR introduces a new `enable_experimental_backup_uploads` site setting (default false and hidden), which when enabled alongside `enable_direct_s3_uploads` will allow for direct S3 multipart uploads of backup .tar.gz files.

To make multipart external uploads work with both the S3BackupStore and the S3Store, I've had to move several methods out of S3Store and into S3Helper, including:

* presigned_url
* create_multipart
* abort_multipart
* complete_multipart
* presign_multipart_part
* list_multipart_parts

Then, S3Store and S3BackupStore either delegate directly to S3Helper or have their own special methods to call S3Helper for these methods. FileStore.temporary_upload_path has also removed its dependence on upload_path, and can now be used interchangeably between the stores. A similar change was made in the frontend as well, moving the multipart related JS code out of ComposerUppyUpload and into a mixin of its own, so it can also be used by UppyUploadMixin.

Some changes to ExternalUploadManager had to be made here as well. The backup direct uploads do not need an Upload record made for them in the database, so they can be moved to their final S3 resting place when completing the multipart upload.

This changeset is not perfect; it introduces some special cases in UploadController to handle backups that was previously in BackupController, because UploadController is where the multipart routes are located. A subsequent pull request will pull these routes into a module or some other sharing pattern, along with hooks, so the backup controller and the upload controller (and any future controllers that may need them) can include these routes in a nicer way.
2021-11-11 08:25:31 +10:00
..
components FIX: Allow every tag for watched words (#14684) 2021-10-25 10:53:42 +03:00
logs UX: Normalize sizing for inputs, buttons, dropdowns (#14226) 2021-09-09 11:01:56 -04:00
modal FEATURE: allow admin to delete all posts by a user irrespectively (#14128) 2021-08-25 10:14:22 +05:30
admin.hbs FIX: allow moderators to access /admin/customize/watched_words (#12816) 2021-04-23 18:51:45 +05:30
api-keys-index.hbs FEATURE: Add pagination to API keys page (#14777) 2021-11-09 12:18:23 +02:00
api-keys-new.hbs FEATURE: Add read-only scope to API keys (#14856) 2021-11-10 17:48:00 +02:00
api-keys-show.hbs FEATURE: Add read-only scope to API keys (#14856) 2021-11-10 17:48:00 +02:00
api.hbs
backups-index.hbs FEATURE: Direct S3 multipart uploads for backups (#14736) 2021-11-11 08:25:31 +10:00
backups-logs.hbs
backups.hbs
badges-award.hbs DEV: Clean up some styles (#14374) 2021-09-20 09:52:03 -04:00
badges-index.hbs
badges-show.hbs FEATURE: Change all core to use uppy-image-uploader (#14428) 2021-10-19 13:25:42 +10:00
badges.hbs DEV: Buttons were missing btn-default classes (#12991) 2021-05-08 11:45:18 -04:00
customize-colors-index.hbs
customize-colors-show.hbs UX: Fix mobile styling for admin color schemes (#14314) 2021-09-13 13:43:57 -04:00
customize-colors.hbs
customize-email-style-edit.hbs UX: Allow saving with cmd+s/ctrl+s with Ace editor (#12674) 2021-05-04 12:56:10 +01:00
customize-email-style.hbs
customize-email-templates-edit.hbs
customize-email-templates.hbs
customize-robots-txt.hbs
customize-themes-edit.hbs UX: Allow saving with cmd+s/ctrl+s with Ace editor (#12674) 2021-05-04 12:56:10 +01:00
customize-themes-index.hbs
customize-themes-show.hbs FIX: Remove button to dismiss theme error messages (#13734) 2021-07-14 15:17:32 -04:00
customize-themes.hbs
customize.hbs FIX: allow moderators to access /admin/customize/watched_words (#12816) 2021-04-23 18:51:45 +05:30
dashboard_general.hbs FIX: makes dashboard periods use current day and weekly 7 days (#10817) 2020-10-05 10:32:12 +02:00
dashboard_moderation.hbs FIX: makes dashboard periods use current day and weekly 7 days (#10817) 2020-10-05 10:32:12 +02:00
dashboard_reports.hbs
dashboard_security.hbs
dashboard.hbs UX: Changes to new features section in admin dashboard (#12029) 2021-02-10 13:12:04 -05:00
email-advanced-test.hbs
email-bounced.hbs UX: handle large email addresses on email skipped and bounced tabs (#11259) 2020-11-17 18:01:40 +05:30
email-index.hbs UX: Normalize sizing for inputs, buttons, dropdowns (#14226) 2021-09-09 11:01:56 -04:00
email-preview-digest.hbs UX: Normalize sizing for inputs, buttons, dropdowns (#14226) 2021-09-09 11:01:56 -04:00
email-received.hbs
email-rejected.hbs
email-sent.hbs
email-skipped.hbs UX: handle large email addresses on email skipped and bounced tabs (#11259) 2020-11-17 18:01:40 +05:30
email.hbs
embedding.hbs
emojis.hbs UX: Normalize sizing for inputs, buttons, dropdowns (#14226) 2021-09-09 11:01:56 -04:00
logs.hbs UX: move logs/watched_words to customize/watched_words in admin section (#12571) 2021-04-01 11:44:17 +05:30
permalinks.hbs UX: Layout fixes for admin permalinks page (#14819) 2021-11-04 14:15:55 -04:00
plugins-index.hbs UX: show plugin descriptions on admin plugins page 2021-02-12 11:38:50 -05:00
plugins.hbs
reports-show.hbs
search-logs-index.hbs REVERT: revert change from action + mut to mut (#10844) 2020-10-06 23:50:05 +02:00
search-logs-term.hbs REVERT: revert change from action + mut to mut (#10844) 2020-10-06 23:50:05 +02:00
site-settings-category.hbs
site-settings.hbs UX: Fix alignment for admin controls on mobile (#14312) 2021-09-13 13:43:43 -04:00
site-text-edit.hbs UX: Text customization for different languages. (#11729) 2021-01-18 14:53:45 -03:00
site-text-index.hbs FIX: do not show default locale option on site text customization (#14083) 2021-08-19 05:54:21 +05:30
site-text.hbs
user-badges.hbs DEV: Clean up some styles (#14374) 2021-09-20 09:52:03 -04:00
user-fields.hbs enable eol-last for eslint and ember-template-lint (#12678) 2021-04-12 17:22:00 -07:00
user-index.hbs FEATURE: Use second factor for admin confirmation (#14293) 2021-09-14 15:19:28 +03:00
user-tl3-requirements.hbs
user.hbs
users-list-show.hbs UX: add a title to the user filter input 2021-08-16 10:53:05 +08:00
users-list.hbs
watched-words-action.hbs UX: Add notice when watched words are regexes (#13493) 2021-06-25 12:08:52 +03:00
watched-words.hbs UX: Fix alignment for admin controls on mobile (#14312) 2021-09-13 13:43:43 -04:00
web-hooks-show-events.hbs
web-hooks-show.hbs DEV: Clean up some styles (#14374) 2021-09-20 09:52:03 -04:00
web-hooks.hbs