[openstreetmap/openstreetmap-website] Incorrent count of "Map Notes" (Issue #6609)

Tom Hughes notifications at github.com
Thu Dec 11 14:33:16 UTC 2025


tomhughes left a comment (openstreetmap/openstreetmap-website#6609)

It's a rails counter cache for the note comments:

https://github.com/openstreetmap/openstreetmap-website/blob/2f01fd9596677fd750fbe34eaf07e47269a28f39/app/models/note_comment.rb#L31

So unless it has managed to get our of sync somehow it should accurately represent the number of comment records that exist.

It will include hidden comments though, which the view will suppress unless you're a moderator.

Possibly there is also some weirdness around whether the initial comment for opening a new note is shown and/or counted but I'm not sure offhand what the status of the work to adjust the schema for that is.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6609#issuecomment-3642209777
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/6609/3642209777 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251211/2f4f36db/attachment-0001.htm>


More information about the rails-dev mailing list