GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — Multi S3 storage support by veenone · Pull Request #1839 · projectsend/projectsend Conversation
|
|
I have read the CLA Document and I hereby sign the CLA |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The single external bucket under Settings → Storage becomes a list of storage locations: the server's own disk plus any number of S3 or Google Cloud buckets, one of them the default. A client can be given one or more of them in priority order; their uploads go to the first, or to another of their own they pick on the upload screen. Staff, and clients with none assigned, keep using the default. The existing bucket is carried over on its old disk name, so files already in it keep resolving, and until the migration has run the old settings row is read exactly as before. A location that still holds files cannot be removed, only stopped from taking new uploads. The choice on the upload screen locks while a batch is uploading, the staff Files list can be filtered by location, and the client-upload email can name the location (off by default). The external storage tests move to StorageLocationsTest with every old guarantee kept, and the new strings are translated in all 16 locales.
Keep the applier in upstream's shape (apply per location, applyS3/applyGcs, resolve) so its comments survive, drop helpers only one caller used (writableDisks, defaultIsExternal, externalProvider, the unused acceptingUploads scope) and the legacy cache key nobody reads. The controller keeps upstream's explanatory comments on validation and the connection test. The migration no longer guards columns earlier migrations always create. Drop three strings: the impossible empty table message, the default-location fallback, and 'Save location' where 'Save' says the same.
Restore the wording of the tests carried over from upstream's external storage suite, merge the default-disk pair, the migration on/off pair and the removal pair, and fold the pre-migration read into the two legacy tests that already cover it.
The follows-the-default client and the staff-ignore-the-pick case join the resolution tests they sit next to, and refusing a closed default joins the test that moves the default.
Settings → Storage is still served by ExternalStorageSettingsController and tested by ExternalStorageSettingsTest, as ExternalStorageConfigApplier already kept its name. The diff then shows what changed in each instead of a deleted file and a new one.
Pass GCS only the location id it needs, restore the credential docblock and the upload event's comment where they still hold, and leave the interface field order and one test assertion as upstream had them.
…gration The migrate process boots against the old schema and caches the legacy bucket (or nothing, when it was switched off) under the new storage locations key. Nothing cleared it afterwards, so a migrated bucket that had been switched off stayed unregistered until someone saved the storage settings. Also name the local disk by its constant in StorageDurability and fix a cache comment that no longer held.
Restore the test that boots a 2.2+ external storage row before the storage locations migration, add one for the cache the migration leaves behind, and reword two test names that described the old on/off switch.
7ca938e to
d991807
Compare
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.