diff --git a/pom.xml b/pom.xml index b77806d..966a539 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ bio.overture song-search - 1.0.1 + 2.0.0 song-search GQL microservice for searching maestro generated song indexes diff --git a/src/main/java/bio/overture/songsearch/graphql/EntityDataFetcher.java b/src/main/java/bio/overture/songsearch/graphql/EntityDataFetcher.java index 675aaa5..43b4b5d 100644 --- a/src/main/java/bio/overture/songsearch/graphql/EntityDataFetcher.java +++ b/src/main/java/bio/overture/songsearch/graphql/EntityDataFetcher.java @@ -48,7 +48,7 @@ public DataFetcher getDataFetcher() { } } if (RUN_ENTITY.equals(values.get("__typename"))) { - final Object runId = values.get("runName"); // todo: will become runId after reindex + final Object runId = values.get("runId"); if (runId instanceof String) { return new Run( (String) runId, diff --git a/src/main/java/bio/overture/songsearch/model/Run.java b/src/main/java/bio/overture/songsearch/model/Run.java index d753d6f..5730c71 100644 --- a/src/main/java/bio/overture/songsearch/model/Run.java +++ b/src/main/java/bio/overture/songsearch/model/Run.java @@ -19,7 +19,7 @@ public class Run { private static final ObjectMapper MAPPER = new ObjectMapper(); - private String runName; // todo: will become runId after reindex + private String runId; private List producedAnalyses; diff --git a/src/main/resources/schema.graphql b/src/main/resources/schema.graphql index b4b3889..f0a5fce 100644 --- a/src/main/resources/schema.graphql +++ b/src/main/resources/schema.graphql @@ -135,8 +135,8 @@ input Page { from: Int! } -type Run @key(fields: "runName") @extends { - runName: ID! @external # todo: runName will become runId after reindex +type Run @key(fields: "runId") @extends { + runId: ID! @external producedAnalyses: [Analysis] inputAnalyses: String }