Skip to content

Commit 47c81b8

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent bdcefdc commit 47c81b8

File tree

138 files changed

+3167
-2262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+3167
-2262
lines changed

.gitlab/ci/frontend.gitlab-ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ jest:
311311
junit: junit_jest.xml
312312
parallel: 11
313313
script:
314-
- run_timed_command "yarn jest:ci:without-fixtures"
314+
- if [[ -z "${CI_MERGE_REQUEST_IID}" ]]; then export JEST_COVERAGE="--coverage"; fi
315+
- run_timed_command "yarn jest:ci:without-fixtures $JEST_COVERAGE"
315316

316317
jest-with-fixtures:
317318
extends:
@@ -325,7 +326,8 @@ jest-with-fixtures:
325326
- !reference [.with-fixtures-needs, needs]
326327
parallel: 2
327328
script:
328-
- run_timed_command "yarn jest:ci:with-fixtures"
329+
- if [[ -z "${CI_MERGE_REQUEST_IID}" ]]; then export JEST_COVERAGE="--coverage"; fi
330+
- run_timed_command "yarn jest:ci:with-fixtures $JEST_COVERAGE"
329331

330332
jest vue3:
331333
extends:

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,7 @@
14791479
- <<: *if-merge-request-labels-pipeline-expedite
14801480
when: never
14811481
- <<: *if-merge-request
1482-
changes: *code-backstage-patterns
1482+
when: never
14831483
- <<: *if-default-branch-refs
14841484
changes: *code-backstage-patterns
14851485

@@ -1717,6 +1717,7 @@
17171717
<<: *qa-e2e-test-schedule-variables
17181718
KNAPSACK_GENERATE_REPORT: "true"
17191719
QA_RUN_IN_PARALLEL: "false"
1720+
COVERBAND_ENABLED: "true"
17201721
- <<: *if-dot-com-gitlab-org-schedule
17211722
variables:
17221723
<<: *qa-e2e-test-schedule-variables

.gitlab/ci/test-on-cng/main.gitlab-ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,14 @@ export-test-metrics:
224224
variables:
225225
QA_METRICS_REPORT_FILE_PATTERN: $CI_PROJECT_DIR/qa/tmp/test-metrics-*.json
226226

227+
export-code-paths-mapping:
228+
extends:
229+
- .export-code-paths-mapping
230+
variables:
231+
QA_CODE_PATHS_MAPPING_FILE_PATTERN: $CI_PROJECT_DIR/qa/tmp/test-code-paths-mapping-*.json
232+
rules:
233+
- if: '$COVERBAND_ENABLED == "true"'
234+
227235
notify-slack:
228236
extends:
229237
- .notify-slack

.rubocop_todo/gitlab/bounded_contexts.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,6 @@ Gitlab/BoundedContexts:
13681368
- 'app/policies/todo_policy.rb'
13691369
- 'app/policies/upload_policy.rb'
13701370
- 'app/policies/user_policy.rb'
1371-
- 'app/policies/wiki_page/meta_policy.rb'
13721371
- 'app/policies/wiki_page_policy.rb'
13731372
- 'app/policies/wiki_policy.rb'
13741373
- 'app/policies/work_item_policy.rb'

.rubocop_todo/gitlab/documentation_links/link.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ Gitlab/DocumentationLinks/Link:
1717
- 'app/presenters/key_presenter.rb'
1818
- 'app/serializers/merge_request_widget_entity.rb'
1919
- 'ee/app/components/namespaces/combined_storage_users/base_alert_component.rb'
20-
- 'ee/app/components/namespaces/storage/limit_alert_component.rb'
21-
- 'ee/app/components/namespaces/storage/pre_enforcement_alert_component.rb'
22-
- 'ee/app/components/namespaces/storage/repository_limit_alert_component.rb'
23-
- 'ee/app/controllers/gitlab_subscriptions/trials_controller.rb'
2420
- 'ee/app/helpers/billing_plans_helper.rb'
2521
- 'ee/app/helpers/ee/groups/settings_helper.rb'
2622
- 'ee/app/helpers/ee/import_helper.rb'
@@ -36,7 +32,6 @@ Gitlab/DocumentationLinks/Link:
3632
- 'ee/lib/gitlab/llm/chain/tools/tool.rb'
3733
- 'ee/lib/gitlab/llm/embeddings/utils/base_content_parser.rb'
3834
- 'ee/lib/system_check/geo/current_node_check.rb'
39-
- 'ee/spec/components/namespaces/storage/pre_enforcement_alert_component_spec.rb'
4035
- 'ee/spec/helpers/ee/projects/security/api_fuzzing_configuration_helper_spec.rb'
4136
- 'ee/spec/helpers/projects/learn_gitlab_helper_spec.rb'
4237
- 'ee/spec/lib/gitlab/llm/embeddings/utils/base_content_parser_spec.rb'

