Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multi-space support to SO management and import/export API #109196

Closed
wants to merge 56 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
ed9361f
some WIP
pgayvallet Aug 17, 2021
c619f28
still some WIP
pgayvallet Aug 19, 2021
e102d9b
Merge remote-tracking branch 'upstream/master' into kbn-91615-multi-n…
pgayvallet Aug 24, 2021
a96fb19
fix conflicts, add context provider, add spaces column to main table
pgayvallet Aug 24, 2021
d6c88d8
add spaces column to delete modal
pgayvallet Aug 24, 2021
d826636
include namespaces for per-type export
pgayvallet Aug 24, 2021
260502e
add export option to export all modal
pgayvallet Aug 24, 2021
333e1b4
add export option to export by id menu
pgayvallet Aug 24, 2021
6f17593
update reference collection stage of the export process
pgayvallet Aug 24, 2021
c952f96
remove added API from mock
pgayvallet Aug 25, 2021
9b1cafb
Merge remote-tracking branch 'upstream/master' into kbn-91615-multi-n…
pgayvallet Aug 25, 2021
050f684
fix column service tests
pgayvallet Aug 25, 2021
1d22bea
update table snapshots
pgayvallet Aug 25, 2021
ca2c639
fix so table unit tests
pgayvallet Aug 25, 2021
ea98619
fix exporter tests
pgayvallet Aug 25, 2021
8ebf1a9
fix collect tests
pgayvallet Aug 25, 2021
162dc23
add base tests for multi-ns collection
pgayvallet Aug 25, 2021
ee73feb
Merge remote-tracking branch 'upstream/master' into kbn-91615-multi-n…
pgayvallet Aug 25, 2021
87feb8d
fix test types
pgayvallet Aug 25, 2021
d5200b1
update generated doc
pgayvallet Aug 25, 2021
9208b7d
modifying import script, first iteration
pgayvallet Aug 26, 2021
f04224c
fix / adapt most of the import unit test suites
pgayvallet Aug 27, 2021
cf8de9f
fix remaining test suites
pgayvallet Aug 27, 2021
cb55d71
Merge remote-tracking branch 'upstream/master' into kbn-91615-multi-n…
pgayvallet Aug 27, 2021
811e7a5
Merge remote-tracking branch 'upstream/master' into kbn-91615-multi-n…
pgayvallet Aug 30, 2021
d7bb6c5
fix checkConflicts namespace retrieval
pgayvallet Aug 30, 2021
35923a2
redact namespace info from excluded objects when includeNamespaces is…
pgayvallet Aug 30, 2021
cea8751
fix types
pgayvallet Aug 30, 2021
5ddc9f6
fix references checking for non-NS imports
pgayvallet Aug 30, 2021
94a2b7e
fix unit test types
pgayvallet Aug 30, 2021
53a1351
Not sure where to go from here.
pgayvallet Aug 30, 2021
122780a
extract and propagate `getObjKey`
pgayvallet Aug 30, 2021
535220e
fix root unit tests
pgayvallet Aug 30, 2021
ff41614
hide namespaces when not in importNamespaces mode
pgayvallet Aug 30, 2021
4b9dba7
add super-user capabilities
pgayvallet Aug 30, 2021
8a889f6
hide actions for outside objects and forbid to delete when outside ob…
pgayvallet Aug 31, 2021
bb3669b
Merge remote-tracking branch 'upstream/master' into kbn-91615-multi-n…
pgayvallet Aug 31, 2021
646a0d4
fix copy to space unit tests
pgayvallet Aug 31, 2021
8cb149f
fix types
pgayvallet Aug 31, 2021
1a9eda0
initial export across space test suite
pgayvallet Aug 31, 2021
3bb85eb
create export_across_space endpoint and finish security_and_spaces te…
pgayvallet Aug 31, 2021
702f7ff
adapt endpoints
pgayvallet Aug 31, 2021
c7726ae
prepare the import_across_space route
pgayvallet Aug 31, 2021
d479c78
Merge remote-tracking branch 'upstream/master' into kbn-91615-multi-n…
pgayvallet Aug 31, 2021
f3bbf18
add import_across_space test suite
pgayvallet Sep 1, 2021
1adcf51
start to adapt client-side for import_across_space
pgayvallet Sep 1, 2021
2895d7e
add resolve_import_errors_across_space endpoint
pgayvallet Sep 1, 2021
ec2e056
lint
pgayvallet Sep 1, 2021
7f8cdcd
use getObjKey from import, remove from service
pgayvallet Sep 1, 2021
83fb8cd
add tests for getObjectKey
pgayvallet Sep 1, 2021
f8ac6e1
fix test types
pgayvallet Sep 1, 2021
6d876b3
fixing API integration tests
pgayvallet Sep 1, 2021
88027ee
small cleanups
pgayvallet Sep 1, 2021
1e8f092
add collect test
pgayvallet Sep 1, 2021
461c7b7
add exporter test
pgayvallet Sep 1, 2021
4423559
minor fixes
pgayvallet Sep 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## SavedObjectExportBaseOptions.includeNamespaces property

Flag to also include namespace information in the export stream. By default, namespace information is not included in exported objects. This is only intended to be used internally during copy-to-space operations, and it is not exposed as an option for the external HTTP route for exports.
Flag to also include namespace information in the export stream. By default, namespace information is included in exported objects.

