Skip to content

Commit

Permalink
cleanup println
Browse files Browse the repository at this point in the history
  • Loading branch information
zingmane committed May 15, 2024
1 parent ebd068c commit f9d5a4a
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ class CacheClient(vertxAccess: VertxAccess) extends VertxAccess {
): Future[_] = {
val rowValue = Json.obj("value" -> rowLevelAnnotations.getJson)
val obj = rowKey(tableId, rowId).copy().mergeIn(rowValue)
println(s"set cache value for row level annotations: $obj")
eventBus.sendFuture(CacheVerticle.ADDRESS_SET_ROW_LEVEL_ANNOTATIONS, obj, options)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ class CacheVerticle(tableauxConfig: TableauxConfig) extends ScalaVerticle with L
"value" -> value
)

println(s"hey, ausm cache raus: $value")
message.reply(reply)
}
case None => {
Expand Down Expand Up @@ -350,7 +349,6 @@ class CacheVerticle(tableauxConfig: TableauxConfig) extends ScalaVerticle with L

private def messageHandlerInvalidateTableRowLevelAnnotations(message: Message[JsonObject]): Unit = {
val obj = message.body()
println(s"caches clear arrived for all tables")

(for {
tableId <- Option(obj.getLong("tableId")).map(_.toLong)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1023,16 +1023,12 @@ class TableauxModel(

rowLevelAnnotations <- rowLevelAnnotationsCache match {
case Some(annotations) => {
println(s"Cache hit for rowLevelAnnotations for table ${column.table.id} and row $rowId")
Future.successful(annotations)
}
case None => {
for {
(rowLevelAnnotations, _, _) <- retrieveRowModel.retrieveAnnotations(column.table.id, rowId, Seq(column))
} yield {
println(
s"Cache miss for rowLevelAnnotations for table ${column.table.id} and row $rowId, rowLevelAnnotations: $rowLevelAnnotations"
)
// fire-and-forget don't need to wait for this to return
CacheClient(this.connection).setRowLevelAnnotations(column.table.id, rowId, rowLevelAnnotations)
rowLevelAnnotations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ class DuplicateRowTest extends TableauxTestBase {
modelTableId = tableIds(0)
_ <- sendRequest("POST", s"/tables/$modelTableId/rows/1/duplicate?skipConstrainedLinks=true&annotateSkipped=true")
res <- sendRequest("GET", s"/tables/$modelTableId/columns/3/rows/3/annotations")
_ = println(res)
} yield {
val checkMeAnnotation = res.getJsonArray("annotations").getJsonArray(0).getJsonObject(0)
assertEquals(checkMeAnnotation.getString("type"), CellAnnotationType.FLAG)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1682,11 +1682,7 @@ class RetrieveFinalAndArchivedRows extends LinkTestBase with Helper {
sendRequest("GET", s"/tables/$tableId1/columns/$linkColumnId/rows/$rowId1/foreignRows?final=true")
resultForeignRowsArchived <-
sendRequest("GET", s"/tables/$tableId1/columns/$linkColumnId/rows/$rowId1/foreignRows?archived=true")

rrr <- sendRequest("GET", s"/tables/$tableId1/columns/$linkColumnId/rows/$rowId1")
} yield {
println(s"rrr: $rrr")

assertEquals(0, resultCell.getJsonArray("value").size())

assertEquals(2, resultForeignRowsFinal.getJsonObject("page").getLong("totalSize").longValue())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ class TranslationStatusTest extends TableauxTestBase {
translationStatus <- sendRequest("GET", s"/tables/translationStatus")
} yield {

println(s"translationStatus: $translationStatus")
val expectedTranslationStatus = Json.obj(
"tables" -> Json.emptyArr(),
"translationStatus" -> Json.obj(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class DomainObjectTest {

val actual = DomainObject.compatibilityGet(cell)

println(actual.toString())
JSONAssert
.assertEquals(
s"""{"value": [{"value":1, "final":true}, {"value":2, "archived":true}, {"value":3}], "final":true, "archived":true}""",
Expand Down

0 comments on commit f9d5a4a

Please sign in to comment.