.rubocop_todo/style/class_and_module_children.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ Style/ClassAndModuleChildren:
293293
- 'app/models/protected_tag/create_access_level.rb'
294294
- 'app/policies/namespace/package_setting_policy.rb'
295295
- 'app/policies/namespace/root_storage_statistics_policy.rb'
296-
- 'app/policies/wiki_page/meta_policy.rb'
297296
- 'app/serializers/ci/lint/job_entity.rb'
298297
- 'app/serializers/ci/lint/result_entity.rb'
299298
- 'app/serializers/ci/lint/result_serializer.rb'

GITLAB_OPENBAO_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
345392881a4f2786f4956789b8006b971966a476
1+
beaf1efbbbfcff64c465c19e3c49f1d527572b58

app/assets/javascripts/ci/pipeline_details/graph/components/job_item.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ export default {
339339
:title="tooltipText"
340340
:href="detailsPath"
341341
:class="jobClasses"
342-
class="menu-item gl-w-full gl-rounded-base gl-text-strong hover:gl-bg-gray-50 hover:gl-no-underline focus:gl-bg-gray-50 focus:gl-no-underline active:gl-no-underline [.gl-dark_&]:hover:gl-bg-gray-200 [.gl-dark_&]:focus:gl-bg-gray-200"
342+
class="menu-item gl-w-full gl-rounded-base gl-text-strong hover:gl-bg-gray-50 hover:gl-no-underline focus:gl-bg-gray-50 focus:gl-no-underline active:gl-no-underline dark:hover:gl-bg-gray-200 dark:focus:gl-bg-gray-200"
343343
data-testid="ci-job-item-content"
344344
@click="jobItemClick"
345345
@mouseout="hideTooltips"

app/assets/javascripts/ci/pipeline_details/graph/components/stage_column_component.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ export default {
8181
'gl-border-0',
8282
'!gl-rounded-base',
8383
'hover:gl-bg-gray-50',
84-
'[.gl-dark_&]:hover:gl-bg-gray-200',
84+
'dark:hover:gl-bg-gray-200',
8585
'focus:gl-bg-gray-50',
86-
'[.gl-dark_&]:focus:gl-bg-gray-200',
86+
'dark:focus:gl-bg-gray-200',
8787
'hover:gl-text-strong',
8888
'focus:gl-text-strong',
8989
],

app/assets/javascripts/ci/pipeline_new/components/pipeline_new_form.vue

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { fetchPolicies } from '~/lib/graphql';
1919
import SafeHtml from '~/vue_shared/directives/safe_html';
2020
import { visitUrl } from '~/lib/utils/url_utility';
2121
import { s__, __, n__ } from '~/locale';
22+
import { helpPagePath } from '~/helpers/help_page_helper';
2223
import {
2324
IDENTITY_VERIFICATION_REQUIRED_ERROR,
2425
CONFIG_VARIABLES_TIMEOUT,
@@ -47,6 +48,7 @@ const i18n = {
4748
warningTitle: __('The form contains the following warning:'),
4849
maxWarningsSummary: __('%{total} warnings found: showing first %{warningsDisplayed}'),
4950
removeVariableLabel: s__('CiVariables|Remove variable'),
51+
learnMore: __('Learn more'),
5052
};
5153
5254
export default {
@@ -121,6 +123,10 @@ export default {
121123
type: Number,
122124
required: true,
123125
},
126+
isMaintainer: {
127+
type: Boolean,
128+
required: true,
129+
},
124130
},
125131
data() {
126132
return {
@@ -392,6 +398,9 @@ export default {
392398
}));
393399
},
394400
},
401+
learnMorePath: helpPagePath('ci/variables/index', {
402+
anchor: 'cicd-variable-precedence',
403+
}),
395404
};
396405
</script>
397406
@@ -523,13 +532,19 @@ export default {
523532
</div>
524533
</div>
525534
526-
<template #description
527-
><gl-sprintf :message="$options.i18n.variablesDescription">
535+
<template #description>
536+
<gl-sprintf :message="$options.i18n.variablesDescription">
528537
<template #link="{ content }">
529-
<gl-link :href="settingsLink">{{ content }}</gl-link>
538+
<gl-link v-if="isMaintainer" :href="settingsLink" data-testid="ci-cd-settings-link">{{
539+
content
540+
}}</gl-link>
541+
<template v-else>{{ content }}</template>
530542
</template>
531-
</gl-sprintf></template
532-
>
543+
</gl-sprintf>
544+
<gl-link :href="$options.learnMorePath" target="_blank">{{
545+
$options.i18n.learnMore
546+
}}</gl-link>
547+
</template>
533548
</gl-form-group>
534549
<div class="gl-mb-4 gl-text-gray-500">
535550
<gl-sprintf :message="$options.i18n.overrideNoteText">

app/assets/javascripts/ci/pipeline_new/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const mountPipelineNewForm = (el) => {
2222
refParam,
2323
settingsLink,
2424
varParam,
25+
isMaintainer,
2526
} = el.dataset;
2627

2728
const variableParams = JSON.parse(varParam);
@@ -59,6 +60,7 @@ const mountPipelineNewForm = (el) => {
5960
refParam,
6061
settingsLink,
6162
variableParams,
63+
isMaintainer,
6264
},
6365
});
6466
},

