FHIR icon indicating copy to clipboard operation
FHIR copied to clipboard

Erasing a whole resource does not generate a Notification entry

Open d0roppe opened this issue 3 years ago • 2 comments

Describe the bug If you have notifications turned on, and you issue an erase of a resource, there is no notification entry issued. There should be a notification entry as this has permanently deleted the resource.

Environment FHIR-main

To Reproduce Monitor notifications, create a resource - Notification is issued then erase the resource - No Notification is issued

Expected behavior Erase of a whole resource should trigger a Notification entry

d0roppe avatar Mar 28 '22 12:03 d0roppe

Potentialy a larger issue with our custom operation framework in general. We now support beforeInvoke and afterInvoke on the FHIRPersistenceInterceptor interface, but the NotificationService doesn't do anything when these are called.

Similar to #2105 but for notification instead of audit. Should be considered together.

lmsurpre avatar Mar 28 '22 14:03 lmsurpre

Keeping this scoped just to notification of $erase invocations.

lmsurpre avatar Jul 26 '22 12:07 lmsurpre