Skip to content

Commit eaf41d7

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent 5bc6fce commit eaf41d7

File tree

132 files changed

+1023
-982
lines changed

Some content is hidden

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

132 files changed

+1023
-982
lines changed

.dockerignore

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
/lib/registry/
5050
/lib/policy/
5151
/lib/feature/
52-
/lib/flowdock/
5352
/lib/generators/
5453
/lib/gitaly/
5554
/lib/api/

.rubocop_todo/gitlab/strong_memoize_attr.yml

-1
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ Gitlab/StrongMemoizeAttr:
565565
- 'lib/container_registry/client.rb'
566566
- 'lib/container_registry/gitlab_api_client.rb'
567567
- 'lib/container_registry/tag.rb'
568-
- 'lib/flowdock/git/builder.rb'
569568
- 'lib/gitlab/alert_management/alert_status_counts.rb'
570569
- 'lib/gitlab/alert_management/payload/base.rb'
571570
- 'lib/gitlab/alert_management/payload/managed_prometheus.rb'

.rubocop_todo/layout/line_length.yml

-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,6 @@ Layout/LineLength:
391391
- 'app/models/integrations/emails_on_push.rb'
392392
- 'app/models/integrations/ewm.rb'
393393
- 'app/models/integrations/external_wiki.rb'
394-
- 'app/models/integrations/flowdock.rb'
395394
- 'app/models/integrations/hangouts_chat.rb'
396395
- 'app/models/integrations/harbor.rb'
397396
- 'app/models/integrations/jenkins.rb'

.rubocop_todo/layout/space_in_lambda_literal.yml

-17
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,6 @@
33
Layout/SpaceInLambdaLiteral:
44
Details: grace period
55
Exclude:
6-
- 'app/controllers/concerns/issuable_actions.rb'
7-
- 'app/controllers/projects/ci/daily_build_group_report_results_controller.rb'
8-
- 'app/controllers/projects/merge_requests_controller.rb'
9-
- 'app/finders/releases/group_releases_finder.rb'
10-
- 'app/graphql/mutations/ci/runner/update.rb'
11-
- 'app/models/abuse_report.rb'
12-
- 'app/models/alert_management/alert.rb'
13-
- 'app/models/alert_management/http_integration.rb'
14-
- 'app/models/analytics/cycle_analytics/aggregation.rb'
15-
- 'app/models/analytics/usage_trends/measurement.rb'
16-
- 'app/models/application_setting.rb'
17-
- 'app/models/audit_event.rb'
18-
- 'app/models/award_emoji.rb'
19-
- 'app/models/board_group_recent_visit.rb'
20-
- 'app/models/board_project_recent_visit.rb'
21-
- 'app/models/bulk_import.rb'
22-
- 'app/models/bulk_imports/entity.rb'
236
- 'app/models/bulk_imports/tracker.rb'
247
- 'app/models/ci/build.rb'
258
- 'app/models/ci/daily_build_group_report_result.rb'

.rubocop_todo/style/format_string.yml

-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ Style/FormatString:
105105
- 'app/models/integrations/emails_on_push.rb'
106106
- 'app/models/integrations/ewm.rb'
107107
- 'app/models/integrations/external_wiki.rb'
108-
- 'app/models/integrations/flowdock.rb'
109108
- 'app/models/integrations/hangouts_chat.rb'
110109
- 'app/models/integrations/irker.rb'
111110
- 'app/models/integrations/jenkins.rb'
@@ -281,7 +280,6 @@ Style/FormatString:
281280
- 'lib/api/helpers/packages/conan/api_helpers.rb'
282281
- 'lib/bulk_imports/network_error.rb'
283282
- 'lib/bulk_imports/users_mapper.rb'
284-
- 'lib/flowdock/git/builder.rb'
285283
- 'lib/gitlab/bitbucket_server_import/importer.rb'
286284
- 'lib/gitlab/checks/push_file_count_check.rb'
287285
- 'lib/gitlab/ci/ansi2json/line.rb'

.rubocop_todo/style/percent_literal_delimiters.yml

