Skip to content

Commit

Permalink
[Workspace] feat: add data source and owners column to workspace list…
Browse files Browse the repository at this point in the history
… page table (#7818)

* init new workspace list column

Signed-off-by: tygao <[email protected]>

* feat: addo owners and data source column to table

Signed-off-by: tygao <[email protected]>

* test: update snapshots

Signed-off-by: tygao <[email protected]>

* test: add test cases

Signed-off-by: tygao <[email protected]>

* test: update utils test

Signed-off-by: tygao <[email protected]>

---------

Signed-off-by: tygao <[email protected]>
  • Loading branch information
raintygao authored Aug 27, 2024
1 parent a5c3dc2 commit 04fca30
Show file tree
Hide file tree
Showing 8 changed files with 328 additions and 38 deletions.
1 change: 1 addition & 0 deletions src/core/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export {
ChromeNavGroup,
NavGroupType,
NavGroupStatus,
WorkspaceAttributeWithPermission,
} from '../types';

export {
Expand Down
3 changes: 3 additions & 0 deletions src/core/public/saved_objects/simple_saved_object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class SimpleSavedObject<T = unknown> {
public error: SavedObjectType<T>['error'];
public references: SavedObjectType<T>['references'];
public updated_at: SavedObjectType<T>['updated_at'];
public workspaces: SavedObjectType<T>['workspaces'];

constructor(
private client: SavedObjectsClientContract,
Expand All @@ -64,6 +65,7 @@ export class SimpleSavedObject<T = unknown> {
references,
migrationVersion,
updated_at: updateAt,
workspaces,
}: SavedObjectType<T>
) {
this.id = id;
Expand All @@ -73,6 +75,7 @@ export class SimpleSavedObject<T = unknown> {
this._version = version;
this.migrationVersion = migrationVersion;
this.updated_at = updateAt;
this.workspaces = workspaces;
if (error) {
this.error = error;
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 04fca30

Please sign in to comment.