[openstreetmap/openstreetmap-website] Simplify GPS trace visibility levels (PR #7146)
Ruben L. Mendoza
notifications at github.com
Wed Jul 15 15:22:45 UTC 2026
@Rub21 commented on this pull request.
> validates :user, :associated => true
validates :name, :presence => true, :length => 1..255, :characters => true
validates :description, :presence => { :on => :create }, :length => 1..255, :characters => true
validates :timestamp, :presence => true
- validates :visibility, :inclusion => %w[private public trackable identifiable]
+ validates :visibility, :inclusion => VISIBILITIES + LEGACY_VISIBILITIES
+ validates :visibility, :inclusion => { :in => VISIBILITIES }, :on => :create
Done, the create validation is now in the `Limit new trace uploads` commit from the start, so the temporary controller check is gone from the history.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7146#discussion_r3588544992
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7146/review/4705566243 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260715/1890d93d/attachment.htm>
More information about the rails-dev
mailing list