Skip to content

Integrations field DSL: Add support for feature flags

What does this MR do and why?

As a part of the Integrations field DSL: Add support for feature... (#366475 - closed) we want to support FF for the DSL fields.

Here we're introducing a new if attribute for Integrations::Field, that accepts a Proc, and filters in/out based on the condition.

Screenshots or screen recordings

N/A

How to set up and validate locally

  1. Checkout the branch
  2. Select one integration that uses DSL fields (e.g. Pumble) (settings/integrations/pumble)
  3. Change the integration's field (e.g.Integrations::Pumble) to use if conditional
  4. Validate that changed field is visible/hidden from the settings page.
field :my_field,
      if: -> { Feature.enabled?(:my_feature_flag) },
      # ...

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #366475 (closed)

Edited by Bojan Marjanovic

Merge request reports

Loading