chore: Remove "User added action" telemetry event (#19051)

This commit is contained in:
Mutasem Aldmour
2025-09-02 10:19:57 +02:00
committed by GitHub
parent 17ce65a529
commit a1504cf42b
3 changed files with 0 additions and 37 deletions

View File

@@ -397,7 +397,6 @@ export const useActions = () => {
resource: (action.value as INodeParameters).resource || '',
};
void useExternalHooks().run('nodeCreateList.addAction', payload);
useNodeCreatorStore().onAddActions(payload);
}
return {

View File

@@ -21,9 +21,6 @@ const node_type = 'node-type';
const node_id = 'node-id';
const node_version = 1;
const input_node_type = 'input-node-type';
const action = 'action';
const source_mode = 'source-mode';
const resource = 'resource';
const actions = ['action1'];
vi.mock('@/composables/useTelemetry', () => {
@@ -162,28 +159,6 @@ describe('useNodeCreatorStore', () => {
});
});
it('tracks event when action is added', () => {
nodeCreatorStore.onCreatorOpened({
source,
mode,
workflow_id,
});
nodeCreatorStore.onAddActions({
node_type,
action,
source_mode,
resource,
});
expect(useTelemetry().track).toHaveBeenCalledWith('User added action', {
node_type,
action,
source_mode,
resource,
nodes_panel_session_id: getSessionId(now),
});
});
it('tracks when custom api action is clicked', () => {
nodeCreatorStore.onCreatorOpened({
source,

View File

@@ -23,7 +23,6 @@ import { transformNodeType } from '@/components/Node/NodeCreator/utils';
import type {
IDataObject,
INodeInputConfiguration,
NodeParameterValueType,
NodeConnectionType,
Workflow,
} from 'n8n-workflow';
@@ -391,15 +390,6 @@ export const useNodeCreatorStore = defineStore(STORES.NODE_CREATOR, () => {
trackNodeCreatorEvent('User clicked custom API from node actions', properties);
}
function onAddActions(properties: {
node_type?: string;
action: string;
source_mode: string;
resource: NodeParameterValueType;
}) {
trackNodeCreatorEvent('User added action', properties);
}
function onSubcategorySelected(properties: { subcategory: string }) {
trackNodeCreatorEvent('User viewed node category', {
category_name: properties.subcategory,
@@ -459,7 +449,6 @@ export const useNodeCreatorStore = defineStore(STORES.NODE_CREATOR, () => {
onCategoryExpanded,
onActionsCustomAPIClicked,
onViewActions,
onAddActions,
onSubcategorySelected,
onNodeAddedToCanvas,
};