<p dir="auto">Render a not found error if we are used for a heatmap for a user that doesn't exist or isn't visible to the requesting party instead of trying to render the view and throwing an exception.</p>
<p dir="auto">As discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3663377073" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/6564" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/6564/hovercard?comment_id=3612295106&comment_type=issue_comment" href="https://github.com/openstreetmap/openstreetmap-website/pull/6564#issuecomment-3612295106">#6564 (comment)</a> and subsequent comment this is thought to be the root cause behind some intermittent CI failures.</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/6591'>https://github.com/openstreetmap/openstreetmap-website/pull/6591</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6591/commits/9843ea0fb955526fb6e0e8619be9682ecabf3fae" class="commit-link">9843ea0</a>  Render a not_found error for unavailable heatmaps</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6591/files">2 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6591/files#diff-cf052730cf41d61f4b60c135bb6ec49aa13124a5a99cf45c0822fa5c6b34af40">app/controllers/users/heatmaps_controller.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6591/files#diff-bb14bd48e5c35755d5efc2d645087bfa9e06bce33fc89eb495e7c926bf813c36">test/controllers/users/heatmaps_controller_test.rb</a>
    (70)
  </li>
</ul>

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