<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2408536272" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4990" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4990/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4990">#4990</a> added the <em>Reporter Users</em> column. It uses reports to sort the users, but actually all it needs to get from the db are user ids. The existing version with <code class="notranslate">map</code> fetches the entire report by doing <code class="notranslate">SELECT "reports".*</code>. Here I'm replacing it with <code class="notranslate">pluck</code> that does <code class="notranslate">SELECT "reports"."user_id"</code>.</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/5578'>https://github.com/openstreetmap/openstreetmap-website/pull/5578</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5578/commits/547fbf6415e80b047c05282359ea942d4e27e2cc" class="commit-link">547fbf6</a>  Select user ids from reports using pluck</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5578/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5578/files#diff-cc7acbfb990b45e6f8cb1fe65cbd081a7819b596b03e0ac2ef2e82a9537d3278">app/controllers/issues_controller.rb</a>
    (2)
  </li>
</ul>

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