Skip to content

Update createStore to allow for multiple approval modules

Jiaan Louw requested to merge 335964-refactor-create-approvals-store into master

What does this MR do?

This updates the createStore function to allow for multiple named approval modules.

This will be used in !66536 (merged) to allow the project approvals app to have both the approvals and approvalSettings modules needed for #335964 (closed).

Setup and testing

To test the group approval settings Vue application you need to:

  1. Have a GitLab Ultimate license.
  2. Enable the feature flag: echo "Feature.enable(:group_merge_request_approval_settings)" | rails c
  3. View the Merge request approvals at [GDK_HOST]/groups/gitlab-org/-/edit to confirm it's working.
  4. Checkout default branch and confirm again.

Screenshots or Screencasts (strongly suggested)

No visual changes.

Group approval settings [GDK_HOST]/groups/gitlab-org/-/edit

Before After
image image

Project approvals [GDK_HOST]/gitlab-org/gitlab-shell/edit

Before After
image image

MR approvals [GDK_HOST]/gitlab-org/gitlab-shell/-/merge_requests/1/edit

Before After
image image
All together
Kapture_2021-07-28_at_14.22.29

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • 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

Related to #335964 (closed)

Edited by Jiaan Louw

Merge request reports