Skip to content

Commit 06c9aca

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent 01f48eb commit 06c9aca

File tree

158 files changed

+899
-396
lines changed

Some content is hidden

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

158 files changed

+899
-396
lines changed

.eslintrc.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ rules:
3333
# consider. See
3434
# https://gitlab.com/gitlab-org/gitlab/-/merge_requests/89831.
3535
- '^(ee|jh)_component/'
36-
# Disabled for now, to make the airbnb-base 12.1.0 -> 13.1.0 update smoother
37-
no-else-return:
38-
- error
39-
- allowElseIf: true
4036
lines-between-class-members: off
4137
# all offenses of no-jquery/no-animate-toggle are false positives ( $toast.show() )
4238
no-jquery/no-animate-toggle: off

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ eslint-report.html
4646
/config/unicorn.rb
4747
/config/puma.rb
4848
/config/secrets.yml
49+
/config/session_store.yml
4950
/config/sidekiq.yml
5051
/config/click_house.yml
5152
/config/registry.key

.rubocop_todo/layout/line_length.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,6 @@ Layout/LineLength:
689689
- 'config/initializers/kaminari_active_record_relation_methods_with_limit.rb'
690690
- 'config/initializers/pages_storage_check.rb'
691691
- 'config/initializers/rails_host_authorization.rb'
692-
- 'config/initializers/session_store.rb'
693692
- 'config/initializers/validate_database_config.rb'
694693
- 'config/initializers/validate_puma.rb'
695694
- 'config/initializers/zz_metrics.rb'

app/assets/javascripts/add_context_commits_modal/components/add_context_commits_modal_wrapper.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ export default {
267267
});
268268
}
269269
});
270-
} else if (this.uniqueCommits.length > 0) {
270+
}
271+
if (this.uniqueCommits.length > 0) {
271272
return this.createContextCommits({ commits: this.uniqueCommits, forceReload: true });
272273
}
273274

app/assets/javascripts/admin/abuse_report/components/labels_select.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ export default {
7474
selectText() {
7575
if (!this.selected.length) {
7676
return this.$options.i18n.labelsListTitle;
77-
} else if (this.selected.length > 1) {
77+
}
78+
if (this.selected.length > 1) {
7879
return sprintf(s__('LabelSelect|%{firstLabelName} +%{remainingLabelCount} more'), {
7980
firstLabelName: this.selected[0].title,
8081
remainingLabelCount: this.selected.length - 1,

app/assets/javascripts/admin/broadcast_messages/components/message_form.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ export default {
234234
initialTarget() {
235235
if (this.targetAccessLevels.length > 0) {
236236
return TARGET_ROLES;
237-
} else if (this.targetPath !== '') {
237+
}
238+
if (this.targetPath !== '') {
238239
return TARGET_ALL_MATCHING_PATH;
239240
}
240241
return TARGET_ALL;

app/assets/javascripts/analytics/cycle_analytics/components/formatted_stage_count.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export default {
1313
formattedStageCount() {
1414
if (!this.stageCount) {
1515
return '-';
16-
} else if (this.stageCount > 1000) {
16+
}
17+
if (this.stageCount > 1000) {
1718
return sprintf(s__('ValueStreamAnalytics|%{stageCount}+ items'), {
1819
stageCount: formatNumber(1000),
1920
});

app/assets/javascripts/analytics/shared/components/projects_dropdown_filter.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ export default {
6969
selectedProjectsLabel() {
7070
if (this.selectedProjects.length === 1) {
7171
return this.selectedProjects[0].name;
72-
} else if (this.selectedProjects.length > 1) {
72+
}
73+
if (this.selectedProjects.length > 1) {
7374
return n__(
7475
'CycleAnalytics|Project selected',
7576
'CycleAnalytics|%d projects selected',

app/assets/javascripts/authentication/webauthn/error.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ export default class WebAuthnError {
1414
message() {
1515
if (this.errorName === 'NotSupportedError') {
1616
return __('Your device is not compatible with GitLab. Please try another device');
17-
} else if (this.errorName === 'InvalidStateError' && this.flowType === WEBAUTHN_AUTHENTICATE) {
17+
}
18+
if (this.errorName === 'InvalidStateError' && this.flowType === WEBAUTHN_AUTHENTICATE) {
1819
return __('This device has not been registered with us.');
19-
} else if (this.errorName === 'InvalidStateError' && this.flowType === WEBAUTHN_REGISTER) {
20+
}
21+
if (this.errorName === 'InvalidStateError' && this.flowType === WEBAUTHN_REGISTER) {
2022
return __('This device has already been registered with us.');
21-
} else if (this.errorName === 'SecurityError' && this.httpsDisabled) {
23+
}
24+
if (this.errorName === 'SecurityError' && this.httpsDisabled) {
2225
return __(
2326
'WebAuthn only works with HTTPS-enabled websites. Contact your administrator for more details.',
2427
);

app/assets/javascripts/behaviors/markdown/nodes/task_list_item.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export default () => ({
2020
const checkbox = el.querySelector('input[type=checkbox].task-list-item-checkbox');
2121
if (checkbox?.matches('[data-inapplicable]')) {
2222
return { state: 'inapplicable' };
23-
} else if (checkbox?.checked) {
23+
}
24+
if (checkbox?.checked) {
2425
return { state: 'done' };
2526
}
2627

0 commit comments

Comments
 (0)