[openstreetmap/openstreetmap-website] Add note limit settings, use them in capabilities and tests (PR #4187)

Anton Khorev notifications at github.com
Sat Aug 19 02:45:42 UTC 2023


Same as #4142 but for notes.

Makes note and changeset query limit code the same.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Move note query limit values to settings
  * Use max note query limit setting in tests
  * Add missing changeset query limit capabilities test
  * Expose note query limit values in api capabilities

-- File Changes --

    M app/controllers/api/notes_controller.rb (6)
    M app/views/api/capabilities/show.builder (2)
    M app/views/api/capabilities/show.json.jbuilder (4)
    M config/settings.yml (4)
    M test/controllers/api/capabilities_controller_test.rb (10)
    M test/controllers/api/notes_controller_test.rb (15)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list