Skip to content

Add creation limits for value streams and stages

Felipe Cardozo requested to merge issue_409609 into master

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

  1. Make sure you have premium license
  2. Change Analytics::CycleAnalytics::ValueStream::MAX_VALUE_STREAMS_PER_NAMESPACE constant to 0 and try to create a value stream in a group or project.
  3. 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.

Edited by Felipe Cardozo

Merge request reports

Loading