Skip to content

Commit

Permalink
fix: bootstrap error
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Mar 4, 2024
1 parent 6510e00 commit 07f362d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ interface CreateSavedObjectsParams<T> {
importIdMap: Map<string, { id?: string; omitOriginId?: boolean }>;
namespace?: string;
overwrite?: boolean;
workspaces?: string[];
dataSourceId?: string;
dataSourceTitle?: string;
workspaces?: string[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ export async function resolveSavedObjectsImportErrors({
importIdMap,
namespace,
overwrite,
workspaces,
dataSourceId,
dataSourceTitle,
workspaces,
Expand Down
4 changes: 0 additions & 4 deletions src/core/server/saved_objects/import/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ export interface SavedObjectsImportOptions {
namespace?: string;
/** If true, will create new copies of import objects, each with a random `id` and undefined `originId`. */
createNewCopies: boolean;
/** if specified, will import in given workspaces */
workspaces?: string[];
dataSourceId?: string;
dataSourceTitle?: string;
/** if specified, will import in given workspaces */
Expand All @@ -214,8 +212,6 @@ export interface SavedObjectsResolveImportErrorsOptions {
namespace?: string;
/** If true, will create new copies of import objects, each with a random `id` and undefined `originId`. */
createNewCopies: boolean;
/** if specified, will import in given workspaces */
workspaces?: string[];
dataSourceId?: string;
dataSourceTitle?: string;
/** if specified, will import in given workspaces */
Expand Down
4 changes: 0 additions & 4 deletions src/core/server/saved_objects/routes/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ export const registerImportRoute = (router: IRouter, config: SavedObjectConfig)
{
overwrite: schema.boolean({ defaultValue: false }),
createNewCopies: schema.boolean({ defaultValue: false }),
workspaces: schema.maybe(
schema.oneOf([schema.string(), schema.arrayOf(schema.string())])
),
dataSourceId: schema.maybe(schema.string({ defaultValue: '' })),
workspaces: schema.maybe(
schema.oneOf([schema.string(), schema.arrayOf(schema.string())])
Expand Down Expand Up @@ -126,7 +123,6 @@ export const registerImportRoute = (router: IRouter, config: SavedObjectConfig)
objectLimit: maxImportExportSize,
overwrite,
createNewCopies,
workspaces,
dataSourceId,
dataSourceTitle,
workspaces,
Expand Down
3 changes: 0 additions & 3 deletions src/core/server/saved_objects/routes/resolve_import_errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ export const registerResolveImportErrorsRoute = (router: IRouter, config: SavedO
validate: {
query: schema.object({
createNewCopies: schema.boolean({ defaultValue: false }),
workspaces: schema.maybe(
schema.oneOf([schema.string(), schema.arrayOf(schema.string())])
),
dataSourceId: schema.maybe(schema.string({ defaultValue: '' })),
workspaces: schema.maybe(
schema.oneOf([schema.string(), schema.arrayOf(schema.string())])
Expand Down

0 comments on commit 07f362d

Please sign in to comment.