Commit 9fdfbd55 authored by GitLab Bot's avatar GitLab Bot

Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-10-31

# Conflicts:
#	app/assets/javascripts/vue_merge_request_widget/components/mr_widget_pipeline.vue
#	app/models/blob.rb
#	locale/gitlab.pot
#	spec/javascripts/vue_mr_widget/mock_data.js

[ci skip]
parents c52b1d48 418de3fc
import $ from 'jquery'; import $ from 'jquery';
import { slugifyWithHyphens } from './lib/utils/text_utility';
export default class Group { export default class Group {
constructor() { constructor() {
...@@ -7,17 +8,18 @@ export default class Group { ...@@ -7,17 +8,18 @@ export default class Group {
this.updateHandler = this.update.bind(this); this.updateHandler = this.update.bind(this);
this.resetHandler = this.reset.bind(this); this.resetHandler = this.reset.bind(this);
if (this.groupName.val() === '') { if (this.groupName.val() === '') {
this.groupPath.on('keyup', this.updateHandler); this.groupName.on('keyup', this.updateHandler);
this.groupName.on('keydown', this.resetHandler); this.groupPath.on('keydown', this.resetHandler);
} }
} }
update() { update() {
this.groupName.val(this.groupPath.val()); const slug = slugifyWithHyphens(this.groupName.val());
this.groupPath.val(slug);
} }
reset() { reset() {
this.groupPath.off('keyup', this.updateHandler); this.groupName.off('keyup', this.updateHandler);
this.groupName.off('keydown', this.resetHandler); this.groupPath.off('keydown', this.resetHandler);
} }
} }
<script> <script>
import { s__, sprintf } from '~/locale'; import { s__, sprintf } from '~/locale';
import eventHub from '../event_hub'; import eventHub from '../event_hub';
import icon from '../../vue_shared/components/icon.vue'; import Icon from '../../vue_shared/components/icon.vue';
import tooltip from '../../vue_shared/directives/tooltip'; import tooltip from '../../vue_shared/directives/tooltip';
import GlCountdown from '~/vue_shared/components/gl_countdown.vue'; import GlCountdown from '~/vue_shared/components/gl_countdown.vue';
...@@ -10,7 +10,7 @@ export default { ...@@ -10,7 +10,7 @@ export default {
tooltip, tooltip,
}, },
components: { components: {
icon, Icon,
GlCountdown, GlCountdown,
}, },
props: { props: {
......
<script> <script>
import tooltip from '../../vue_shared/directives/tooltip'; import tooltip from '../../vue_shared/directives/tooltip';
import icon from '../../vue_shared/components/icon.vue'; import Icon from '../../vue_shared/components/icon.vue';
export default { export default {
directives: { directives: {
tooltip, tooltip,
}, },
components: { components: {
icon, Icon,
}, },
props: { props: {
artifacts: { artifacts: {
......
...@@ -88,25 +88,25 @@ export default { ...@@ -88,25 +88,25 @@ export default {
class="table-section section-10 js-pipeline-status pipeline-status" class="table-section section-10 js-pipeline-status pipeline-status"
role="rowheader" role="rowheader"
> >
Status {{ s__('Pipeline|Status') }}
</div> </div>
<div <div
class="table-section section-15 js-pipeline-info pipeline-info" class="table-section section-15 js-pipeline-info pipeline-info"
role="rowheader" role="rowheader"
> >
Pipeline {{ s__('Pipeline|Pipeline') }}
</div> </div>
<div <div
class="table-section section-20 js-pipeline-commit pipeline-commit" class="table-section section-20 js-pipeline-commit pipeline-commit"
role="rowheader" role="rowheader"
> >
Commit {{ s__('Pipeline|Commit') }}
</div> </div>
<div <div
class="table-section section-20 js-pipeline-stages pipeline-stages" class="table-section section-20 js-pipeline-stages pipeline-stages"
role="rowheader" role="rowheader"
> >
Stages {{ s__('Pipeline|Stages') }}
</div> </div>
</div> </div>
<pipelines-table-row-component <pipelines-table-row-component
......
...@@ -261,7 +261,7 @@ export default { ...@@ -261,7 +261,7 @@ export default {
class="table-mobile-header" class="table-mobile-header"
role="rowheader" role="rowheader"
> >
Status {{ s__('Pipeline|Status') }}
</div> </div>
<div class="table-mobile-content"> <div class="table-mobile-content">
<ci-badge <ci-badge
...@@ -279,8 +279,9 @@ export default { ...@@ -279,8 +279,9 @@ export default {
<div class="table-section section-20"> <div class="table-section section-20">
<div <div
class="table-mobile-header" class="table-mobile-header"
role="rowheader"> role="rowheader"
Commit >
{{ s__('Pipeline|Commit') }}
</div> </div>
<div class="table-mobile-content"> <div class="table-mobile-content">
<commit-component <commit-component
...@@ -298,8 +299,9 @@ export default { ...@@ -298,8 +299,9 @@ export default {
<div class="table-section section-wrap section-20 stage-cell"> <div class="table-section section-wrap section-20 stage-cell">
<div <div
class="table-mobile-header" class="table-mobile-header"
role="rowheader"> role="rowheader"
Stages >
{{ s__('Pipeline|Stages') }}
</div> </div>
<div class="table-mobile-content"> <div class="table-mobile-content">
<template v-if="pipeline.details.stages.length > 0"> <template v-if="pipeline.details.stages.length > 0">
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
class="table-mobile-header" class="table-mobile-header"
role="rowheader" role="rowheader"
> >
Duration {{ s__('Pipeline|Duration') }}
</div> </div>
<div class="table-mobile-content"> <div class="table-mobile-content">
<p <p
...@@ -87,7 +87,8 @@ export default { ...@@ -87,7 +87,8 @@ export default {
v-tooltip v-tooltip
:title="tooltipTitle(finishedTime)" :title="tooltipTitle(finishedTime)"
data-placement="top" data-placement="top"
data-container="body"> data-container="body"
>
{{ timeFormated(finishedTime) }} {{ timeFormated(finishedTime) }}
</time> </time>
</p> </p>
......
...@@ -226,7 +226,7 @@ export class SearchAutocomplete { ...@@ -226,7 +226,7 @@ export class SearchAutocomplete {
icon, icon,
text: term, text: term,
template: s__('SearchAutocomplete|in all GitLab'), template: s__('SearchAutocomplete|in all GitLab'),
url: `/search?search=${term}`, url: `${gon.relative_url_root}/search?search=${term}`,
}); });
if (template) { if (template) {
...@@ -234,7 +234,7 @@ export class SearchAutocomplete { ...@@ -234,7 +234,7 @@ export class SearchAutocomplete {
icon, icon,
text: term, text: term,
template, template,
url: `/search?search=${term}&project_id=${this.projectInputEl.val()}&group_id=${this.groupInputEl.val()}`, url: `${gon.relative_url_root}/search?search=${term}&project_id=${this.projectInputEl.val()}&group_id=${this.groupInputEl.val()}`,
}); });
} }
} }
......
...@@ -72,6 +72,7 @@ export default { ...@@ -72,6 +72,7 @@ export default {
linkEnd: '</a>', linkEnd: '</a>',
}); });
}, },
<<<<<<< HEAD
/* We typically set defaults ([]) in the store or prop declarations, but because triggered /* We typically set defaults ([]) in the store or prop declarations, but because triggered
* and triggeredBy are appended to `pipeline`, we can't set defaults in the store, and we * and triggeredBy are appended to `pipeline`, we can't set defaults in the store, and we
* need to check their length here to prevent initializing linked-pipeline-mini-lists * need to check their length here to prevent initializing linked-pipeline-mini-lists
...@@ -83,6 +84,8 @@ export default { ...@@ -83,6 +84,8 @@ export default {
const response = this.pipeline.triggered_by; const response = this.pipeline.triggered_by;
return response ? [response] : []; return response ? [response] : [];
}, },
=======
>>>>>>> upstream/master
}, },
}; };
</script> </script>
......
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
# Blob is a Rails-specific wrapper around Gitlab::Git::Blob, SnippetBlob and Ci::ArtifactBlob # Blob is a Rails-specific wrapper around Gitlab::Git::Blob, SnippetBlob and Ci::ArtifactBlob
class Blob < SimpleDelegator class Blob < SimpleDelegator
<<<<<<< HEAD
prepend EE::Blob prepend EE::Blob
=======
>>>>>>> upstream/master
include Presentable include Presentable
include BlobLanguageFromGitAttributes include BlobLanguageFromGitAttributes
......
- @hide_breadcrumbs = true - @hide_breadcrumbs = true
- @hide_top_links = true - @hide_top_links = true
- page_title 'New Group' - page_title _('New Group')
- header_title "Groups", dashboard_groups_path - header_title _("Groups"), dashboard_groups_path
.page-title-holder
%h1.page-title= _('New group')
.row.prepend-top-default .row.prepend-top-default
.col-lg-3.profile-settings-sidebar .col-lg-3.profile-settings-sidebar
%h4.prepend-top-0
= _('New group')
%p %p
- group_docs_path = help_page_path('user/group/index') - group_docs_path = help_page_path('user/group/index')
- group_docs_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: group_docs_path } - group_docs_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: group_docs_path }
...@@ -15,24 +15,29 @@ ...@@ -15,24 +15,29 @@
- subgroup_docs_path = help_page_path('user/group/subgroups/index') - subgroup_docs_path = help_page_path('user/group/subgroups/index')
- subgroup_docs_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: subgroup_docs_path } - subgroup_docs_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: subgroup_docs_path }
= s_('Groups can also be nested by creating %{subgroup_docs_link_start}subgroups%{subgroup_docs_link_end}.').html_safe % { subgroup_docs_link_start: subgroup_docs_link_start, subgroup_docs_link_end: '</a>'.html_safe } = s_('Groups can also be nested by creating %{subgroup_docs_link_start}subgroups%{subgroup_docs_link_end}.').html_safe % { subgroup_docs_link_start: subgroup_docs_link_start, subgroup_docs_link_end: '</a>'.html_safe }
%p
= _('Projects that belong to a group are prefixed with the group namespace. Existing projects may be moved into a group.')
.col-lg-9 .col-lg-9
= form_for @group, html: { class: 'group-form gl-show-field-errors' } do |f| = form_for @group, html: { class: 'group-form gl-show-field-errors' } do |f|
= form_errors(@group) = form_errors(@group)
= render 'shared/group_form', f: f, autofocus: true = render 'shared/group_form', f: f, autofocus: true
.form-group.row.group-description-holder .row
= f.label :avatar, "Group avatar", class: 'col-form-label col-sm-2' .form-group.group-description-holder.col-sm-12
.col-sm-10 = f.label :avatar, _("Group avatar"), class: 'label-bold'
= render 'shared/choose_group_avatar_button', f: f %div
= render 'shared/choose_group_avatar_button', f: f
= render 'shared/old_visibility_level', f: f, visibility_level: @group.visibility_level, can_change_visibility_level: can_change_group_visibility_level?(@group), form_model: @group, with_label: false
= render 'create_chat_team', f: f if Gitlab.config.mattermost.enabled .form-group.col-sm-12
%label.label-bold
= _('Visibility level')
%p
= _('Who will be able to see this group?')
= link_to _('View the documentation'), help_page_path("public_access/public_access"), target: '_blank'
= render 'shared/visibility_level', f: f, visibility_level: @group.visibility_level, can_change_visibility_level: can_change_group_visibility_level?(@group), form_model: @group, with_label: false
.form-group.row = render 'create_chat_team', f: f if Gitlab.config.mattermost.enabled
.offset-sm-2.col-sm-10
= render 'shared/group_tips'
.form-actions .form-actions
= f.submit 'Create group', class: "btn btn-success" = f.submit 'Create group', class: "btn btn-success"
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
Layout width Layout width
= f.select :layout, layout_choices, {}, class: 'form-control' = f.select :layout, layout_choices, {}, class: 'form-control'
.form-text.text-muted .form-text.text-muted
Choose between fixed (max. 1200px) and fluid (100%) application layout. Choose between fixed (max. 1280px) and fluid (100%) application layout.
.form-group .form-group
= f.label :dashboard, class: 'label-bold' do = f.label :dashboard, class: 'label-bold' do
Default dashboard Default dashboard
...@@ -56,6 +56,6 @@ ...@@ -56,6 +56,6 @@
Project overview content Project overview content
= f.select :project_view, project_view_choices, {}, class: 'form-control' = f.select :project_view, project_view_choices, {}, class: 'form-control'
.form-text.text-muted .form-text.text-muted
Choose what content you want to see on a project’s overview page Choose what content you want to see on a project’s overview page.
.form-group .form-group
= f.submit 'Save changes', class: 'btn btn-success' = f.submit 'Save changes', class: 'btn btn-success'
...@@ -2,10 +2,19 @@ ...@@ -2,10 +2,19 @@
- group_path = root_url - group_path = root_url
- group_path << parent.full_path + '/' if parent - group_path << parent.full_path + '/' if parent
.form-group.row .row
= f.label :path, class: 'col-form-label col-sm-2' do .form-group.group-name-holder.col-sm-12
Group path = f.label :name, class: 'label-bold' do
.col-sm-10 = _("Group name")
= f.text_field :name, placeholder: 'My Awesome Group', class: 'form-control input-lg',
required: true,
title: _('Please fill in a descriptive name for your group.'),
autofocus: true
.row
.form-group.col-xs-12.col-sm-8
= f.label :path, class: 'label-bold' do
= _("Group URL")
.input-group.gl-field-error-anchor .input-group.gl-field-error-anchor
.group-root-path.input-group-prepend.has-tooltip{ title: group_path, :'data-placement' => 'bottom' } .group-root-path.input-group-prepend.has-tooltip{ title: group_path, :'data-placement' => 'bottom' }
.input-group-text .input-group-text
...@@ -13,10 +22,10 @@ ...@@ -13,10 +22,10 @@
- if parent - if parent
%strong= parent.full_path + '/' %strong= parent.full_path + '/'
= f.hidden_field :parent_id = f.hidden_field :parent_id
= f.text_field :path, placeholder: 'open-source', class: 'form-control', = f.text_field :path, placeholder: 'my-awesome-group', class: 'form-control',
autofocus: local_assigns[:autofocus] || false, required: true, autofocus: local_assigns[:autofocus] || false, required: true,
pattern: Gitlab::PathRegex::NAMESPACE_FORMAT_REGEX_JS, pattern: Gitlab::PathRegex::NAMESPACE_FORMAT_REGEX_JS,
title: 'Please choose a group path with no special characters.', title: _('Please choose a group URL with no special characters.'),
"data-bind-in" => "#{'create_chat_team' if Gitlab.config.mattermost.enabled}" "data-bind-in" => "#{'create_chat_team' if Gitlab.config.mattermost.enabled}"
- if @group.persisted? - if @group.persisted?
...@@ -25,23 +34,17 @@ ...@@ -25,23 +34,17 @@
= succeed '.' do = succeed '.' do
= link_to 'Learn more', help_page_path('user/group/index', anchor: 'changing-a-groups-path'), target: '_blank' = link_to 'Learn more', help_page_path('user/group/index', anchor: 'changing-a-groups-path'), target: '_blank'
.form-group.row.group-name-holder
= f.label :name, class: 'col-form-label col-sm-2' do
Group name
.col-sm-10
= f.text_field :name, class: 'form-control',
required: true,
title: 'You can choose a descriptive name different from the path.'
- if @group.persisted? - if @group.persisted?
.form-group.row.group-name-holder .row
= f.label :id, class: 'col-form-label col-sm-2' do .form-group.group-name-holder.col-sm-8
= _("Group ID") = f.label :id, class: 'label-bold' do
.col-sm-10 = _("Group ID")
= f.text_field :id, class: 'form-control', readonly: true = f.text_field :id, class: 'form-control', readonly: true
.form-group.row.group-description-holder .row
= f.label :description, class: 'col-form-label col-sm-2' .form-group.group-description-holder.col-sm-8
.col-sm-10 = f.label :description, class: 'label-bold' do
= _("Group description")
%span (optional)
= f.text_area :description, maxlength: 250, = f.text_area :description, maxlength: 250,
class: 'form-control js-gfm-input', rows: 4 class: 'form-control js-gfm-input', rows: 4
---
title: 'Create new group: Rename form fields and update UI'
merge_request:
author:
type: other
---
title: Fix incompatibility with IE11 due to non-transpiled gitlab-ui components
merge_request: 22695
author:
type: fixed
---
title: Adds missing i18n to pipelines table
merge_request:
author:
type: other
---
title: Enable frozen string for lib/gitlab/ci
merge_request:
author: gfyoung
type: performance
---
title: Fix search "all in GitLab" not working with relative URLs
merge_request: 22644
author:
type: fixed
...@@ -8,6 +8,8 @@ en: ...@@ -8,6 +8,8 @@ en:
issue_link: issue_link:
source: Source issue source: Source issue
target: Target issue target: Target issue
group:
path: Group URL
errors: errors:
messages: messages:
label_already_exists_at_group_level: "already exists at group level for %{group}. Please choose another one." label_already_exists_at_group_level: "already exists at group level for %{group}. Please choose another one."
......
...@@ -152,14 +152,31 @@ in RC1, followed by the feature flag being removed in RC2. This in turn means ...@@ -152,14 +152,31 @@ in RC1, followed by the feature flag being removed in RC2. This in turn means
the feature will be stable by the time we publish a stable package around the the feature will be stable by the time we publish a stable package around the
22nd of the month. 22nd of the month.
## Undefined feature flags default to "on" ## Implicit feature flags
By default, the [`Project#feature_available?`][project-fa], The [`Project#feature_available?`][project-fa],
[`Namespace#feature_available?`][namespace-fa] (EE), and [`Namespace#feature_available?`][namespace-fa] (EE), and
[`License.feature_available?`][license-fa] (EE) methods will check if the [`License.feature_available?`][license-fa] (EE) methods all implicitly check for
specified feature is behind a feature flag. Unless the feature is explicitly a feature flag by the same name as the provided argument.
disabled or limited to a percentage of users, the feature flag check will
default to `true`. For example if a feature is license-gated, there's no need to add an additional
explicit feature flag check since the flag will be checked as part of the
`License.feature_available?` call. Similarly, there's no need to "clean up" a
feature flag once the feature has reached general availability.
You'd still want to use an explicit `Feature.enabled?` check if your new feature
isn't gated by a License or Plan.
[project-fa]: https://gitlab.com/gitlab-org/gitlab-ee/blob/4cc1c62918aa4c31750cb21dfb1a6c3492d71080/app/models/project_feature.rb#L63-68
[namespace-fa]: https://gitlab.com/gitlab-org/gitlab-ee/blob/4cc1c62918aa4c31750cb21dfb1a6c3492d71080/ee/app/models/ee/namespace.rb#L71-85
[license-fa]: https://gitlab.com/gitlab-org/gitlab-ee/blob/4cc1c62918aa4c31750cb21dfb1a6c3492d71080/ee/app/models/license.rb#L293-300
### Undefined feature flags default to "on"
An important side-effect of the [implicit feature
flags][#implicit-feature-flags] mentioned above is that unless the feature is
explicitly disabled or limited to a percentage of users, the feature flag check
will default to `true`.
As an example, if you were to ship the backend half of a feature behind a flag, As an example, if you were to ship the backend half of a feature behind a flag,
you'd want to explicitly disable that flag until the frontend half is also ready you'd want to explicitly disable that flag until the frontend half is also ready
...@@ -171,7 +188,3 @@ to be shipped. You can do this via ChatOps: ...@@ -171,7 +188,3 @@ to be shipped. You can do this via ChatOps:
Note that you can do this at any time, even before the merge request using the Note that you can do this at any time, even before the merge request using the
flag has been merged! flag has been merged!
[project-fa]: https://gitlab.com/gitlab-org/gitlab-ee/blob/4cc1c62918aa4c31750cb21dfb1a6c3492d71080/app/models/project_feature.rb#L63-68
[namespace-fa]: https://gitlab.com/gitlab-org/gitlab-ee/blob/4cc1c62918aa4c31750cb21dfb1a6c3492d71080/ee/app/models/ee/namespace.rb#L71-85
[license-fa]: https://gitlab.com/gitlab-org/gitlab-ee/blob/4cc1c62918aa4c31750cb21dfb1a6c3492d71080/ee/app/models/license.rb#L293-300
This diff is collapsed.
...@@ -42,7 +42,11 @@ not send any project names, usernames, or any other specific data. The ...@@ -42,7 +42,11 @@ not send any project names, usernames, or any other specific data. The
information from the usage ping is not anonymous, it is linked to the hostname information from the usage ping is not anonymous, it is linked to the hostname
of the instance. of the instance.
You can view the exact JSON payload in the administration panel. You can view the exact JSON payload in the administration panel. To view the payload:
1. Go to the **Admin area** (spanner symbol on the top bar).
1. Expand **Settings** in the left sidebar and click on **Metrics and profiling**.
1. Expand **Usage statistics** and click on the **Preview payload** button.
### Deactivate the usage ping ### Deactivate the usage ping
......
...@@ -114,6 +114,14 @@ To add an existing Kubernetes cluster to your project: ...@@ -114,6 +114,14 @@ To add an existing Kubernetes cluster to your project:
After a couple of minutes, your cluster will be ready to go. You can now proceed After a couple of minutes, your cluster will be ready to go. You can now proceed
to install some [pre-defined applications](#installing-applications). to install some [pre-defined applications](#installing-applications).
To determine the:
- API URL, run `kubectl cluster-info | grep 'Kubernetes master' | awk '/http/ {print $NF}'`.
- Token:
1. List the secrets by running: `kubectl get secrets`. Note the name of the secret you need the token for.
1. Get the token for the appropriate secret by running: `kubectl get secret <SECRET_NAME> -o jsonpath="{['data']['token']}" | base64 -D`.
- CA certificate, run `kubectl get secret <secret name> -o jsonpath="{['data']['ca\.crt']}" | base64 -D`.
## Security implications ## Security implications
CAUTION: **Important:** CAUTION: **Important:**
......
...@@ -10,31 +10,32 @@ You can find notification settings under the user profile. ...@@ -10,31 +10,32 @@ You can find notification settings under the user profile.
Notification settings are divided into three groups: Notification settings are divided into three groups:
* Global Settings - Global settings
* Group Settings - Group settings
* Project Settings - Project settings
Each of these settings have levels of notification: Each of these settings have levels of notification:
* Disabled - turns off notifications - Watch: Receive notifications for any activity.
* Participating - receive notifications from related resources - On Mention: Receive notifications when `@mentioned` in comments.
* Watch - receive notifications from projects or groups user is a member of - Participate: Receive notifications for threads you have participated in.
* Global - notifications as set at the global settings - Disabled: Turns off notifications.
* Custom - user will receive notifications when mentioned, is participant and custom selected events. - Custom: Receive notifications for custom selected events.
- Global: For groups and projects, notifications as per global settings.
#### Global Settings ### Global Settings
Global Settings are at the bottom of the hierarchy. Global settings are at the bottom of the hierarchy.
Any setting set here will be overridden by a setting at the group or a project level. Any setting set here will be overridden by a setting at the group or a project level.
Group or Project settings can use `global` notification setting which will then use Group or Project settings can use `global` notification setting which will then use
anything that is set at Global Settings. anything that is set at Global Settings.
#### Group Settings ### Group Settings
![notification settings](img/notification_group_settings.png) ![notification settings](img/notification_group_settings.png)
Group Settings are taking precedence over Global Settings but are on a level below Project or Subgroup Settings: Group settings are taking precedence over Global Settings but are on a level below Project or Subgroup settings:
``` ```
Group < Subgroup < Project Group < Subgroup < Project
...@@ -46,11 +47,11 @@ Organization like this is suitable for users that belong to different groups but ...@@ -46,11 +47,11 @@ Organization like this is suitable for users that belong to different groups but
same need for being notified for every group they are member of. same need for being notified for every group they are member of.
These settings can be configured on group page under the name of the group. It will be the dropdown with the bell icon. They can also be configured on the user profile notifications dropdown. These settings can be configured on group page under the name of the group. It will be the dropdown with the bell icon. They can also be configured on the user profile notifications dropdown.
#### Project Settings ### Project Settings
![notification settings](img/notification_project_settings.png) ![notification settings](img/notification_project_settings.png)
Project Settings are at the top level and any setting placed at this level will take precedence of any Project settings are at the top level and any setting placed at this level will take precedence of any
other setting. other setting.
This is suitable for users that have different needs for notifications per project basis. This is suitable for users that have different needs for notifications per project basis.
These settings can be configured on project page under the name of the project. It will be the dropdown with the bell icon. They can also be configured on the user profile notifications dropdown. These settings can be configured on project page under the name of the project. It will be the dropdown with the bell icon. They can also be configured on the user profile notifications dropdown.
...@@ -73,11 +74,12 @@ Below is the table of events users can be notified of: ...@@ -73,11 +74,12 @@ Below is the table of events users can be notified of:
### Issue / Merge request events ### Issue / Merge request events
In most of the below cases, the notification will be sent to: In most of the below cases, the notification will be sent to:
- Participants: - Participants:
- the author and assignee of the issue/merge request - the author and assignee of the issue/merge request
- authors of comments on the issue/merge request - authors of comments on the issue/merge request
- anyone mentioned by `@username` in the issue/merge request title or description - anyone mentioned by `@username` in the issue/merge request title or description
- anyone mentioned by `@username` in any of the comments on the issue/merge request - anyone mentioned by `@username` in any of the comments on the issue/merge request
...with notification level "Participating" or higher ...with notification level "Participating" or higher
- Watchers: users with notification level "Watch" - Watchers: users with notification level "Watch"
- Subscribers: anyone who manually subscribed to the issue/merge request - Subscribers: anyone who manually subscribed to the issue/merge request
...@@ -130,16 +132,19 @@ Notification emails include headers that provide extra content about the notific ...@@ -130,16 +132,19 @@ Notification emails include headers that provide extra content about the notific
| X-GitLab-NotificationReason | The reason for being notified. "mentioned", "assigned", etc | | X-GitLab-NotificationReason | The reason for being notified. "mentioned", "assigned", etc |
#### X-GitLab-NotificationReason #### X-GitLab-NotificationReason
This header holds the reason for the notification to have been sent out, This header holds the reason for the notification to have been sent out,
where reason can be `mentioned`, `assigned`, `own_activity`, etc. where reason can be `mentioned`, `assigned`, `own_activity`, etc.
Only one reason is sent out according to its priority: Only one reason is sent out according to its priority:
- `own_activity` - `own_activity`
- `assigned` - `assigned`
- `mentioned` - `mentioned`
The reason in this header will also be shown in the footer of the notification email. For example an email with the The reason in this header will also be shown in the footer of the notification email. For example an email with the
reason `assigned` will have this sentence in the footer: reason `assigned` will have this sentence in the footer:
`"You are receiving this email because you have been assigned an item on {configured GitLab hostname}"` `"You are receiving this email because you have been assigned an item on {configured GitLab hostname}"`
**Note: Only reasons listed above have been implemented so far** NOTE: **Note:**
Further implementation is [being discussed here](https://gitlab.com/gitlab-org/gitlab-ce/issues/42062) Only reasons listed above have been implemented so far.
Further implementation is [being discussed](https://gitlab.com/gitlab-org/gitlab-ce/issues/42062).
# frozen_string_literal: true
# ANSI color library # ANSI color library
# #
# Implementation per http://en.wikipedia.org/wiki/ANSI_escape_code # Implementation per http://en.wikipedia.org/wiki/ANSI_escape_code
...@@ -265,7 +267,7 @@ module Gitlab ...@@ -265,7 +267,7 @@ module Gitlab
def reset_state def reset_state
@offset = 0 @offset = 0
@n_open_tags = 0 @n_open_tags = 0
@out = '' @out = +''
reset reset
end end
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Build module Build
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Build module Build
......
# frozen_string_literal: true
require 'zlib' require 'zlib'
require 'json' require 'json'
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Build module Build
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Build module Build
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Build module Build
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Build module Build
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Build module Build
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Build module Build
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Build module Build
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Build module Build
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Build module Build
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Build module Build
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Build module Build
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Build module Build
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Charts module Charts
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
# #
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class Config class Config
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
class CronParser class CronParser
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci::MaskSecret module Ci::MaskSecret
class << self class << self
def mask!(value, token) def mask!(value, token)
return value unless value.present? && token.present? return value unless value.present? && token.present?
# We assume 'value' must be mutable, given
# that frozen string is enabled.
value.gsub!(token, 'x' * token.length) value.gsub!(token, 'x' * token.length)
value value
end end
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Model module Model
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
module Gitlab # rubocop:disable Naming/FileName # rubocop:disable Naming/FileName
# frozen_string_literal: true
module Gitlab
module Ci module Ci
module Pipeline module Pipeline
module Chain module Chain
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
# frozen_string_literal: true
module Gitlab module Gitlab
module Ci module Ci
module Pipeline module Pipeline
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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