From 56deb54dbbe06e137ec56cbdfe3488d3bfbfd34d Mon Sep 17 00:00:00 2001 From: Tommi Leinamo Date: Fri, 5 Jul 2024 17:35:53 +0300 Subject: [PATCH] remove unimplemented relations from GraphQL definitions for now --- .../types/InfoSpotObjectTypeCreator.java | 24 +++++------ ...raphQLResourceInfoSpotIntegrationTest.java | 42 +++++++++---------- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/main/java/org/rutebanken/tiamat/rest/graphql/types/InfoSpotObjectTypeCreator.java b/src/main/java/org/rutebanken/tiamat/rest/graphql/types/InfoSpotObjectTypeCreator.java index 29b82aae9..5520b8223 100644 --- a/src/main/java/org/rutebanken/tiamat/rest/graphql/types/InfoSpotObjectTypeCreator.java +++ b/src/main/java/org/rutebanken/tiamat/rest/graphql/types/InfoSpotObjectTypeCreator.java @@ -134,12 +134,12 @@ public GraphQLObjectType createObjectType(GraphQLInterfaceType stopPlaceInterfac .field(newFieldDefinition() .name(DISPLAY_TYPE) .type(displayTypeEnum)) - .field(newFieldDefinition() - .name(POSTER) - .type(new GraphQLList(posterObjectType))) - .field(newFieldDefinition() - .name(ON_STOP_PLACE) - .type(new GraphQLList(GraphQLString))) +// .field(newFieldDefinition() +// .name(POSTER) +// .type(new GraphQLList(posterObjectType))) +// .field(newFieldDefinition() +// .name(ON_STOP_PLACE) +// .type(new GraphQLList(GraphQLString))) .build(); } @@ -186,12 +186,12 @@ public GraphQLInputObjectType createInputObjectType(GraphQLInputObjectType valid .field(newInputObjectField() .name(DISPLAY_TYPE) .type(displayTypeEnum)) - .field(newInputObjectField() - .name(POSTER) - .type(new GraphQLList(posterObjectType))) - .field(newInputObjectField() - .name(ON_STOP_PLACE) - .type(new GraphQLList(GraphQLString))) +// .field(newInputObjectField() +// .name(POSTER) +// .type(new GraphQLList(posterObjectType))) +// .field(newInputObjectField() +// .name(ON_STOP_PLACE) +// .type(new GraphQLList(GraphQLString))) .build(); } diff --git a/src/test/java/org/rutebanken/tiamat/rest/graphql/GraphQLResourceInfoSpotIntegrationTest.java b/src/test/java/org/rutebanken/tiamat/rest/graphql/GraphQLResourceInfoSpotIntegrationTest.java index 62cc6e6d2..d8a7c9482 100644 --- a/src/test/java/org/rutebanken/tiamat/rest/graphql/GraphQLResourceInfoSpotIntegrationTest.java +++ b/src/test/java/org/rutebanken/tiamat/rest/graphql/GraphQLResourceInfoSpotIntegrationTest.java @@ -59,13 +59,13 @@ public void listInfoSpots() throws Exception { " purpose " + " railInformation " + " zoneLabel " + - " poster { " + - " label " + - " posterSize " + - " posterType " + - " lines " + - " } " + - " onStopPlace " + +// " poster { " + +// " label " + +// " posterSize " + +// " posterType " + +// " lines " + +// " } " + +// " onStopPlace " + " } " + "}\"," + "\"variables\":\"\"}"; @@ -113,13 +113,13 @@ public void createInfoSpot() throws Exception { " purpose " + " railInformation " + " zoneLabel " + - " poster { " + - " label " + - " posterSize " + - " posterType " + - " lines " + - " } " + - " onStopPlace " + +// " poster { " + +// " label " + +// " posterSize " + +// " posterType " + +// " lines " + +// " } " + +// " onStopPlace " + " } " + "}\"," + "\"variables\":\"\"}"; @@ -198,13 +198,13 @@ public void updateInfoSpot() throws Exception { " purpose " + " railInformation " + " zoneLabel " + - " poster { " + - " label " + - " posterSize " + - " posterType " + - " lines " + - " } " + - " onStopPlace " + +// " poster { " + +// " label " + +// " posterSize " + +// " posterType " + +// " lines " + +// " } " + +// " onStopPlace " + " } " + "}\"," + "\"variables\":\"\"}";