Skip to content

Commit

Permalink
Revert "feat: extract management code"
Browse files Browse the repository at this point in the history
This reverts commit 9c765d2.
  • Loading branch information
SuZhou-Joe committed Jun 25, 2023
1 parent 902f088 commit 7f6e943
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ import {
OverlayStart,
NotificationsStart,
ApplicationStart,
WorkspacesStart,
} from 'src/core/public';
import { RedirectAppLinks } from '../../../../opensearch_dashboards_react/public';
import { IndexPatternsContract } from '../../../../data/public';
Expand Down Expand Up @@ -114,6 +115,7 @@ export interface SavedObjectsTableProps {
goInspectObject: (obj: SavedObjectWithMetadata) => void;
canGoInApp: (obj: SavedObjectWithMetadata) => boolean;
dateFormat: string;
workspaces: WorkspacesStart;
}

export interface SavedObjectsTableState {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const SavedObjectsTablePage = ({
overlays={coreStart.overlays}
notifications={coreStart.notifications}
applications={coreStart.application}
workspaces={coreStart.workspaces}
perPageConfig={itemsPerPage}
goInspectObject={(savedObject) => {
const { editUrl } = savedObject.meta;
Expand Down
10 changes: 10 additions & 0 deletions src/plugins/saved_objects_management/server/routes/find.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ export const registerFindRoute = (
...req.query,
fields: undefined,
searchFields: [...searchFields],
namespaces: req.query.namespaces
? Array.isArray(req.query.namespaces)
? req.query.namespaces
: [req.query.namespaces]
: undefined,
workspaces: req.query.workspaces
? Array.isArray(req.query.workspaces)
? req.query.workspaces
: [req.query.workspaces]
: undefined,
});

const savedObjects = await Promise.all(
Expand Down

0 comments on commit 7f6e943

Please sign in to comment.