w3c / activitystreams

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

Unclear definition of 'current' in paged collections #485

Closed aschrijver closed 9 months ago

aschrijver commented 6 years ago

Please Indicate One:

Please Describe the Issue in https://www.w3.org/TR/activitystreams-vocabulary:

If current was consistent in its meaning and related to paging then:

But if the other interpretation is also valid, then how can I convey the meaning of current? Is there a best practice? More in general this leads me to 2 questions for which I'll create separate issues:

nightpool commented 6 years ago

The first, next, prev, last, and current properties are used to reference other CollectionPage instances that contain additional subsets of items from the parent collection.

Collection instances may be ordered or unordered. If you Collection is truly randomly ordered throughout it's entire paging then it doesn't make sense to specify this property.

But if your collection's paging is ordered while the items within are not (for example, if your collection was the result of a query like ?before=id&after=id and your pagination increases along id, but no order was imposed during the serialization) then there are situations when it would make sense to specify this property.

But overall, for any given Collection, if there is no page that contains the "most recently updated items" then there is no reason to include current

aschrijver commented 6 years ago

Hmm, yes. Thank you. I think I don't need a current property for now :)

gobengo commented 5 years ago

@aschrijver Do you have unresolved concerns on this open issue?

aschrijver commented 5 years ago

Personally, no. I will not use current. But overall I wonder whether a clearer explanation in the spec would be helpful. You can close, if you find that not the case.

evanp commented 9 months ago

@aschrijver I added a section to the primer page on Collections about this property to make it clearer.

https://www.w3.org/wiki/Activity_Streams/Primer/Collections#current_property

I think that resolves this issue, so I'll close it if you're satisfied.

aschrijver commented 9 months ago

Thank you @evanp. Yes, that is well described :+1: