diff --git a/modules/search-provision/src/main/scala/io/renku/search/provision/handler/DocumentMerger.scala b/modules/search-provision/src/main/scala/io/renku/search/provision/handler/DocumentMerger.scala index 8a3be404..637e3fac 100644 --- a/modules/search-provision/src/main/scala/io/renku/search/provision/handler/DocumentMerger.scala +++ b/modules/search-provision/src/main/scala/io/renku/search/provision/handler/DocumentMerger.scala @@ -117,6 +117,8 @@ object DocumentMerger: given DocumentMerger[GroupAdded] = instance[GroupAdded](_.toModel(DocVersion.NotExists).some) { + case (ga, p: PartialEntityDocument.Group) => + p.applyTo(ga.toModel(p.version)).some case (ga, u: GroupDocument) => ga.toModel(u.version).some case _ => None