Skip to content

Support flexible rollout strategy in the UX

Amy Troschinetz requested to merge feature-flags-flexible-rollout-ux into master

What does this MR do?

Related to #36380 (closed)

Provides the frontend implementation following on from the API implementation.

Screenshots

Included in this MR are UX tweaks to fix the wonky alignment noticed by @jagood.

Overview of changes:

  1. Descriptions have been moved to below the main content for each form group. This is the intended location for form group descriptions. See https://gitlab-org.gitlab.io/gitlab-ui/?path=/story/base-form-form-group--default for more details.
  2. A small callout was added to "Percent of users" to consider using "Percent rollout" instead. This could perhaps be a deprecation warning instead. I wasn't sure here and it would be good to get some UX guidance on this change.
  3. Default percentage values "100" has been added. Before it would appear blank before being set.
  4. "Based on" defaults to "Default".
  5. In the all description copy I uniformly use sentences that do not end with a period.
  6. When "User List" strategy has a warning, show the warning. Otherwise show the description note. Don't show both.
Strategy Before After
All users before-all-users all-users
Percent of users before-percent-users Screen_Shot_2020-10-08_at_11.09.36_AM
Percent rollout New feature added in this MR percent-rollout
User IDs before-user-ids user-ids
User List (Error) before-user-list-none user-list-none
User List (Note) before-user-list-some user-list-some

There are also some new badges that will be shown in the feature flag list:

Note: For the following screenshots, pretend that the "id" is "ID". I made that change but I haven't gone back and re-captured all these screenshots.

Based on Badge
Available ID by-available-id
User ID by-user-id
Session ID by-session-id
Random randomly

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 Amy Troschinetz

Merge request reports