From 607c7bfa6d68653c4515e0197aa89f328fdc15bb Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Wed, 28 Aug 2024 14:15:17 +0200 Subject: [PATCH 1/2] Fix stream name for dev setup --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 78e46ce4..dce379b7 100644 --- a/flake.nix +++ b/flake.nix @@ -66,7 +66,7 @@ groupMemberAdded = "groupMemberAdded"; groupMemberUpdated = "groupMemberUpdated"; groupMemberRemoved = "groupMemberRemoved"; - searchSync = "searchSync"; + searchSync = "search.sync"; }; queueNameConfig = with nixpkgs.lib; mapAttrs' (key: qn: nameValuePair "RS_REDIS_QUEUE_${key}" qn) queueNames; From 6697f4cc4a196fe6f027aef6c2717df200f297b7 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Wed, 28 Aug 2024 14:15:29 +0200 Subject: [PATCH 2/2] Use lower-case toString for Visibility The `toString()` value is used to generate the api documentation. To make the docs match the actual result values, `toString()` is mapped to `name` for `Visibility`. Fixes: #160 --- .../src/main/scala/io/renku/search/model/Visibility.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/commons/src/main/scala/io/renku/search/model/Visibility.scala b/modules/commons/src/main/scala/io/renku/search/model/Visibility.scala index c1d6651e..82d1d4cd 100644 --- a/modules/commons/src/main/scala/io/renku/search/model/Visibility.scala +++ b/modules/commons/src/main/scala/io/renku/search/model/Visibility.scala @@ -27,6 +27,8 @@ enum Visibility: lazy val name: String = productPrefix.toLowerCase case Public, Private + override def toString(): String = name + object Visibility: given Order[Visibility] = Order.by(_.ordinal) given Encoder[Visibility] = Encoder.forString.contramap(_.name)