[openstreetmap/openstreetmap-website] Introduce relation member limit (PR #3440)

mmd notifications at github.com
Sun Jan 30 07:49:20 UTC 2022


See #1711 


* Check relation member limit when saving relations
* settings.yml: new parameter `max_number_of_relation_members: 32000`
* `/api/0.6/capabilities` now includes a new element `relationmembers`
* New error message "You tried to add #{provided} members to relation #{id}, however only #{max} are allowed" is already being used by CGImap




You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/3440

-- Commit Summary --

  * Introduce relation member limit

-- File Changes --

    M app/models/relation.rb (2)
    M app/views/api/capabilities/show.builder (1)
    M config/initializers/config.rb (1)
    M config/settings.yml (2)
    M lib/osm.rb (18)
    M test/controllers/api/capabilities_controller_test.rb (1)
    M test/models/relation_test.rb (20)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/3440.patch
https://github.com/openstreetmap/openstreetmap-website/pull/3440.diff

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

Message ID: <openstreetmap/openstreetmap-website/pull/3440 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220129/a4cc6cda/attachment-0001.htm>


More information about the rails-dev mailing list