[openstreetmap/openstreetmap-website] Add the ability to limit changeset size (PR #4908)
Tom Hughes
notifications at github.com
Wed Jun 19 07:32:15 UTC 2024
This aims to allow the bounding box of changesets to be limited. The basic technology is the same as #4319 with the maximum size ramping up over a period of time for new users.
The defaults allow new users to start with a limit equivalent to a square of 1.5 degrees on each side, and ramp up to the whole world over 28 days with it taking just over three days to start increasing and penalties being applied if the user is reported.
The limit is on the linear dimensions (width + length) not the area of the bounding box to avoid people doing X and Y movements in separate changesets which would then always have an area of zero.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/4908
-- Commit Summary --
* Add support for per-user limits on the size of changes that can be made
* Enforce changeset size limit for API calls which make changes
* Update tests to avoid triggering changeset size limits
* Add tests for API changeset size limits
-- File Changes --
M app/models/changeset.rb (8)
M config/settings.yml (7)
A db/migrate/20240618193051_api_size_limit.rb (13)
M db/structure.sql (58)
M lib/bounding_box.rb (8)
M lib/database_functions.rb (54)
M lib/osm.rb (11)
M lib/tasks/update_functions.rake (1)
M test/controllers/api/changesets_controller_test.rb (179)
M test/controllers/api/old_nodes_controller_test.rb (12)
M test/controllers/api/relations_controller_test.rb (14)
M test/factories/node.rb (2)
M test/models/node_test.rb (5)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/4908.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4908.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4908
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4908 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240619/e73d6ca2/attachment.htm>
More information about the rails-dev
mailing list