<p dir="auto">This aims to allow the bounding box of changesets to be limited. The basic technology is the same as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1967127731" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4319" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4319/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4319">#4319</a> with the maximum size ramping up over a period of time for new users.</p>
<p dir="auto">The defaults allow new users to start with a limit equivalent to a square of 1.5 degrees on each side, and ramp up to the whole world over 28 days with it taking just over three days to start increasing and penalties being applied if the user is reported.</p>
<p dir="auto">The limit is on the linear dimensions (width + length) not the area of the bounding box to avoid people doing X and Y movements in separate changesets which would then always have an area of zero.</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/4908'>https://github.com/openstreetmap/openstreetmap-website/pull/4908</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/commits/f61ac2586f341589e0e5c880f585928518cf38c2" class="commit-link">f61ac25</a> Add support for per-user limits on the size of changes that can be made</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/commits/c38e3d61444d53ce24aea0495ae93a0ccc395c7d" class="commit-link">c38e3d6</a> Enforce changeset size limit for API calls which make changes</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/commits/61c5011813aff9a2a23d607a1ba11abd32bb9a9f" class="commit-link">61c5011</a> Update tests to avoid triggering changeset size limits</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/commits/505dcde52a474219a0824f1d9ca6545e99993b42" class="commit-link">505dcde</a> Add tests for API changeset size limits</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/files">13 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/files#diff-33e24e983f7ae5829e0e919c3843ccaaa05be35610607ec2fd486636d2c14e56">app/models/changeset.rb</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/files#diff-e769bbb8c1ba3711c5403b424ed9c218ffafba7f1890ee394717196f28ff4540">config/settings.yml</a>
(7)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/files#diff-2be28fb0645f94eddc2c0caf73d87d2fc1fdd4de29b262cb8bb747a883ab8fdf">db/migrate/20240618193051_api_size_limit.rb</a>
(13)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/files#diff-1dd5a8f580b9615769ddc19a64a98f455d9d20eb149c443f41d9d3c797d39b12">db/structure.sql</a>
(58)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/files#diff-f1c4bd478fb88f3831057ae6c14aa753db1eaf67219f6704f5dabc39552a0bd9">lib/bounding_box.rb</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/files#diff-d61f336d84f07134371aa2031390dc8fc58530250f56e6b1099f039989b21b2e">lib/database_functions.rb</a>
(54)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/files#diff-f8a27e50423ab8e432a0ac66073c425c0c4eb520ecd92bf152b21e6e966b4754">lib/osm.rb</a>
(11)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/files#diff-9617f309583d278eba85b59749b49e7775493dfaccba0f76478e05d7fc0c68de">lib/tasks/update_functions.rake</a>
(1)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/files#diff-e95198c7f7744be3ce9857db36d2374538ca7d64caaf0f6f85865d6752563ee9">test/controllers/api/changesets_controller_test.rb</a>
(179)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/files#diff-7ee3168144cba950374d481967d27d39db360d6dfb366aa9033b42f32cb98256">test/controllers/api/old_nodes_controller_test.rb</a>
(12)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/files#diff-da8c6d0ce9e50a5d0d4517cb17a60cc0df2f286b573ea8132fd903ad8c227237">test/controllers/api/relations_controller_test.rb</a>
(14)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/files#diff-8f4a192849d6864c784f6500aac07c68c48cab6d7e7a27c555ec67735403aaca">test/factories/node.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4908/files#diff-fc4f9f9fac2300ac52e47916c83e6bc893b0cf37602253f876cb035d67850ea2">test/models/node_test.rb</a>
(5)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4908.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4908.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4908.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4908.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/4908">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJC6X255SUBA5YQYPLZIEXX7AVCNFSM6AAAAABJRPCN6OVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3DCNJXGAZDENI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLITYF2YA4UFVDPLT53ZIEXX7A5CNFSM6AAAAABJRPCN6OWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIZQVTWE.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/4908</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/4908",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4908",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>