nix-security-tracker
nix-security-tracker copied to clipboard
feat: nixpkgsissue activity log view
feat: nixpkgsissue activity log view
Improve the messy representation of the different pghistory
event tables:
- Create a view
log_nixpkgsissue
in the PostgreSQL backend and introduce an unmanaged modelNixpkgsIssueLogView
to display a list of changes per timestamp and user. - Register
NixpkgsIssueLogView
in thepghistory
app to declutter the log reporting from the already crowdedshared
section. - Delete the previous activitiy log models and views in favour of the unified view model.
If performance starts being problematic for the log_nixpkgsissue
view, we can
make it a materialized view and add a trigger to update its contents on shared.nixpkgsissue
and it's m2m relationships updates.
NOTE: This PR includes #101