Show empty state for external CI config in pipeline editor
What does this MR do and why?
For #364030 (closed)
This adds a special empty state for when the user visits the pipeline editor when the project's CI config is located outside the project (either it's in another project or in another site). In these cases, the pipeline editor will not allow the user to edit the file since it doesn't have access to it.
Screenshots or screen recordings
State | Screenshot |
---|---|
|
|
With no CI config | |
With a CI config in the same project |
How to set up and validate locally
- Follow the instructions to set your project's CI config to link outside the project. Refer to the examples in the docs.
- To test for an CI config file located in another project, you can use
.gitlab-ci.yml@group/project
. - To test for a remote CI config file, you can use
https://example.org/file.yml
.
- To test for an CI config file located in another project, you can use
- Go to the Pipeline Editor (CI/CD > Editor)
- Verify that the empty state shows up without the CTA button.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Mireya Andres