Skip to content

Commit dc807ac

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent d053330 commit dc807ac

File tree

85 files changed

+1593
-1107
lines changed

Some content is hidden

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

85 files changed

+1593
-1107
lines changed

.rubocop_todo/layout/line_continuation_spacing.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ Layout/LineContinuationSpacing:
66
- 'app/helpers/tags_helper.rb'
77
- 'app/helpers/tree_helper.rb'
88
- 'app/models/concerns/spammable.rb'
9-
- 'app/models/work_items/parent_link.rb'
10-
- 'app/services/feature_flags/update_service.rb'
11-
- 'app/services/issues/build_service.rb'
129
- 'app/services/merge_requests/merge_service.rb'
1310
- 'app/services/users/email_verification/validate_token_service.rb'
1411
- 'ee/app/controllers/ee/ldap/omniauth_callbacks_controller.rb'

GITALY_SERVER_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1365200de8ffffff9a46f274e58fbd3956d16638
1+
d2a6fe593bb0ce9f364c5aa58b5158fa88a8b9ae

app/assets/javascripts/boards/boards_util.js

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ const parseFilters = (filters) => {
314314
* @param {Object} objParam.filterFields - data on what filters are available for given issuableType (based on GraphQL schema)
315315
*/
316316
export const filterVariables = ({ filters, issuableType, filterInfo, filterFields, options }) => {
317-
const customFields = new Map();
317+
const customFieldRegex = /^custom-field\[(\d*)\]$/;
318318

319319
return parseFilters(filters)
320320
.map(([k, v, negated]) => {
@@ -325,7 +325,7 @@ export const filterVariables = ({ filters, issuableType, filterInfo, filterField
325325
return [remappedKey, v, negated];
326326
})
327327
.filter(([k, , negated]) => {
328-
if (k.startsWith('custom-field') && options.hasCustomFieldsFeature) {
328+
if (k.match(customFieldRegex) && options.hasCustomFieldsFeature) {
329329
return true;
330330
}
331331

@@ -347,22 +347,17 @@ export const filterVariables = ({ filters, issuableType, filterInfo, filterField
347347
.map(([k, v, negated]) => {
348348
let newK = k;
349349
let newV = v;
350-
if (k.startsWith('custom-field') && options.hasCustomFieldsFeature) {
351-
let customFieldId = k.replace('custom-field[', '').replace(']', '');
352-
customFieldId = convertToGraphQLId(TYPENAME_CUSTOM_FIELD, customFieldId);
353-
354-
const existingSelectedOptions = customFields.has(customFieldId)
355-
? customFields.get(customFieldId)
356-
: [];
357-
358-
const selectedOptionIds = [...existingSelectedOptions];
359-
selectedOptionIds.push(convertToGraphQLId(TYPENAME_CUSTOM_FIELD_SELECT_OPTION, v));
360-
customFields.set(customFieldId, selectedOptionIds);
361-
350+
if (k.match(customFieldRegex) && options.hasCustomFieldsFeature) {
351+
const [, customFieldId] = customFieldRegex.exec(k);
362352
newV = [
363353
{
364-
customFieldId,
365-
selectedOptionIds,
354+
customFieldId: convertToGraphQLId(TYPENAME_CUSTOM_FIELD, customFieldId),
355+
selectedOptionIds: [
356+
convertToGraphQLId(
357+
TYPENAME_CUSTOM_FIELD_SELECT_OPTION,
358+
Array.isArray(v) ? v[v.length - 1] : v,
359+
),
360+
],
366361
},
367362
];
368363
newK = 'customField';
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<template>
2+
<!--NOOP in FOSS-->
3+
<div></div>
4+
</template>

app/assets/javascripts/ci/job_details/job_app.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { throttle, isEmpty } from 'lodash';
55
// eslint-disable-next-line no-restricted-imports
66
import { mapGetters, mapState, mapActions } from 'vuex';
77
import JobLogTopBar from 'ee_else_ce/ci/job_details/components/job_log_top_bar.vue';
8-
import RootCauseAnalysisButton from 'ee_else_ce/ci/job_details/components/root_cause_analysis_button.vue';
8+
import RootCauseAnalysisHotspotExperiment from 'ee_else_ce/ci/job_details/components/root_cause_analysis_hotspot_experiment.vue';
99
import SafeHtml from '~/vue_shared/directives/safe_html';
1010
import glAbilitiesMixin from '~/vue_shared/mixins/gl_abilities_mixin';
1111
import { isScrolledToBottom } from '~/lib/utils/scroll_utils';
@@ -31,7 +31,7 @@ export default {
3131
GlIcon,
3232
Log,
3333
JobLogTopBar,
34-
RootCauseAnalysisButton,
34+
RootCauseAnalysisHotspotExperiment,
3535
StuckBlock,
3636
UnmetPrerequisitesBlock,
3737
Sidebar,
@@ -330,8 +330,8 @@ export default {
330330
class="rca-bar-component gl-fixed gl-px-5 gl-py-2 xl:gl-px-6"
331331
data-testid="rca-bar-component"
332332
>
333-
<div class="gl-flex gl-w-full">
334-
<root-cause-analysis-button
333+
<div class="rca-bar-content gl-flex gl-w-full" data-testid="rca-bar-content">
334+
<root-cause-analysis-hotspot-experiment
335335
:job-id="job.id"
336336
:job-status-group="job.status.group"
337337
:can-troubleshoot-job="glAbilities.troubleshootJobWithAi"

app/assets/javascripts/ci/pipelines_page/components/failure_widget/failed_job_details.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import CiIcon from '~/vue_shared/components/ci_icon/ci_icon.vue';
77
import SafeHtml from '~/vue_shared/directives/safe_html';
88
import { BRIDGE_KIND, BUILD_KIND } from '~/ci/pipeline_details/graph/constants';
99
import RetryMrFailedJobMutation from '~/ci/merge_requests/graphql/mutations/retry_mr_failed_job.mutation.graphql';
10-
import RootCauseAnalysisButton from 'ee_else_ce/ci/job_details/components/root_cause_analysis_button.vue';
10+
import RootCauseAnalysisHotspotExperiment from 'ee_else_ce/ci/job_details/components/root_cause_analysis_hotspot_experiment.vue';
1111
1212
export default {
1313
components: {
1414
CiIcon,
1515
GlButton,
1616
GlLink,
1717
GlTooltip,
18-
RootCauseAnalysisButton,
18+
RootCauseAnalysisHotspotExperiment,
1919
},
2020
directives: {
2121
GlTooltip: GlTooltipDirective,
@@ -128,7 +128,7 @@ export default {
128128
{{ tooltipErrorText }}
129129
</gl-tooltip>
130130
<div class="col-4 gl-flex gl-max-w-full gl-flex-grow gl-justify-end gl-gap-3">
131-
<root-cause-analysis-button
131+
<root-cause-analysis-hotspot-experiment
132132
:job-gid="job.id"
133133
:job-status-group="statusGroup"
134134
:can-troubleshoot-job="canTroubleshootJob"

app/assets/stylesheets/components/rapid_diffs/_index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
@import './diff_file_component';
33
@import './text_file_viewers';
44
@import './no_preview';
5+
@import './empty_state';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.rd-app-empty-state {
2+
@apply gl-mt-5;
3+
text-align: center;
4+
}
5+
6+
.rd-app-empty-state-card {
7+
@apply gl-bg-subtle;
8+
}

app/components/rapid_diffs/empty_state_component.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.rd-app-empty-state.gl-mt-5.gl-text-center
2-
= render Pajamas::CardComponent.new(card_options: { class: "gl-bg-subtle" }) do |c|
1+
.rd-app-empty-state
2+
= render Pajamas::CardComponent.new(card_options: { class: "rd-app-empty-state-card" }) do |c|
33
- c.with_body do
44
= render Pajamas::EmptyStateComponent.new(svg_path: 'illustrations/empty-state/empty-commit-md.svg',
55
title: message) do |c|

app/helpers/emails_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def email_action(url)
2424
def action_title(url)
2525
return unless url
2626

27-
%w[merge_requests issues work_items commit].each do |action|
27+
%w[merge_requests issues work_items commit wikis].each do |action|
2828
return "View #{action.humanize.singularize}" if url.split("/").include?(action)
2929
end
3030

0 commit comments

Comments
 (0)