forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spaces - New Platform Migration, Step 1 (elastic#35429)
* crude test updates * remove custom server typedef * allow spaces to aquire security plugin after init * split CoreSetup into CoreSetup and PluginsSetup * move interfaces to new plugin * init interceptors in legacy plugin * fix import * add placeholder kibana.json * use NP Elasticsearch service instead of legacy ES Plugin * cleanup imports * don't destructure the es client * introduce request facade * document reason for getSecurity * prefer relative imports from src/core * fix typo in filename: inteceptors --> interceptors * fix imports; remove stray ts-ignore * improve typings for spaces client * rename InterfaceExcept --> Omit * don't use legacy config in NP * additional comment * shim NP config service * fix merge from master * revert relative imports into src/core and src/legacy * shim capabilities modifier into new platform * removing placeholder kibana.json * fix prettier problem * temporary: patch NP 'setUrl' * migrate onRequest interceptor to NP, without tests * fix ts error * testing and deps cleanup for onRequestInterceptor * replace spaces's usages of request.getBasePath with http.getBasePathFor * add explicit timeouts for jest interceptor tests * attempt to fix imports * use NP logging instead of faked implementation * revert stray yarn.lock change * attempt to stablize and fix tests * update jest config to include src/core/server/mocks * fix plugin config typings * add service tests * fix merge * allow spaces service to also work with legacy requests * update interfaces to confirm to new internal/external API convention * re-enable some post auth interceptor tests * add explicit timeouts for tests * prefer modifyUrl instead of manual url modification * update logger shim to conform to PluginInitializerContext * remove spaces ConfigClass * don't weaken type declaration for scoped cluster client calls * remove legacy server from SpacesCoreSetup * remove spaces service cache * remove legacy server as an interceptor dependency * use modifyUrl on the raw request too * remove unused import * cleanup typings * replace onRequest interceptor with new onPreAuth interceptor * fix onPostAuth tests * temporarily copy modifyUrl into spaces plugin * fix mock export * fix merge from master * spaces scopedClient always uses updated ES client and config * improve typings for usage collector * rename isLegacyRequest -> isFakeRequest * use updated NP base path API * remove commented code * only expose scoped spaces client * use OptionalPlugin instead of getSecurity * update imports of Saved Objects Service to use new src/core/server location * update core docs
- Loading branch information
Showing
61 changed files
with
1,864 additions
and
902 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
11 changes: 11 additions & 0 deletions
11
...evelopment/core/server/kibana-plugin-server.savedobjectsclientwrapperfactory.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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SavedObjectsClientWrapperFactory](./kibana-plugin-server.savedobjectsclientwrapperfactory.md) | ||
|
||
## SavedObjectsClientWrapperFactory type | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type SavedObjectsClientWrapperFactory<Request = unknown> = (options: SavedObjectsClientWrapperOptions<Request>) => SavedObjectsClientContract; | ||
``` |
11 changes: 11 additions & 0 deletions
11
...ent/core/server/kibana-plugin-server.savedobjectsclientwrapperoptions.client.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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SavedObjectsClientWrapperOptions](./kibana-plugin-server.savedobjectsclientwrapperoptions.md) > [client](./kibana-plugin-server.savedobjectsclientwrapperoptions.client.md) | ||
|
||
## SavedObjectsClientWrapperOptions.client property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
client: SavedObjectsClientContract; | ||
``` |
19 changes: 19 additions & 0 deletions
19
...evelopment/core/server/kibana-plugin-server.savedobjectsclientwrapperoptions.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,19 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SavedObjectsClientWrapperOptions](./kibana-plugin-server.savedobjectsclientwrapperoptions.md) | ||
|
||
## SavedObjectsClientWrapperOptions interface | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface SavedObjectsClientWrapperOptions<Request = unknown> | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [client](./kibana-plugin-server.savedobjectsclientwrapperoptions.client.md) | <code>SavedObjectsClientContract</code> | | | ||
| [request](./kibana-plugin-server.savedobjectsclientwrapperoptions.request.md) | <code>Request</code> | | | ||
|
11 changes: 11 additions & 0 deletions
11
...nt/core/server/kibana-plugin-server.savedobjectsclientwrapperoptions.request.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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [SavedObjectsClientWrapperOptions](./kibana-plugin-server.savedobjectsclientwrapperoptions.md) > [request](./kibana-plugin-server.savedobjectsclientwrapperoptions.request.md) | ||
|
||
## SavedObjectsClientWrapperOptions.request property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
request: Request; | ||
``` |
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
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.