Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+1
-1
@@ -132,7 +132,7 @@ describe("WorkflowBlockUtils.getBlockErrors", () => {
|
||||
});
|
||||
|
||||
expect(WorkflowBlockUtils.getBlockErrors({ workflow: workflow([manual]), block: manual })).toEqual(
|
||||
expect.arrayContaining([expect.stringContaining("workflows.validation.errors.invalidManualValidationSchema:error=")])
|
||||
expect.arrayContaining(["workflows.validation.errors.invalidManualValidationSchemaSummary"])
|
||||
);
|
||||
});
|
||||
});
|
||||
+3
-8
@@ -1,4 +1,4 @@
|
||||
import { t as i18nT } from "i18next";
|
||||
import { requestScopedT as i18nT } from "~/locale/request-scoped-t";
|
||||
import { WorkflowDto } from "../dtos/WorkflowDto";
|
||||
import { WorkflowBlockInput, WorkflowBlockType, WorkflowBlockTypes } from "../dtos/WorkflowBlockTypes";
|
||||
import { WorkflowBlockDto } from "../dtos/WorkflowBlockDto";
|
||||
@@ -11,7 +11,7 @@ function rowToDto(block: WorkflowBlockWithDetails, index: number = 0) {
|
||||
let input: any = {};
|
||||
try {
|
||||
input = JSON.parse(block.input);
|
||||
} catch (e) {}
|
||||
} catch (_e) {}
|
||||
const workflowBlock: WorkflowBlockDto = {
|
||||
id: block.id,
|
||||
index,
|
||||
@@ -129,12 +129,7 @@ function getBlockErrors({ workflow, block, validationContext }: { workflow: Work
|
||||
if (workflowBlock?.value === "manual" && block.input.validation) {
|
||||
const { error } = WorkflowsValidationService.parseJsonSchema(block.input.validation);
|
||||
if (error) {
|
||||
errors.push(
|
||||
i18nT("workflows.validation.errors.invalidManualValidationSchema", {
|
||||
error,
|
||||
defaultValue: "Manual trigger validation must be valid JSON Schema: {{error}}",
|
||||
})
|
||||
);
|
||||
errors.push(i18nT("workflows.validation.errors.invalidManualValidationSchemaSummary"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { t as i18nT } from "i18next";
|
||||
import { requestScopedT as i18nT } from "~/locale/request-scoped-t";
|
||||
import { WorkflowConditionOperators, WorkflowConditionsDto } from "../dtos/WorkflowConditionDtos";
|
||||
|
||||
type WorkflowConditionTranslator = (key: string, values?: Record<string, unknown>) => string;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { type Node, type Edge, Position, MarkerType } from "@xyflow/react";
|
||||
import { t as i18nT } from "i18next";
|
||||
import { requestScopedT as i18nT } from "~/locale/request-scoped-t";
|
||||
import dagre from "dagre";
|
||||
import { WorkflowDto } from "../dtos/WorkflowDto";
|
||||
import { WorkflowBlockDto } from "../dtos/WorkflowBlockDto";
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { Colors } from "~/application/enums/shared/Colors";
|
||||
import { t as i18nT } from "i18next";
|
||||
import { requestScopedT as i18nT } from "~/locale/request-scoped-t";
|
||||
import { WorkflowDto } from "../dtos/WorkflowDto";
|
||||
import { WorkflowBlockDto } from "../dtos/WorkflowBlockDto";
|
||||
import WorkflowBlockUtils from "./WorkflowBlockUtils";
|
||||
|
||||
Reference in new issue
Block a user