[openstreetmap/openstreetmap-website] Create script for admins to manage "spammy phrases" (Issue #6566)
Andy Allan
notifications at github.com
Mon Dec 1 17:02:30 UTC 2025
gravitystorm left a comment (openstreetmap/openstreetmap-website#6566)
I don't understand the overall strategy here.
* If the list of words is always going to come from a static data file, and the spam scorer doesn't do any joins (it's just doing the equivalent of a `SELECT * from spammy_phrases` at the moment) then perhaps we should be using frozen_records? This will load them on app boot. It's what we do for the communities.
* If admins are going to be able to add/remove phrases individually, through some sort of UI, or if they are somehow being used in joins or other queries, then it makes sense to have a database table.
But from what I understand, we're trying to make the half-way house - the phrases are in the db, but then we want to just load them read-only from a data file. Is that right?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6566#issuecomment-3597759040
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/6566/3597759040 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251201/0285632f/attachment-0001.htm>
More information about the rails-dev
mailing list