Commit fcf9f168 authored by nelbacha's avatar nelbacha

Checking pipeline subscription availability

This checks whether the pipeline subscription feature
is available before it is rendered. This allows users who don't
have access to this feature to not be presented with a 404 error.

See https://gitlab.com/gitlab-org/gitlab/-/issues/266938

Additionally, this adds **(PREMIUM)** to the docs' markdown, which
improves the visibility of it being a Premium feature.
parent b349f475
...@@ -305,7 +305,7 @@ Some features are not implemented yet. For example, support for environments. ...@@ -305,7 +305,7 @@ Some features are not implemented yet. For example, support for environments.
- `when` (only with `on_success`, `on_failure`, and `always` values) - `when` (only with `on_success`, `on_failure`, and `always` values)
- `extends` - `extends`
## Trigger a pipeline when an upstream project is rebuilt ## Trigger a pipeline when an upstream project is rebuilt **(PREMIUM)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/9045) in [GitLab Premium](https://about.gitlab.com/pricing/) 12.8. > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/9045) in [GitLab Premium](https://about.gitlab.com/pricing/) 12.8.
......
- return unless @project.feature_available?(:ci_project_subscriptions)
- expanded = expanded_by_default? - expanded = expanded_by_default?
%section.settings.no-animate#pipeline-subscriptions{ class: ('expanded' if expanded) } %section.settings.no-animate#pipeline-subscriptions{ class: ('expanded' if expanded) }
......
---
title: Adding check for pipeline subscription feature availability
merge_request: 46712
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment