<p dir="auto">This further simplifies the trace image controllers by adding an <code class="notranslate">imported</code> scope to the trace model which eliminates a duplicate "not found" branch.</p>
<p dir="auto">It also drops some redundant code for handling legacy traces that should have been removed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1160686832" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3491" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/3491/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/3491">#3491</a>.</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/4633'>https://github.com/openstreetmap/openstreetmap-website/pull/4633</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4633/commits/91143a59593ac7f3ef80a47dc73aea9d4b904aaa" class="commit-link">91143a5</a>  Use imported scope to simplify trace controller methods</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4633/commits/6059ed0d92702dbaf833f95f8a501fcd091ab31f" class="commit-link">6059ed0</a>  Drop redundant support for legacy trace files</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4633/files">3 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4633/files#diff-46380cf3c8d6fd0262d0ea5e8ad53978c9ca575ee543d0eec67d890b4ad6399b">app/controllers/traces/icons_controller.rb</a>
    (17)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4633/files#diff-3afc4749d6847ae155fbed26043f5a41deeac6067bb3ea1c430a617ffb899333">app/controllers/traces/pictures_controller.rb</a>
    (17)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4633/files#diff-49ff8e13eb2bff9ffd834dad7421f568b40186cb58b28e7eac6b3e9168ec8759">app/models/trace.rb</a>
    (1)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4633.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4633.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4633.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4633.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4633">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOJFBAPIPBZ4AVMV3LY2RA27AVCNFSM6AAAAABFNGMMWSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTGNZWHEYDENA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJZPRK3QKFZW2EKTZLY2RA27A5CNFSM6AAAAABFNGMMWSWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIH43PIA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4633</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4633",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4633",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>