Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use 'page_query_param' for pagination instead of hard coded page #312

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

Merged
mblayman merged 4 commits into django-json-api:develop from RegionSyx:develop
Mar 1, 2017

Conversation

Copy link

@RegionSyx RegionSyx commented Dec 22, 2016

What

  • Use self.page_query_param to determine the query parameter to use for
    pagination
  • Set the default page_query_param to 'page'
  • Freeze fake-factory version to 0.7.4

Why

*** What
- Use self.page_query_param to determine the query parameter to use for
 pagination
- Set the default page_query_param to 'page'
- Freeze fake-factory version to 0.7.4
*** Why
- Allow the use of different page query parameters to do pagination
- The latest version of fake-factory is now depreciated:
 https://pypi.python.org/pypi/fake-factory/9999.9.9 
Copy link

codecov-io commented Dec 22, 2016
edited
Loading

Codecov Report

Merging #312 into develop will not change coverage.
The diff coverage is 100%.

@@ Coverage Diff @@
## develop #312 +/- ##
========================================
 Coverage 91.64% 91.64% 
========================================
 Files 50 50 
 Lines 2359 2359 
========================================
 Hits 2162 2162 
 Misses 197 197
Impacted Files Coverage Δ
rest_framework_json_api/pagination.py 92.5% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fbe49a1...88fcf6b. Read the comment docs.

Copy link
Collaborator

@RegionSyx Thanks for the contribution! Could you make a few changes?

  1. Replace the pinned fake-factory dependency with its replacement Faker (sans pinning).
  2. Add documentation to the Usage area where pagination is mentioned.
  3. Remove the default as that same value is set in the base class coming from DRF.

I'll be happy to merge once those changes are made. 👍

Copy link
Collaborator

mblayman commented Mar 1, 2017

@RegionSyx This branch is now in conflict with the main branch. Could you update the branch to resolve the conflicts and address the other review comments? Once that is done, I'll be able to merge this branch. Thanks.

Copy link
Collaborator

mblayman commented Mar 1, 2017

Lookin' good! Thanks @RegionSyx. 👍

@mblayman mblayman merged commit 030b444 into django-json-api:develop Mar 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /