[openstreetmap/openstreetmap-website] Add the ability to rate limit edits (PR #4319)
mmd
notifications at github.com
Tue Oct 31 19:42:35 UTC 2023
Both options have their pros/cons. A REST endpoint looks more like a proper interface to me. It could return some further details in case a changeset cannot be accepted, including a proper error message. Of course, it will introduce much more overhead compared to calling a function on the database. On the positive side, you could write all logic in RoR.
Regarding the database function, passing a few parameter values around wouldn't be much of an issue. If things start getting more complicated, that approach doesn't scale well. A settings table might be better in the long run.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4319#issuecomment-1787926382
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4319/c1787926382 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231031/ed9163fb/attachment-0001.htm>
More information about the rails-dev
mailing list