Commit f692d00c authored by Kerri Miller's avatar Kerri Miller Committed by Miguel Rincon

Remove diff_settings_usage_data flag

Changelog: removed
parent a9fe2f18
...@@ -347,36 +347,34 @@ export default { ...@@ -347,36 +347,34 @@ export default {
this.setHighlightedRow(id.split('diff-content').pop().slice(1)); this.setHighlightedRow(id.split('diff-content').pop().slice(1));
} }
if (window.gon?.features?.diffSettingsUsageData) { const events = [];
const events = [];
if (this.renderTreeList) { if (this.renderTreeList) {
events.push(TRACKING_FILE_BROWSER_TREE); events.push(TRACKING_FILE_BROWSER_TREE);
} else { } else {
events.push(TRACKING_FILE_BROWSER_LIST); 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.showWhitespace) { if (this.diffViewType === INLINE_DIFF_VIEW_TYPE) {
events.push(TRACKING_WHITESPACE_SHOW); events.push(TRACKING_DIFF_VIEW_INLINE);
} else { } else {
events.push(TRACKING_WHITESPACE_HIDE); events.push(TRACKING_DIFF_VIEW_PARALLEL);
} }
if (this.viewDiffsFileByFile) { if (this.showWhitespace) {
events.push(TRACKING_SINGLE_FILE_MODE); events.push(TRACKING_WHITESPACE_SHOW);
} else { } else {
events.push(TRACKING_MULTIPLE_FILES_MODE); events.push(TRACKING_WHITESPACE_HIDE);
} }
queueRedisHllEvents(events); if (this.viewDiffsFileByFile) {
events.push(TRACKING_SINGLE_FILE_MODE);
} else {
events.push(TRACKING_MULTIPLE_FILES_MODE);
} }
queueRedisHllEvents(events);
this.subscribeToVirtualScrollingEvents(); this.subscribeToVirtualScrollingEvents();
}, },
beforeCreate() { beforeCreate() {
......
...@@ -376,9 +376,7 @@ export const setInlineDiffViewType = ({ commit }) => { ...@@ -376,9 +376,7 @@ export const setInlineDiffViewType = ({ commit }) => {
const url = mergeUrlParams({ view: INLINE_DIFF_VIEW_TYPE }, window.location.href); const url = mergeUrlParams({ view: INLINE_DIFF_VIEW_TYPE }, window.location.href);
historyPushState(url); 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 }) => { export const setParallelDiffViewType = ({ commit }) => {
...@@ -388,9 +386,7 @@ export const setParallelDiffViewType = ({ commit }) => { ...@@ -388,9 +386,7 @@ export const setParallelDiffViewType = ({ commit }) => {
const url = mergeUrlParams({ view: PARALLEL_DIFF_VIEW_TYPE }, window.location.href); const url = mergeUrlParams({ view: PARALLEL_DIFF_VIEW_TYPE }, window.location.href);
historyPushState(url); 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 }) => { export const showCommentForm = ({ commit }, { lineCode, fileHash }) => {
...@@ -576,7 +572,7 @@ export const setRenderTreeList = ({ commit }, { renderTreeList, trackClick = tru ...@@ -576,7 +572,7 @@ export const setRenderTreeList = ({ commit }, { renderTreeList, trackClick = tru
localStorage.setItem(TREE_LIST_STORAGE_KEY, renderTreeList); localStorage.setItem(TREE_LIST_STORAGE_KEY, renderTreeList);
if (window.gon?.features?.diffSettingsUsageData && trackClick) { if (trackClick) {
const events = [TRACKING_CLICK_FILE_BROWSER_SETTING]; const events = [TRACKING_CLICK_FILE_BROWSER_SETTING];
if (renderTreeList) { if (renderTreeList) {
...@@ -600,7 +596,7 @@ export const setShowWhitespace = async ( ...@@ -600,7 +596,7 @@ export const setShowWhitespace = async (
commit(types.SET_SHOW_WHITESPACE, showWhitespace); commit(types.SET_SHOW_WHITESPACE, showWhitespace);
notesEventHub.$emit('refetchDiffData'); notesEventHub.$emit('refetchDiffData');
if (window.gon?.features?.diffSettingsUsageData && trackClick) { if (trackClick) {
const events = [TRACKING_CLICK_WHITESPACE_SETTING]; const events = [TRACKING_CLICK_WHITESPACE_SETTING];
if (showWhitespace) { if (showWhitespace) {
...@@ -827,18 +823,16 @@ export const navigateToDiffFileIndex = ({ commit, state }, index) => { ...@@ -827,18 +823,16 @@ export const navigateToDiffFileIndex = ({ commit, state }, index) => {
export const setFileByFile = ({ state, commit }, { fileByFile }) => { export const setFileByFile = ({ state, commit }, { fileByFile }) => {
commit(types.SET_FILE_BY_FILE, fileByFile); commit(types.SET_FILE_BY_FILE, fileByFile);
if (window.gon?.features?.diffSettingsUsageData) { const events = [TRACKING_CLICK_SINGLE_FILE_SETTING];
const events = [TRACKING_CLICK_SINGLE_FILE_SETTING];
if (fileByFile) {
events.push(TRACKING_SINGLE_FILE_MODE);
} else {
events.push(TRACKING_MULTIPLE_FILES_MODE);
}
queueRedisHllEvents(events); if (fileByFile) {
events.push(TRACKING_SINGLE_FILE_MODE);
} else {
events.push(TRACKING_MULTIPLE_FILES_MODE);
} }
queueRedisHllEvents(events);
return axios return axios
.put(state.endpointUpdateUser, { .put(state.endpointUpdateUser, {
view_diffs_file_by_file: fileByFile, view_diffs_file_by_file: fileByFile,
......
...@@ -44,10 +44,6 @@ class Projects::MergeRequestsController < Projects::MergeRequests::ApplicationCo ...@@ -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(:secure_vulnerability_training, project, default_enabled: :yaml)
push_frontend_feature_flag(:issue_assignees_widget, @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) 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 end
before_action do before_action do
......
---
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
...@@ -178,62 +178,50 @@ ...@@ -178,62 +178,50 @@
redis_slot: code_review redis_slot: code_review
category: code_review category: code_review
aggregation: weekly aggregation: weekly
feature_flag: diff_settings_usage_data
- name: i_code_review_click_single_file_mode_setting - name: i_code_review_click_single_file_mode_setting
redis_slot: code_review redis_slot: code_review
category: code_review category: code_review
aggregation: weekly aggregation: weekly
feature_flag: diff_settings_usage_data
- name: i_code_review_click_file_browser_setting - name: i_code_review_click_file_browser_setting
redis_slot: code_review redis_slot: code_review
category: code_review category: code_review
aggregation: weekly aggregation: weekly
feature_flag: diff_settings_usage_data
- name: i_code_review_click_whitespace_setting - name: i_code_review_click_whitespace_setting
redis_slot: code_review redis_slot: code_review
category: code_review category: code_review
aggregation: weekly aggregation: weekly
feature_flag: diff_settings_usage_data
- name: i_code_review_diff_view_inline - name: i_code_review_diff_view_inline
redis_slot: code_review redis_slot: code_review
category: code_review category: code_review
aggregation: weekly aggregation: weekly
feature_flag: diff_settings_usage_data
- name: i_code_review_diff_view_parallel - name: i_code_review_diff_view_parallel
redis_slot: code_review redis_slot: code_review
category: code_review category: code_review
aggregation: weekly aggregation: weekly
feature_flag: diff_settings_usage_data
- name: i_code_review_file_browser_tree_view - name: i_code_review_file_browser_tree_view
redis_slot: code_review redis_slot: code_review
category: code_review category: code_review
aggregation: weekly aggregation: weekly
feature_flag: diff_settings_usage_data
- name: i_code_review_file_browser_list_view - name: i_code_review_file_browser_list_view
redis_slot: code_review redis_slot: code_review
category: code_review category: code_review
aggregation: weekly aggregation: weekly
feature_flag: diff_settings_usage_data
- name: i_code_review_diff_show_whitespace - name: i_code_review_diff_show_whitespace
redis_slot: code_review redis_slot: code_review
category: code_review category: code_review
aggregation: weekly aggregation: weekly
feature_flag: diff_settings_usage_data
- name: i_code_review_diff_hide_whitespace - name: i_code_review_diff_hide_whitespace
redis_slot: code_review redis_slot: code_review
category: code_review category: code_review
aggregation: weekly aggregation: weekly
feature_flag: diff_settings_usage_data
- name: i_code_review_diff_single_file - name: i_code_review_diff_single_file
redis_slot: code_review redis_slot: code_review
category: code_review category: code_review
aggregation: weekly aggregation: weekly
feature_flag: diff_settings_usage_data
- name: i_code_review_diff_multiple_files - name: i_code_review_diff_multiple_files
redis_slot: code_review redis_slot: code_review
category: code_review category: code_review
aggregation: weekly aggregation: weekly
feature_flag: diff_settings_usage_data
- name: i_code_review_user_load_conflict_ui - name: i_code_review_user_load_conflict_ui
redis_slot: code_review redis_slot: code_review
category: code_review category: code_review
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment