From 7bde422c035387dc69c31ddb1cf8734308cfdf0d Mon Sep 17 00:00:00 2001 From: Theresa Kamerman Date: Mon, 4 Mar 2024 08:26:17 -0800 Subject: [PATCH 1/2] Update array `scheduling_specifications` relationship to object relationship Scheduling Specs have had an object relationship with the Plans table since [#711](https://github.com/NASA-AMMOS/aerie/pull/711) --- .../metadata/databases/AerieMerlin/tables/public_plan.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/hasura/metadata/databases/AerieMerlin/tables/public_plan.yaml b/deployment/hasura/metadata/databases/AerieMerlin/tables/public_plan.yaml index 4c014fc640..3cb415ff5a 100644 --- a/deployment/hasura/metadata/databases/AerieMerlin/tables/public_plan.yaml +++ b/deployment/hasura/metadata/databases/AerieMerlin/tables/public_plan.yaml @@ -67,10 +67,10 @@ array_relationships: name: plan schema: public remote_relationships: -- name: scheduling_specifications +- name: scheduling_specification definition: to_source: - relationship_type: array + relationship_type: object source: AerieScheduler table: schema: public From 8977a4fbc02010d49f3ddeaf9c60177a9f18a50a Mon Sep 17 00:00:00 2001 From: Theresa Kamerman Date: Mon, 4 Mar 2024 08:30:39 -0800 Subject: [PATCH 2/2] Update GQL query in E2E Tests --- e2e-tests/src/test/java/gov/nasa/jpl/aerie/e2e/utils/GQL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e-tests/src/test/java/gov/nasa/jpl/aerie/e2e/utils/GQL.java b/e2e-tests/src/test/java/gov/nasa/jpl/aerie/e2e/utils/GQL.java index 401a6ef8af..68554dedff 100644 --- a/e2e-tests/src/test/java/gov/nasa/jpl/aerie/e2e/utils/GQL.java +++ b/e2e-tests/src/test/java/gov/nasa/jpl/aerie/e2e/utils/GQL.java @@ -315,7 +315,7 @@ query GetPlan($id: Int!) { } name revision - scheduling_specifications { + scheduling_specification { id } simulations {