-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added fix when count query is disabled via meta info for internal paginator now internal paginator is capable of producing page response without executing count query. A naive implementation is used with query offset plan Though the initial plan was to make an external strategy and switch between them but there will come issue when user starts implementating their own paginator strategies and decided to use the count flag along with their custom implementation as it becomes hard to differentiate between custom paginator and core paginator that's why we kept core service paginator selector as raw as possible i.e., get and set (get the strategy and set the strategy)
- Loading branch information
1 parent
a5c845e
commit 22e952f
Showing
8 changed files
with
83 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = "0.3.0" | ||
__version__ = "0.3.1" | ||
|
||
__all__ = [ | ||
"ListingService", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__all__ = ["ListingPage", "BaseListingPage"] | ||
__all__ = ["ListingPage", "BaseListingPage", "PaginationStrategy", "ListingPageWithoutCount"] | ||
|
||
from fastapi_listing.paginator.page_builder import PaginationStrategy | ||
from fastapi_listing.paginator.default_page_format import ListingPage, BaseListingPage | ||
from fastapi_listing.paginator.default_page_format import ListingPage, BaseListingPage, ListingPageWithoutCount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters