From 5b5de73dd56d8ef95af8b8d5ffebb6d028647ba2 Mon Sep 17 00:00:00 2001 From: Daniel Bluhm Date: Wed, 24 Apr 2024 21:45:53 -0400 Subject: [PATCH] fix: rev notifications on publish pending Fixes #2915. Ensure revocation notifications are emitted when publishing batched pending revocations. Signed-off-by: Daniel Bluhm --- aries_cloudagent/revocation/manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aries_cloudagent/revocation/manager.py b/aries_cloudagent/revocation/manager.py index e74c0b525a..eb67ab47eb 100644 --- a/aries_cloudagent/revocation/manager.py +++ b/aries_cloudagent/revocation/manager.py @@ -256,6 +256,7 @@ async def publish_pending_revocations( if limit_crids: crids = crids.intersection(limit_crids) if crids: + crids = list(crids) (delta_json, failed_crids) = await issuer.revoke_credentials( issuer_rr_rec.cred_def_id, issuer_rr_rec.revoc_reg_id, @@ -294,6 +295,9 @@ async def publish_pending_revocations( ) else: rev_entry_resp = await issuer_rr_upd.send_entry(self._profile) + await notify_revocation_published_event( + self._profile, issuer_rr_rec.revoc_reg_id, crids + ) published = sorted(crid for crid in crids if crid not in failed_crids) result[issuer_rr_rec.revoc_reg_id] = published