From: Frederik Ramm Date: Sun, 31 Jul 2016 21:32:27 +0000 (+0200) Subject: Reduce maximum changeset size to 10k changes X-Git-Tag: live~3599 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/ad2b4fe12a291731f01881864b4800c1f9fbd27d Reduce maximum changeset size to 10k changes Ten thousand changes ought to be enough for any normal mapping activity. Automatic edits and imports are controlled by scripts anyway so it doesn't make a difference to them as they just have to adapt the limit. The reason for my suggestion is that large changesets are becoming increasingly difficult to handle due to frequent timeouts when trying to load and process them. The changeset size limit is returned by the API in the "capabilities" request so client software that honours that information will automatically pick up the new limit. Closes #1259 --- diff --git a/app/models/changeset.rb b/app/models/changeset.rb index 6909ba948..549600df6 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -32,7 +32,7 @@ class Changeset < ActiveRecord::Base EXPAND = 0.1 # maximum number of elements allowed in a changeset - MAX_ELEMENTS = 50000 + MAX_ELEMENTS = 10000 # maximum time a changeset is allowed to be open for. MAX_TIME_OPEN = 1.day