<p></p>
<p><b>@AntonKhorev</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5255#discussion_r1801064970">app/views/notes/index.html.erb</a>:</p>
<pre style='color:#555'>> <% else %>
+ <%= form_tag(url_for("controller" => "notes", "action" => "index"), "method" => :get, "data" => { "turbo" => true, "turbo-frame" => "pagination", "turbo-action" => "advance" }) do %>
+ <div class="row gx-2">
+ <div class="col-md-auto mb-3">
+ <%= label_tag :status, t(".status") %>
+ <%= select_tag :status,
+ options_for_select([[t(".all"), "all"], [t(".open"), "open"], [t(".closed"), "closed"]], params[:status]),
+ :include_blank => t(".select_status"),
+ :class => "form-select" %>
+ </div>
+ <div class="col-md-auto mb-3">
+ <%= label_tag :note_type, t(".note_type") %>
</pre>
<p dir="auto">I wouldn't call this a "note type". It's an interaction type between the user and the note.</p>
<p dir="auto">And then there's a question if this kind of filtering can be done efficiently because here you have <code class="notranslate">INNER JOIN "note_comments"</code> twice.</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/5255#pullrequestreview-2369178019">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLI6XKO24MTCNDIZ2QTZ3UCUZAVCNFSM6AAAAABPVCJ4ACVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNRZGE3TQMBRHE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKGUSPHBKYB4TDTXETZ3UCUZA5CNFSM6AAAAABPVCJ4ACWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTUNG3E2G.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/5255/review/2369178019</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/5255#pullrequestreview-2369178019",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5255#pullrequestreview-2369178019",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>