[openstreetmap/openstreetmap-website] Allow `user/preferences` values up to 10_000 (PR #6399)
Paul Norman
notifications at github.com
Sat Sep 27 16:25:10 UTC 2025
@pnorman commented on this pull request.
> @@ -17,5 +17,6 @@ class UserPreference < ApplicationRecord
belongs_to :user
validates :user, :associated => true
- validates :k, :v, :length => 1..255, :characters => true
+ validates :k, :length => 1..255, :characters => true
+ validates :v, :length => 1..10_000, :characters => true
Preferences have to be valid Unicode or else they can't be represented in the XML sent to the client
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6399#discussion_r2384235920
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6399/review/3275012569 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250927/1a53ed2d/attachment-0001.htm>
More information about the rails-dev
mailing list