From e30ed30c7f9ad008ec7699133ce66cbc1a5db516 Mon Sep 17 00:00:00 2001 From: horbe Date: Mon, 27 Nov 2023 17:21:14 -0500 Subject: [PATCH 1/5] Update simpleTest.pure --- .../binding/fromPure/sdl/tests/simpleTest.pure | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/fromPure/sdl/tests/simpleTest.pure b/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/fromPure/sdl/tests/simpleTest.pure index 44d469792c8..941a18435b8 100644 --- a/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/fromPure/sdl/tests/simpleTest.pure +++ b/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/fromPure/sdl/tests/simpleTest.pure @@ -47,6 +47,7 @@ Class meta::external::query::graphQL::binding::fromPure::sdl::tests::model::Clas date: Date[1]; datetime: DateTime[1]; decimal: Decimal[1]; + strictDate: StrictDate[1]; } Class <> meta::external::query::graphQL::binding::fromPure::sdl::tests::model::MutationPrimitive @@ -178,11 +179,14 @@ function <> meta::external::query::graphQL::binding::fromPure::sdl::t ' date: Date!\n' + ' datetime: DateTime!\n' + ' decimal: BigDecimal!\n' + + ' strictDate: StrictDate!\n' + '}\n' + '\n' + 'scalar Date\n' + '\n' + - 'scalar DateTime', $res); + 'scalar DateTime\n' + + '\n' + + 'scalar StrictDate', $res); } function <> meta::external::query::graphQL::binding::fromPure::sdl::tests::testNonBuiltInPrimitiveTypesAreNotDuplicated():Boolean[1] @@ -200,6 +204,7 @@ function <> meta::external::query::graphQL::binding::fromPure::sdl::t ' date: Date!\n' + ' datetime: DateTime!\n' + ' decimal: BigDecimal!\n' + + ' strictDate: StrictDate!\n' + '}\n' + '\n' + 'input ClassWithPrimitiveTypesInput {\n' + @@ -210,6 +215,7 @@ function <> meta::external::query::graphQL::binding::fromPure::sdl::t ' date: Date!\n' + ' datetime: DateTime!\n' + ' decimal: BigDecimal!\n' + + ' strictDate: StrictDate!\n' + '}\n' + '\n' + 'scalar Date\n' + @@ -220,6 +226,8 @@ function <> meta::external::query::graphQL::binding::fromPure::sdl::t ' upsertClass(class: ClassWithPrimitiveTypesInput!): ClassWithPrimitiveTypes\n' + '}\n' + '\n' + + 'scalar StrictDate\n' + + '\n' + 'schema {\n' + ' mutation : MutationPrimitive\n' + '}', $res); @@ -265,7 +273,7 @@ function <> meta::external::query::graphQL::binding::fromPure::sdl::t '\n' + 'scalar StrictDate\n' + '\n' + - 'directive @extends on OBJECT | INPUT_OBJECT', + 'directive(class: String!) @extends on OBJECT | INPUT_OBJECT', $res); } @@ -313,7 +321,7 @@ function <> meta::external::query::graphQL::binding::fromPure::sdl::t '\n' + 'scalar StrictDate\n' + '\n' + - 'directive @extends on OBJECT | INPUT_OBJECT', + 'directive(class: String!) @extends on OBJECT | INPUT_OBJECT', $res); } @@ -349,7 +357,7 @@ function <> meta::external::query::graphQL::binding::fromPure::sdl::t ' members: [Employee!]!\n' + '}\n' + '\n' + - 'directive @extends on OBJECT | INPUT_OBJECT', + 'directive(class: String!) @extends on OBJECT | INPUT_OBJECT', $res); } @@ -414,7 +422,7 @@ function <> meta::external::query::graphQL::binding::fromPure::sdl::t ' members: [EmployeeInput!]!\n' + '}\n' + '\n' + - 'directive @extends on OBJECT | INPUT_OBJECT\n' + + 'directive(class: String!) @extends on OBJECT | INPUT_OBJECT\n' + '\n' + 'schema {\n' + ' query : QueryHierarchy\n' + From 037ca6dfa2edb8ab48586c0266974acaf6c42ff9 Mon Sep 17 00:00:00 2001 From: horbe Date: Mon, 27 Nov 2023 17:23:07 -0500 Subject: [PATCH 2/5] Update simpleTest.pure --- .../binding/toPure/sdl/tests/simpleTest.pure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/toPure/sdl/tests/simpleTest.pure b/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/toPure/sdl/tests/simpleTest.pure index 1f34e75abd9..f434f7e3a40 100644 --- a/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/toPure/sdl/tests/simpleTest.pure +++ b/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/toPure/sdl/tests/simpleTest.pure @@ -172,6 +172,7 @@ function <> meta::external::query::graphQL::binding::toPure::sdl::tes ' date: Date!\n' + ' datetime: DateTime!\n' + ' decimal: BigDecimal!\n' + + ' strictDate: StrictDate!\n' + '}\n' + '\n' + 'scalar Date\n' + @@ -179,6 +180,8 @@ function <> meta::external::query::graphQL::binding::toPure::sdl::tes 'scalar DateTime\n' + '\n' + 'scalar BigDecimal\n' + + '\n' + + 'scalar StrictDate\n' + '}#', 'meta::external::query::graphQL::metamodel::sql' ); @@ -193,6 +196,7 @@ function <> meta::external::query::graphQL::binding::toPure::sdl::tes ' date : Date[1];\n' + ' datetime : DateTime[1];\n' + ' decimal : Decimal[1];\n' + + ' strictDate : StrictDate[1];\n' + '}', $pureTypes); } @@ -511,4 +515,4 @@ function <> meta::external::query::graphQL::binding::toPure::sdl ->sortBy(t | $t->elementToPath()) ->map(t | $t->meta::pure::metamodel::serialization::grammar::printType()) ->joinStrings('\n\n'); -} \ No newline at end of file +} From e8b121ef128f9748e90b401d6fff4b662247641b Mon Sep 17 00:00:00 2001 From: horbe Date: Mon, 27 Nov 2023 17:25:07 -0500 Subject: [PATCH 3/5] Update bindingCommon.pure --- .../core_external_query_graphql/binding/bindingCommon.pure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/bindingCommon.pure b/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/bindingCommon.pure index 7986292093f..43dc5f1a014 100644 --- a/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/bindingCommon.pure +++ b/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/bindingCommon.pure @@ -76,5 +76,5 @@ function meta::external::query::graphQL::binding::temporalityToDirectives(): Map function meta::external::query::graphQL::binding::hierarchyDirective(): DirectiveDefinition[1] { - ^DirectiveDefinition(name = 'extends', typeSystemLocation = [TypeSystemDirectiveLocation.OBJECT, TypeSystemDirectiveLocation.INPUT_OBJECT]); -} \ No newline at end of file + ^DirectiveDefinition(name = 'extends', argumentDefinitions = [^InputValueDefinition(name = 'class', type = ^NamedTypeReference(nullable = false, name = 'String'))], typeSystemLocation = [TypeSystemDirectiveLocation.OBJECT, TypeSystemDirectiveLocation.INPUT_OBJECT]); +} From a254bd4ce6e1191bfcbf1586e5a9583b0c965dae Mon Sep 17 00:00:00 2001 From: horbe Date: Mon, 27 Nov 2023 19:26:54 -0500 Subject: [PATCH 4/5] Update simpleTest.pure --- .../binding/fromPure/sdl/tests/simpleTest.pure | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/fromPure/sdl/tests/simpleTest.pure b/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/fromPure/sdl/tests/simpleTest.pure index 941a18435b8..5de1acdec84 100644 --- a/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/fromPure/sdl/tests/simpleTest.pure +++ b/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/fromPure/sdl/tests/simpleTest.pure @@ -273,7 +273,7 @@ function <> meta::external::query::graphQL::binding::fromPure::sdl::t '\n' + 'scalar StrictDate\n' + '\n' + - 'directive(class: String!) @extends on OBJECT | INPUT_OBJECT', + 'directive @extends(class: String!) on OBJECT | INPUT_OBJECT', $res); } @@ -321,7 +321,7 @@ function <> meta::external::query::graphQL::binding::fromPure::sdl::t '\n' + 'scalar StrictDate\n' + '\n' + - 'directive(class: String!) @extends on OBJECT | INPUT_OBJECT', + 'directive @extends(class: String!) on OBJECT | INPUT_OBJECT', $res); } @@ -357,7 +357,7 @@ function <> meta::external::query::graphQL::binding::fromPure::sdl::t ' members: [Employee!]!\n' + '}\n' + '\n' + - 'directive(class: String!) @extends on OBJECT | INPUT_OBJECT', + 'directive @extends(class: String!) on OBJECT | INPUT_OBJECT', $res); } @@ -422,7 +422,7 @@ function <> meta::external::query::graphQL::binding::fromPure::sdl::t ' members: [EmployeeInput!]!\n' + '}\n' + '\n' + - 'directive(class: String!) @extends on OBJECT | INPUT_OBJECT\n' + + 'directive @extends(class: String!) on OBJECT | INPUT_OBJECT\n' + '\n' + 'schema {\n' + ' query : QueryHierarchy\n' + From 4679f4909c240ccff79d08ed33e336a08c6bbf4e Mon Sep 17 00:00:00 2001 From: horbe Date: Mon, 27 Nov 2023 21:22:18 -0500 Subject: [PATCH 5/5] Update simpleTest.pure --- .../binding/fromPure/sdl/tests/simpleTest.pure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/fromPure/sdl/tests/simpleTest.pure b/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/fromPure/sdl/tests/simpleTest.pure index 5de1acdec84..d4cbbf220c9 100644 --- a/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/fromPure/sdl/tests/simpleTest.pure +++ b/legend-engine-xts-graphQL/legend-engine-xt-graphQL-pure/src/main/resources/core_external_query_graphql/binding/fromPure/sdl/tests/simpleTest.pure @@ -273,7 +273,7 @@ function <> meta::external::query::graphQL::binding::fromPure::sdl::t '\n' + 'scalar StrictDate\n' + '\n' + - 'directive @extends(class: String!) on OBJECT | INPUT_OBJECT', + 'directive @extends(class: String!) on OBJECT | INPUT_OBJECT', $res); }