-
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.
Expose SO import/export APIs from the service's contract instead of e…
…xporting static functions (#86264) * Add user doc for SO tagging * add link to new page * handle review feedbacks * second pass * create SO exporter class * adapt spaces code * typo fix * adapt tests * some doc * update generated doc * fix spaces tests * move ALL the import things * adapt / move types * create context, adapt core code * adapt integration tests * rename for consistency * adapt spaces usages * adapt spaces routes usages * remove unused getImportExportObjectLimit * fix tsdoc * update generated doc * doc nits * review comments * add test for fetchByObjects failure * add custom errors for exporter * remove `getImportExportObjectLimit` API * fix IT * update generated doc * adapt UT * forgot one Boom usage * rename import error to failure * remove Boom usages from importer * update generated doc * fix spaces types
- Loading branch information
1 parent
ba20a74
commit f597119
Showing
173 changed files
with
3,085 additions
and
2,183 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: 0 additions & 11 deletions
11
...development/core/public/kibana-plugin-core-public.savedobjectsimporterror.id.md
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
docs/development/core/public/kibana-plugin-core-public.savedobjectsimporterror.md
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...velopment/core/public/kibana-plugin-core-public.savedobjectsimporterror.type.md
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...e-public.savedobjectsimporterror.error.md → ...public.savedobjectsimportfailure.error.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
11 changes: 11 additions & 0 deletions
11
...velopment/core/public/kibana-plugin-core-public.savedobjectsimportfailure.id.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-core-public](./kibana-plugin-core-public.md) > [SavedObjectsImportFailure](./kibana-plugin-core-public.savedobjectsimportfailure.md) > [id](./kibana-plugin-core-public.savedobjectsimportfailure.id.md) | ||
|
||
## SavedObjectsImportFailure.id property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
id: string; | ||
``` |
25 changes: 25 additions & 0 deletions
25
.../development/core/public/kibana-plugin-core-public.savedobjectsimportfailure.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,25 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [SavedObjectsImportFailure](./kibana-plugin-core-public.savedobjectsimportfailure.md) | ||
|
||
## SavedObjectsImportFailure interface | ||
|
||
Represents a failure to import. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface SavedObjectsImportFailure | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [error](./kibana-plugin-core-public.savedobjectsimportfailure.error.md) | <code>SavedObjectsImportConflictError | SavedObjectsImportAmbiguousConflictError | SavedObjectsImportUnsupportedTypeError | SavedObjectsImportMissingReferencesError | SavedObjectsImportUnknownError</code> | | | ||
| [id](./kibana-plugin-core-public.savedobjectsimportfailure.id.md) | <code>string</code> | | | ||
| [meta](./kibana-plugin-core-public.savedobjectsimportfailure.meta.md) | <code>{</code><br/><code> title?: string;</code><br/><code> icon?: string;</code><br/><code> }</code> | | | ||
| [overwrite](./kibana-plugin-core-public.savedobjectsimportfailure.overwrite.md) | <code>boolean</code> | If <code>overwrite</code> is specified, an attempt was made to overwrite an existing object. | | ||
| [title](./kibana-plugin-core-public.savedobjectsimportfailure.title.md) | <code>string</code> | | | ||
| [type](./kibana-plugin-core-public.savedobjectsimportfailure.type.md) | <code>string</code> | | | ||
|
4 changes: 2 additions & 2 deletions
4
...re-public.savedobjectsimporterror.meta.md → ...-public.savedobjectsimportfailure.meta.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
4 changes: 2 additions & 2 deletions
4
...blic.savedobjectsimporterror.overwrite.md → ...ic.savedobjectsimportfailure.overwrite.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
4 changes: 2 additions & 2 deletions
4
...e-public.savedobjectsimporterror.title.md → ...public.savedobjectsimportfailure.title.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
11 changes: 11 additions & 0 deletions
11
...lopment/core/public/kibana-plugin-core-public.savedobjectsimportfailure.type.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-core-public](./kibana-plugin-core-public.md) > [SavedObjectsImportFailure](./kibana-plugin-core-public.savedobjectsimportfailure.md) > [type](./kibana-plugin-core-public.savedobjectsimportfailure.type.md) | ||
|
||
## SavedObjectsImportFailure.type property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
type: string; | ||
``` |
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 |
---|---|---|
|
@@ -7,5 +7,5 @@ | |
<b>Signature:</b> | ||
|
||
```typescript | ||
errors?: SavedObjectsImportError[]; | ||
errors?: SavedObjectsImportFailure[]; | ||
``` |
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
24 changes: 0 additions & 24 deletions
24
...development/core/server/kibana-plugin-core-server.exportsavedobjectstostream.md
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
...velopment/core/server/kibana-plugin-core-server.importsavedobjectsfromstream.md
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
docs/development/core/server/kibana-plugin-core-server.isavedobjectsexporter.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,12 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [ISavedObjectsExporter](./kibana-plugin-core-server.isavedobjectsexporter.md) | ||
|
||
## ISavedObjectsExporter type | ||
|
||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type ISavedObjectsExporter = PublicMethodsOf<SavedObjectsExporter>; | ||
``` |
12 changes: 12 additions & 0 deletions
12
docs/development/core/server/kibana-plugin-core-server.isavedobjectsimporter.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,12 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [ISavedObjectsImporter](./kibana-plugin-core-server.isavedobjectsimporter.md) | ||
|
||
## ISavedObjectsImporter type | ||
|
||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type ISavedObjectsImporter = PublicMethodsOf<SavedObjectsImporter>; | ||
``` |
Oops, something went wrong.