[openstreetmap/openstreetmap-website] Allow `user/preferences` values up to 10_000 (PR #6399)
Tobias
notifications at github.com
Fri Oct 10 12:22:08 UTC 2025
tordans left a comment (openstreetmap/openstreetmap-website#6399)
> this should definitely be accompanied by a change to the capabilities api call that reports the max value
Good point. I added changes that expose this limit like so…
`http://localhost:3001/api/0.6/capabilities.json`
```
{
"version": "0.6",
"generator": "OpenStreetMap server",
"copyright": "OpenStreetMap and contributors",
"attribution": "http://www.openstreetmap.org/copyright",
"license": "http://opendatacommons.org/licenses/odbl/1-0/",
"api": {
"version": {
"minimum": "0.6",
"maximum": "0.6"
},
"area": {
"maximum": 0.25
},
"note_area": {
"maximum": 25
},
"tracepoints": {
"per_page": 5000
},
"waynodes": {
"maximum": 2000
},
"relationmembers": {
"maximum": 32000
},
"changesets": {
"maximum_elements": 10000,
"default_query_limit": 100,
"maximum_query_limit": 100
},
"notes": {
"default_query_limit": 100,
"maximum_query_limit": 10000
},
"user_preferences": {
"key_maximum_length": 255,
"value_maximum_length": 10000
},
"timeout": {
"seconds": 300
},
"status": {
"database": "online",
"api": "online",
"gpx": "online"
}
},
"policy": {
"imagery": {
"blacklist": []
}
}
}
```
> (and given that it is related, should probably report the standard 255 limit too, see https://github.com/openstreetmap/openstreetmap-website/issues/1593).
Lets tackle this separate to keep this PR as small as possible. What would a good format be? Just `defaults: { key_max…, value_max…}`?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6399#issuecomment-3389799395
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6399/c3389799395 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251010/ff895594/attachment.htm>
More information about the rails-dev
mailing list