-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ODRC: Set up foundation for logging/audit trails #16
Comments
django-timeline-logger
for audit logging - set up the modal, integrate in admin and prepare a odrc.logging
package for utilities. Take a look at Open Forms for the setup.
@sergei-maertens Ik heb hier net zoals bij #2 ook alvast acceptatie-criteria toegevoegd, omdat deze story randvoorwaardelijk is voor die story. Ik vermoed dat mijn criteria verschillen van jullie standaard-oplossing. Laat even weten wat de verschillen zijn, dan kan ik daar wat van vinden (= schrappen of aparte story van maken). Ik wil nog een aparte story maken om de logging in de beheerinterface te tonen. |
@MarcoKlerks is het ook voldoende als de logs/audit trails via de beheeromgeving van de registratiecomponent inzichtelijk (en te exporteren zijn) ipv deze ook via de API te onsluiten? Dat is namelijk een stuk minder werk :) |
@sergei-maertens |
* Added proxy model, which enforces that an event and acting user is specified in the metadata of the log record. This is not 100% idiot proof since bulk update queries etc. and direct timeline-logger usage allows circumventing these. Ideally we'd have some database constraints, but those can't be specified through a proxy model. * Added a custom admin integration for the proxy model: - block writing to log records entirely, even for superusers - process the event/acting_user structured data to display it as nice columns - allow searching on the user details in the admin log page * Added a custom default message template that can leverage the metadata constraints that are enforced.
* Added proxy model, which enforces that an event and acting user is specified in the metadata of the log record. This is not 100% idiot proof since bulk update queries etc. and direct timeline-logger usage allows circumventing these. Ideally we'd have some database constraints, but those can't be specified through a proxy model. * Added a custom admin integration for the proxy model: - block writing to log records entirely, even for superusers - process the event/acting_user structured data to display it as nice columns - allow searching on the user details in the admin log page * Added a custom default message template that can leverage the metadata constraints that are enforced.
* Added proxy model, which enforces that an event and acting user is specified in the metadata of the log record. This is not 100% idiot proof since bulk update queries etc. and direct timeline-logger usage allows circumventing these. Ideally we'd have some database constraints, but those can't be specified through a proxy model. * Added a custom admin integration for the proxy model: - block writing to log records entirely, even for superusers - process the event/acting_user structured data to display it as nice columns - allow searching on the user details in the admin log page * Added a custom default message template that can leverage the metadata constraints that are enforced.
Ensure that the base assumptions and functionality work as expected.
* Added proxy model, which enforces that an event and acting user is specified in the metadata of the log record. This is not 100% idiot proof since bulk update queries etc. and direct timeline-logger usage allows circumventing these. Ideally we'd have some database constraints, but those can't be specified through a proxy model. * Added a custom admin integration for the proxy model: - block writing to log records entirely, even for superusers - process the event/acting_user structured data to display it as nice columns - allow searching on the user details in the admin log page * Added a custom default message template that can leverage the metadata constraints that are enforced.
@MarcoKlerks feedback processed and deployed, you can re-test! |
Testresultaten:
Top! |
Helaas, ik heb nog een issue gevonden... Als ik in de beheer-interface een publicatie raadpleeg, dan staan daar (terecht) de documenten bij. Rechtsboven ieder document staat een vinkje 'verwijderen'. Als ik dat aanvink en opsla, dan wordt het document inderdaad verwijderd. Deze verwijdering wordt echter niet gelogd. Wel wordt er een mutatie van de publicatie gelogd. Óf deze wijze van verwijderen wordt ook gelogd óf het vinkje wordt weggehaald. |
** Description (why)**
Acceptance criteria (what)
Specific details (how)
Test plan
Tasks
logging
package/module that wraps the ORM actionsaccounts.User
!create
,update
,publish
,unpublish/retract
The text was updated successfully, but these errors were encountered: