Skip to content

Commit ccc2dc4

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

File tree

75 files changed

+530
-390
lines changed

Some content is hidden

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

75 files changed

+530
-390
lines changed

app/assets/javascripts/jira_import/components/jira_import_form.vue

+6-4
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,12 @@ export default {
168168
})
169169
.then(({ data }) => {
170170
this.users =
171-
data?.project?.projectMembers?.nodes?.map(({ user }) => ({
172-
...user,
173-
id: getIdFromGraphQLId(user.id),
174-
})) || [];
171+
data?.project?.projectMembers?.nodes
172+
.filter((x) => x?.user)
173+
.map(({ user }) => ({
174+
...user,
175+
id: getIdFromGraphQLId(user.id),
176+
})) || [];
175177
return this.users;
176178
})
177179
.finally(() => {

app/assets/javascripts/lib/utils/datetime_range.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,7 @@ const isValidDateString = (dateString) => {
2626
return false;
2727
}
2828

29-
try {
30-
// dateformat throws error that can be caught.
31-
// This is better than using `new Date()`
32-
dateformat(dateString, 'isoUtcDateTime');
33-
return true;
34-
} catch (e) {
35-
return false;
36-
}
29+
return !Number.isNaN(Date.parse(dateformat(dateString, 'isoUtcDateTime')));
3730
};
3831

3932
const handleRangeDirection = ({ direction = DEFAULT_DIRECTION, anchorDate, minDate, maxDate }) => {

app/assets/javascripts/lib/utils/datetime_utility.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export function formatDateAsMonth(datetime, options = {}) {
106106

107107
/**
108108
* @example
109-
* dateFormat('2017-12-05','mmm d, yyyy h:MMtt Z' ) -> "Dec 5, 2017 12:00am GMT+0000"
109+
* dateFormat('2017-12-05','mmm d, yyyy h:MMtt Z' ) -> "Dec 5, 2017 12:00am UTC"
110110
* @param {date} datetime
111111
* @param {String} format
112112
* @param {Boolean} UTC convert local time to UTC

app/assets/javascripts/vue_shared/components/user_select/user_select.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export default {
113113
update(data) {
114114
// TODO Remove null filter (BE fix required)
115115
// https://gitlab.com/gitlab-org/gitlab/-/issues/329750
116-
return data.workspace?.users?.nodes.filter((x) => x).map(({ user }) => user) || [];
116+
return data.workspace?.users?.nodes.filter((x) => x?.user).map(({ user }) => user) || [];
117117
},
118118
debounce: ASSIGNEES_DEBOUNCE_DELAY,
119119
error({ graphQLErrors }) {

app/views/shared/issuable/_search_bar.html.haml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
- checkbox_id = 'check-all-issues'
2424
%label.gl-sr-only{ for: checkbox_id }= _('Select all')
2525
= check_box_tag checkbox_id, nil, false, class: "check-all-issues left"
26-
- if Feature.enabled?(:boards_filtered_search, @group) && is_epic_board
26+
- if is_epic_board
2727
#js-board-filtered-search{ data: { full_path: @group&.full_path } }
2828
- else
2929
.issues-other-filters.filtered-search-wrapper.d-flex.flex-column.flex-md-row

config/feature_flags/development/boards_filtered_search.yml

-8
This file was deleted.

config/initializers/load_balancing.rb

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
# This needs to be executed after fork of clustered processes
1313
Gitlab::Cluster::LifecycleEvents.on_worker_start do
14+
# For Host-based LB, we need to re-connect as Rails discards connections on fork
15+
Gitlab::Database::LoadBalancing.configure_proxy
16+
1417
# Service discovery must be started after configuring the proxy, as service
1518
# discovery depends on this.
1619
Gitlab::Database::LoadBalancing.start_service_discovery

config/metrics/aggregates/code_review.yml

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
- 'i_code_review_user_reviewers_changed'
5353
- 'i_code_review_user_milestone_changed'
5454
- 'i_code_review_user_labels_changed'
55+
- 'i_code_review_click_diff_view_setting'
5556
- 'i_code_review_click_single_file_mode_setting'
5657
- 'i_code_review_click_file_browser_setting'
5758
- 'i_code_review_click_whitespace_setting'
@@ -109,6 +110,7 @@
109110
- 'i_code_review_user_reviewers_changed'
110111
- 'i_code_review_user_milestone_changed'
111112
- 'i_code_review_user_labels_changed'
113+
- 'i_code_review_click_diff_view_setting'
112114
- 'i_code_review_click_single_file_mode_setting'
113115
- 'i_code_review_click_file_browser_setting'
114116
- 'i_code_review_click_whitespace_setting'

config/metrics/counts_28d/20210216180308_personal_snippets.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
key_path: counts_monthly.personal_snippets
3-
description: Monthly count of Personal Snippets
3+
description: Monthly count of personal Snippets
44
product_section: dev
55
product_stage: create
66
product_group: group::editor
@@ -16,4 +16,3 @@ tier:
1616
- free
1717
- premium
1818
- ultimate
19-
skip_validation: true

config/metrics/counts_28d/20210216180310_project_snippets.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
key_path: counts_monthly.project_snippets
3-
description: Monthly count of Project Snippets
3+
description: Monthly count of project Snippets
44
product_section: dev
55
product_stage: create
66
product_group: group::editor
@@ -16,4 +16,3 @@ tier:
1616
- free
1717
- premium
1818
- ultimate
19-
skip_validation: true

config/metrics/counts_28d/20210216180312_snippets.yml

-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ tier:
1616
- free
1717
- premium
1818
- ultimate
19-
skip_validation: true
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
22
key_path: usage_activity_by_stage_monthly.create.snippets
3-
description: Monthly Snippets
3+
name: count_distinct_author_id_from_snippets
4+
description: Count of distinct author_id from snippets for last 28 days
45
product_section: dev
56
product_stage: create
67
product_group: group::editor
78
product_category: snippets
89
value_type: number
910
status: data_available
1011
time_frame: 28d
11-
data_source:
12+
data_source: database
1213
distribution:
1314
- ce
1415
- ee
1516
tier:
1617
- free
1718
- premium
1819
- ultimate
19-
skip_validation: true
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
---
22
key_path: usage_activity_by_stage_monthly.create.action_monthly_active_users_web_ide_edit
3-
description: Count unique edit actions using the web IDE
3+
description: Number of users editing using web IDE
44
product_section: dev
55
product_stage: create
66
product_group: group::editor
77
product_category: web_ide
88
value_type: number
99
status: data_available
1010
time_frame: 28d
11-
data_source:
11+
data_source: redis_hll
1212
distribution:
1313
- ce
14+
- ee
1415
tier:
1516
- free
16-
skip_validation: true
17+
- premium
18+
- ultimate
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
---
22
key_path: usage_activity_by_stage_monthly.create.action_monthly_active_users_sfe_edit
3-
description: Count unique edit actions using the single file editor
3+
description: Number of users using single file editor
44
product_section: dev
55
product_stage: create
66
product_group: group::editor
77
product_category: web_ide
88
value_type: number
99
status: data_available
1010
time_frame: 28d
11-
data_source:
11+
data_source: redis_hll
1212
distribution:
1313
- ce
14+
- ee
1415
tier:
1516
- free
16-
skip_validation: true
17+
- premium
18+
- ultimate
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
---
22
key_path: usage_activity_by_stage_monthly.create.action_monthly_active_users_snippet_editor_edit
3-
description: Count unique edit actions using the snippet editor
3+
description: Number of users using the snippet editor
44
product_section: dev
55
product_stage: create
66
product_group: group::editor
7-
product_category: web_ide
7+
product_category: snippets
88
value_type: number
99
status: data_available
1010
time_frame: 28d
11-
data_source:
11+
data_source: redis_hll
1212
distribution:
1313
- ce
14+
- ee
1415
tier:
1516
- free
16-
skip_validation: true
17+
- premium
18+
- ultimate
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
---
22
key_path: usage_activity_by_stage_monthly.create.action_monthly_active_users_sse_edit
3-
description: Count unique edit actions using the static site editor
3+
description: Number of users using the static site editor
44
product_section: dev
55
product_stage: create
66
product_group: group::editor
7-
product_category: web_ide
7+
product_category: static_site_editor
88
value_type: number
99
status: data_available
1010
time_frame: 28d
11-
data_source:
11+
data_source: redis_hll
1212
distribution:
1313
- ce
14+
- ee
1415
tier:
1516
- free
16-
skip_validation: true
17+
- premium
18+
- ultimate
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
---
22
key_path: usage_activity_by_stage_monthly.create.action_monthly_active_users_ide_edit
3-
description: Count unique edit actions when users used an IDE, no matter which one
3+
description: Number of unique users per month who edited a file from any web editor
44
product_section: dev
55
product_stage: create
66
product_group: group::editor
77
product_category: web_ide
88
value_type: number
99
status: data_available
1010
time_frame: 28d
11-
data_source:
11+
data_source: redis_hll
1212
distribution:
1313
- ce
14+
- ee
1415
tier:
1516
- free
16-
skip_validation: true
17+
- premium
18+
- ultimate
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
---
22
key_path: redis_hll_counters.ide_edit.g_edit_by_web_ide_monthly
3-
description:
3+
description: Number of users editing a file from the Web IDE
44
product_section: dev
55
product_stage: create
66
product_group: group::editor
7-
product_category:
7+
product_category: web_ide
88
value_type: number
99
status: data_available
1010
time_frame: 28d
1111
data_source: redis_hll
1212
distribution:
1313
- ce
14+
- ee
1415
tier:
1516
- free
16-
skip_validation: true
17+
- premium
18+
- ultimate
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
---
22
key_path: redis_hll_counters.ide_edit.g_edit_by_sfe_monthly
3-
description:
3+
description: Number of users editing a file from the single file editor
44
product_section: dev
55
product_stage: create
66
product_group: group::editor
7-
product_category:
7+
product_category: web_ide
88
value_type: number
99
status: data_available
1010
time_frame: 28d
1111
data_source: redis_hll
1212
distribution:
1313
- ce
14+
- ee
1415
tier:
1516
- free
16-
skip_validation: true
17+
- premium
18+
- ultimate
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
---
22
key_path: redis_hll_counters.ide_edit.g_edit_by_snippet_ide_monthly
3-
description:
3+
description: Count of monthly edits to a snippet
44
product_section: dev
55
product_stage: create
66
product_group: group::editor
7-
product_category:
7+
product_category: snippets
88
value_type: number
99
status: data_available
1010
time_frame: 28d
1111
data_source: redis_hll
1212
distribution:
1313
- ce
14+
- ee
1415
tier:
1516
- free
16-
skip_validation: true
17+
- premium
18+
- ultimate
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
---
22
key_path: redis_hll_counters.ide_edit.ide_edit_total_unique_counts_monthly
3-
description:
3+
description: Count of unique users per month who edited a file from the Web IDE
44
product_section: dev
55
product_stage: create
66
product_group: group::editor
7-
product_category:
7+
product_category: web_ide
88
value_type: number
99
status: data_available
1010
time_frame: 28d
1111
data_source: redis_hll
1212
distribution:
1313
- ce
14+
- ee
1415
tier:
1516
- free
16-
skip_validation: true
17+
- premium
18+
- ultimate
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
---
22
key_path: usage_activity_by_stage_monthly.create.action_monthly_active_users_wiki_repo
3-
description:
3+
description: Unique monthly active users of the Wiki
44
product_section: dev
55
product_stage: create
6-
product_group: group::knowledge
6+
product_group: group::editor
77
product_category: wiki
88
value_type: number
99
status: data_available
1010
time_frame: 28d
11-
data_source:
11+
data_source: redis_hll
1212
distribution:
1313
- ce
14+
- ee
1415
tier:
1516
- free
16-
skip_validation: true
17+
- premium
18+
- ultimate
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
---
22
key_path: redis_hll_counters.ide_edit.g_edit_by_sse_monthly
3-
description: ''
4-
product_section: ''
5-
product_stage: ''
6-
product_group: ''
7-
product_category: ''
3+
description: Number of user editing files using the Static Site Editor
4+
product_section: dev
5+
product_stage: create
6+
product_group: group::editor
7+
product_category: static_site_editor
88
value_type: number
99
status: data_available
1010
time_frame: 28d
1111
data_source: redis_hll
1212
distribution:
1313
- ce
14+
- ee
1415
tier:
1516
- free
16-
skip_validation: true
17+
- premium
18+
- ultimate

0 commit comments

Comments
 (0)