<p dir="auto">This sets the priority of the trace import job based on the number of pending traces the user has so the more they up load at once the lower the priority, thus allowing other users who only upload a few to jump in front of them.</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/4537'>https://github.com/openstreetmap/openstreetmap-website/pull/4537</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/commits/5a6a4769bb54c6f971e57987dcd76eaa7e86412b" class="commit-link">5a6a476</a>  Rename path for changeset API subscription methods</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/commits/ac17bdf373cfb43384a7dd411cd0309b0098be9b" class="commit-link">ac17bdf</a>  Move mechanics of changeset subscriptions into the model</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/commits/6a494f56237edfd9dbedf574af3ca63d4f50cdcb" class="commit-link">6a494f5</a>  Add unsubscribe link to changeset notification mails</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/commits/f477c222d51413c9143ca68b4175aa2edc6a4fa8" class="commit-link">f477c22</a>  Add standard List-XXX headers to some notification messages</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/commits/58cada1712be3753633b89b5390b9ca8ff62f2e0" class="commit-link">58cada1</a>  Move scheduling of trace import and destruction to the model</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/commits/09986f814ed144b050c2ca6da144472fca18f1d1" class="commit-link">09986f8</a>  Reduce priority of multiple simulataneous trace imports</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files">20 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-debf59904131dc89a88ab44cbb1d6deaaa5a7d70c0507f674080df62f7c8e41f">app/abilities/ability.rb</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-6726f8601cd22886963fb41888b55956cae4f8124aa12c701da77c3add44d94c">app/controllers/api/changesets_controller.rb</a>
    (10)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-e84777f55861eeb73fed3029e0429118ff087b7dd2314e398acadc4157dbaa05">app/controllers/api/traces_controller.rb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-cf3fe9dc357f802fd9155582ffc8c6f71185065267991a2135323ad2d044b4f3">app/controllers/changesets_controller.rb</a>
    (29)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-2602c06a2618f83c1470c924563b55c738e3c94ffb6480e637ca0f4ce130eaba">app/controllers/traces_controller.rb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-55254045ba774e4c360d7bbfde054665072d2ab49abc3f21add15a37bba65a1c">app/mailers/user_mailer.rb</a>
    (30)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-33e24e983f7ae5829e0e919c3843ccaaa05be35610607ec2fd486636d2c14e56">app/models/changeset.rb</a>
    (12)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-49ff8e13eb2bff9ffd834dad7421f568b40186cb58b28e7eac6b3e9168ec8759">app/models/trace.rb</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-fba7159a4abd78f8b24f765a0c58ebe47a24be99e185c373175f20f612a5d781">app/views/browse/changeset.html.erb</a>
    (4)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-43c147b0d1bb60d0ef270319a4725f7fac57d4ce9b6af4c97f2816d2ec2a6320">app/views/changesets/_heading.html.erb</a>
    (15)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-89db784a69ce34647296dbc1281f9a6b3df9c3aed35aebb6ef1e634cd938118b">app/views/changesets/no_such_entry.html.erb</a>
    (5)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-3d1e0c846063a37ca7ea7f424a928397eb68c34167f7f7774d01a3ffab231d78">app/views/changesets/subscribe.html.erb</a>
    (12)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-25b0f3dc7541d72e4747a72ef7806f2fcea62b9700e4b2a3dce2308c22cb90e0">app/views/changesets/unsubscribe.html.erb</a>
    (12)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-6938f68652d92caabffeaa47ad9bfcbf1ab01eaf1d92f3b155f637b2dce0fe83">app/views/user_mailer/changeset_comment_notification.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-2b096b93bc554e4c55233ebecf0eff854b636ba6a05ad17ae4322edfded24a46">app/views/user_mailer/changeset_comment_notification.text.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (20)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-959bc9abc46a55332bb64d5155a79323afa75a50ec1a2137ddd22d926f62c6c5">config/routes.rb</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-e95198c7f7744be3ce9857db36d2374538ca7d64caaf0f6f85865d6752563ee9">test/controllers/api/changesets_controller_test.rb</a>
    (20)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-6cdb8b8fa44e422834c4815943a8e4933d6d09e4687f338d007daeff1a90daa9">test/controllers/changesets_controller_test.rb</a>
    (133)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4537/files#diff-2163547e010a93d2169abe3fa4cc015536a35e6c9964016b27f9e82b60d63c36">test/models/changeset_test.rb</a>
    (13)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4537.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4537.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4537.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4537.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/4537">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKFAGHZUMK7Z4TW5VTYVIM5RAVCNFSM6AAAAABDYESJBCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2TENBQGY3DQMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJL7SC67D64KK4HV6TYVIM5RA5CNFSM6AAAAABDYESJBCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIASY6TA.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/4537</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/4537",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4537",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>