core-geonetwork icon indicating copy to clipboard operation
core-geonetwork copied to clipboard

Configuration to notify by mail about metadata publication / unpublication

Open josegar74 opened this issue 2 years ago • 2 comments

This change allows to configure a notification level to be notified when the metadata is published / un-published in the catalogue:

publication-notification-level

Notification levels:

notification-levels

A new notification level has been added (Notify to the group(s) emails) to send notifications to a list of group configured. When selecting this notification level, it should be configured the list of group names to be notified.

publication-notification-level-2

In order to be notified, the group(s) configuration should define a mail address.

group-email

It has been updated also the local rating notifications to support his new notification level, to configure a list of groups if this level of notification is selected:

rating-notification-level

A mail with the list of metadata published / un-published like the following is sent:

publication-notification-mail

For batch publication / un-publication a single mail with the summary of the publication is sent.

josegar74 avatar Jul 11 '22 09:07 josegar74

About the configuration, I was thinking that maybe we could have a configuration similar to other type of events ? We have 2 similar configs now:

INSERT INTO StatusValues (id, name, reserved, displayorder, type, notificationLevel)
 VALUES  (56,'recordprivilegeschange','y', 56, 'event', null);

which is used only on DefaultStatusAction so probably not used when privileges changes but recordprivilegeschange is triggered when publishing/unpublishing. Maybe we could have 2 subevents ?

The other similar config is system/localrating/notificationLevel setting which define a notification level rather than a list of emails. In most cases, user would like to notify catalog admin or group reviewers or members no ? Maybe that would be more consistent ?

fxprunayre avatar Jul 13 '22 13:07 fxprunayre

About the events, the main issue is the batch publication, would be good to group all the notifications instead of individual mails.

I'll check system/localrating/notificationLevel, I'm not familiar with this, but I can check if useful to implement like that.

josegar74 avatar Jul 13 '22 13:07 josegar74