-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call the correct functions for
scroll-search
and paginated-search
…
… operations (#1368) The `Query` runner services three operation types: `search`, `paginated-search`, and `scroll-search`. Its `__call__` method dispatches to the appropriate function for one of these operations based on the `operation-type` passed in via the `params` dict that it accepts as an argument. The `operation-type` actually never got passed to this method, however. This resulted in all three operation types ultimately calling the same function (`request_body_query`), which was not intentional. To fix this, we now inject the `operation-type` into the dict returned by the relevant parameter source when the runner is invoked. We also register `SearchParamSource` for both `scroll-search` and `paginated-search` operations.
- Loading branch information
1 parent
ba600e3
commit 7460e31
Showing
7 changed files
with
174 additions
and
66 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
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
Oops, something went wrong.