Disable Compliance pipeline field in compliance frameworks for Premium licenses
Proposal
Since compliance pipelines are only available with the Ultimate license, we should not allow users to fill in that field in the compliance frameworks if they only have a Premium license. We should leave the field visible, but disabled, and add a note that it is available for ultimate subscriptions. We should also remove the example line under it, to reduce the focus on the field.
Implementation plan
- The form is located in this file
ee/app/assets/javascripts/groups/settings/compliance_frameworks/components/shared_form.vue - Add a new variable to
compliance_frameworks_form_datacalledhas_pipeline_access, which is a boolean checks that the group has ultimate subscription accessee/app/helpers/compliance_management/compliance_framework/group_settings_helper.rb
- Update the following two files to pass a variable as prop to
shared_form.vuecalledhasPipelineAccessee/app/assets/javascripts/groups/settings/compliance_frameworks/components/create_form.vueee/app/assets/javascripts/groups/settings/compliance_frameworks/components/edit_form.vue
- Update
gl-form-inputat line 207 to be shown conditionally based on thehasPipelineAccessprop - Add popopver component (docs) when field is disabled (text below to be updated once
@ereadhas revised)- Inline form text: available for Ultimate subscriptions
- Popover title: Ultimate only feature
- Popover text: Configure a compliance pipeline in a project via framework can make a separate to other projects. How to upgrade?
- Update specs
- Update docs
Edited by Nate Rosandich
