Skip to content

Commit

Permalink
EPMRPP-83275 || extra GA event is sent when selecting edit defects op…
Browse files Browse the repository at this point in the history
…tion (#3675)
  • Loading branch information
BlazarQSO authored Nov 28, 2023
1 parent 5004a8b commit 88b30a4
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,6 @@ export const getDeleteActionEvent = (category) => ({
element_name: 'delete',
});

export const getEditDefectActionEvent = (category) => ({
...getClickListOfActionsEventCreator(category),
element_name: 'edit_defects',
});

export const getPostIssueActionEvent = (category) => ({
...getClickListOfActionsEventCreator(category),
element_name: 'post_issue',
Expand Down
2 changes: 0 additions & 2 deletions app/src/components/main/analytics/events/historyPageEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import {
getDeleteActionEvent,
getEditDefectActionEvent,
getLinkIssueActionEvent,
getUnlinkIssueActionEvent,
getPostIssueActionEvent,
Expand Down Expand Up @@ -87,7 +86,6 @@ export const HISTORY_PAGE_EVENTS = {
},
TEST_ITEM_TABS_EVENTS: getClickOnTestItemsTabsEvents(HISTORY_PAGE),
EDIT_ITEMS_ACTION,
EDIT_DEFECT_ACTION: getEditDefectActionEvent(HISTORY_PAGE),
POST_ISSUE_ACTION: getPostIssueActionEvent(HISTORY_PAGE),
LINK_ISSUE_ACTION: getLinkIssueActionEvent(HISTORY_PAGE),
DELETE_ACTION: getDeleteActionEvent(HISTORY_PAGE),
Expand Down
2 changes: 0 additions & 2 deletions app/src/components/main/analytics/events/stepPageEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
import { getBasicClickEventParameters } from './common/ga4Utils';
import {
getEditDefectActionEvent,
getDeleteActionEvent,
getLinkIssueActionEvent,
getPostIssueActionEvent,
Expand Down Expand Up @@ -105,7 +104,6 @@ export const STEP_PAGE_EVENTS = {
switcher: isActive ? 'on' : 'off',
}),
DELETE_ACTION: getDeleteActionEvent(STEP_PAGE),
EDIT_DEFECT_ACTION: getEditDefectActionEvent(STEP_PAGE),
POST_ISSUE_ACTION: getPostIssueActionEvent(STEP_PAGE),
LINK_ISSUE_ACTION: getLinkIssueActionEvent(STEP_PAGE),
UNLINK_ISSUES_ACTION: getUnlinkIssueActionEvent(STEP_PAGE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import {
getChangeItemStatusEventCreator,
getIgnoreInAutoAnalysisActionEventCreator,
getIncludeInAutoAnalysisActionEventCreator,
getEditDefectActionEvent,
} from './common/testItemPages/actionEventsCreators';
import {
getClickOnAnalyzeUniqueErrorsEventCreator,
Expand Down Expand Up @@ -82,7 +81,6 @@ export const UNIQUE_ERRORS_PAGE_EVENTS = {
DELETE_ACTION: getDeleteActionEvent(UNIQUE_ERRORS_PAGE),
IGNORE_IN_AA_ACTION: getIgnoreInAutoAnalysisActionEventCreator(UNIQUE_ERRORS_PAGE),
INCLUDE_IN_AA_ACTION: getIncludeInAutoAnalysisActionEventCreator(UNIQUE_ERRORS_PAGE),
EDIT_DEFECT_ACTION: getEditDefectActionEvent(UNIQUE_ERRORS_PAGE),
IGNORE_BTN_IGNORE_ITEMS_IN_AA_MODAL: getIgnoreBtnIgnoreItemsInAAModalEvent(UNIQUE_ERRORS_PAGE),
POST_ISSUE_MODAL_EVENTS: getPostIssueModalEvents(UNIQUE_ERRORS_PAGE),
LINK_ISSUE_MODAL_EVENTS: getLinkIssueModalEvents(UNIQUE_ERRORS_PAGE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ export class ActionPanelWithGroupOperations extends Component {
'actions',
),
);
tracking.trackEvent(HISTORY_PAGE_EVENTS.EDIT_DEFECT_ACTION);

onEditDefects(items, {
fetchFunc: this.unselectAndRefreshItems,
Expand Down
4 changes: 1 addition & 3 deletions app/src/pages/inside/stepPage/stepPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,10 @@ export class StepPage extends Component {
};

handleEditDefects = (eventData) => {
const { selectedItems, tracking } = this.props;
const { selectedItems } = this.props;
const items = eventData && eventData.id ? [eventData] : selectedItems;
const MAKE_DECISION = 'make_decision';

tracking.trackEvent(STEP_PAGE_EVENTS.EDIT_DEFECT_ACTION);

this.props.editDefectsAction(items, {
fetchFunc: this.unselectAndFetchItems,
eventsInfo: {
Expand Down
2 changes: 0 additions & 2 deletions app/src/pages/inside/uniqueErrorsPage/uniqueErrorsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ export class UniqueErrorsPage extends Component {
const { selectedItems, tracking } = this.props;
const items = eventData && eventData.id ? [eventData] : selectedItems;

tracking.trackEvent(UNIQUE_ERRORS_PAGE_EVENTS.EDIT_DEFECT_ACTION);

tracking.trackEvent(
UNIQUE_ERRORS_PAGE_EVENTS.MAKE_DECISION_MODAL_EVENTS.getOpenModalEvent(
items.length === 1
Expand Down

0 comments on commit 88b30a4

Please sign in to comment.