Skip to content
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

AVG Timeline / Audit logs - print repr of object instead of IDs #1413

Open
2 tasks
sergei-maertens opened this issue Mar 9, 2022 · 0 comments
Open
2 tasks

Comments

@sergei-maertens
Copy link
Member

Split off from #1408 / #1409

The audit/AVG logs show the IDs of objects that are the "subject" of the logged action. This is workable for objects that still exist, but not so much for records that have been deleted (which happens, otherwise #1408 would not be an issue).

Instead of printing the ID, both the representation and the ID of the object should be displayed, see #1409 (review)

Tasks

  • On every log action, store the str(object) in the database recorded (can be recorded in extra_data dict)
  • In the fmt_lead, always display the object representation if available, and include the object ID as well, e.g.: Formulier "toeslag aanvragen" (ID: 42)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants