Skip to content

Commit 5498a23

Browse files
committed
Revert "[7.x] [SEARCH] Cleanup fetch soon (elastic#63320) (elastic#63929)"
This reverts commit 6ee7111.
1 parent 486e9e1 commit 5498a23

36 files changed

+322
-276
lines changed

docs/development/plugins/data/public/kibana-plugin-plugins-data-public.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
| [SavedQuery](./kibana-plugin-plugins-data-public.savedquery.md) | |
8989
| [SavedQueryService](./kibana-plugin-plugins-data-public.savedqueryservice.md) | |
9090
| [SearchSourceFields](./kibana-plugin-plugins-data-public.searchsourcefields.md) | |
91+
| [SearchStrategyProvider](./kibana-plugin-plugins-data-public.searchstrategyprovider.md) | |
9192
| [TabbedAggColumn](./kibana-plugin-plugins-data-public.tabbedaggcolumn.md) | \* |
9293
| [TabbedTable](./kibana-plugin-plugins-data-public.tabbedtable.md) | \* |
9394
| [TimeRange](./kibana-plugin-plugins-data-public.timerange.md) | |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) &gt; [SearchStrategyProvider](./kibana-plugin-plugins-data-public.searchstrategyprovider.md) &gt; [id](./kibana-plugin-plugins-data-public.searchstrategyprovider.id.md)
4+
5+
## SearchStrategyProvider.id property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
id: string;
11+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) &gt; [SearchStrategyProvider](./kibana-plugin-plugins-data-public.searchstrategyprovider.md) &gt; [isViable](./kibana-plugin-plugins-data-public.searchstrategyprovider.isviable.md)
4+
5+
## SearchStrategyProvider.isViable property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
isViable: (indexPattern: IndexPattern) => boolean;
11+
```
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) &gt; [SearchStrategyProvider](./kibana-plugin-plugins-data-public.searchstrategyprovider.md)
4+
5+
## SearchStrategyProvider interface
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
export interface SearchStrategyProvider
11+
```
12+
13+
## Properties
14+
15+
| Property | Type | Description |
16+
| --- | --- | --- |
17+
| [id](./kibana-plugin-plugins-data-public.searchstrategyprovider.id.md) | <code>string</code> | |
18+
| [isViable](./kibana-plugin-plugins-data-public.searchstrategyprovider.isviable.md) | <code>(indexPattern: IndexPattern) =&gt; boolean</code> | |
19+
| [search](./kibana-plugin-plugins-data-public.searchstrategyprovider.search.md) | <code>(params: SearchStrategySearchParams) =&gt; SearchStrategyResponse</code> | |
20+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) &gt; [SearchStrategyProvider](./kibana-plugin-plugins-data-public.searchstrategyprovider.md) &gt; [search](./kibana-plugin-plugins-data-public.searchstrategyprovider.search.md)
4+
5+
## SearchStrategyProvider.search property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
search: (params: SearchStrategySearchParams) => SearchStrategyResponse;
11+
```

src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/lib/get_indices.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import { getIndices } from './get_indices';
2121
import { IndexPatternCreationConfig } from '../../../../../../../../../plugins/index_pattern_management/public';
2222
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
23-
import { LegacyApiCaller } from '../../../../../../../../../plugins/data/public/search/legacy';
23+
import { LegacyApiCaller } from '../../../../../../../../../plugins/data/public/search';
2424

2525
export const successfulResponse = {
2626
hits: {

src/plugins/data/public/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ export {
363363
SearchRequest,
364364
SearchResponse,
365365
SearchError,
366+
SearchStrategyProvider,
366367
ISearchSource,
367368
SearchSource,
368369
createSearchSource,

src/plugins/data/public/public.api.md

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1736,6 +1736,21 @@ export interface SearchSourceFields {
17361736
version?: boolean;
17371737
}
17381738

1739+
// Warning: (ae-missing-release-tag) "SearchStrategyProvider" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1740+
//
1741+
// @public (undocumented)
1742+
export interface SearchStrategyProvider {
1743+
// (undocumented)
1744+
id: string;
1745+
// (undocumented)
1746+
isViable: (indexPattern: IndexPattern) => boolean;
1747+
// Warning: (ae-forgotten-export) The symbol "SearchStrategySearchParams" needs to be exported by the entry point index.d.ts
1748+
// Warning: (ae-forgotten-export) The symbol "SearchStrategyResponse" needs to be exported by the entry point index.d.ts
1749+
//
1750+
// (undocumented)
1751+
search: (params: SearchStrategySearchParams) => SearchStrategyResponse;
1752+
}
1753+
17391754
// Warning: (ae-missing-release-tag) "SortDirection" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
17401755
//
17411756
// @public (undocumented)
@@ -1886,21 +1901,21 @@ export type TSearchStrategyProvider<T extends TStrategyTypes> = (context: ISearc
18861901
// src/plugins/data/public/index.ts:234:27 - (ae-forgotten-export) The symbol "flattenHitWrapper" needs to be exported by the entry point index.d.ts
18871902
// src/plugins/data/public/index.ts:234:27 - (ae-forgotten-export) The symbol "getRoutes" needs to be exported by the entry point index.d.ts
18881903
// src/plugins/data/public/index.ts:234:27 - (ae-forgotten-export) The symbol "formatHitProvider" needs to be exported by the entry point index.d.ts
1889-
// src/plugins/data/public/index.ts:382:20 - (ae-forgotten-export) The symbol "getRequestInspectorStats" needs to be exported by the entry point index.d.ts
1890-
// src/plugins/data/public/index.ts:382:20 - (ae-forgotten-export) The symbol "getResponseInspectorStats" needs to be exported by the entry point index.d.ts
1891-
// src/plugins/data/public/index.ts:382:20 - (ae-forgotten-export) The symbol "tabifyAggResponse" needs to be exported by the entry point index.d.ts
1892-
// src/plugins/data/public/index.ts:382:20 - (ae-forgotten-export) The symbol "tabifyGetColumns" needs to be exported by the entry point index.d.ts
1893-
// src/plugins/data/public/index.ts:387:1 - (ae-forgotten-export) The symbol "CidrMask" needs to be exported by the entry point index.d.ts
1894-
// src/plugins/data/public/index.ts:388:1 - (ae-forgotten-export) The symbol "convertDateRangeToString" needs to be exported by the entry point index.d.ts
1895-
// src/plugins/data/public/index.ts:390:1 - (ae-forgotten-export) The symbol "dateHistogramInterval" needs to be exported by the entry point index.d.ts
1896-
// src/plugins/data/public/index.ts:399:1 - (ae-forgotten-export) The symbol "InvalidEsCalendarIntervalError" needs to be exported by the entry point index.d.ts
1897-
// src/plugins/data/public/index.ts:400:1 - (ae-forgotten-export) The symbol "InvalidEsIntervalFormatError" needs to be exported by the entry point index.d.ts
1898-
// src/plugins/data/public/index.ts:401:1 - (ae-forgotten-export) The symbol "isDateHistogramBucketAggConfig" needs to be exported by the entry point index.d.ts
1899-
// src/plugins/data/public/index.ts:404:1 - (ae-forgotten-export) The symbol "isValidEsInterval" needs to be exported by the entry point index.d.ts
1900-
// src/plugins/data/public/index.ts:405:1 - (ae-forgotten-export) The symbol "isValidInterval" needs to be exported by the entry point index.d.ts
1901-
// src/plugins/data/public/index.ts:408:1 - (ae-forgotten-export) The symbol "parseInterval" needs to be exported by the entry point index.d.ts
1902-
// src/plugins/data/public/index.ts:409:1 - (ae-forgotten-export) The symbol "propFilter" needs to be exported by the entry point index.d.ts
1903-
// src/plugins/data/public/index.ts:412:1 - (ae-forgotten-export) The symbol "toAbsoluteDates" needs to be exported by the entry point index.d.ts
1904+
// src/plugins/data/public/index.ts:383:20 - (ae-forgotten-export) The symbol "getRequestInspectorStats" needs to be exported by the entry point index.d.ts
1905+
// src/plugins/data/public/index.ts:383:20 - (ae-forgotten-export) The symbol "getResponseInspectorStats" needs to be exported by the entry point index.d.ts
1906+
// src/plugins/data/public/index.ts:383:20 - (ae-forgotten-export) The symbol "tabifyAggResponse" needs to be exported by the entry point index.d.ts
1907+
// src/plugins/data/public/index.ts:383:20 - (ae-forgotten-export) The symbol "tabifyGetColumns" needs to be exported by the entry point index.d.ts
1908+
// src/plugins/data/public/index.ts:388:1 - (ae-forgotten-export) The symbol "CidrMask" needs to be exported by the entry point index.d.ts
1909+
// src/plugins/data/public/index.ts:389:1 - (ae-forgotten-export) The symbol "convertDateRangeToString" needs to be exported by the entry point index.d.ts
1910+
// src/plugins/data/public/index.ts:391:1 - (ae-forgotten-export) The symbol "dateHistogramInterval" needs to be exported by the entry point index.d.ts
1911+
// src/plugins/data/public/index.ts:400:1 - (ae-forgotten-export) The symbol "InvalidEsCalendarIntervalError" needs to be exported by the entry point index.d.ts
1912+
// src/plugins/data/public/index.ts:401:1 - (ae-forgotten-export) The symbol "InvalidEsIntervalFormatError" needs to be exported by the entry point index.d.ts
1913+
// src/plugins/data/public/index.ts:402:1 - (ae-forgotten-export) The symbol "isDateHistogramBucketAggConfig" needs to be exported by the entry point index.d.ts
1914+
// src/plugins/data/public/index.ts:405:1 - (ae-forgotten-export) The symbol "isValidEsInterval" needs to be exported by the entry point index.d.ts
1915+
// src/plugins/data/public/index.ts:406:1 - (ae-forgotten-export) The symbol "isValidInterval" needs to be exported by the entry point index.d.ts
1916+
// src/plugins/data/public/index.ts:409:1 - (ae-forgotten-export) The symbol "parseInterval" needs to be exported by the entry point index.d.ts
1917+
// src/plugins/data/public/index.ts:410:1 - (ae-forgotten-export) The symbol "propFilter" needs to be exported by the entry point index.d.ts
1918+
// src/plugins/data/public/index.ts:413:1 - (ae-forgotten-export) The symbol "toAbsoluteDates" needs to be exported by the entry point index.d.ts
19041919
// src/plugins/data/public/query/state_sync/connect_to_query_state.ts:33:33 - (ae-forgotten-export) The symbol "FilterStateStore" needs to be exported by the entry point index.d.ts
19051920
// src/plugins/data/public/query/state_sync/connect_to_query_state.ts:37:1 - (ae-forgotten-export) The symbol "QueryStateChange" needs to be exported by the entry point index.d.ts
19061921
// src/plugins/data/public/types.ts:52:5 - (ae-forgotten-export) The symbol "createFiltersFromEvent" needs to be exported by the entry point index.d.ts

src/plugins/data/public/search/aggs/test_helpers/mock_data_services.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919

2020
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
21-
import { coreMock } from '../../../../../../core/public/mocks';
22-
import { dataPluginMock } from '../../../mocks';
21+
import { coreMock } from '../../../../../../../src/core/public/mocks';
22+
import { dataPluginMock } from '../../../../public/mocks';
2323
import {
2424
setFieldFormats,
2525
setIndexPatterns,
@@ -29,7 +29,7 @@ import {
2929
setQueryService,
3030
setSearchService,
3131
setUiSettings,
32-
} from '../../../services';
32+
} from '../../../../public/services';
3333

3434
/**
3535
* Testing helper which calls all of the service setters used in the
@@ -49,9 +49,4 @@ export function mockDataServices() {
4949
setQueryService(data.query);
5050
setSearchService(data.search);
5151
setUiSettings(core.uiSettings);
52-
53-
return {
54-
core,
55-
data,
56-
};
5752
}

0 commit comments

Comments
 (0)