[openstreetmap/openstreetmap-website] [WIP] Simplify GPS trace visibility levels (PR #7146)

Ruben L. Mendoza notifications at github.com
Fri Jun 12 19:10:52 UTC 2026


@Rub21 commented on this pull request.



> @@ -103,6 +103,9 @@ def edit
   def create
     @title = t ".upload_trace"
 
+    # New traces can only be trackable or identifiable.
+    return head :bad_request unless %w[trackable identifiable].include?(params[:trace][:visibility])

Good idea and best, I moved it to Trace.valid_visibility? and used it in the web and the API controller.

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

Message ID: <openstreetmap/openstreetmap-website/pull/7146/review/4488462909 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260612/3eb22b45/attachment.htm>


More information about the rails-dev mailing list