-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…84292) * [data.search] Simplify poll logic and improve types (#82545) * [Search] Add request context and asScoped pattern * Update docs * Unify interface for getting search client * Update examples/search_examples/server/my_strategy.ts Co-authored-by: Anton Dosov <dosantappdev@gmail.com> * Review feedback * Fix checks * Fix CI * Fix security search * Fix test * Fix test for reals * Fix types * [data.search] Refactor search polling and improve types * Fix & update tests & types * eql totals * doc * Revert "eql totals" This reverts commit 01e8a06. * lint * response type * shim inside strategies * shim for security * fix eql params Co-authored-by: Anton Dosov <dosantappdev@gmail.com> Co-authored-by: Liza K <liza.katz@elastic.co> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # src/plugins/data/server/index.ts # src/plugins/data/server/server.api.md * doc Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
- Loading branch information
1 parent
bbb53a9
commit bd23621
Showing
58 changed files
with
842 additions
and
855 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
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
11 changes: 0 additions & 11 deletions
11
...lugins/data/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.id.md
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...ata/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.is_partial.md
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...ata/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.is_running.md
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
...t/plugins/data/server/kibana-plugin-plugins-data-server.iesrawsearchresponse.md
This file was deleted.
Oops, something went wrong.
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
31 changes: 31 additions & 0 deletions
31
...nt/plugins/data/server/kibana-plugin-plugins-data-server.searchusageobserver.md
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [searchUsageObserver](./kibana-plugin-plugins-data-server.searchusageobserver.md) | ||
|
||
## searchUsageObserver() function | ||
|
||
Rxjs observer for easily doing `tap(searchUsageObserver(logger, usage))` in an rxjs chain. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function searchUsageObserver(logger: Logger, usage?: SearchUsage): { | ||
next(response: IEsSearchResponse): void; | ||
error(): void; | ||
}; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| logger | <code>Logger</code> | | | ||
| usage | <code>SearchUsage</code> | | | ||
|
||
<b>Returns:</b> | ||
|
||
`{ | ||
next(response: IEsSearchResponse): void; | ||
error(): void; | ||
}` | ||
|
55 changes: 0 additions & 55 deletions
55
src/plugins/data/common/search/es_search/es_search_rxjs_utils.ts
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
src/plugins/data/common/search/es_search/get_total_loaded.test.ts
This file was deleted.
Oops, something went wrong.
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
64 changes: 0 additions & 64 deletions
64
src/plugins/data/common/search/es_search/shim_abort_signal.test.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.