nycmeshnet / meshdb

A convenient, stable, and sane database for tracking Members and Nodes for use with robots and humans
https://db.nycmesh.net
MIT License
12 stars 14 forks source link

Populate django admin change history from import script / API changes #567

Closed Andrew-Dickinson closed 1 month ago

Andrew-Dickinson commented 1 month ago

Should we try to add "object created" history entries to the django admin UI. Might be nice

Andrew-Dickinson commented 1 month ago

Perhaps we should integrate django-simple-history which might just give us this for free

Andrew-Dickinson commented 1 month ago

Full list of options here: https://djangopackages.org/grids/g/model-audit/

Andrew-Dickinson commented 1 month ago

Too low usage / too new:

Not really for what we want to do:

Potential options:

Andrew-Dickinson commented 1 month ago

Django-easy-audit was extremely easy to set up. However the admin UI leaves much to be desired:

Screenshot 2024-09-22 at 20 14 45

Andrew-Dickinson commented 1 month ago

Django-reversion was not bad to setup, and supports reverting to previous versions of the model, the UI is not too shabby:

Screenshot 2024-09-22 at 20 40 35 Screenshot 2024-09-22 at 20 40 43

Andrew-Dickinson commented 1 month ago

django-auditlog was also not that bad, and the UI is decent, however all the models are included in the same "history" table, which is kinda lame Screenshot 2024-09-22 at 21 06 44

Edit: some attempts to fix that here but I couldn't get the mix-in workaround to work

Andrew-Dickinson commented 1 month ago

Skipping django-pghistory as the admin screenshots in their docs are pretty meh

Andrew-Dickinson commented 1 month ago

I like django-simple-history the best by far: Screenshot 2024-09-22 at 21 28 57