Backend: Add Limitable to group and project CI variables
Increase the limit for projects to 8000, and the limit for groups to 30000. Then add the
Limitable module to
When users are over the limit, return from the API a message that states
This project/group has XXX defined CI/CD variables, which is over the limit of XXX variables per project/group. To add new variables, you must reduce the number of defined variables.
To whomever picks this up - there is a RSpec shared examples named
includes Limitable concern that can be used to test the addition of Limitable to models. However, it sometimes creates a cross-database transaction. When you have an MR for your changes, make sure to add the pipeline:run-single-db label so the pipeline will catch these cross-database transactions before the MR is merged.
|Update the default limits||!109861 (merged)|