freelawproject / courtlistener

A fully-searchable and accessible archive of court data including growing repositories of opinions, oral arguments, judges, judicial financial records, and federal filings.
https://www.courtlistener.com
Other
552 stars 151 forks source link

feat(pghistory): enable Events admin for single object's history #4577

Closed grossir closed 1 month ago

grossir commented 1 month ago
grossir commented 1 month ago

pghistory admin list page has 3 entry points:

  1. from the sidebar that lists all admins for each app. Looks like: http://0.0.0.0:8000/admin/pghistory/events/
  2. from an admin list page, for example, when checking the list of search.Dockets. Looks like: http://0.0.0.0:8000/admin/search/docket/
  3. from a single object details page (for example, a single Docket)

With the proposed changes, the Events page would look like this when accesed through (1) and (2) image

image

mlissner commented 1 month ago

I think we just want to see events per object, right? A list of all events doesn't seem useful at all?

grossir commented 1 month ago

Yes, this PR makes the pghistory events admin work only when filtering by an object ID