<p dir="auto">Reports on <code class="notranslate">/issue/:id</code> weren't sorted in any particular order. This is usually unnoticeable because typically they come in the creation order from the db. But that doesn't always happen.</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/6222ec71-9e42-4b63-89fc-2f4da6690c7e">image.png (view on web)</a></p>
<p dir="auto">This PR sorts the reports by id explicitly.</p>
<p dir="auto">I don't know if we need an index on (issue_id, report_id). If there aren't many reports per issue, maybe not.</p>
<p dir="auto">Same thing is probably required for issue comments.</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/5786'>https://github.com/openstreetmap/openstreetmap-website/pull/5786</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5786/commits/cb4060bb2e2f94e4939608303e422366a97d0300" class="commit-link">cb4060b</a> Order issue reports by id</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5786/files">3 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5786/files#diff-9f375793056b73a5266085b5a70b0c79a0d32771f440341e458e810416919906">app/controllers/issues/reporters_controller.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5786/files#diff-cc7acbfb990b45e6f8cb1fe65cbd081a7819b596b03e0ac2ef2e82a9537d3278">app/controllers/issues_controller.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5786/files#diff-cd75dd8ea34b8e05a215a3f3f8eb0627a26357293ffe415244f30d7a7b7c60e3">app/models/issue.rb</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5786.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5786.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5786.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5786.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/5786">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLILB7OB2XXLDWNRMTT2TWRYNAVCNFSM6AAAAABYWK5NHCVHI2DSMVQWIX3LMV43ASLTON2WKOZSHEYDONJVGUYDCNQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIFBLD6OYD4LAG5DTD2TWRYNA5CNFSM6AAAAABYWK5NHCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHK2TOEZA.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/5786</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/5786",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5786",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>