Skip to content

Validate that all or no analytics settings are defined

What does this MR do and why?

  • Adds a validation that ensures that either all, or none, of the project-level product analytics settings are defined for a project.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  • Create a new ultimate namespace.
  • Create a project within it.
  • Go to the project -> Settings -> Analytics
  • Expand Data Sources
  • Enter values in to some of the fields, but not all. Submit the form and assert that an error is shown.
  • Enter values in to none of the fields. Submit the form and assert that the form is saved.
  • Enter values in to all of the fields. Submit the form and assert that the form is saved.

Related to #456897 (closed)

Merge request reports