mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +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 || '',
|
||||
};
|
||||
void useExternalHooks().run('nodeCreateList.addAction', payload);
|
||||
useNodeCreatorStore().onAddActions(payload);
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user