<p dir="auto">The regular <code class="notranslate">/history</code> page shows changesets intersecting with the map view. To get them, the current map view bounds are sent as the <code class="notranslate">bbox</code> parameter. But the bound can be outside of [-180..180] longitude range, therefore also a <code class="notranslate">.wrap()</code> fix is applied. The fix itself is broken, see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2770179737" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5473" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5473/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5473">#5473</a> which removes it and implements support for longitudes outside of [-180..180].</p>
<p dir="auto">Still, we don't need to send the <code class="notranslate">bbox</code> parameter with huge longitude values when the entire planet is visible.<sup><a href="#user-content-fn-1-a3d4e95b30bb50f573fca5ee7da9b948" id="user-content-fnref-1-a3d4e95b30bb50f573fca5ee7da9b948" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup> If there's no <code class="notranslate">bbox</code>, no filtering by <code class="notranslate">bbox</code> happens and all changesets are visible. This is what this PR does.</p>
<p dir="auto">This is a partial fix for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1104736690" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3423" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/3423/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/3423">#3423</a> when the entire planet is visible. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2770179737" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5473" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5473/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5473">#5473</a> is still required for map views with the antimeridian that don't include the entire planet. But even without <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2770179737" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5473" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5473/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5473">#5473</a> you'll be able to fully zoom out, click <em>History</em> and see all the latest changesets.</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/fe43fe64-c893-4425-9290-fb8c2a14cce4">image.png (view on web)</a></p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only" dir="auto">Footnotes</h2>
<ol dir="auto">
<li id="user-content-fn-1-a3d4e95b30bb50f573fca5ee7da9b948">
<p dir="auto">Strictly speaking, that never happens because poles are infinitely away, but we can consider them visible if ~[-85..85] latitude range is visible. <a href="#user-content-fnref-1-a3d4e95b30bb50f573fca5ee7da9b948" data-footnote-backref="" aria-label="Back to reference 1" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
<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/5881'>https://github.com/openstreetmap/openstreetmap-website/pull/5881</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5881/commits/b21cf2908e235aaa15cb99ed8c1a95fc9d68a808" class="commit-link">b21cf29</a> Add function to set changeset list bbox param</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5881/commits/35229a990f53463aa4bdf5d09fbb212b192f7360" class="commit-link">35229a9</a> Don't set bbox history param when the entire world is visible</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5881/files">2 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5881/files#diff-25cab16df4a58e0c8e53d0a0e70d9bbf28ef3beb9e6bf1208234fdeed7515392">app/assets/javascripts/index/history.js</a>
(16)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5881/files#diff-ca76ddfd495be1ab96863518b57d1e0b49d06c99429adb2bbd6001692d12073b">test/system/history_test.rb</a>
(21)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5881.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5881.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5881.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5881.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/5881">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOZMJ3XVTKGS4O5JHT2XSYMXAVCNFSM6AAAAAB2LEJJJGVHI2DSMVQWIX3LMV43ASLTON2WKOZSHE3DQMRXGY2TEOI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLN32RXGTHYLFI5EKVL2XSYMXA5CNFSM6AAAAAB2LEJJJGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLB3COGE.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/5881</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/5881",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5881",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>