<b>Signature:</b>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export interface SavedObjectExportBaseOptions
| Property | Type | Description |
| --- | --- | --- |
| [excludeExportDetails](./kibana-plugin-core-server.savedobjectexportbaseoptions.excludeexportdetails.md) | <code>boolean</code> | flag to not append [export details](./kibana-plugin-core-server.savedobjectsexportresultdetails.md) to the end of the export stream. |
| [includeNamespaces](./kibana-plugin-core-server.savedobjectexportbaseoptions.includenamespaces.md) | <code>boolean</code> | Flag to also include namespace information in the export stream. By default, namespace information is not included in exported objects. This is only intended to be used internally during copy-to-space operations, and it is not exposed as an option for the external HTTP route for exports. |
| [includeNamespaces](./kibana-plugin-core-server.savedobjectexportbaseoptions.includenamespaces.md) | <code>boolean</code> | Flag to also include namespace information in the export stream. By default, namespace information is included in exported objects. |
| [includeReferencesDeep](./kibana-plugin-core-server.savedobjectexportbaseoptions.includereferencesdeep.md) | <code>boolean</code> | flag to also include all related saved objects in the export stream. |
| [namespace](./kibana-plugin-core-server.savedobjectexportbaseoptions.namespace.md) | <code>string</code> | optional namespace to override the namespace used by the savedObjectsClient. |
| [namespace](./kibana-plugin-core-server.savedobjectexportbaseoptions.namespace.md) | <code>string</code> | optional namespace to override the default namespace used by the savedObjectsClient. |
| [request](./kibana-plugin-core-server.savedobjectexportbaseoptions.request.md) | <code>KibanaRequest</code> | The http request initiating the export. |

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## SavedObjectExportBaseOptions.namespace property

optional namespace to override the namespace used by the savedObjectsClient.
optional namespace to override the default namespace used by the savedObjectsClient.

<b>Signature:</b>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ export interface SavedObjectsExportByObjectOptions extends SavedObjectExportBase

| Property | Type | Description |
| --- | --- | --- |
| [objects](./kibana-plugin-core-server.savedobjectsexportbyobjectoptions.objects.md) | <code>Array&lt;{</code><br/><code> id: string;</code><br/><code> type: string;</code><br/><code> }&gt;</code> | optional array of objects to export. |
| [objects](./kibana-plugin-core-server.savedobjectsexportbyobjectoptions.objects.md) | <code>Array&lt;{</code><br/><code> id: string;</code><br/><code> type: string;</code><br/><code> namespace?: string;</code><br/><code> }&gt;</code> | optional array of objects to export. |

Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ optional array of objects to export.
objects: Array<{
id: string;
type: string;
namespace?: string;
}>;
```
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface SavedObjectsExportByTypeOptions extends SavedObjectExportBaseOp
| Property | Type | Description |
| --- | --- | --- |
| [hasReference](./kibana-plugin-core-server.savedobjectsexportbytypeoptions.hasreference.md) | <code>SavedObjectsFindOptionsReference[]</code> | optional array of references to search object for. |
| [namespaces](./kibana-plugin-core-server.savedobjectsexportbytypeoptions.namespaces.md) | <code>string[]</code> | optional list of namespaces to export from. Defaults to the current namespace if unspecified. |
| [search](./kibana-plugin-core-server.savedobjectsexportbytypeoptions.search.md) | <code>string</code> | optional query string to filter exported objects. |
| [types](./kibana-plugin-core-server.savedobjectsexportbytypeoptions.types.md) | <code>string[]</code> | array of saved object types. |

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-server](./kibana-plugin-core-server.md) &gt; [SavedObjectsExportByTypeOptions](./kibana-plugin-core-server.savedobjectsexportbytypeoptions.md) &gt; [namespaces](./kibana-plugin-core-server.savedobjectsexportbytypeoptions.namespaces.md)

## SavedObjectsExportByTypeOptions.namespaces property

optional list of namespaces to export from. Defaults to the current namespace if unspecified.

<b>Signature:</b>

```typescript
namespaces?: string[];
```
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface SavedObjectsExportExcludedObject
| Property | Type | Description |
| --- | --- | --- |
| [id](./kibana-plugin-core-server.savedobjectsexportexcludedobject.id.md) | <code>string</code> | id of the excluded object |
| [namespaces](./kibana-plugin-core-server.savedobjectsexportexcludedobject.namespaces.md) | <code>string[]</code> | the namespace(s) of the excluded object, when not agnostic |
| [reason](./kibana-plugin-core-server.savedobjectsexportexcludedobject.reason.md) | <code>string</code> | optional cause of the exclusion |
| [type](./kibana-plugin-core-server.savedobjectsexportexcludedobject.type.md) | <code>string</code> | type of the excluded object |

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-server](./kibana-plugin-core-server.md) &gt; [SavedObjectsExportExcludedObject](./kibana-plugin-core-server.savedobjectsexportexcludedobject.md) &gt; [namespaces](./kibana-plugin-core-server.savedobjectsexportexcludedobject.namespaces.md)

## SavedObjectsExportExcludedObject.namespaces property

the namespace(s) of the excluded object, when not agnostic

<b>Signature:</b>

```typescript
namespaces?: string[];
```
Loading