<p></p>
<p dir="auto">As <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2453017846" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5057" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5057/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5057">#5057</a> is merged, this PR was updated to match pagination changes of the issues page.</p>
<p dir="auto">In terms of performance, on the local machine I have 1000 users and 1000 issues, and pagination time was increased only by 150-200ms (it should be similar increase in the real environment, as before for the <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2453017846" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5057" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5057/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5057">#5057</a> I tried to match up timing of the local and real environments).</p>
<p dir="auto">All the Ruby variable initializations and calculations (from the previous solution) were moved from <code class="notranslate">issues/index.html.erb</code> file to <code class="notranslate">issues_controller.rb</code> to make html files less filled with calculation code.</p>
<p dir="auto">Also, as we are using Bootstrap Tooltips in other places, <code class="notranslate">turbo_tooltip.js</code> file was created. <a href="https://getbootstrap.com/docs/5.0/components/tooltips/" rel="nofollow">Bootstrap Tooltips Documentation</a> mentions:</p>
<blockquote>
<p dir="auto">... you must initialize them yourself</p>
</blockquote>
<blockquote>
<p dir="auto">Tooltips must be hidden before their corresponding elements have been removed from the DOM.</p>
</blockquote>
<p dir="auto">Because of these limitations, it has some bugs when working with Turbo (tooltips are not closing, tooltips got frozen on the top-left side of the screen ...). <code class="notranslate">turbo_tooltip.js</code> initializes Bootstrap Tooltips, solves the problem that caused tooltips bugs and also is reusable to be used in the future everywhere, where Turbo will be used and tooltips will be needed (Diary Entries page, Diary Entry Comments, User Blocks page ...).</p>
<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/4990#issuecomment-2330711700">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNR455Y5PVWAANS36TZU73OLAVCNFSM6AAAAABK4MEPN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZQG4YTCNZQGA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPFRO6FRZTZWDAQIVLZU73OLA5CNFSM6AAAAABK4MEPN6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUK5PLJI.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/4990/c2330711700</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/4990#issuecomment-2330711700",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4990#issuecomment-2330711700",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>