<p>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.</p>
<p>It also adds a rake task to be used for migrating existing traces to ActiveStorage.</p>
<p>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.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/3345'>https://github.com/openstreetmap/openstreetmap-website/pull/3345</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/commits/a3c7fd027ccf7748fb179976cf75aaa1e0e09879">Make the storage service to use for avatars configurable</a></li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/commits/387bd5740fcb1848dc6e3c36cc40c38678ea6d56">Switch traces to use ActiveStorage</a></li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/commits/321575817850f9c5b34cc31951ea18a8fa879869">Add a rake task to migrate trace data to ActiveStorage</a></li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/files#diff-e84777f55861eeb73fed3029e0429118ff087b7dd2314e398acadc4157dbaa05">app/controllers/api/traces_controller.rb</a>
(44)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/files#diff-2602c06a2618f83c1470c924563b55c738e3c94ffb6480e637ca0f4ce130eaba">app/controllers/traces_controller.rb</a>
(83)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/files#diff-49ff8e13eb2bff9ffd834dad7421f568b40186cb58b28e7eac6b3e9168ec8759">app/models/trace.rb</a>
(299)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/files#diff-9802ca3c9c4cf89904fd44bc114e35ebdf2c5dd3d5b645491e2b253e1afef29b">app/models/user.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/files#diff-e769bbb8c1ba3711c5403b424ed9c218ffafba7f1890ee394717196f28ff4540">config/settings.yml</a>
(5)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/files#diff-35b4e12cc4861df996689cfdc4006b266c22d40a0ecefd2ab6c74d817e20bf8b">config/settings/test.yml</a>
(5)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/files#diff-2f101bb482816df81f20afe2e8626836bd542158be8744474dcffcc4a113d769">lib/gpx.rb</a>
(4)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/files#diff-28d2909c470fdf748c7fe18e97dab07401ca9d88601e7c79c34ff79aa80efe93">lib/tasks/migrate_traces_to_storage.rake</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/files#diff-27e35476a27da8e60d7a83a6b48c4997ac172d00264392a8cb70c8f43f6b55cb">test/controllers/api/traces_controller_test.rb</a>
(16)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/files#diff-db7c9d7ea4afdcafd812aac88f5a378c22117fbce829dc93d905152f2c09f471">test/controllers/traces_controller_test.rb</a>
(19)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/files#diff-e945edb024dba9c7601ba908a9b8338505c9c3d2540cd09076265eba0939203f">test/factories/traces.rb</a>
(14)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345/files#diff-9fd2e1fe5658049094afe3aa0ab829848cd04fd0b3f62d56ad51b1ae40efdc2e">test/models/trace_test.rb</a>
(54)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3345.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/3345.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3345.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/3345.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3345">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLM7ZRFRRSUEVPY75TTUHSA5RANCNFSM5GHQ2W6Q">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAK2OLL4XTK2UBL4XNH3I4TUHSA5RA5CNFSM5GHQ2W62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4PK6CLJQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/3345",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3345",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>