[openstreetmap/openstreetmap-website] Add the ability to rate limit edits (PR #4319)

Tom Hughes notifications at github.com
Thu Nov 2 08:07:04 UTC 2023


I've pushed an update to use an SQL based implementation - the SQL function is slightly different to the previous version as it is now called `api_rate_limit` and takes only a user ID as argument and returns the maximum number of changes that can currently be committed.

There's a migration to add the function and also a `db:update_functions` rake task that will recreate it if the settings are changed.

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

Message ID: <openstreetmap/openstreetmap-website/pull/4319/c1790249573 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231102/d03e236a/attachment.htm>


More information about the rails-dev mailing list