<h3 dir="auto">Description</h3>
<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #6297.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3297247238" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/6297" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/6297/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/6297">#6297</a></p>
<p dir="auto">The goal is to increase the limit of the <code class="notranslate">user/preferences</code> API values.<br>
I picket 10k which is what we use for user blocks and should be enough to add more complex data.</p>
<details><summary>Other limits</summary>
<p dir="auto">
</p><p dir="auto">User descriptions can be up to 65,536 characters<br>
Diary comments can be up to 65,536 characters<br>
User block reasons can be up to 10,000 characters<br>
Note comments can be up to 2,000 characters</p>
<p dir="auto"></p>
</details> 
<h3 dir="auto">How has this been tested?</h3>
<p dir="auto">I tested it with the demo page from <a href="https://gist.github.com/tordans/94481e6336e8c34f258c677350fc2e77">https://gist.github.com/tordans/94481e6336e8c34f258c677350fc2e77</a> which uses <a href="https://github.com/osmlab/osm-api-js">https://github.com/osmlab/osm-api-js</a> to authenticate against localhost 3001 (hard coded) with a local oAuth App (hardcoded) and then runs two test cases against the preferences endpoint.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/6399'>https://github.com/openstreetmap/openstreetmap-website/pull/6399</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6399/commits/5d86dbfa1b96115a3684dc224622562f436f65cc" class="commit-link">5d86dbf</a>  Allow `user/preferences` values up to 10_000</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6399/files">2 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6399/files#diff-c36f041a59833f85660511c3f91bab34e164096d161cba7083804c4d1a5926b9">app/models/user_preference.rb</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6399/files#diff-0f73892c02129f3d9cd2a2b5948ebd52c473f67eebfb7ac670071a7fa3320160">test/models/user_preference_test.rb</a>
    (63)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6399.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6399.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6399.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6399.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6399">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMPKAMXQIVOUJ4HYDT3TPYW7AVCNFSM6AAAAACG62OP7GVHI2DSMVQWIX3LMV43ASLTON2WKOZTGQZTIMJXGU2DIMQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJGVHQL267Z5JPXNUD3TPYW7A5CNFSM6AAAAACG62OP7GWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHMZMK32I.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6399</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6399",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6399",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>