Skip to content

Add Validations for Operations Strategy Model

Jason Goodman requested to merge strategy-validations into master

What does this MR do?

Add validations for the Operations::Strategy model.

Validate that name is one of the 3 Unleash strategies we currently support.

Validate that parameters are valid for the given strategy type.

Reference: https://unleash.github.io/docs/activation_strategy

This copies the current validations for the Operations::FeatureFlagScope model, which is what our current feature flag implementation uses.

Issue: #204895 (closed)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Yorick Peterse

Merge request reports

Loading