[openstreetmap/openstreetmap-website] Switch to using ActiveStorage for trace data and images (PR #3345)
Tom Hughes
notifications at github.com
Mon Oct 18 20:40:56 UTC 2021
This switches to using ActiveStorage for new trace files, for both the trace data and the images generated during the import. Existing traces with no attachments continue to be supported on a read only basis for now.
It also adds a rake task to be used for migrating existing traces to ActiveStorage.
In order to support a variety of operational decisions around storage, each type of attachment (including the existing user avatars) uses a separately configurable storage backend.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/3345
-- Commit Summary --
* <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/commits/a3c7fd027ccf7748fb179976cf75aaa1e0e09879">Make the storage service to use for avatars configurable</a>
* <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/commits/387bd5740fcb1848dc6e3c36cc40c38678ea6d56">Switch traces to use ActiveStorage</a>
* <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/commits/321575817850f9c5b34cc31951ea18a8fa879869">Add a rake task to migrate trace data to ActiveStorage</a>
-- File Changes --
M app/controllers/api/traces_controller.rb (44)
M app/controllers/traces_controller.rb (83)
M app/models/trace.rb (299)
M app/models/user.rb (2)
M config/settings.yml (5)
M config/settings/test.yml (5)
M lib/gpx.rb (4)
A lib/tasks/migrate_traces_to_storage.rake (8)
M test/controllers/api/traces_controller_test.rb (16)
M test/controllers/traces_controller_test.rb (19)
M test/factories/traces.rb (14)
M test/models/trace_test.rb (54)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/3345.patch
https://github.com/openstreetmap/openstreetmap-website/pull/3345.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3345
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20211018/72251b9a/attachment.htm>
More information about the rails-dev
mailing list