Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f692d00c
Commit
f692d00c
authored
Apr 12, 2022
by
Kerri Miller
Committed by
Miguel Rincon
Apr 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove diff_settings_usage_data flag
Changelog: removed
parent
a9fe2f18
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
65 deletions
+33
-65
app/assets/javascripts/diffs/components/app.vue
app/assets/javascripts/diffs/components/app.vue
+22
-24
app/assets/javascripts/diffs/store/actions.js
app/assets/javascripts/diffs/store/actions.js
+11
-17
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+0
-4
config/feature_flags/development/diff_settings_usage_data.yml
...ig/feature_flags/development/diff_settings_usage_data.yml
+0
-8
lib/gitlab/usage_data_counters/known_events/code_review_events.yml
...b/usage_data_counters/known_events/code_review_events.yml
+0
-12
No files found.
app/assets/javascripts/diffs/components/app.vue
View file @
f692d00c
...
...
@@ -347,36 +347,34 @@ export default {
this
.
setHighlightedRow
(
id
.
split
(
'
diff-content
'
).
pop
().
slice
(
1
));
}
if
(
window
.
gon
?.
features
?.
diffSettingsUsageData
)
{
const
events
=
[];
const
events
=
[];
if
(
this
.
renderTreeList
)
{
events
.
push
(
TRACKING_FILE_BROWSER_TREE
);
}
else
{
events
.
push
(
TRACKING_FILE_BROWSER_LIST
);
}
if
(
this
.
diffViewType
===
INLINE_DIFF_VIEW_TYPE
)
{
events
.
push
(
TRACKING_DIFF_VIEW_INLINE
);
}
else
{
events
.
push
(
TRACKING_DIFF_VIEW_PARALLEL
);
}
if
(
this
.
renderTreeList
)
{
events
.
push
(
TRACKING_FILE_BROWSER_TREE
);
}
else
{
events
.
push
(
TRACKING_FILE_BROWSER_LIST
);
}
if
(
this
.
showWhitespace
)
{
events
.
push
(
TRACKING_WHITESPACE_SHOW
);
}
else
{
events
.
push
(
TRACKING_WHITESPACE_HIDE
);
}
if
(
this
.
diffViewType
===
INLINE_DIFF_VIEW_TYPE
)
{
events
.
push
(
TRACKING_DIFF_VIEW_INLINE
);
}
else
{
events
.
push
(
TRACKING_DIFF_VIEW_PARALLEL
);
}
if
(
this
.
viewDiffsFileByFil
e
)
{
events
.
push
(
TRACKING_SINGLE_FILE_MODE
);
}
else
{
events
.
push
(
TRACKING_MULTIPLE_FILES_MO
DE
);
}
if
(
this
.
showWhitespac
e
)
{
events
.
push
(
TRACKING_WHITESPACE_SHOW
);
}
else
{
events
.
push
(
TRACKING_WHITESPACE_HI
DE
);
}
queueRedisHllEvents
(
events
);
if
(
this
.
viewDiffsFileByFile
)
{
events
.
push
(
TRACKING_SINGLE_FILE_MODE
);
}
else
{
events
.
push
(
TRACKING_MULTIPLE_FILES_MODE
);
}
queueRedisHllEvents
(
events
);
this
.
subscribeToVirtualScrollingEvents
();
},
beforeCreate
()
{
...
...
app/assets/javascripts/diffs/store/actions.js
View file @
f692d00c
...
...
@@ -376,9 +376,7 @@ export const setInlineDiffViewType = ({ commit }) => {
const
url
=
mergeUrlParams
({
view
:
INLINE_DIFF_VIEW_TYPE
},
window
.
location
.
href
);
historyPushState
(
url
);
if
(
window
.
gon
?.
features
?.
diffSettingsUsageData
)
{
queueRedisHllEvents
([
TRACKING_CLICK_DIFF_VIEW_SETTING
,
TRACKING_DIFF_VIEW_INLINE
]);
}
queueRedisHllEvents
([
TRACKING_CLICK_DIFF_VIEW_SETTING
,
TRACKING_DIFF_VIEW_INLINE
]);
};
export
const
setParallelDiffViewType
=
({
commit
})
=>
{
...
...
@@ -388,9 +386,7 @@ export const setParallelDiffViewType = ({ commit }) => {
const
url
=
mergeUrlParams
({
view
:
PARALLEL_DIFF_VIEW_TYPE
},
window
.
location
.
href
);
historyPushState
(
url
);
if
(
window
.
gon
?.
features
?.
diffSettingsUsageData
)
{
queueRedisHllEvents
([
TRACKING_CLICK_DIFF_VIEW_SETTING
,
TRACKING_DIFF_VIEW_PARALLEL
]);
}
queueRedisHllEvents
([
TRACKING_CLICK_DIFF_VIEW_SETTING
,
TRACKING_DIFF_VIEW_PARALLEL
]);
};
export
const
showCommentForm
=
({
commit
},
{
lineCode
,
fileHash
})
=>
{
...
...
@@ -576,7 +572,7 @@ export const setRenderTreeList = ({ commit }, { renderTreeList, trackClick = tru
localStorage
.
setItem
(
TREE_LIST_STORAGE_KEY
,
renderTreeList
);
if
(
window
.
gon
?.
features
?.
diffSettingsUsageData
&&
trackClick
)
{
if
(
trackClick
)
{
const
events
=
[
TRACKING_CLICK_FILE_BROWSER_SETTING
];
if
(
renderTreeList
)
{
...
...
@@ -600,7 +596,7 @@ export const setShowWhitespace = async (
commit
(
types
.
SET_SHOW_WHITESPACE
,
showWhitespace
);
notesEventHub
.
$emit
(
'
refetchDiffData
'
);
if
(
window
.
gon
?.
features
?.
diffSettingsUsageData
&&
trackClick
)
{
if
(
trackClick
)
{
const
events
=
[
TRACKING_CLICK_WHITESPACE_SETTING
];
if
(
showWhitespace
)
{
...
...
@@ -827,18 +823,16 @@ export const navigateToDiffFileIndex = ({ commit, state }, index) => {
export
const
setFileByFile
=
({
state
,
commit
},
{
fileByFile
})
=>
{
commit
(
types
.
SET_FILE_BY_FILE
,
fileByFile
);
if
(
window
.
gon
?.
features
?.
diffSettingsUsageData
)
{
const
events
=
[
TRACKING_CLICK_SINGLE_FILE_SETTING
];
if
(
fileByFile
)
{
events
.
push
(
TRACKING_SINGLE_FILE_MODE
);
}
else
{
events
.
push
(
TRACKING_MULTIPLE_FILES_MODE
);
}
const
events
=
[
TRACKING_CLICK_SINGLE_FILE_SETTING
];
queueRedisHllEvents
(
events
);
if
(
fileByFile
)
{
events
.
push
(
TRACKING_SINGLE_FILE_MODE
);
}
else
{
events
.
push
(
TRACKING_MULTIPLE_FILES_MODE
);
}
queueRedisHllEvents
(
events
);
return
axios
.
put
(
state
.
endpointUpdateUser
,
{
view_diffs_file_by_file
:
fileByFile
,
...
...
app/controllers/projects/merge_requests_controller.rb
View file @
f692d00c
...
...
@@ -44,10 +44,6 @@ class Projects::MergeRequestsController < Projects::MergeRequests::ApplicationCo
push_frontend_feature_flag
(
:secure_vulnerability_training
,
project
,
default_enabled: :yaml
)
push_frontend_feature_flag
(
:issue_assignees_widget
,
@project
,
default_enabled: :yaml
)
push_frontend_feature_flag
(
:realtime_labels
,
project
,
default_enabled: :yaml
)
# Usage data feature flags
#
push_frontend_feature_flag
(
:diff_settings_usage_data
,
default_enabled: :yaml
)
end
before_action
do
...
...
config/feature_flags/development/diff_settings_usage_data.yml
deleted
100644 → 0
View file @
a9fe2f18
---
name
:
diff_settings_usage_data
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/59979
rollout_issue_url
:
milestone
:
'
13.11'
type
:
development
group
:
group::code review
default_enabled
:
true
lib/gitlab/usage_data_counters/known_events/code_review_events.yml
View file @
f692d00c
...
...
@@ -178,62 +178,50 @@
redis_slot
:
code_review
category
:
code_review
aggregation
:
weekly
feature_flag
:
diff_settings_usage_data
-
name
:
i_code_review_click_single_file_mode_setting
redis_slot
:
code_review
category
:
code_review
aggregation
:
weekly
feature_flag
:
diff_settings_usage_data
-
name
:
i_code_review_click_file_browser_setting
redis_slot
:
code_review
category
:
code_review
aggregation
:
weekly
feature_flag
:
diff_settings_usage_data
-
name
:
i_code_review_click_whitespace_setting
redis_slot
:
code_review
category
:
code_review
aggregation
:
weekly
feature_flag
:
diff_settings_usage_data
-
name
:
i_code_review_diff_view_inline
redis_slot
:
code_review
category
:
code_review
aggregation
:
weekly
feature_flag
:
diff_settings_usage_data
-
name
:
i_code_review_diff_view_parallel
redis_slot
:
code_review
category
:
code_review
aggregation
:
weekly
feature_flag
:
diff_settings_usage_data
-
name
:
i_code_review_file_browser_tree_view
redis_slot
:
code_review
category
:
code_review
aggregation
:
weekly
feature_flag
:
diff_settings_usage_data
-
name
:
i_code_review_file_browser_list_view
redis_slot
:
code_review
category
:
code_review
aggregation
:
weekly
feature_flag
:
diff_settings_usage_data
-
name
:
i_code_review_diff_show_whitespace
redis_slot
:
code_review
category
:
code_review
aggregation
:
weekly
feature_flag
:
diff_settings_usage_data
-
name
:
i_code_review_diff_hide_whitespace
redis_slot
:
code_review
category
:
code_review
aggregation
:
weekly
feature_flag
:
diff_settings_usage_data
-
name
:
i_code_review_diff_single_file
redis_slot
:
code_review
category
:
code_review
aggregation
:
weekly
feature_flag
:
diff_settings_usage_data
-
name
:
i_code_review_diff_multiple_files
redis_slot
:
code_review
category
:
code_review
aggregation
:
weekly
feature_flag
:
diff_settings_usage_data
-
name
:
i_code_review_user_load_conflict_ui
redis_slot
:
code_review
category
:
code_review
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment