Movatterモバイル変換


[0]ホーム

URL:


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

Allow REST_FRAMEWORK.PAGE_SIZE to be overriden in settings#8993

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

christophehenry
Copy link

Description

OverridingREST_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 overrideREST_FRAMEWORK.PAGE_SIZE in your tests and paginator should reflect this change.

@auvipyauvipy self-requested a reviewMay 27, 2023 13:05
@stale
Copy link

stalebot commentedAug 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.

@stalestalebot added the stale labelAug 12, 2023
@auvipyauvipy requested a review froma teamAugust 13, 2023 04:59
@stalestalebot removed the stale labelAug 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

@auvipyauvipy 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

Also this will need tests and documentation update

@auvipyauvipy mentioned this pull requestOct 2, 2023
@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 betests/test_pagination.py?

@christophehenry
Copy link
Author

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

@christophehenrychristophehenry deleted the test-overridable-page-size branchMarch 19, 2024 11:23
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@auvipyauvipyauvipy requested changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@christophehenry@auvipy

[8]ページ先頭

©2009-2025 Movatter.jp