SORMAS-Project
SORMAS-Project copied to clipboard
[AUDIT] Important, type-specific information does not show up in the audit log [2]
Problem Description
For example, if we change the user name, the action gets log through the auditor, however, the name is not included in the log line. This shows that we need a mechanism which allows us two tweak the representation in the audit log.
Proposed Change
~Introduce an interface which extends HasUuid and let all DTOs implement it. The default implementation should return only the UUID, but in case we need more information a more specific representation should be returned.~
Introduce an annotation which can be put onto fields and methods to build the representation in the log
Acceptance Criteria
- No
toStringbased representation, for the most important types - Adjustable representation
- Do it for the user name
- Architecture test
out of scope
- No
Object@JVM-Addressstyle strings in log
Split tickets
- [x] #10335
- [x] #10364
- [ ] #10377
- [x] #10403
@MartinWahnschaffe FYI :)
Validated ticket during a peer testing session with Jonas