From abf5c109b4728be9be0ed0e6a2c29619984a7c85 Mon Sep 17 00:00:00 2001 From: nhertz <nhertz@nrao.edu> Date: Wed, 14 Jul 2021 10:44:30 -0600 Subject: [PATCH] Added capability request's `ingested` boolean to front-end model and back-end JSON serialization --- apps/web/src/app/workspaces/model/capability-request.ts | 1 + shared/workspaces/workspaces/capability/schema.py | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/web/src/app/workspaces/model/capability-request.ts b/apps/web/src/app/workspaces/model/capability-request.ts index a45bbe108..c8ca3f2a9 100644 --- a/apps/web/src/app/workspaces/model/capability-request.ts +++ b/apps/web/src/app/workspaces/model/capability-request.ts @@ -7,6 +7,7 @@ export interface CapabilityRequest { state: string; parameters: JsonObject; current_execution: CapabilityExecution; + ingested: boolean; created_at: string; updated_at: string; type: string; diff --git a/shared/workspaces/workspaces/capability/schema.py b/shared/workspaces/workspaces/capability/schema.py index e0438c05f..5666addf7 100644 --- a/shared/workspaces/workspaces/capability/schema.py +++ b/shared/workspaces/workspaces/capability/schema.py @@ -171,6 +171,7 @@ class CapabilityRequest(Base, CapabilityRequestIF): "capability_name": self.capability_name, "state": self.state, "parameters": self.current_version.parameters if self.current_version else None, + "ingested": self.ingested, "created_at": self.created_at.isoformat(), "updated_at": self.updated_at.isoformat(), "current_execution": self.current_execution.__json__() -- GitLab