From 69f59ad8ac9a5607964adb8c21050de1a5b697d5 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Thu, 29 Apr 2021 14:11:21 -0400 Subject: [PATCH 1/3] Adding `standalone` as an attribute of a workflow_spec --- .../workflow-spec-dialog.component.ts | 11 ++++++++++- src/app/_interfaces/dialog-data.ts | 1 + .../workflow-spec-card.component.html | 3 +++ .../workflow-spec-list.component.ts | 2 ++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/app/_dialogs/workflow-spec-dialog/workflow-spec-dialog.component.ts b/src/app/_dialogs/workflow-spec-dialog/workflow-spec-dialog.component.ts index f4d0a32..c87e32b 100644 --- a/src/app/_dialogs/workflow-spec-dialog/workflow-spec-dialog.component.ts +++ b/src/app/_dialogs/workflow-spec-dialog/workflow-spec-dialog.component.ts @@ -89,7 +89,16 @@ export class WorkflowSpecDialogComponent { description: 'Write a few sentences explaining to users why this workflow exists and what it should be used for.', required: true, }, - } + }, + { + key: 'standalone', + type: 'checkbox', + defaultValue: this.data.standalone, + templateOptions: { + label: 'Standalone', + description: 'Is this a standalone workflow?', + }, + }, ]; }); } diff --git a/src/app/_interfaces/dialog-data.ts b/src/app/_interfaces/dialog-data.ts index 8eb5ffa..82dcb51 100644 --- a/src/app/_interfaces/dialog-data.ts +++ b/src/app/_interfaces/dialog-data.ts @@ -25,6 +25,7 @@ export interface WorkflowSpecDialogData { description: string; category_id: number; display_order: number; + standalone: boolean; } export interface WorkflowSpecCategoryDialogData { diff --git a/src/app/workflow-spec-card/workflow-spec-card.component.html b/src/app/workflow-spec-card/workflow-spec-card.component.html index 271c9bb..78ff917 100644 --- a/src/app/workflow-spec-card/workflow-spec-card.component.html +++ b/src/app/workflow-spec-card/workflow-spec-card.component.html @@ -19,6 +19,9 @@
ID
{{workflowSpec.id}}
Name
{{workflowSpec.name}}
Description
{{workflowSpec.description}}
+
Standalone
+
True
+
False

Workflow Spec Files

diff --git a/src/app/workflow-spec-list/workflow-spec-list.component.ts b/src/app/workflow-spec-list/workflow-spec-list.component.ts index 4d156d5..98f34c7 100644 --- a/src/app/workflow-spec-list/workflow-spec-list.component.ts +++ b/src/app/workflow-spec-list/workflow-spec-list.component.ts @@ -110,6 +110,7 @@ export class WorkflowSpecListComponent implements OnInit { description: selectedSpec ? selectedSpec.description : '', category_id: selectedSpec ? selectedSpec.category_id : null, display_order: hasDisplayOrder ? selectedSpec.display_order : 0, + standalone: selectedSpec ? selectedSpec.standalone : null, }; @@ -259,6 +260,7 @@ export class WorkflowSpecListComponent implements OnInit { description: data.description, category_id: data.category_id, display_order: data.display_order, + standalone: data.standalone }; if (isNew) { From 8d02be4fc88f683d52fec524c807a776eb785e9d Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Thu, 29 Apr 2021 14:11:42 -0400 Subject: [PATCH 2/3] New version of Sartography Utilities --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6a42d67..8bbcd37 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "ngx-markdown": "^9.1.1", "protractor": "^7.0.0", "rxjs": "~6.5.4", - "sartography-workflow-lib": "0.0.447", + "sartography-workflow-lib": "0.0.465", "tslib": "^1.13.0", "uuid": "^7.0.2", "zone.js": "^0.10.3" From 885a95d847708c02442c80322a2d5da90891abac Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 4 May 2021 16:23:09 -0400 Subject: [PATCH 3/3] Fixing a bad test. --- src/app/workflow-spec-list/workflow-spec-list.component.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/workflow-spec-list/workflow-spec-list.component.spec.ts b/src/app/workflow-spec-list/workflow-spec-list.component.spec.ts index 51a4773..7953c9b 100644 --- a/src/app/workflow-spec-list/workflow-spec-list.component.spec.ts +++ b/src/app/workflow-spec-list/workflow-spec-list.component.spec.ts @@ -141,6 +141,7 @@ describe('WorkflowSpecListComponent', () => { description: '', category_id: 0, display_order: 0, + standalone: false }; const _upsertWorkflowSpecificationSpy = spyOn((component as any), '_upsertWorkflowSpecification')