SORMAS-Foundation / SORMAS-Project

SORMAS (Surveillance, Outbreak Response Management and Analysis System) is an early warning and management system to fight the spread of infectious diseases.
https://sormas.org
GNU General Public License v3.0
293 stars 143 forks source link

Add missing audit methods for user, geocoding, and S2S #11637

Open JonasCir opened 1 year ago

JonasCir commented 1 year ago

Feature Description

This tracks the remaining work of #7904.

We need dedicated auditing methods in AuditLoggerEjb to support the detailed logging of

Proposed Change

Go to AuditLoggerEjb and fill a dedicated log method for each remaining use case (or any other we want to cover in more detail).

Acceptance Criteria

All of the above events are recorded in the audit log.

Implementation Details

In each log method, create and fill an AuditEvent with relevant information e.g., user name, roles changed, what geolocation resolved, what entity shared, etc.

You can look at the other methods like logApplicationStop, logFailedUiLogin, or logExternalMessagesPdfSuccess to see how to get started. Have a look at the definition of the AuditEvent to see what fields you can fill in.

Additional Information

JonasCir commented 1 year ago

@MartinWahnschaffe FYI