With all JSON queries, return more pagination metadata.
ClosedPublic

Authored by ralph2 on Nov 11 2014, 4:57 PM.

Details

Summary

This now includes:

  • total - the total number of entities that can be retrieved.
  • pages - the total number of pages that can be retrieved

Without these, if you have code that is paging through resultsdb
results, there is no way to know when you are going to be done -- and no
way to jump to the last page and iterate through them in reverse.

Test Plan

Run the test suite.

Diff Detail

Repository
rRSDB resultsdb
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ralph2 retitled this revision from to With all JSON queries, return more pagination metadata..Nov 11 2014, 4:57 PM
ralph2 updated this object.
ralph2 edited the test plan for this revision. (Show Details)
ralph2 added reviewers: tflink, jskladan.
tflink accepted this revision.Nov 11 2014, 11:17 PM

LGTM

This revision is now accepted and ready to land.Nov 11 2014, 11:17 PM
This revision was automatically updated to reflect the committed changes.