[openstreetmap/openstreetmap-website] Refactoring for to_xml (#2999)

Andy Allan notifications at github.com
Wed Dec 9 14:28:33 UTC 2020


This was originally going to involve getting rid of the to_xml for tracepoints, and move to a builder view for that, but I got bogged down in the gpx file building stuff and had to abandon that.

So this PR is some stand-alone work that was going to be in that PR but may as well be used separately.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Remove unused code
  * Use point.trace instead of an additional gpx_file variable
  * Preload traces for the selected points

-- File Changes --

    M app/controllers/api/tracepoints_controller.rb (16)
    M app/models/user.rb (20)
    M test/models/user_test.rb (20)

-- Patch Links --

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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2999
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20201209/f5f9e3e6/attachment.htm>


More information about the rails-dev mailing list