mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
chore: Remove "User added action" telemetry event (#19051)
This commit is contained in:
@@ -397,7 +397,6 @@ export const useActions = () => {
|
|||||||
resource: (action.value as INodeParameters).resource || '',
|
resource: (action.value as INodeParameters).resource || '',
|
||||||
};
|
};
|
||||||
void useExternalHooks().run('nodeCreateList.addAction', payload);
|
void useExternalHooks().run('nodeCreateList.addAction', payload);
|
||||||
useNodeCreatorStore().onAddActions(payload);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -21,9 +21,6 @@ const node_type = 'node-type';
|
|||||||
const node_id = 'node-id';
|
const node_id = 'node-id';
|
||||||
const node_version = 1;
|
const node_version = 1;
|
||||||
const input_node_type = 'input-node-type';
|
const input_node_type = 'input-node-type';
|
||||||
const action = 'action';
|
|
||||||
const source_mode = 'source-mode';
|
|
||||||
const resource = 'resource';
|
|
||||||
const actions = ['action1'];
|
const actions = ['action1'];
|
||||||
|
|
||||||
vi.mock('@/composables/useTelemetry', () => {
|
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', () => {
|
it('tracks when custom api action is clicked', () => {
|
||||||
nodeCreatorStore.onCreatorOpened({
|
nodeCreatorStore.onCreatorOpened({
|
||||||
source,
|
source,
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ import { transformNodeType } from '@/components/Node/NodeCreator/utils';
|
|||||||
import type {
|
import type {
|
||||||
IDataObject,
|
IDataObject,
|
||||||
INodeInputConfiguration,
|
INodeInputConfiguration,
|
||||||
NodeParameterValueType,
|
|
||||||
NodeConnectionType,
|
NodeConnectionType,
|
||||||
Workflow,
|
Workflow,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
@@ -391,15 +390,6 @@ export const useNodeCreatorStore = defineStore(STORES.NODE_CREATOR, () => {
|
|||||||
trackNodeCreatorEvent('User clicked custom API from node actions', properties);
|
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 }) {
|
function onSubcategorySelected(properties: { subcategory: string }) {
|
||||||
trackNodeCreatorEvent('User viewed node category', {
|
trackNodeCreatorEvent('User viewed node category', {
|
||||||
category_name: properties.subcategory,
|
category_name: properties.subcategory,
|
||||||
@@ -459,7 +449,6 @@ export const useNodeCreatorStore = defineStore(STORES.NODE_CREATOR, () => {
|
|||||||
onCategoryExpanded,
|
onCategoryExpanded,
|
||||||
onActionsCustomAPIClicked,
|
onActionsCustomAPIClicked,
|
||||||
onViewActions,
|
onViewActions,
|
||||||
onAddActions,
|
|
||||||
onSubcategorySelected,
|
onSubcategorySelected,
|
||||||
onNodeAddedToCanvas,
|
onNodeAddedToCanvas,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user