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

Allow REST_FRAMEWORK.PAGE_SIZE to be overriden in settings #8993

Conversation

christophehenry
Copy link

Description

Overriding REST_FRAMEWORK.PAGE_SIZE with @override_settings in tests doesn't override setting, which is disturbing. My opinion is that there are legitimate use cases when you may want to override REST_FRAMEWORK.PAGE_SIZE in your tests and paginator should reflect this change.

@auvipy auvipy self-requested a review May 27, 2023 13:05
@stale
Copy link

stale bot commented Aug 12, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 12, 2023
@auvipy auvipy requested a review from a team August 13, 2023 04:59
@stale stale bot removed the stale label Aug 13, 2023
@christophehenry
Copy link
Author

Hi! Any news on reviewing this? This is a really simple PR, it should be easy to merge.

Copy link
Member

@auvipy auvipy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have a related PR here #9107. can you review and share some points for the PR? We are very careful at this moment in adding/exposing new API surface to the framework, so it needs thoughtful process to reach a consensus

@auvipy
Copy link
Member

auvipy commented Oct 2, 2023

Also this will need tests and documentation update

@christophehenry
Copy link
Author

I'm not sure why the documentation should be updated. This feels like getting the intanded behaviour more than adding a feature. I'm also not sure where to put the tests for that. Can you point me to the relevant file? Would it be tests/test_pagination.py?

@christophehenry
Copy link
Author

Hi! Can I have an input here so that this may progress?

@christophehenry christophehenry deleted the test-overridable-page-size branch March 19, 2024 11:23
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

Successfully merging this pull request may close these issues.

None yet

2 participants