mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 12:19:09 +00:00
fix(editor): Remove feature flag from evals feature (#17107)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user