From 0654b935ef6c4e7ea7a46c0846b40a7f09cf633a Mon Sep 17 00:00:00 2001 From: Balduin Landolt <33053745+BalduinLandolt@users.noreply.github.com> Date: Wed, 17 Jul 2024 15:17:41 +0200 Subject: [PATCH] update TODOs --- .../knora/webapi/messages/util/ConstructResponseUtilV2.scala | 2 +- .../responders/v2/resources/CreateResourceV2Handler.scala | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/webapi/src/main/scala/org/knora/webapi/messages/util/ConstructResponseUtilV2.scala b/webapi/src/main/scala/org/knora/webapi/messages/util/ConstructResponseUtilV2.scala index bc67458ab9..293fe85db8 100644 --- a/webapi/src/main/scala/org/knora/webapi/messages/util/ConstructResponseUtilV2.scala +++ b/webapi/src/main/scala/org/knora/webapi/messages/util/ConstructResponseUtilV2.scala @@ -1055,7 +1055,7 @@ final case class ConstructResponseUtilV2Live( comment = valueCommentOption, ), ) - } // TODO: read information from triplestore, don't infer it + } // TODO-BL: read information from triplestore, don't infer it } /** diff --git a/webapi/src/main/scala/org/knora/webapi/responders/v2/resources/CreateResourceV2Handler.scala b/webapi/src/main/scala/org/knora/webapi/responders/v2/resources/CreateResourceV2Handler.scala index 9b3ad929de..a651323b9c 100644 --- a/webapi/src/main/scala/org/knora/webapi/responders/v2/resources/CreateResourceV2Handler.scala +++ b/webapi/src/main/scala/org/knora/webapi/responders/v2/resources/CreateResourceV2Handler.scala @@ -475,11 +475,10 @@ final case class CreateResourceV2Handler( valueHasCalendar = valueHasCalendar, ), ) - case TextValueContentV2(_, _, textType, valueHasLanguage, _, None, _, _, _) => - // TODO: improve this logic now that we have the textType. + case TextValueContentV2(_, _, _, valueHasLanguage, _, None, _, _, _) => ZIO.succeed(UnformattedTextValueInfo(valueHasLanguage)) case tv @ TextValueContentV2(_, _, textType, valueHasLanguage, _, Some(mappingIri), _, _, _) => - // TODO: improve this logic now that we have the textType. + // TODO-BL: improve this logic now that we have the textType. val standoffInfo = tv .prepareForSparqlInsert(newValueIri) .map(standoffTag =>