discourse/lib/backup_restore
Martin Brennan a059c7251f
DEV: Add tests to S3Helper.ensure_cors and move rules to class (#14767)
In preparation for adding automatic CORS rules creation
for direct S3 uploads, I am adding tests here and moving the
CORS rule definitions into a dedicated class so they are all
in the one place.

There is a problem with ensure_cors! as well -- if there is
already a CORS rule defined (presumably the asset one) then
we do nothing and do not apply the new rule. This means that
the S3BackupStore.ensure_cors method does nothing right now
if the assets rule is already defined, and it will mean the
same for any direct S3 upload rules I add for uppy. We need
to be able to add more rules, not just one.

This is not a problem on our hosting because we define the
rules at an infra level.
2021-11-01 08:23:13 +10:00
..
backup_file_handler.rb FIX: Restoring could fail due to missing path 2021-02-09 17:28:03 +01:00
backup_store.rb FEATURE: Allow overriding the backup location when restoring via CLI (#12015) 2021-02-09 16:02:44 +01:00
backuper.rb FEATURE: Attach backup log as upload (#13849) 2021-08-03 20:06:50 +03:00
database_restorer.rb FIX: Check all migrations for dropped columns/tables during restore 2021-06-23 17:43:38 +01:00
factory.rb FIX: Restoring could fail due to missing path 2021-02-09 17:28:03 +01:00
local_backup_store.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
logger.rb FIX: Remap old S3 endpoints during backup restore (#12276) 2021-03-03 21:10:09 +01:00
meta_data_handler.rb REFACTOR: Simplify backup version check 2020-01-15 23:37:40 +01:00
restorer.rb FEATURE: Attach backup log as upload (#13849) 2021-08-03 20:06:50 +03:00
s3_backup_store.rb DEV: Add tests to S3Helper.ensure_cors and move rules to class (#14767) 2021-11-01 08:23:13 +10:00
system_interface.rb PERF: Disable Sidekiq only during database restore (#10857) 2020-10-16 15:19:02 +02:00
uploads_restorer.rb FIX: Remap old S3 endpoints during backup restore (#12276) 2021-03-03 21:10:09 +01:00