fix(editor): Remove feature flag from evals feature (#17107)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Eugene
2025-07-09 13:17:14 +02:00
committed by GitHub
parent d08f306c83
commit 59704b4010
8 changed files with 6 additions and 98 deletions

View File

@@ -3,8 +3,6 @@ import { computed, ref } from 'vue';
import { useRootStore } from '@n8n/stores/useRootStore';
import * as evaluationsApi from '@/api/evaluation.ee';
import type { TestCaseExecutionRecord, TestRunRecord } from '@/api/evaluation.ee';
import { usePostHog } from './posthog.store';
import { WORKFLOW_EVALUATION_EXPERIMENT } from '@/constants';
import { STORES } from '@n8n/stores';
import { useWorkflowsStore } from '@/stores/workflows.store';
import { EVALUATION_NODE_TYPE, EVALUATION_TRIGGER_NODE_TYPE, NodeHelpers } from 'n8n-workflow';
@@ -22,7 +20,6 @@ export const useEvaluationStore = defineStore(
const pollingTimeouts = ref<Record<string, NodeJS.Timeout>>({});
// Store instances
const posthogStore = usePostHog();
const rootStore = useRootStore();
const workflowsStore = useWorkflowsStore();
const nodeTypesStore = useNodeTypesStore();
@@ -30,16 +27,7 @@ export const useEvaluationStore = defineStore(
// Computed
// Enable with `window.featureFlags.override('032_evaluation_mvp', true)`
const isFeatureEnabled = computed(() =>
posthogStore.isFeatureEnabled(WORKFLOW_EVALUATION_EXPERIMENT),
);
const isEvaluationEnabled = computed(
() =>
posthogStore.isFeatureEnabled(WORKFLOW_EVALUATION_EXPERIMENT) &&
settingsStore.settings.evaluation.quota !== 0,
);
const isEvaluationEnabled = computed(() => settingsStore.settings.evaluation?.quota !== 0);
const isLoading = computed(() => loadingTestRuns.value);
@@ -188,7 +176,6 @@ export const useEvaluationStore = defineStore(
// Computed
isLoading,
isFeatureEnabled,
isEvaluationEnabled,
testRunsByWorkflowId,
evaluationTriggerExists,