mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
feat: Make the 'set output' node optional if you inserted a 'set metrics' node (no-changelog) (#16955)
This commit is contained in:
@@ -49,11 +49,7 @@ const initializeActiveStep = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
evaluationStore.evaluationTriggerExists &&
|
||||
evaluationStore.evaluationSetOutputsNodeExist &&
|
||||
evaluationStore.evaluationSetMetricsNodeExist
|
||||
) {
|
||||
if (evaluationStore.evaluationTriggerExists && evaluationStore.evaluationSetMetricsNodeExist) {
|
||||
activeStepIndex.value = 3;
|
||||
} else if (
|
||||
evaluationStore.evaluationTriggerExists &&
|
||||
@@ -241,7 +237,8 @@ function onSeePlans() {
|
||||
type="secondary"
|
||||
:disabled="
|
||||
!evaluationStore.evaluationTriggerExists ||
|
||||
!evaluationStore.evaluationSetOutputsNodeExist
|
||||
(!evaluationStore.evaluationSetOutputsNodeExist &&
|
||||
!evaluationStore.evaluationSetMetricsNodeExist)
|
||||
"
|
||||
@click="$emit('runTest')"
|
||||
>
|
||||
@@ -253,7 +250,8 @@ function onSeePlans() {
|
||||
type="secondary"
|
||||
:disabled="
|
||||
!evaluationStore.evaluationTriggerExists ||
|
||||
!evaluationStore.evaluationSetOutputsNodeExist
|
||||
(!evaluationStore.evaluationSetOutputsNodeExist &&
|
||||
!evaluationStore.evaluationSetMetricsNodeExist)
|
||||
"
|
||||
@click="navigateToWorkflow('executeEvaluation')"
|
||||
>
|
||||
|
||||
@@ -32,7 +32,6 @@ const errorTooltipMap: Record<string, BaseTextKey> = {
|
||||
TEST_CASES_NOT_FOUND: 'evaluation.listRuns.error.testCasesNotFound',
|
||||
EVALUATION_TRIGGER_NOT_FOUND: 'evaluation.listRuns.error.evaluationTriggerNotFound',
|
||||
EVALUATION_TRIGGER_NOT_CONFIGURED: 'evaluation.listRuns.error.evaluationTriggerNotConfigured',
|
||||
SET_OUTPUTS_NODE_NOT_FOUND: 'evaluation.listRuns.error.setOutputsNodeNotFound',
|
||||
SET_OUTPUTS_NODE_NOT_CONFIGURED: 'evaluation.listRuns.error.setOutputsNodeNotConfigured',
|
||||
SET_METRICS_NODE_NOT_FOUND: 'evaluation.listRuns.error.setMetricsNodeNotFound',
|
||||
SET_METRICS_NODE_NOT_CONFIGURED: 'evaluation.listRuns.error.setMetricsNodeNotConfigured',
|
||||
|
||||
@@ -18,7 +18,6 @@ const TEST_RUN_ERROR_CODES = {
|
||||
EVALUATION_TRIGGER_NOT_FOUND: 'EVALUATION_TRIGGER_NOT_FOUND',
|
||||
EVALUATION_TRIGGER_NOT_CONFIGURED: 'EVALUATION_TRIGGER_NOT_CONFIGURED',
|
||||
EVALUATION_TRIGGER_DISABLED: 'EVALUATION_TRIGGER_DISABLED',
|
||||
SET_OUTPUTS_NODE_NOT_FOUND: 'SET_OUTPUTS_NODE_NOT_FOUND',
|
||||
SET_OUTPUTS_NODE_NOT_CONFIGURED: 'SET_OUTPUTS_NODE_NOT_CONFIGURED',
|
||||
SET_METRICS_NODE_NOT_FOUND: 'SET_METRICS_NODE_NOT_FOUND',
|
||||
SET_METRICS_NODE_NOT_CONFIGURED: 'SET_METRICS_NODE_NOT_CONFIGURED',
|
||||
@@ -42,7 +41,6 @@ const testRunErrorDictionary: Partial<Record<TestRunErrorCode, BaseTextKey>> = {
|
||||
EVALUATION_TRIGGER_NOT_FOUND: 'evaluation.listRuns.error.evaluationTriggerNotFound',
|
||||
EVALUATION_TRIGGER_NOT_CONFIGURED: 'evaluation.listRuns.error.evaluationTriggerNotConfigured',
|
||||
EVALUATION_TRIGGER_DISABLED: 'evaluation.listRuns.error.evaluationTriggerDisabled',
|
||||
SET_OUTPUTS_NODE_NOT_FOUND: 'evaluation.listRuns.error.setOutputsNodeNotFound',
|
||||
SET_OUTPUTS_NODE_NOT_CONFIGURED: 'evaluation.listRuns.error.setOutputsNodeNotConfigured',
|
||||
SET_METRICS_NODE_NOT_FOUND: 'evaluation.listRuns.error.setMetricsNodeNotFound',
|
||||
SET_METRICS_NODE_NOT_CONFIGURED: 'evaluation.listRuns.error.setMetricsNodeNotConfigured',
|
||||
|
||||
Reference in New Issue
Block a user