Skip to content

Commit 26f8edd

Browse files
authored
Merge pull request #171 from bcgov/AI-1192
AI-1192 Consolidated Workflow Code
2 parents 6eb0280 + 3b56532 commit 26f8edd

28 files changed

Lines changed: 3821 additions & 9737 deletions

.github/workflows/frontend-qa.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
node-version: '24'
2626
- name: Install dependencies
2727
run: npm install --ignore-scripts --no-package-lock
28+
- name: Build graph-workflow package
29+
run: npm run build -w packages/graph-workflow
2830
- name: Run Linter
2931
working-directory: apps/frontend
3032
run: npm run lint

apps/backend-services/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ RUN cd /packages/graph-insertion-slots && npm install && npm run build
2020
COPY packages/blob-storage-paths /packages/blob-storage-paths
2121
RUN cd /packages/blob-storage-paths && npm install --ignore-scripts && npm run build
2222

23+
COPY packages/graph-workflow /packages/graph-workflow
24+
RUN cd /packages/graph-workflow && npm install --ignore-scripts && npm run build
25+
2326
COPY packages/monitoring /packages/monitoring
2427
RUN mkdir -p /packages/monitoring/node_modules/@ai-di && \
2528
ln -s /packages/logging /packages/monitoring/node_modules/@ai-di/shared-logging && \
@@ -61,6 +64,7 @@ RUN addgroup -g 1001 -S nodejs && \
6164
COPY --from=builder /packages/logging /packages/logging
6265
COPY --from=builder /packages/graph-insertion-slots /packages/graph-insertion-slots
6366
COPY --from=builder /packages/blob-storage-paths /packages/blob-storage-paths
67+
COPY --from=builder /packages/graph-workflow /packages/graph-workflow
6468
COPY --from=builder /packages/monitoring /packages/monitoring
6569

6670
# Copy package files

apps/backend-services/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"private": true,
77
"license": "Apache-2.0",
88
"scripts": {
9-
"build": "npm run db:generate && npm run build:graph-insertion-slots && nest build",
10-
"build:prod": "NODE_ENV=production npm run db:generate && npm run build:graph-insertion-slots && nest build",
9+
"build": "npm run db:generate && nest build",
10+
"build:prod": "NODE_ENV=production npm run db:generate && nest build",
1111
"build:logging": "cd ../../packages/logging && npm run build",
1212
"format": "prettier --write \"src/**/*.ts\"",
1313
"start": "nest start",
14-
"start:dev": "npm run build:logging && npm run build:graph-insertion-slots && NODE_ENV=development CHOKIDAR_USEPOLLING=true CHOKIDAR_INTERVAL=1000 nest start --watch --preserveWatchOutput",
14+
"start:dev": "CHOKIDAR_USEPOLLING=true CHOKIDAR_INTERVAL=1000 nest start --watch --preserveWatchOutput",
1515
"start:prod": "node dist/main",
1616
"lint": "npx @biomejs/biome check",
1717
"lint:fix": "npm run lint -- --write",
@@ -28,11 +28,13 @@
2828
"db:status": "prisma migrate status",
2929
"db:studio": "BROWSER=none prisma studio --port 5555",
3030
"db:seed": "prisma db seed",
31+
"build:graph-workflow": "cd ../../packages/graph-workflow && npm run build",
3132
"build:graph-insertion-slots": "cd ../../packages/graph-insertion-slots && npm run build"
3233
},
3334
"dependencies": {
3435
"@ai-di/blob-storage-paths": "file:../../packages/blob-storage-paths",
3536
"@ai-di/graph-insertion-slots": "file:../../packages/graph-insertion-slots",
37+
"@ai-di/graph-workflow": "file:../../packages/graph-workflow",
3638
"@ai-di/monitoring": "file:../../packages/monitoring",
3739
"@ai-di/shared-logging": "file:../../packages/logging",
3840
"@aws-sdk/client-s3": "3.990.0",

apps/backend-services/src/workflow/activity-parameter-schema-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* See docs-md/graph-workflows/DAG_WORKFLOW_ENGINE.md
99
*/
10-
import type { GraphValidationError } from "./graph-workflow-types";
10+
import type { GraphValidationError } from "@ai-di/graph-workflow";
1111

1212
const VALID_TRANSFORM_FORMATS = new Set(["json", "xml", "csv"]);
1313

0 commit comments

Comments
 (0)