Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle paging in API calls #272

Open
saemy opened this issue Apr 27, 2018 · 0 comments
Open

Handle paging in API calls #272

saemy opened this issue Apr 27, 2018 · 0 comments

Comments

@saemy
Copy link
Collaborator

saemy commented Apr 27, 2018

Both the message threads as well as the messages per thread are paged in API calls. The app does not handle this.

And the REST replies are weird. Messages of a thread are returned more in a paging mode rather than in the expected limit/offset way:

  1. Have a thread with 51 messages
    2a) /services/rest/message/getThread/?thread_id=xxx gives you the 50 most recent messages
    2b) /services/rest/message/getThread/?thread_id=xxx?offset=0 gives you messageCount-50 messages starting at the oldest message (i.e. with 51 messages giving us exactly the oldest message)
    2c) /services/rest/message/getThread/?thread_id=xxx?offset=1 gives you 50 messages starting at the second oldest message

The message threads do not seem to support the offset parameter at all (while respecting the limit).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant