Skip to content

Commit

Permalink
feat: remove duplicate workspaces params
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 9404407 commit 7cda2c6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/core/server/saved_objects/import/create_saved_objects.ts
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 All @@ -60,7 +59,6 @@ export const createSavedObjects = async <T>({
importIdMap,
namespace,
overwrite,
workspaces,
dataSourceId,
dataSourceTitle,
workspaces,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export async function importSavedObjectsFromStream({
workspaces,
dataSourceId,
dataSourceTitle,
workspaces,
}: SavedObjectsImportOptions): Promise<SavedObjectsImportResponse> {
let errorAccumulator: SavedObjectsImportError[] = [];
const supportedTypes = typeRegistry.getImportableAndExportableTypes().map((type) => type.name);
Expand Down
2 changes: 0 additions & 2 deletions src/core/server/saved_objects/import/resolve_import_errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export async function resolveSavedObjectsImportErrors({
typeRegistry,
namespace,
createNewCopies,
workspaces,
dataSourceId,
dataSourceTitle,
workspaces,
Expand Down Expand Up @@ -164,7 +163,6 @@ export async function resolveSavedObjectsImportErrors({
importIdMap,
namespace,
overwrite,
workspaces,
dataSourceId,
dataSourceTitle,
workspaces,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,6 @@ function defaultMapping(): IndexMapping {
},
},
},
workspaces: {
type: 'keyword',
},
permissions: {
properties: {
read: principals,
Expand Down

0 comments on commit 7cda2c6

Please sign in to comment.