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

Search: move api.py into a module #9616

Merged
merged 4 commits into from
Sep 29, 2022
Merged

Search: move api.py into a module #9616

merged 4 commits into from
Sep 29, 2022

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Sep 21, 2022

Preparing things for v3 #9615. Code is the same, it was just moved.


📚 Documentation previews 📚

@stsewd stsewd marked this pull request as ready for review September 22, 2022 00:21
@stsewd stsewd requested a review from a team as a code owner September 22, 2022 00:21
@stsewd stsewd requested a review from humitos September 22, 2022 00:21
from rest_framework.pagination import PageNumberPagination


class PaginatorPage:
Copy link
Member

Choose a reason for hiding this comment

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

I don't really like putting code under __init__.py files. I'd prefer if we put these classes under readthedocs.search.api.paginators for example, instead.

@stsewd stsewd merged commit 55b5624 into main Sep 29, 2022
@stsewd stsewd deleted the move-search-api branch September 29, 2022 00:13
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.

2 participants