From 97ec9d033e5afbc3cd204d87dd2c40eada7f2793 Mon Sep 17 00:00:00 2001 From: Guillaume Viger Date: Fri, 5 Jul 2024 11:24:21 -0400 Subject: [PATCH] requests: [#855] 5) don't display membership req. in community Requests --- invenio_communities/communities/services/service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/invenio_communities/communities/services/service.py b/invenio_communities/communities/services/service.py index a9862b1b8..223ebd480 100644 --- a/invenio_communities/communities/services/service.py +++ b/invenio_communities/communities/services/service.py @@ -169,6 +169,8 @@ def search_community_requests( must=[ dsl.Q("term", **{"receiver.community": community_id}), ~dsl.Q("term", **{"status": "created"}), + # Excluding explicitly for now + ~dsl.Q("term", **{"type": "community-membership-request"}) ], ), **kwargs,