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

Ruben L. Mendoza notifications at github.com
Tue Jun 30 18:20:36 UTC 2026


@Rub21 commented on this pull request.



> @@ -294,6 +294,15 @@ def default_diary_language=(language)
     preference.update!(:v => language)
   end
 
+  def default_trace_visibility
+    visibility = preferences.find_by(:k => "gps.trace.visibility")&.v
+    if Trace.valid_visibility?(visibility)
+      visibility
+    else
+      "trackable"

Done, i have added Trace.default_visibility and default_trace_visibility now uses it as the fallback,  the value lives in the Trace model.



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

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


More information about the rails-dev mailing list