Add creation limits for value streams and stages
What does this MR do and why?
Limits the creation of value streams and stages:
- Value streams limit: 50 per namespace
- Stages limit: 15 per value stream
related to #409609 (closed)
How to set up and validate locally
- Make sure you have premium license
- Change
Analytics::CycleAnalytics::ValueStream::MAX_VALUE_STREAMS_PER_NAMESPACE
constant to 0 and try to create a value stream in a group or project. - Change
Analytics::CycleAnalytics::Stage::MAX_STAGES_PER_VALUE_STREAM
to zero and try to create a stage in a value stream
On both cases nothing happens, if you check the response on browser development tools you will see the error message. We should have a follow-up to properly display these error on frontend.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Felipe Cardozo