-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ Style/PercentLiteralDelimiters:
8787
- 'app/models/integrations/emails_on_push.rb'
8888
- 'app/models/integrations/external_wiki.rb'
8989
- 'app/models/integrations/field.rb'
90-
- 'app/models/integrations/flowdock.rb'
9190
- 'app/models/integrations/jenkins.rb'
9291
- 'app/models/integrations/jira.rb'
9392
- 'app/models/integrations/packagist.rb'
@@ -485,7 +484,6 @@ Style/PercentLiteralDelimiters:
485484
- 'lib/bitbucket/representation/issue.rb'
486485
- 'lib/container_registry/path.rb'
487486
- 'lib/feature.rb'
488-
- 'lib/flowdock/git/builder.rb'
489487
- 'lib/generators/gitlab/usage_metric_definition_generator.rb'
490488
- 'lib/generators/gitlab/usage_metric_generator.rb'
491489
- 'lib/gitlab.rb'

Gemfile

-3
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@ gem 'discordrb-webhooks', '~> 3.4', require: false
264264
gem 'jira-ruby', '~> 2.1.4'
265265
gem 'atlassian-jwt', '~> 0.2.0'
266266

267-
# Flowdock integration
268-
gem 'flowdock', '~> 0.7'
269-
270267
# Slack integration
271268
gem 'slack-messenger', '~> 2.3.4'
272269

Gemfile.checksum

-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@
178178
{"name":"flipper","version":"0.25.0","platform":"ruby","checksum":"ccb2776752b8378bc994c9d873ccde290c090341940761b873494695ee697add"},
179179
{"name":"flipper-active_record","version":"0.25.0","platform":"ruby","checksum":"85a5c99465e2cc6a09e91931a9998b0dbd463cd6c80dd513129377132e3eb67f"},
180180
{"name":"flipper-active_support_cache_store","version":"0.25.0","platform":"ruby","checksum":"7282bf994b08d1a076b65c6f3b51e3dc04fcb00fa6e7b20089e60db25c7b531b"},
181-
{"name":"flowdock","version":"0.7.1","platform":"ruby","checksum":"cfa95b2ac96e5f883f6e419d7a891f76cfcc17a28c416b6b714bbdffc8dbd912"},
182181
{"name":"fog-aliyun","version":"0.3.3","platform":"ruby","checksum":"d0aa317f7c1473a1d684fff51699f216bb9cb78b9ee9ce55a81c9bcc93fb85ee"},
183182
{"name":"fog-aws","version":"3.15.0","platform":"ruby","checksum":"09752931ea0c6165b018e1a89253248d86b246645086ccf19bc44fabe3381e8c"},
184183
{"name":"fog-core","version":"2.1.0","platform":"ruby","checksum":"53e5d793554d7080d015ef13cd44b54027e421d924d9dba4ce3d83f95f37eda9"},

Gemfile.lock

-4
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,6 @@ GEM
484484
flipper-active_support_cache_store (0.25.0)
485485
activesupport (>= 4.2, < 8)
486486
flipper (~> 0.25.0)
487-
flowdock (0.7.1)
488-
httparty (~> 0.7)
489-
multi_json
490487
fog-aliyun (0.3.3)
491488
fog-core
492489
fog-json
@@ -1649,7 +1646,6 @@ DEPENDENCIES
16491646
flipper (~> 0.25.0)
16501647
flipper-active_record (~> 0.25.0)
16511648
flipper-active_support_cache_store (~> 0.25.0)
1652-
flowdock (~> 0.7)
16531649
fog-aliyun (~> 0.3)
16541650
fog-aws (~> 3.15)
16551651
fog-core (= 2.1.0)

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

