No longer possible to edit Deploy Keys/Deploy Tokens without enabling Pipelines
Summary
Following the recent move of Deploy Tokens to the CI/CD tab in Project Settings, it is no longer possible to create or edit deploy keys or deploy tokens without enabling Pipelines.
Steps to reproduce
On Gitlab 12.9 or later, create a project, disable pipelines in "visibility settings".
Example Project
Not useful in context; you have to own the project to reproduce. The screenshot below was generated from drmoose/wiki-files-issue-example
What is the current bug behavior?
The "CI/CD" tab in project settings disappears. Deploy Keys / Deploy Tokens subsections of that tab are no longer reachable from the UI.
What is the expected correct behavior?
I'm not sure what makes the most sense from a UI perspective. Some possibilities:
- When Pipelines is off, the Deploy Tokens and Deploy Keys sections appear under "Repository" where they were before (this seems like it'd just be confusing and inconsistent)
- When Pipelines is off, CI/CD still shows in "Settings" but the other subsections are hidden
Relevant logs and/or screenshots
Output of checks
Gitlab.com
Possible fixes
The merge request that introduced this behavior is !25444 (merged). The easiest fix would be to just revert that, but I'm sure you had a reason for doing it.
Workaround
leave Pipelines "on" or just have to turn it on long enough to enable the UI element, make changes, and then turn it off again. The changes will stick.