We want to prevent people from allocating a large number of unassigned Item IDs because we do not want to skip too many Item IDs.
If users try to generate too many IDs – regardless of what exactly is causing them to generate so many IDs – they should get a rate limit error, and no further IDs should be generated until the rate limit expires. The rate limit should be the same as the existing limit for page creation. See also T268625#6651847.
In order to do that we want to add a rate limit in front of the ID generator.
GIVEN an account creating a large number of new Items
WHEN generating too many new Item IDs over a short period of time
THEN the account should be rate limited
AND get an error for further requests
[ ] Item ID assignment is rate limited
[ ] there is one limit and it applies to all entity types
[ ] the limit is configured to be the same as the current page creation rate limit
**Tips to reproduce it**
Set the creation rate limit really low e.g. 1 per minute, that would raise an API error from the second Item created