[openstreetmap/openstreetmap-website] Add the ability to rate limit edits (PR #4319)
mmd
notifications at github.com
Sat Nov 4 14:49:15 UTC 2023
@mmd-osm commented on this pull request.
> @@ -192,4 +192,14 @@ def api_call_timeout(&block)
ActiveRecord::Base.connection.raw_connection.cancel
raise OSM::APITimeoutError
end
+
+ ##
+ # check the api change rate limit
+ def check_rate_limit(new_changes = 1)
+ max_changes = ActiveRecord::Base.connection.select_value(
It would be good if we could enable/disable this check based on some global setting.
This way we could merge the code sooner and enable it on the dev instance for testing.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4319#pullrequestreview-1713796154
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4319/review/1713796154 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231104/21a8f54f/attachment.htm>
More information about the rails-dev
mailing list