+19-26
Original file line numberDiff line numberDiff line change
@@ -85,32 +85,25 @@ export default {
8585
};
8686
</script>
8787
<template>
88-
<article
89-
class="draft-note-component note-wrapper"
90-
@mouseenter="handleMouseEnter(draft)"
91-
@mouseleave="handleMouseLeave(draft)"
88+
<noteable-note
89+
:note="draft"
90+
:line="line"
91+
:discussion-root="true"
92+
:class="{ 'gl-mb-0!': glFeatures.mrReviewSubmitComment }"
93+
class="draft-note-component draft-note"
94+
@handleEdit="handleEditing"
95+
@cancelForm="handleNotEditing"
96+
@updateSuccess="handleNotEditing"
97+
@handleDeleteNote="deleteDraft"
98+
@handleUpdateNote="update"
99+
@toggleResolveStatus="toggleResolveDiscussion(draft.id)"
100+
@mouseenter.native="handleMouseEnter(draft)"
101+
@mouseleave.native="handleMouseLeave(draft)"
92102
>
93-
<ul class="notes draft-notes">
94-
<noteable-note
95-
:note="draft"
96-
:line="line"
97-
:discussion-root="true"
98-
:class="{ 'gl-mb-0!': glFeatures.mrReviewSubmitComment }"
99-
class="draft-note"
100-
@handleEdit="handleEditing"
101-
@cancelForm="handleNotEditing"
102-
@updateSuccess="handleNotEditing"
103-
@handleDeleteNote="deleteDraft"
104-
@handleUpdateNote="update"
105-
@toggleResolveStatus="toggleResolveDiscussion(draft.id)"
106-
>
107-
<template #note-header-info>
108-
<gl-badge variant="warning" class="gl-mr-2">{{ __('Pending') }}</gl-badge>
109-
</template>
110-
</noteable-note>
111-
</ul>
112-
113-
<template v-if="!isEditingDraft">
103+
<template #note-header-info>
104+
<gl-badge variant="warning" class="gl-mr-2">{{ __('Pending') }}</gl-badge>
105+
</template>
106+
<template v-if="!isEditingDraft" #after-note-body>
114107
<div
115108
v-if="draftCommands"
116109
v-safe-html:[$options.safeHtmlConfig]="draftCommands"
@@ -134,5 +127,5 @@ export default {
134127
</gl-button>
135128
</p>
136129
</template>
137-
</article>
130+
</noteable-note>
138131
</template>

app/assets/javascripts/ci/runner/components/cells/runner_summary_cell.vue

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import TimeAgo from '~/vue_shared/components/time_ago_tooltip.vue';
66
import RunnerName from '../runner_name.vue';
77
import RunnerTags from '../runner_tags.vue';
88
import RunnerTypeBadge from '../runner_type_badge.vue';
9+
import RunnerJobStatusBadge from '../runner_job_status_badge.vue';
910
1011
import { formatJobCount } from '../../utils';
1112
import {
@@ -25,6 +26,7 @@ export default {
2526
RunnerName,
2627
RunnerTags,
2728
RunnerTypeBadge,
29+
RunnerJobStatusBadge,
2830
RunnerUpgradeStatusIcon: () =>
2931
import('ee_component/ci/runner/components/runner_upgrade_status_icon.vue'),
3032
TooltipOnTruncate,
@@ -81,6 +83,8 @@ export default {
8183
</div>
8284

8385
<div>
86+
<runner-job-status-badge :job-status="runner.jobExecutionStatus" />
87+
8488
<runner-summary-field icon="clock">
8589
<gl-sprintf :message="$options.i18n.I18N_LAST_CONTACT_LABEL">
8690
<template #timeAgo>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<script>
2+
import { GlBadge, GlTooltipDirective } from '@gitlab/ui';
3+
import {
4+
I18N_JOB_STATUS_RUNNING,
5+
I18N_JOB_STATUS_IDLE,
6+
JOB_STATUS_RUNNING,
7+
JOB_STATUS_IDLE,
8+
} from '../constants';
9+
10+
export default {
11+
components: {
12+
GlBadge,
13+
},
14+
directives: {
15+
GlTooltip: GlTooltipDirective,
16+
},
17+
props: {
18+
jobStatus: {
19+
required: false,
20+
default: null,
21+
type: String,
22+
},
23+
},
24+
computed: {
25+
badge() {
26+
switch (this.jobStatus) {
27+
case JOB_STATUS_RUNNING:
28+
return {
29+
classes: 'gl-text-blue-600! gl-border gl-border-blue-600!',
30+
label: I18N_JOB_STATUS_RUNNING,
31+
};
32+
case JOB_STATUS_IDLE:
33+
return {
34+
classes: 'gl-text-gray-700! gl-border gl-border-gray-500!',
35+
label: I18N_JOB_STATUS_IDLE,
36+
};
37+
default:
38+
return null;
39+
}
40+
},
41+
},
42+
};
43+
</script>
44+
<template>
45+
<gl-badge
46+
v-if="badge"
47+
size="sm"
48+
class="gl-mr-3 gl-bg-transparent!"
49+
variant="muted"
50+
:class="badge.classes"
51+
>
52+
{{ badge.label }}
53+
</gl-badge>
54+
</template>

app/assets/javascripts/ci/runner/constants.js

+9
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ export const I18N_STATUS_NEVER_CONTACTED = s__('Runners|Never contacted');
3232
export const I18N_STATUS_OFFLINE = s__('Runners|Offline');
3333
export const I18N_STATUS_STALE = s__('Runners|Stale');
3434

35+
// Executor Status
36+
export const I18N_JOB_STATUS_RUNNING = s__('Runners|Running');
37+
export const I18N_JOB_STATUS_IDLE = s__('Runners|Idle');
38+
3539
// Status help popover
3640
export const I18N_STATUS_POPOVER_TITLE = s__('Runners|Runner statuses');
3741

@@ -134,6 +138,11 @@ export const STATUS_NEVER_CONTACTED = 'NEVER_CONTACTED';
134138
export const STATUS_OFFLINE = 'OFFLINE';
135139
export const STATUS_STALE = 'STALE';
136140

141+
// CiRunnerJobExecutionStatus
142+
143+
export const JOB_STATUS_RUNNING = 'RUNNING';
144+
export const JOB_STATUS_IDLE = 'IDLE';
145+
137146
// CiRunnerAccessLevel
138147

139148
export const ACCESS_LEVEL_NOT_PROTECTED = 'NOT_PROTECTED';

app/assets/javascripts/ci/runner/graphql/list/list_item_shared.fragment.graphql

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ fragment ListItemShared on CiRunner {
1212
createdAt
1313
contactedAt
1414
status(legacyMode: null)
15+
jobExecutionStatus
1516
userPermissions {
1617
updateRunner
1718
deleteRunner

app/assets/javascripts/clusters_list/components/agent_token.vue

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
<script>
2-
import { GlAlert, GlFormInputGroup, GlLink, GlSprintf } from '@gitlab/ui';
2+
import { GlAlert, GlFormInputGroup, GlLink, GlSprintf, GlIcon } from '@gitlab/ui';
33
import { helpPagePath } from '~/helpers/help_page_helper';
44
import ModalCopyButton from '~/vue_shared/components/modal_copy_button.vue';
55
import CodeBlock from '~/vue_shared/components/code_block.vue';
66
import { generateAgentRegistrationCommand } from '../clusters_util';
7-
import { I18N_AGENT_TOKEN } from '../constants';
7+
import { I18N_AGENT_TOKEN, HELM_VERSION_POLICY_URL } from '../constants';
88
99
export default {
1010
i18n: I18N_AGENT_TOKEN,
1111
advancedInstallPath: helpPagePath('user/clusters/agent/install/index', {
1212
anchor: 'advanced-installation-method',
1313
}),
14+
HELM_VERSION_POLICY_URL,
1415
components: {
1516
GlAlert,
1617
CodeBlock,
1718
GlFormInputGroup,
1819
GlLink,
1920
GlSprintf,
21+
GlIcon,
2022
ModalCopyButton,
2123
},
2224
inject: ['kasAddress', 'kasVersion'],
@@ -77,6 +79,11 @@ export default {
7779

7880
<p>
7981
{{ $options.i18n.basicInstallBody }}
82+
<gl-sprintf :message="$options.i18n.helmVersionText">
83+
<template #link="{ content }"
84+
><gl-link :href="$options.HELM_VERSION_POLICY_URL" target="_blank"
85+
>{{ content }} <gl-icon name="external-link" :size="12" /></gl-link></template
86+
></gl-sprintf>
8087
</p>
8188

8289
<p class="gl-display-flex gl-align-items-flex-start">

0 commit comments

Comments
 (0)