Skip to content

Commit df697c9

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

File tree

113 files changed

+1318
-763
lines changed

Some content is hidden

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

113 files changed

+1318
-763
lines changed

.gitlab/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
/doc/**/*.md
2323
/doc/**/*.jpg
2424
/doc/**/*.png
25+
/doc/**/*.svg
2526
/data/deprecations/*.yml
2627

2728
## Technical writing files that do not need `*` rule approval,

GITALY_SERVER_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4e8f6c6fd0ce517083a7e4edc961cb31ba16999c
1+
052c8f3e6471dc2acba91db014d522880f2c3042

app/assets/javascripts/abuse_reports/components/links_to_spam_input.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export default {
1111
},
1212
i18n: {
1313
label: s__('ReportAbuse|Link to spam'),
14-
description: s__('ReportAbuse|URL of this user posting spam'),
1514
addAnotherText: s__('ReportAbuse|Add another link'),
1615
},
1716
props: {
@@ -38,14 +37,11 @@ export default {
3837
<template v-for="(link, index) in links">
3938
<div :key="index" class="row">
4039
<div class="col-lg-8">
41-
<gl-form-group class="gl-mt-5">
40+
<gl-form-group>
4241
<template #label>
43-
<div class="gl-pb-2">
42+
<div>
4443
{{ $options.i18n.label }}
4544
</div>
46-
<div class="gl-font-normal">
47-
{{ $options.i18n.description }}
48-
</div>
4945
</template>
5046
<gl-form-input
5147
v-model.trim="links[index]"

app/assets/javascripts/api.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { createAlert } from '~/alert';
22
import { __ } from '~/locale';
33
import { validateAdditionalProperties } from '~/tracking/utils';
4+
import * as Sentry from '~/sentry/sentry_browser_wrapper';
45
import axios from './lib/utils/axios_utils';
56
import { joinPaths } from './lib/utils/url_utility';
67

@@ -951,11 +952,15 @@ const Api = {
951952

952953
const { data = {} } = { ...window.gl?.snowplowStandardContext };
953954
const { project_id, namespace_id } = data;
954-
return axios.post(
955-
url,
956-
{ event, project_id, namespace_id, additional_properties: additionalProperties },
957-
{ headers },
958-
);
955+
return axios
956+
.post(
957+
url,
958+
{ event, project_id, namespace_id, additional_properties: additionalProperties },
959+
{ headers },
960+
)
961+
.catch((error) => {
962+
Sentry.captureException(error);
963+
});
959964
},
960965

961966
buildUrl(url) {

app/assets/javascripts/badges/components/badge.vue

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- eslint-disable vue/multi-word-component-names -->
22
<script>
3-
import { GlLoadingIcon, GlTooltipDirective, GlIcon, GlButton } from '@gitlab/ui';
3+
import { GlLoadingIcon, GlTooltipDirective, GlButton, GlButtonGroup } from '@gitlab/ui';
44
import { s__ } from '~/locale';
55

66
export default {
@@ -11,9 +11,9 @@ export default {
1111
// eslint-disable-next-line @gitlab/require-i18n-strings
1212
name: 'Badge',
1313
components: {
14-
GlIcon,
1514
GlLoadingIcon,
1615
GlButton,
16+
GlButtonGroup,
1717
},
1818
directives: {
1919
GlTooltip: GlTooltipDirective,
@@ -94,14 +94,12 @@ export default {
9494

9595
<gl-loading-icon v-show="isLoading" size="sm" :inline="true" />
9696

97-
<div v-show="hasError" class="btn-group">
98-
<div class="btn btn-default btn-sm disabled">
99-
<gl-icon :size="16" class="gl-ml-3 gl-mr-3" name="doc-image" />
100-
</div>
101-
<div class="btn btn-default btn-sm disabled">
102-
<span class="gl-ml-3 gl-mr-3">{{ s__('Badges|No badge image') }}</span>
103-
</div>
104-
</div>
97+
<gl-button-group v-show="hasError">
98+
<gl-button disabled icon="doc-image" />
99+
<gl-button disabled>
100+
{{ s__('Badges|No badge image') }}
101+
</gl-button>
102+
</gl-button-group>
105103

106104
<gl-button
107105
v-show="hasError"

app/assets/javascripts/diffs/store/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ export const assignDiscussionsToDiff = (
430430
const hash = getLocationHash();
431431

432432
discussions
433-
.filter((discussion) => discussion.diff_discussion)
433+
.filter((discussion) => discussion?.diff_discussion)
434434
.forEach((discussion) => {
435435
commit(types.SET_LINE_DISCUSSIONS_FOR_FILE, {
436436
discussion,

app/assets/javascripts/diffs/stores/legacy_diffs/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ export function assignDiscussionsToDiff(discussions) {
429429
const hash = getLocationHash();
430430

431431
targetDiscussions
432-
.filter((discussion) => discussion.diff_discussion)
432+
.filter((discussion) => discussion?.diff_discussion)
433433
.forEach((discussion) => {
434434
this[types.SET_LINE_DISCUSSIONS_FOR_FILE]({
435435
discussion,

app/assets/javascripts/merge_request_dashboard/components/app.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ export default {
5656
:class="{ 'gl-mb-4': i !== tab.lists.length - 1 }"
5757
>
5858
<template #default="{ mergeRequests, count, hasNextPage, loadMore, loading, error }">
59-
<collapsible-section :count="count" :loading="loading || error" :title="list.title">
59+
<collapsible-section
60+
:count="count"
61+
:loading="loading || error"
62+
:title="list.title"
63+
:help-content="list.helpContent"
64+
>
6065
<div>
6166
<div class="gl-overflow-x-auto">
6267
<table class="gl-w-full">

app/assets/javascripts/merge_request_dashboard/components/collapsible_section.vue

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
<script>
2-
import { GlButton, GlBadge } from '@gitlab/ui';
2+
import { GlButton, GlBadge, GlTooltipDirective } from '@gitlab/ui';
33
import { __, sprintf } from '~/locale';
44
55
export default {
66
components: {
77
GlButton,
88
GlBadge,
99
},
10+
directives: {
11+
GlTooltip: GlTooltipDirective,
12+
},
1013
props: {
1114
title: {
1215
type: String,
1316
required: true,
1417
},
18+
helpContent: {
19+
type: String,
20+
required: false,
21+
default: '',
22+
},
1523
count: {
1624
type: Number,
1725
required: false,
@@ -81,6 +89,13 @@ export default {
8189
<gl-badge v-if="!loading || count" class="gl-ml-1" variant="neutral" size="sm">{{
8290
count
8391
}}</gl-badge>
92+
<gl-button
93+
v-gl-tooltip
94+
:title="helpContent"
95+
icon="information-o"
96+
variant="link"
97+
class="gl-relative gl-top-2 gl-float-right gl-inline-flex"
98+
/>
8499
</h2>
85100
</header>
86101
<div v-if="open" data-testid="section-content">

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ export function fetchDiscussionsBatch({ path, config, cursor, perPage }) {
224224
}
225225

226226
export function updateDiscussion(discussion) {
227+
if (discussion == null) return null;
228+
227229
this[types.UPDATE_DISCUSSION](discussion);
228230

229231
return utils.findNoteObjectById(this.discussions, discussion.id);

app/assets/javascripts/notes/stores/actions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ export const fetchDiscussionsBatch = ({ commit, dispatch }, { path, config, curs
207207
};
208208

209209
export const updateDiscussion = ({ commit, state }, discussion) => {
210+
if (discussion == null) return null;
211+
210212
commit(types.UPDATE_DISCUSSION, discussion);
211213

212214
return utils.findNoteObjectById(state.discussions, discussion.id);

app/assets/javascripts/sidebar/components/reviewers/reviewer_title.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export default {
5959
v-if="glFeatures.reviewerAssignDrawer"
6060
class="gl-ml-auto"
6161
:selected-reviewers="reviewers"
62+
:visible-reviewers="reviewers"
6263
/>
6364
<gl-button
6465
v-else

app/assets/javascripts/super_sidebar/components/global_search/components/global_search.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -446,12 +446,10 @@ export default {
446446
:handle="commandChar"
447447
@updated="highlightFirstCommand"
448448
/>
449-
450-
<global-search-default-items v-else-if="showDefaultItems" />
451-
452449
<template v-else>
453-
<global-search-autocomplete-items />
454450
<global-search-scoped-items v-if="showScopedSearchItems" />
451+
<global-search-default-items v-if="showDefaultItems" />
452+
<global-search-autocomplete-items v-else />
455453
</template>
456454
</div>
457455
</scroll-scrim>

app/assets/javascripts/super_sidebar/components/global_search/components/global_search_no_results.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111

1212
<template>
1313
<ul class="gl-m-0 gl-list-none gl-p-0">
14-
<li class="command-palette-px gl-py-5 gl-text-primary">
14+
<li class="command-palette-px gl-border-t gl-border-t-dropdown gl-py-5 gl-text-primary">
1515
{{ $options.i18n.NO_SEARCH_RESULTS }}
1616
</li>
1717
</ul>

app/assets/javascripts/super_sidebar/components/global_search/components/global_search_scoped_items.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default {
8989
<template>
9090
<div>
9191
<ul class="gl-m-0 gl-list-none gl-p-0 gl-pb-2" data-testid="scoped-items">
92-
<gl-disclosure-dropdown-group :group="group" bordered @action="trackingTypes">
92+
<gl-disclosure-dropdown-group :group="group" @action="trackingTypes">
9393
<template #list-item="{ item }">
9494
<search-result-hover-layover :text-message="$options.i18n.OVERLAY_SEARCH">
9595
<gl-icon

app/assets/javascripts/tracking/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export function initUserTracking() {
2323
window.snowplow('newTracker', opts.namespace, opts.hostname, opts);
2424

2525
document.dispatchEvent(new Event('SnowplowInitialized'));
26-
Tracking.flushPendingEvents();
2726
}
2827

2928
/**
@@ -67,6 +66,8 @@ export function initDefaultTrackers() {
6766
window.snowplow('enableLinkClickTracking');
6867
}
6968

69+
Tracking.flushPendingEvents();
70+
7071
Tracking.bindDocument();
7172
Tracking.trackLoadEvents();
7273

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def context_user
554554
end
555555

556556
def set_current_organization
557-
return if ::Current.lock_organization
557+
return if ::Current.organization_assigned
558558

559559
::Current.organization = Gitlab::Current::Organization.new(
560560
params: params.permit(

app/graphql/resolvers/merge_requests_resolver.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,13 @@ def self.accept_reviewer
176176
argument :reviewer_username, GraphQL::Types::String,
177177
required: false,
178178
description: 'Username of the reviewer to exclude.'
179+
argument :source_branches, [GraphQL::Types::String],
180+
required: false,
181+
as: :source_branch,
182+
description: <<~DESC
183+
Array of source branch names.
184+
No resolved merge requests will have one of these branches as their source.
185+
DESC
179186
end
180187

181188
validates mutually_exclusive: [:assignee_username, :assignee_wildcard_id]

app/graphql/types/ci/pipeline_creation.rb

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

app/graphql/types/ci/pipeline_creations/status_enum.rb

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

app/graphql/types/project_type.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@ class ProjectType < BaseObject
3131
description: 'Ref.'
3232
end
3333

34-
field :ci_pipeline_creation, ::Types::Ci::PipelineCreation,
35-
null: true, authorize: :read_pipeline,
36-
alpha: { milestone: '17.4' },
37-
description: 'Information about a pipeline creation.' do
38-
argument :id, type: ::GraphQL::Types::String,
39-
required: true, description: 'Unique ID associated with the pipeline creation.'
40-
end
41-
4234
field :full_path, GraphQL::Types::ID,
4335
null: false,
4436
description: 'Full path of the project.'
@@ -851,10 +843,6 @@ def ci_config_variables(ref:)
851843
end
852844
end
853845

854-
def ci_pipeline_creation(id:)
855-
::Ci::PipelineCreationMetadata.find(project: project, id: id)
856-
end
857-
858846
def job(id:)
859847
object.commit_statuses.find(id.model_id)
860848
rescue ActiveRecord::RecordNotFound

0 commit comments

Comments
 (0)