Skip to content

Pagination Support #20

Open
Open

Description

@rdeutz

That's more a question to the maintainer(s). Any plans to implements pagination or should this be handled outside the package? At least we need to implement a way to get the headers. Some guidance would be great, I need pagination in one of my projects and have it implemented, but it can't be done without a B/C break. Form what I can see in the 2.0-branch it is still not possible to paginate the results. So the options I see are:

  1. just return to response object and let the outside class handle pagination
  2. implement a pagination class and return body and pagination object

Either way is fine, if I know what is the preference I could work on a PR.

Activity

  1. mbabker commented on Nov 23, 2015

    @mbabker
    Contributor

    #19 shows how easy it is to make the change (actually unless something isn't using that processResponse method it's already 100% done), the long part is in changing the unit test infrastructure.

    FWIW I've taken the same type of approach I proposed on #19 in my own package (see BabDev/Transifex-API@1.x...master for the changes, including how to DRY out the duplicated unit test logic).

    I've gone ahead and restored the Return-Response branch that RFC was based on. IMO that is the quickest route to make available the data that's being stripped out with the current return structure.

  2. rdeutz commented on Nov 23, 2015

    @rdeutz
    Author

    ok, so the answer is: 1)

    and let the outside class handle pagination. Good I can check the unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions