Skip to content

Commit ef96d56

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent 784d3f4 commit ef96d56

File tree

12 files changed

+93
-71
lines changed

12 files changed

+93
-71
lines changed

.codeclimate.yml

+15-25
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
engines:
2+
version: "2"
3+
plugins:
34
bundler-audit:
45
enabled: true
56
duplication:
@@ -8,33 +9,22 @@ engines:
89
languages:
910
- ruby
1011
- javascript
11-
ratings:
12-
paths:
13-
- Gemfile.lock
14-
- "**.erb"
15-
- "**.haml"
16-
- "**.rb"
17-
- "**.rhtml"
18-
- "**.slim"
19-
- "**.inc"
20-
- "**.js"
21-
- "**.jsx"
22-
- "**.module"
23-
exclude_paths:
24-
- config/
25-
- db/
26-
- features/
27-
- node_modules/
28-
- spec/
29-
- vendor/
12+
rubocop:
13+
enabled: false
14+
exclude_patterns:
15+
- "{ee/,jh/,}config/"
16+
- "{ee/,jh/,}db/"
17+
- "**/log/"
18+
- "**/node_modules/"
19+
- "**/spec/"
20+
- "**/tmp/"
21+
- "**/vendor/"
3022
- .yarn-cache/
31-
- tmp/
23+
- backups/
3224
- builds/
3325
- coverage/
26+
- file_hooks/
27+
- plugins/
3428
- public/
3529
- shared/
3630
- webpack-report/
37-
- log/
38-
- backups/
39-
- plugins/
40-
- file_hooks/

.gitlab/ci/rules.gitlab-ci.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,7 @@
716716
.rails:rules:decomposed-databases:
717717
rules:
718718
- <<: *if-merge-request-labels-run-decomposed
719+
- <<: *if-default-branch-schedule-nightly
719720

720721
.rails:rules:ee-and-foss-migration:
721722
rules:
@@ -1200,12 +1201,16 @@
12001201

12011202
.rails:rules:detect-previous-failed-tests:
12021203
rules:
1204+
- <<: *if-not-canonical-namespace
1205+
when: never
12031206
- <<: *if-merge-request-labels-run-all-rspec
12041207
- <<: *if-merge-request
12051208
changes: *code-backstage-patterns
12061209

12071210
.rails:rules:rerun-previous-failed-tests:
12081211
rules:
1212+
- <<: *if-not-canonical-namespace
1213+
when: never
12091214
- <<: *if-merge-request-labels-run-all-rspec
12101215
- <<: *if-merge-request
12111216
changes: *code-backstage-patterns
@@ -1507,9 +1512,10 @@
15071512
changes: *ci-review-patterns
15081513
- <<: *if-dot-com-gitlab-org-merge-request
15091514
changes: *frontend-patterns
1510-
allow_failure: true
15111515
- <<: *if-dot-com-gitlab-org-merge-request
1512-
changes: *code-qa-patterns
1516+
changes: *qa-patterns
1517+
- <<: *if-dot-com-gitlab-org-merge-request
1518+
changes: *code-patterns
15131519
allow_failure: true
15141520
- <<: *if-dot-com-ee-schedule-child-pipeline
15151521
allow_failure: true

GITALY_SERVER_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
156e65d1de93e779091a0915cf77b2aefa85fadf
1+
ba8bc12dd0ff83fc726c6c09ee0cb0ebc311a748

