<p dir="auto">Similar to the change in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2393469510" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4958" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4958/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4958">#4958</a>, this PR addresses the remaining locations where JSON partials were rendered in a loop, instead of using collections.</p>
<p dir="auto">NB: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/openstreetmap/openstreetmap-website/commit/6268335ccdcdcb6629f32e5cae0d182c05b5593a/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/commit/6268335ccdcdcb6629f32e5cae0d182c05b5593a"><tt>6268335</tt></a> has a typo in the description, it should read "Notes".  I split this up into multiple commits, since the changes are in different parts of the API. If that's not needed, please Squash&merge instead.</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/5044'>https://github.com/openstreetmap/openstreetmap-website/pull/5044</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5044/commits/a5a6713bfcc4871060cbc3817e99ce7b23bbb8e7" class="commit-link">a5a6713</a>  Changesets: avoid calling json.partial! in loop</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5044/commits/14184b1b2e6d38db13497c37d8bcc07540c25f44" class="commit-link">14184b1</a>  Messages: avoid calling json.partial! in loop</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5044/commits/6268335ccdcdcb6629f32e5cae0d182c05b5593a" class="commit-link">6268335</a>  Users: avoid calling json.partial! in loop</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5044/commits/26e352a121c5ff884ad0ed695c225f9eb7075ea0" class="commit-link">26e352a</a>  Users: avoid calling json.partial! in loop</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5044/files">5 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5044/files#diff-51cd726eb493e36484b3687a7772c1f046c2b85c102dea1c806a014f41fb71e7">app/views/api/changesets/index.json.jbuilder</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5044/files#diff-b2c7fb63f9ffaaa79988d3b4c37cab2b3826eab04878cb8ff02bedafb68e05fd">app/views/api/messages/inbox.json.jbuilder</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5044/files#diff-df9c8444e953179fb1de7625e03643b03fcd4d264d258e7ec3823b019a39c4c1">app/views/api/messages/outbox.json.jbuilder</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5044/files#diff-a7ceaa8672a2f502320a3925b7605e7f6b8c686e27a2f2802939decbcd670180">app/views/api/notes/index.json.jbuilder</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5044/files#diff-0da050e1809c66dd51aeeaf22b2eea9fdcd6c066b5bea497116a79914c1e5c04">app/views/api/users/index.json.jbuilder</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5044.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5044.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5044.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5044.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/5044">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLO6AVKWKOSMTQWJZL3ZP2CDFAVCNFSM6AAAAABL7DJVRWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2DOMRXG4ZDKNQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJWK6FX7JOTGZGEKETZP2CDFA5CNFSM6AAAAABL7DJVRWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJDXT4ZA.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/5044</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/5044",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5044",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>