app/assets/javascripts/gitlab_pages/components/pages_edit.vue

Lines changed: 0 additions & 9 deletions
This file was deleted.

app/assets/javascripts/graphql_shared/possible_types.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@
107107
"Issue",
108108
"MergeRequest",
109109
"Snippet",
110-
"Vulnerability"
110+
"Vulnerability",
111+
"WikiPage"
111112
],
112113
"NoteableType": [
113114
"Design",

app/assets/javascripts/notes/store/legacy_notes/getters.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ export function unresolvedDiscussionsIdsByDate() {
233233
}
234234

235235
export function unresolvedDiscussionsIdsByDiff() {
236+
// WARNING: never use this in regular code, this is only needed to avoid circular dependencies
236237
const authoritativeFiles = this.tryStore('legacyDiffs').diffFiles;
237238

238239
return this.allResolvableDiscussions
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
import initCommitActions from '~/projects/commit';
22
import { initCommitBoxInfo } from '~/projects/commit_box/info';
3+
import { renderHtmlStreams } from '~/streaming/render_html_streams';
4+
import { toPolyfillReadable } from '~/streaming/polyfills';
35

46
initCommitBoxInfo();
57
initCommitActions();
8+
9+
const streamContainer = document.getElementById('js-stream-container');
10+
if (streamContainer) {
11+
const request = fetch(streamContainer.dataset.diffsStreamUrl);
12+
renderHtmlStreams(
13+
[request.then((response) => toPolyfillReadable(response.body))],
14+
streamContainer,
15+
);
16+
}

app/assets/javascripts/pdf/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { getDocument, GlobalWorkerOptions } from 'pdfjs-dist/legacy/build/pdf';
44

55
import Page from './page/index.vue';
66

7-
GlobalWorkerOptions.workerSrc = '/assets/webpack/pdfjs/pdf.worker.min.js';
7+
GlobalWorkerOptions.workerSrc = process.env.PDF_JS_WORKER_PUBLIC_PATH;
88

99
export default {
1010
components: { Page },

app/assets/javascripts/repository/utils/ref_switcher_utils.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const getNamespaceTargetRegex = (ref) => new RegExp(`(/-/(blob|tree))/${ref}/(.*
1818
export function generateRefDestinationPath(projectRootPath, ref, selectedRef) {
1919
const url = new URL(window.location.href);
2020
const currentPath = url.pathname;
21+
const encodedHash = '%23';
2122
let refType = null;
2223
let namespace = '/-/tree';
2324
let target;
@@ -38,7 +39,12 @@ export function generateRefDestinationPath(projectRootPath, ref, selectedRef) {
3839
if (match) {
3940
[, namespace, , target] = match;
4041
}
41-
url.pathname = joinPaths(projectRootPath, namespace, actualRef, target);
42+
url.pathname = joinPaths(
43+
projectRootPath,
44+
namespace,
45+
encodeURI(actualRef).replace(/#/g, encodedHash),
46+
target,
47+
);
4248

4349
return url.toString();
4450
}

app/assets/javascripts/search/results/components/app.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { __, s__ } from '~/locale';
66
import getBlobSearchQuery from '~/search/graphql/blob_search_zoekt.query.graphql';
77
import { SCOPE_BLOB, SEARCH_TYPE_ZOEKT } from '~/search/sidebar/constants/index';
88
import { DEFAULT_FETCH_CHUNKS } from '../constants';
9+
import { RECEIVE_NAVIGATION_COUNT } from '../../store/mutation_types';
910
import StatusBar from './status_bar.vue';
1011
1112
import ZoektBlobResults from './zoekt_blob_results.vue';
@@ -50,6 +51,10 @@ export default {
5051
this.hasError = false;
5152
this.blobSearch = data?.blobSearch;
5253
this.hasResults = data?.blobSearch?.files?.length > 0;
54+
this.$store.commit(RECEIVE_NAVIGATION_COUNT, {
55+
key: 'blobs',
56+
count: data?.blobSearch?.matchCount.toString(),
57+
});
5358
},
5459
debounce: 500,
5560
error() {
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
query pending_todos_count(
2+
$projectId: [ID!]
3+
$groupId: [ID!]
4+
$authorId: [ID!]
5+
$action: [TodoActionEnum!]
6+
$type: [TodoTargetEnum!]
7+
) {
8+
currentUser {
9+
id
10+
todos(
11+
state: [pending]
12+
projectId: $projectId
13+
groupId: $groupId
14+
authorId: $authorId
15+
action: $action
16+
type: $type
17+
) {
18+
count
19+
}
20+
}
21+
}

app/assets/javascripts/todos/components/queries/get_todos_count.query.graphql

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)