app/assets/javascripts/batch_comments/components/draft_note.vue

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
import { GlButton } from '@gitlab/ui';
2+
import { GlButton, GlSafeHtmlDirective } from '@gitlab/ui';
33
import { mapActions, mapGetters, mapState } from 'vuex';
44
import NoteableNote from '~/notes/components/noteable_note.vue';
55
import PublishButton from './publish_button.vue';
@@ -10,6 +10,9 @@ export default {
1010
PublishButton,
1111
GlButton,
1212
},
13+
directives: {
14+
SafeHtml: GlSafeHtmlDirective,
15+
},
1316
props: {
1417
draft: {
1518
type: Object,
@@ -72,6 +75,9 @@ export default {
7275
}
7376
},
7477
},
78+
safeHtmlConfig: {
79+
ADD_TAGS: ['use', 'gl-emoji'],
80+
},
7581
};
7682
</script>
7783
<template>
@@ -104,8 +110,8 @@ export default {
104110
<template v-if="!isEditingDraft">
105111
<div
106112
v-if="draftCommands"
113+
v-safe-html:[$options.safeHtmlConfig]="draftCommands"
107114
class="referenced-commands draft-note-commands"
108-
v-html="draftCommands /* eslint-disable-line vue/no-v-html */"
109115
></div>
110116

111117
<p class="draft-note-actions d-flex">

app/assets/javascripts/notes/components/note_body.vue

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script>
22
import $ from 'jquery';
3+
import { GlSafeHtmlDirective } from '@gitlab/ui';
34
import { escape } from 'lodash';
45
import { mapActions, mapGetters, mapState } from 'vuex';
56
@@ -19,6 +20,9 @@ export default {
1920
noteForm,
2021
Suggestions,
2122
},
23+
directives: {
24+
SafeHtml: GlSafeHtmlDirective,
25+
},
2226
mixins: [autosave],
2327
props: {
2428
note: {
@@ -144,6 +148,9 @@ export default {
144148
this.removeSuggestionInfoFromBatch(suggestionId);
145149
},
146150
},
151+
safeHtmlConfig: {
152+
ADD_TAGS: ['use', 'gl-emoji'],
153+
},
147154
};
148155
</script>
149156

@@ -163,11 +170,7 @@ export default {
163170
@addToBatch="addSuggestionToBatch"
164171
@removeFromBatch="removeSuggestionFromBatch"
165172
/>
166-
<div
167-
v-else
168-
class="note-text md"
169-
v-html="note.note_html /* eslint-disable-line vue/no-v-html */"
170-
></div>
173+
<div v-else v-safe-html:[$options.safeHtmlConfig]="note.note_html" class="note-text md"></div>
171174
<note-form
172175
v-if="isEditing"
173176
ref="noteForm"

app/assets/javascripts/projects/storage_counter/constants.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ export const PROJECT_STORAGE_TYPES = [
66
name: s__('UsageQuota|Artifacts'),
77
description: s__('UsageQuota|Pipeline artifacts and job artifacts, created with CI/CD.'),
88
warningMessage: s__(
9-
'UsageQuota|There is a known issue with Artifact storage where the total could be incorrect for some projects. More details and progress are available in %{warningLinkStart}the epic%{warningLinkEnd}.',
9+
'UsageQuota|Because of a known issue, the artifact total for some projects may be incorrect. For more details, read %{warningLinkStart}the epic%{warningLinkEnd}.',
1010
),
1111
warningLink: 'https://gitlab.com/groups/gitlab-org/-/epics/5380',
1212
},
1313
{
1414
id: 'lfsObjectsSize',
15-
name: s__('UsageQuota|LFS Storage'),
15+
name: s__('UsageQuota|LFS storage'),
1616
description: s__('UsageQuota|Audio samples, videos, datasets, and graphics.'),
1717
},
1818
{
@@ -23,7 +23,7 @@ export const PROJECT_STORAGE_TYPES = [
2323
{
2424
id: 'repositorySize',
2525
name: s__('UsageQuota|Repository'),
26-
description: s__('UsageQuota|Git repository, managed by the Gitaly service.'),
26+
description: s__('UsageQuota|Git repository.'),
2727
},
2828
{
2929
id: 'snippetsSize',
@@ -55,7 +55,7 @@ export const LEARN_MORE_LABEL = s__('Learn more.');
5555
export const USAGE_QUOTAS_LABEL = s__('UsageQuota|Usage Quotas');
5656
export const HELP_LINK_ARIA_LABEL = s__('UsageQuota|%{linkTitle} help link');
5757
export const TOTAL_USAGE_DEFAULT_TEXT = __('N/A');
58-
export const TOTAL_USAGE_TITLE = s__('UsageQuota|Usage Breakdown');
58+
export const TOTAL_USAGE_TITLE = s__('UsageQuota|Usage breakdown');
5959
export const TOTAL_USAGE_SUBTITLE = s__(
60-
'UsageQuota|Includes project registry, artifacts, packages, wiki, uploads and other items.',
60+
'UsageQuota|Includes artifacts, repositories, wiki, uploads, and other items.',
6161
);

doc/integration/jira/jira_server_configuration.md

+16-14
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ credentials, you must:
1717

1818
## Create a Jira Server user
1919

20-
This process creates a user named `gitlab` and adds it to a new group named `gitlab-developers`:
20+
This process creates a user named `gitlab`:
2121

22-
1. Sign in to your Jira instance as an administrator.
22+
1. Sign in to your Jira instance as a Jira administrator.
2323
1. In the upper right corner of the top menu, go to the gear icon and
2424
select **User Management**.
2525
1. Create a new user account (`gitlab`) with write access to
@@ -37,13 +37,15 @@ After you create the user, create a group for it.
3737

3838
## Create a Jira Server group
3939

40-
After you [create a Jira Server user](#create-a-jira-server-user), you can create a
41-
group to assign permissions to the user:
40+
After you [create a Jira Server user](#create-a-jira-server-user), create a
41+
group to assign permissions to the user.
4242

43-
1. Sign in to your Jira instance as an administrator.
43+
This process adds the `gitlab` user you created to a new group named `gitlab-developers`:
44+
45+
1. Sign in to your Jira instance as a Jira administrator.
4446
1. In the upper right corner of the top menu, go to the gear icon and
4547
select **User Management**.
46-
1. From the sidebar, select **Groups**.
48+
1. On the sidebar, select **Groups**.
4749

4850
![Jira create new user](img/jira_create_new_group.png)
4951

@@ -52,29 +54,29 @@ group to assign permissions to the user:
5254
1. To add the `gitlab` user to the `gitlab-developers` group, select **Edit members**.
5355
The `gitlab-developers` group should be listed in the leftmost box as a
5456
selected group.
55-
1. In the **Add members to selected group(s)** area, enter `gitlab`.
57+
1. In the **Add members to selected group(s)** section, enter `gitlab`.
5658
1. Select **Add selected users**.
57-
Jira saves your selection, and `gitlab` should appear in the **Group member(s)**
58-
area.
59+
The `gitlab` user appears in the **Group member(s)**
60+
section.
5961

60-
![Jira added user to group](img/jira_added_user_to_group.png)
62+
![Jira added user to group](img/jira_added_user_to_group.png)
6163

6264
Next, create a permission scheme for your group.
6365

6466
## Create a permission scheme for your group
6567

6668
After creating the group in Jira, grant permissions to the group by creating a permission scheme:
6769

68-
1. Sign in to your Jira instance as an administrator.
70+
1. Sign in to your Jira instance as a Jira administrator.
6971
1. In the upper right corner of the top menu, go to the gear icon and
7072
select **Issues**.
71-
1. From the sidebar, select **Permission Schemes**.
73+
1. On the sidebar, select **Permission Schemes**.
7274
1. Select **Add Permission Scheme**, enter a **Name** and (optionally) a
7375
**Description**, and then select **Add**.
7476
1. In the permissions scheme list, locate your new permissions scheme, and
7577
select **Permissions**.
76-
1. Next to **Administer Projects**, select **Edit**. In
77-
the **Group** list, select `gitlab-developers`.
78+
1. Next to **Administer Projects**, select **Edit**.
79+
1. From the **Group** dropdown list, select `gitlab-developers`, and then select **Grant**.
7880

7981
![Jira group access](img/jira_group_access.png)
8082

doc/user/project/repository/mirror/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ needs this key to establish trust with your GitLab repository. To copy your SSH
142142
1. On the left sidebar, select **Settings > Repository**.
143143
1. Expand **Mirroring repositories**.
144144
1. Scroll to **Mirrored repositories**.
145-
1. Identify the correct repository, and select **Copy SSH public key**.
145+
1. Identify the correct repository, and select **Copy SSH public key** (**{copy-to-clipboard}**).
146146
1. Add the public SSH key to the other repository's configuration:
147147
- If the other repository is hosted on GitLab, add the public SSH key
148148
as a [deploy key](../../../project/deploy_keys/index.md).

locale/gitlab.pot

+10-7
Original file line numberDiff line numberDiff line change
@@ -36811,6 +36811,9 @@ msgstr ""
3681136811
msgid "UsageQuota|Audio samples, videos, datasets, and graphics."
3681236812
msgstr ""
3681336813

36814+
msgid "UsageQuota|Because of a known issue, the artifact total for some projects may be incorrect. For more details, read %{warningLinkStart}the epic%{warningLinkEnd}."
36815+
msgstr ""
36816+
3681436817
msgid "UsageQuota|Buy additional minutes"
3681536818
msgstr ""
3681636819

@@ -36829,10 +36832,10 @@ msgstr ""
3682936832
msgid "UsageQuota|File attachments and smaller design graphics."
3683036833
msgstr ""
3683136834

36832-
msgid "UsageQuota|Git repository, managed by the Gitaly service."
36835+
msgid "UsageQuota|Git repository."
3683336836
msgstr ""
3683436837

36835-
msgid "UsageQuota|Includes project registry, artifacts, packages, wiki, uploads and other items."
36838+
msgid "UsageQuota|Includes artifacts, repositories, wiki, uploads, and other items."
3683636839
msgstr ""
3683736840

3683836841
msgid "UsageQuota|Increase storage temporarily"
@@ -36844,6 +36847,9 @@ msgstr ""
3684436847
msgid "UsageQuota|LFS Storage"
3684536848
msgstr ""
3684636849

36850+
msgid "UsageQuota|LFS storage"
36851+
msgstr ""
36852+
3684736853
msgid "UsageQuota|Learn more about excess storage usage"
3684836854
msgstr ""
3684936855

@@ -36889,9 +36895,6 @@ msgstr ""
3688936895
msgid "UsageQuota|Storage type"
3689036896
msgstr ""
3689136897

36892-
msgid "UsageQuota|There is a known issue with Artifact storage where the total could be incorrect for some projects. More details and progress are available in %{warningLinkStart}the epic%{warningLinkEnd}."
36893-
msgstr ""
36894-
3689536898
msgid "UsageQuota|This is the total amount of storage used across your projects within this namespace."
3689636899
msgstr ""
3689736900

@@ -36931,10 +36934,10 @@ msgstr ""
3693136934
msgid "UsageQuota|Usage"
3693236935
msgstr ""
3693336936

36934-
msgid "UsageQuota|Usage Breakdown"
36937+
msgid "UsageQuota|Usage Quotas"
3693536938
msgstr ""
3693636939

36937-
msgid "UsageQuota|Usage Quotas"
36940+
msgid "UsageQuota|Usage breakdown"
3693836941
msgstr ""
3693936942

3694036943
msgid "UsageQuota|Usage of group resources across the projects in the %{strong_start}%{group_name}%{strong_end} group"

spec/frontend/projects/storage_counter/mock_data.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ export const projectData = {
2828
name: 'Artifacts',
2929
description: 'Pipeline artifacts and job artifacts, created with CI/CD.',
3030
warningMessage:
31-
'There is a known issue with Artifact storage where the total could be incorrect for some projects. More details and progress are available in %{warningLinkStart}the epic%{warningLinkEnd}.',
31+
'Because of a known issue, the artifact total for some projects may be incorrect. For more details, read %{warningLinkStart}the epic%{warningLinkEnd}.',
3232
helpPath: '/build-artifacts',
3333
},
3434
value: 400000,
3535
},
3636
{
3737
storageType: {
3838
id: 'lfsObjectsSize',
39-
name: 'LFS Storage',
39+
name: 'LFS storage',
4040
description: 'Audio samples, videos, datasets, and graphics.',
4141
helpPath: '/lsf-objects',
4242
},
@@ -55,7 +55,7 @@ export const projectData = {
5555
storageType: {
5656
id: 'repositorySize',
5757
name: 'Repository',
58-
description: 'Git repository, managed by the Gitaly service.',
58+
description: 'Git repository.',
5959
helpPath: '/repository',
6060
},
6161
value: 3900000,

0 commit comments

Comments
 (0)