Skip to content

Commit a1504cf

Browse files
authored
chore: Remove "User added action" telemetry event (#19051)
1 parent 17ce65a commit a1504cf

File tree

3 files changed

+0
-37
lines changed

3 files changed

+0
-37
lines changed

packages/frontend/editor-ui/src/components/Node/NodeCreator/composables/useActions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ export const useActions = () => {
397397
resource: (action.value as INodeParameters).resource || '',
398398
};
399399
void useExternalHooks().run('nodeCreateList.addAction', payload);
400-
useNodeCreatorStore().onAddActions(payload);
401400
}
402401

403402
return {

packages/frontend/editor-ui/src/stores/nodeCreator.store.test.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ const node_type = 'node-type';
2121
const node_id = 'node-id';
2222
const node_version = 1;
2323
const input_node_type = 'input-node-type';
24-
const action = 'action';
25-
const source_mode = 'source-mode';
26-
const resource = 'resource';
2724
const actions = ['action1'];
2825

2926
vi.mock('@/composables/useTelemetry', () => {
@@ -162,28 +159,6 @@ describe('useNodeCreatorStore', () => {
162159
});
163160
});
164161

165-
it('tracks event when action is added', () => {
166-
nodeCreatorStore.onCreatorOpened({
167-
source,
168-
mode,
169-
workflow_id,
170-
});
171-
nodeCreatorStore.onAddActions({
172-
node_type,
173-
action,
174-
source_mode,
175-
resource,
176-
});
177-
178-
expect(useTelemetry().track).toHaveBeenCalledWith('User added action', {
179-
node_type,
180-
action,
181-
source_mode,
182-
resource,
183-
nodes_panel_session_id: getSessionId(now),
184-
});
185-
});
186-
187162
it('tracks when custom api action is clicked', () => {
188163
nodeCreatorStore.onCreatorOpened({
189164
source,

packages/frontend/editor-ui/src/stores/nodeCreator.store.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { transformNodeType } from '@/components/Node/NodeCreator/utils';
2323
import type {
2424
IDataObject,
2525
INodeInputConfiguration,
26-
NodeParameterValueType,
2726
NodeConnectionType,
2827
Workflow,
2928
} from 'n8n-workflow';
@@ -391,15 +390,6 @@ export const useNodeCreatorStore = defineStore(STORES.NODE_CREATOR, () => {
391390
trackNodeCreatorEvent('User clicked custom API from node actions', properties);
392391
}
393392

394-
function onAddActions(properties: {
395-
node_type?: string;
396-
action: string;
397-
source_mode: string;
398-
resource: NodeParameterValueType;
399-
}) {
400-
trackNodeCreatorEvent('User added action', properties);
401-
}
402-
403393
function onSubcategorySelected(properties: { subcategory: string }) {
404394
trackNodeCreatorEvent('User viewed node category', {
405395
category_name: properties.subcategory,
@@ -459,7 +449,6 @@ export const useNodeCreatorStore = defineStore(STORES.NODE_CREATOR, () => {
459449
onCategoryExpanded,
460450
onActionsCustomAPIClicked,
461451
onViewActions,
462-
onAddActions,
463452
onSubcategorySelected,
464453
onNodeAddedToCanvas,
465454
};

0 commit comments

Comments
 (0)