Allow setting groupId on rollout strategies
The feature flag form hardcoded groupId: 'default' on the Percent rollout (flexibleRollout) and Percent of users (gradualRolloutUserId) strategies. Users couldn't give a flag its own rollout bucket, and editing the percentage or stickiness silently reset a groupId set through the API.
Both strategies now show an editable Group ID field, validated client-side with the backend rule (/^[a-z]{1,32}$/, see app/models/operations/feature_flags/strategy.rb). New strategies still default to default, and an existing groupId is kept when other parameters change. There are no backend changes. A per-flag default is discussed in #635497, and a feature spec for the reset bug is tracked in #635496.
Where to look: flexible_rollout.vue and percent_rollout.vue, GROUP_ID_REGEX in constants.js, three new FeatureFlags| strings in gitlab.pot (added by hand), and a paragraph in each strategy section of doc/operations/feature_flags.md.
Verified locally on a GitLab CE nightly instance with the branch assets (screenshots below), and jest spec/frontend/feature_flags under Vue 2 and VUE_VERSION=3 (30 suites, 303 tests each), eslint/prettier on the touched files.
Screenshots
Before is stock GitLab, After is this branch, with the same data reset before each run. All mobile steps first, then desktop.
Please keep Changelog: added in the squash commit.
Closes #635223 (closed)







































