Total-Records should give the total number of records. #43
Total-Records should give the total number of records. #43
Conversation
The right endpoint is |
@rfk is it something that we should fix in syncserver instead? |
Actually the documentation describes the implemented feature:
So I guess it is not a Sync Server bug. |
@michielbdejong Can I remove this feature from syncto until we actually get a use case? |
Here is a proposal to remove |
80e4f9a
to
0f58946
Compare
+1 but if next year Kinto.js starts relying on this header, we should somehow remember that Syncto does not implement the entire Kinto API. We will have integration tests that would start failing, but maybe we should also update "using the Kinto API" on http://syncto.readthedocs.org/en/latest/ to "using a subset of the Kinto API", so that this is clear. |
Good point thanks. |
@leplatrem I have created #51 to track a potential follow up on this. |
…ords-with-pagination Total-Records should give the total number of records.
Today
Total-Record
only contains the number of records in the current request.Kinto protocol defines it to be the total number of records for the collection.
We should use the
syncclient.info_collection()
methods in order to return the right number of records. We may want to cache this value when used with pagination.