Skip to content

Commit

Permalink
[Workspace] Add duplicate saved objects API (opensearch-project#6288)
Browse files Browse the repository at this point in the history
* Add copy saved objects API

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Modify change log

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Add documents for all saved objects APIs

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Revert the yml file change

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Move the duplicate api to workspace plugin

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Modify change log

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Modify api doc

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Check target workspace exists or not

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Remove unused import

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Fix test failure

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Modify change log

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Modify workspace doc

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Add more unit tests

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Some minor change

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Fix test failure

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Modify test description

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Optimize test description

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Modify test case

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Minor change

Signed-off-by: gaobinlong <gbinlong@amazon.com>

---------

Signed-off-by: gaobinlong <gbinlong@amazon.com>
  • Loading branch information
gaobinlong committed Apr 12, 2024
1 parent bff1a06 commit c0fc180
Show file tree
Hide file tree
Showing 8 changed files with 1,191 additions and 38 deletions.
2 changes: 0 additions & 2 deletions src/core/server/saved_objects/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import { registerExportRoute } from './export';
import { registerImportRoute } from './import';
import { registerResolveImportErrorsRoute } from './resolve_import_errors';
import { registerMigrateRoute } from './migrate';
import { registerCopyRoute } from './copy';

export function registerRoutes({
http,
Expand All @@ -72,7 +71,6 @@ export function registerRoutes({
registerExportRoute(router, config);
registerImportRoute(router, config);
registerResolveImportErrorsRoute(router, config);
registerCopyRoute(router, config);

const internalRouter = http.createRouter('/internal/saved_objects/');

Expand Down
Loading

0 comments on commit c0fc180

Please sign in to comment.