Add link to pipeline execution policy file
Why are we doing this work
- pipeline execution policies allow for users to link custom yaml files to implement whatever changes they want
- users want to be able to easily navigate to these custom files from the policy drawer and the policy editor
I'm often trying to jump from pipeline execution policies to the yaml file and it can be annoying. It would be great if we made it easier by generating links to take you straight to it. For example in the policy drawer:
Project could link to the project, path to the actual file containing the yml you want to edit.
For that matter, main could take you to the branch containing the latest files as well.
In the edit screen, could also be possible to make a link at least to the pipeline execution yaml.
Could also be nice if the root file path could take you there
Relevant links
Page | Screenshot |
---|---|
Policy drawer | |
Policy editor |
Non-functional requirements
-
Documentation: -
Feature flag: -
Performance: -
Testing:
Implementation plan
-
update humanzied actions to return data in a way to create link -
update details_drawer to render a GlLink for the properties and the appropriate links
Verification steps
- Navigate to a project/group => Secure => Policies => New policy => Pipeline execution policy => Create one with a file that exists
- Navigate to the project/group => Secure => Policies => Select the new policy
- Verify a user can navigate to the custom yml file referenced in the policy from the policy drawer
- Navigate to the policy in the policy editor
- Verify a user can navigate to the custom yml file referenced in the policy from the policy editor
Edited by Alexander Turinske