wiki.trwnh.com/content/tech/spec/activitypub/shortcomings/collections-underspecced.md
2023-04-16 08:27:29 -05:00

26 lines
961 B
Markdown

# collections are kinda underspecced tbh
loosely inspired by the submission of FEP-5bf0 Collection sorting and filtering
## filtering
you could pre-create collections that contain a subset of items, but there's no way to dynamically do server-side filtering; this has to be done client-side by downloading the entire collection and creating any useful indices
## sorting
OrderedCollection is mandated reverse-chronological but it should have been possible to specify the ordering
taking schema.org/ItemList and schema.org/ListItem as prior art:
- `ListItem.position` is the index
- `ItemList.itemListOrder` is the type of ordering
- `itemListOrderAscending`
- `itemListOrderDescending`
- `itemListUnordered`
what might this imply is needed for activitypub?
- `orderedBy`?
- what about multiple ordering criteria? SQL has `ORDER BY`
- actually, is a query language a good fit here?
- `reversed`? more like `order: Ascending` or `order: Descending`?