You can use the `CI_JOB_TOKEN`[variable][predef] (used to authenticate
You can use the `CI_JOB_TOKEN`[variable][predef] (used to authenticate
with the [GitLab Container Registry][registry]) in the following cases.
with the [GitLab Container Registry][registry]) in the following cases.
#### When used with multi-project pipelines **(PREMIUM)**
#### When used with multi-project pipelines
> **Note**:
> - Use of `CI_JOB_TOKEN` for multi-project pipelines was [introduced][ee-2017] in [GitLab Premium][ee] 9.3.
The use of `CI_JOB_TOKEN` for multi-project pipelines was [introduced][ee-2017]
> - Use of `CI_JOB_TOKEN` for multi-project pipelines was [made available](https://gitlab.com/gitlab-org/gitlab/issues/31573) in all tiers in GitLab 12.4.
in [GitLab Premium][ee] 9.3.
This way of triggering can only be used when invoked inside `.gitlab-ci.yml`,
This way of triggering can only be used when invoked inside `.gitlab-ci.yml`,
and it creates a dependent pipeline relation visible on the
and it creates a dependent pipeline relation visible on the
> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/12079) in [GitLab Premium](https://about.gitlab.com/pricing/) 12.3 (enabled by default using the feature flags `productivity_analytics`, `productivity_analytics_scatterplot_enabled`).
> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/12079) in [GitLab Premium](https://about.gitlab.com/pricing/) 12.3.
Track development velocity with Productivity Analytics.
Track development velocity with Productivity Analytics.
...
@@ -52,3 +52,29 @@ The **Productivity Analytics** dashboard can be accessed only:
...
@@ -52,3 +52,29 @@ The **Productivity Analytics** dashboard can be accessed only:
- On [Premium or Silver tier](https://about.gitlab.com/pricing/) and above.
- On [Premium or Silver tier](https://about.gitlab.com/pricing/) and above.
- By users with [Reporter access](../permissions.md) and above.
- By users with [Reporter access](../permissions.md) and above.
## Enabling and disabling using feature flags
Productivity Analytics is:
-[Enabled by default](https://gitlab.com/gitlab-org/gitlab/merge_requests/18754) from GitLab 12.4,
but can be disabled using the following feature flags:
-`productivity_analytics`.
-`productivity_analytics_scatterplot_enabled`.
- Disabled by default in GitLab 12.3, but can be enabled using the following feature flag:
-`productivity_analytics`.
A GitLab administrator can:
- Disable this feature from GitLab 12.4 by running the follow in a Rails console:
@@ -123,7 +123,7 @@ describe Admin::UsersController do
...
@@ -123,7 +123,7 @@ describe Admin::UsersController do
put:deactivate,params: {id: user.username}
put:deactivate,params: {id: user.username}
user.reload
user.reload
expect(user.deactivated?).tobe_falsey
expect(user.deactivated?).tobe_falsey
expect(flash[:notice]).toeq("The user you are trying to deactivate has been active in the past 14 days and cannot be deactivated")
expect(flash[:notice]).toeq("The user you are trying to deactivate has been active in the past #{::User::MINIMUM_INACTIVE_DAYS} days and cannot be deactivated")