[openstreetmap/openstreetmap-website] Support versions in elements multi fetch (PR #3715)

Anton Khorev notifications at github.com
Fri Sep 23 14:38:23 UTC 2022


As supported by cgimap. Related to https://github.com/openstreetmap/openstreetmap-website/pull/1189 which is a different implementation with different API entry points.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add basic version support to node multi fetch
  * Keep only unique nodes for multi fetch both with and without versions
  * Generalize elements multi fetch to ways and relations
  * Allow multi fetch request parameter to contain only versioned entries

-- File Changes --

    M app/controllers/api/nodes_controller.rb (19)
    M app/controllers/api/relations_controller.rb (18)
    M app/controllers/api/ways_controller.rb (18)
    A app/controllers/elements_api_controller.rb (35)
    M test/controllers/api/nodes_controller_test.rb (29)
    M test/controllers/api/relations_controller_test.rb (10)
    M test/controllers/api/ways_controller_test.rb (15)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list