w3c / activitystreams

Activity Streams 2.0
https://www.w3.org/TR/activitystreams-core/
Other
278 stars 62 forks source link

How can I best indicate how a Collection was filtered? #483

Closed aschrijver closed 5 months ago

aschrijver commented 6 years ago

Please Indicate One:

Please Describe the Issue:

When a (Ordered)Collection is returned by an API call, it will oftentimes be the result of a query, and only contain a filtered subset of the full collection, e.g. 'give me all items filtered by Object type' or 'give me all items published between X and Y date', etc.

My question: If I want to convey to the client what filter query was used to obtain the collection, what would be the best practice?

Some options:

nightpool commented 6 years ago

i think id is probably your best bet, and I don't see any conflict with "should be filtered by client permissions"—that's just saying "don't show clients activities they don't have access to"

aschrijver commented 6 years ago

Thanks @nightpool

I'll strongly consider id (maybe in combination with another option, if that works better for e.g. UI representation in a client)

gobengo commented 5 years ago

IMO "There is no best way, choose whatever suits you"

evanp commented 9 months ago

I just commented on the similar issue on sorting, so I'll link it here.

https://github.com/w3c/activitystreams/issues/484#issuecomment-1812959870

tl;dr is to use FEP 5bf0, possibly with multiple types.

aschrijver commented 9 months ago

I am fine with closing this issue and its related one, with that reference to the FEP as the outcome. Thank you @evanp