diff --git a/workspaces/orchestrator/package.json b/workspaces/orchestrator/package.json index b225887ed..0d50ac545 100644 --- a/workspaces/orchestrator/package.json +++ b/workspaces/orchestrator/package.json @@ -43,7 +43,7 @@ "@spotify/prettier-config": "^12.0.0", "knip": "^5.27.4", "node-gyp": "^9.0.0", - "prettier": "^2.3.2", + "prettier": "3.3.3", "typescript": "~5.3.0" }, "resolutions": { diff --git a/workspaces/orchestrator/packages/app/public/index.html b/workspaces/orchestrator/packages/app/public/index.html index 18da7c477..00859982f 100644 --- a/workspaces/orchestrator/packages/app/public/index.html +++ b/workspaces/orchestrator/packages/app/public/index.html @@ -1,4 +1,4 @@ - + diff --git a/workspaces/orchestrator/plugins/orchestrator-backend/src/service/DataIndexService.ts b/workspaces/orchestrator/plugins/orchestrator-backend/src/service/DataIndexService.ts index 4b4ddd52a..c0365360b 100644 --- a/workspaces/orchestrator/plugins/orchestrator-backend/src/service/DataIndexService.ts +++ b/workspaces/orchestrator/plugins/orchestrator-backend/src/service/DataIndexService.ts @@ -60,9 +60,8 @@ export class DataIndexService { public async initInputProcessDefinitionArgs(): Promise { if (this.processDefinitionArguments.length === 0) { - this.processDefinitionArguments = await this.inspectInputArgument( - 'ProcessDefinition', - ); + this.processDefinitionArguments = + await this.inspectInputArgument('ProcessDefinition'); } return this.processDefinitionArguments; // For testing purposes } diff --git a/workspaces/orchestrator/plugins/orchestrator-backend/src/service/DevModeService.ts b/workspaces/orchestrator/plugins/orchestrator-backend/src/service/DevModeService.ts index 05a9d82dc..f89b86b5f 100644 --- a/workspaces/orchestrator/plugins/orchestrator-backend/src/service/DevModeService.ts +++ b/workspaces/orchestrator/plugins/orchestrator-backend/src/service/DevModeService.ts @@ -52,7 +52,10 @@ export class DevModeService { private readonly connection: DevModeConnectionConfig; private readonly gitService; - constructor(config: Config, private readonly logger: LoggerService) { + constructor( + config: Config, + private readonly logger: LoggerService, + ) { this.connection = this.extractConnectionConfig(config); this.gitService = new GitService(logger, config); } diff --git a/workspaces/orchestrator/plugins/orchestrator-backend/src/service/SonataFlowService.ts b/workspaces/orchestrator/plugins/orchestrator-backend/src/service/SonataFlowService.ts index f23319b31..0b7e5fc0c 100644 --- a/workspaces/orchestrator/plugins/orchestrator-backend/src/service/SonataFlowService.ts +++ b/workspaces/orchestrator/plugins/orchestrator-backend/src/service/SonataFlowService.ts @@ -57,9 +57,8 @@ export class SonataFlowService { public async fetchWorkflowDefinition( definitionId: string, ): Promise { - const source = await this.dataIndexService.fetchWorkflowSource( - definitionId, - ); + const source = + await this.dataIndexService.fetchWorkflowSource(definitionId); if (source) { return fromWorkflowSource(source); } @@ -157,9 +156,8 @@ export class SonataFlowService { public async fetchWorkflowOverview( definitionId: string, ): Promise { - const source = await this.dataIndexService.fetchWorkflowSource( - definitionId, - ); + const source = + await this.dataIndexService.fetchWorkflowSource(definitionId); if (!source) { this.logger.debug(`Workflow source not found: ${definitionId}`); return undefined; diff --git a/workspaces/orchestrator/plugins/orchestrator-backend/src/service/api/v2.test.ts b/workspaces/orchestrator/plugins/orchestrator-backend/src/service/api/v2.test.ts index ac29a9fda..33e02df75 100644 --- a/workspaces/orchestrator/plugins/orchestrator-backend/src/service/api/v2.test.ts +++ b/workspaces/orchestrator/plugins/orchestrator-backend/src/service/api/v2.test.ts @@ -311,9 +311,8 @@ describe('getWorkflowOverviewById', () => { ).mockResolvedValue(mockOverviewsV1); // Act - const result: WorkflowOverviewDTO = await v2.getWorkflowOverviewById( - 'test_workflowId', - ); + const result: WorkflowOverviewDTO = + await v2.getWorkflowOverviewById('test_workflowId'); // Assert expect(result).toEqual(mapToWorkflowOverviewDTO(mockOverviewsV1)); diff --git a/workspaces/orchestrator/plugins/orchestrator-form-react/src/utils/generateUiSchema.ts b/workspaces/orchestrator/plugins/orchestrator-form-react/src/utils/generateUiSchema.ts index 9567ad2ef..980b28b35 100644 --- a/workspaces/orchestrator/plugins/orchestrator-form-react/src/utils/generateUiSchema.ts +++ b/workspaces/orchestrator/plugins/orchestrator-form-react/src/utils/generateUiSchema.ts @@ -69,10 +69,13 @@ function replaceSparseArrayElementsdWithEmptyObject(value: any): any { return item ? replaceSparseArrayElementsdWithEmptyObject(item) : {}; }); } else if (value && typeof value === 'object') { - return Object.keys(value).reduce((acc, key) => { - acc[key] = replaceSparseArrayElementsdWithEmptyObject(value[key]); - return acc; - }, {} as Record); + return Object.keys(value).reduce( + (acc, key) => { + acc[key] = replaceSparseArrayElementsdWithEmptyObject(value[key]); + return acc; + }, + {} as Record, + ); } return value; } diff --git a/workspaces/orchestrator/plugins/orchestrator/src/api/OrchestratorClient.test.ts b/workspaces/orchestrator/plugins/orchestrator/src/api/OrchestratorClient.test.ts index 9eb1bdf88..fb5751569 100644 --- a/workspaces/orchestrator/plugins/orchestrator/src/api/OrchestratorClient.test.ts +++ b/workspaces/orchestrator/plugins/orchestrator/src/api/OrchestratorClient.test.ts @@ -343,9 +343,8 @@ describe('OrchestratorClient', () => { jest.spyOn(axios, 'request').mockResolvedValueOnce(mockResponse); // When - const result = await orchestratorClient.listWorkflowOverviews( - paginationInfo, - ); + const result = + await orchestratorClient.listWorkflowOverviews(paginationInfo); // Then expect(result).toBeDefined(); diff --git a/workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowEditor/WorkflowEditor.tsx b/workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowEditor/WorkflowEditor.tsx index 38f299527..9fd6c3eb3 100644 --- a/workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowEditor/WorkflowEditor.tsx +++ b/workspaces/orchestrator/plugins/orchestrator/src/components/WorkflowEditor/WorkflowEditor.tsx @@ -175,7 +175,7 @@ const RefForwardingWorkflowEditor: ForwardRefRenderFunction< endLineNumber: lsDiagnostic.range.end.line + 1, endColumn: lsDiagnostic.range.end.character + 1, }, - } as Notification), + }) as Notification, ); }, [editor, embeddedFile, languageService]); @@ -215,18 +215,14 @@ const RefForwardingWorkflowEditor: ForwardRefRenderFunction< }); }, [editorMode, embeddedFile, languageService, stateControl]); - useImperativeHandle( - forwardedRef, - () => { - return { - validate, - getContent, - workflowDefinition: workflowDefinitionPromise.data, - isReady: ready, - }; - }, - [validate, getContent, workflowDefinitionPromise.data, ready], - ); + useImperativeHandle(forwardedRef, () => { + return { + validate, + getContent, + workflowDefinition: workflowDefinitionPromise.data, + isReady: ready, + }; + }, [validate, getContent, workflowDefinitionPromise.data, ready]); useCancelableEffect( useCallback( diff --git a/workspaces/orchestrator/plugins/orchestrator/src/hooks/useWorkflowInstanceStatusColors.ts b/workspaces/orchestrator/plugins/orchestrator/src/hooks/useWorkflowInstanceStatusColors.ts index e1c864c77..6cb2feb9a 100644 --- a/workspaces/orchestrator/plugins/orchestrator/src/hooks/useWorkflowInstanceStatusColors.ts +++ b/workspaces/orchestrator/plugins/orchestrator/src/hooks/useWorkflowInstanceStatusColors.ts @@ -38,7 +38,7 @@ const useStyles = makeStyles( [ProcessInstanceStatusDTO.Pending]: { color: theme.palette.grey[500], }, - } as const), + }) as const, ); export const useWorkflowInstanceStateColors = ( diff --git a/workspaces/orchestrator/yarn.lock b/workspaces/orchestrator/yarn.lock index 00ba26c6b..1b9bf169f 100644 --- a/workspaces/orchestrator/yarn.lock +++ b/workspaces/orchestrator/yarn.lock @@ -7364,7 +7364,7 @@ __metadata: "@spotify/prettier-config": ^12.0.0 knip: ^5.27.4 node-gyp: ^9.0.0 - prettier: ^2.3.2 + prettier: 3.3.3 typescript: ~5.3.0 languageName: unknown linkType: soft @@ -30122,7 +30122,7 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^2.0.0, prettier@npm:^2.3.2, prettier@npm:^2.7.1": +"prettier@npm:^2.0.0, prettier@npm:^2.7.1": version: 2.8.8 resolution: "prettier@npm:2.8.8" bin: