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
- Checkout the branch
- Select one integration that uses DSL fields (e.g.
Pumble
) (settings/integrations/pumble
) - Change the integration's field (e.g.
Integrations::Pumble
) to useif
conditional - 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #366475 (closed)
Edited by Bojan Marjanovic