-
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.
[Search Sessions] Client side search cache (#92439)
* dev docs * sessions tutorial * title * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Update dev_docs/tutorials/data/search.mdx Co-authored-by: gchaps <[email protected]> * Code review * client cache * mock utils * improve code * Use cacheOnClient in Lens * mock * docs and types * unit tests! * Search response cache + tests * remove cacheOnClient evict cache on error * test ts * shouldCacheOnClient + improve tests * remove unused * clear subs * dont unsubscribe on setItem * caching mess * t * fix jest * add size to bfetch response @ppisljar use it to reduce the # of stringify in response cache * ts * ts * docs * simplify abort controller logic and extract it into a class * docs * delete unused tests * use addAbortSignal * code review * Use shareReplay, fix tests * code review * bfetch test * code review * Leave the bfetch changes out * docs + isRestore * make sure to clean up properly * Make sure that aborting in cache works correctly Clearer restructuring of code * fix test * import * code review round 1 * ts * Added functional test for search request caching * test * skip before codefreeze Co-authored-by: gchaps <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
- Loading branch information
1 parent
ad6dc34
commit c0afedb
Showing
19 changed files
with
1,350 additions
and
60 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...c/kibana-plugin-plugins-data-public.searchinterceptor.getserializableoptions.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,22 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [SearchInterceptor](./kibana-plugin-plugins-data-public.searchinterceptor.md) > [getSerializableOptions](./kibana-plugin-plugins-data-public.searchinterceptor.getserializableoptions.md) | ||
|
||
## SearchInterceptor.getSerializableOptions() method | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
protected getSerializableOptions(options?: ISearchOptions): Pick<ISearchOptions, "strategy" | "sessionId" | "isStored" | "isRestore" | "legacyHitsTotal">; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| options | <code>ISearchOptions</code> | | | ||
|
||
<b>Returns:</b> | ||
|
||
`Pick<ISearchOptions, "strategy" | "sessionId" | "isStored" | "isRestore" | "legacyHitsTotal">` | ||
|
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
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.