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
545 stars 151 forks source link

Ordering Opinions (API) #4378

Open flooie opened 2 months ago

flooie commented 2 months ago

Update API to include ordering for opinions

flooie commented 2 months ago

Ordering key already is represented into the API. I believe it may have been automatic.

flooie commented 1 month ago

what does API ordering mean to you @mlissner? Is it more than just providing ordering key in the Opinion API endpoint or do we want to ensure that the order is provided from inside the cluster endpoint?

mlissner commented 1 month ago

A couple things:

I'm just trying to think of things we'd want if we were consuming the API, basically?

flooie commented 1 month ago

Can/should nested opinions be ordered properly?

Can people sort by the new ordering key?

The bigger issue, in my view, is the confusion caused by grouping unrelated items together. I’d prefer to just return the sub-divided opinions if applicable without grouping them with combined opinions where both exist. However, I understand that people want more data. Technically combined opinions aren't sub_opinions. Maybe it's sub opinions - or opinions?