[openstreetmap/openstreetmap-website] Do more preloading of tags and members (PR #6338)

Tom Hughes notifications at github.com
Thu Aug 21 16:55:08 UTC 2025


@tomhughes commented on this pull request.



> @@ -2,7 +2,7 @@ class OldRelationMembersController < OldElementsController
   def show
     @type = "relation"
     @current_feature = Relation.find(params[:id])
-    @feature = OldRelation.preload(:old_members => :member).find([params[:id], params[:version]])
+    @feature = OldRelation.preload(:old_members => { :member => :old_tags }).find([params[:id], params[:version]])

That should be fixed now.

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

Message ID: <openstreetmap/openstreetmap-website/pull/6338/review/3141557233 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250821/2b652843/attachment-0001.htm>


More information about the rails-dev mailing list