Skip to content

Commit

Permalink
[Feature] Add flyout pages to associated objects table (opensearch-pr…
Browse files Browse the repository at this point in the history
…oject#1496) (opensearch-project#1507)

* Add acceleration flyout to associated objects table

* Add assc obj table details flyout skeleton

* Add assc obj table details flyout skeleton 1

* Add assc obj table details flyout skeleton 2

* Add assc obj table details flyout for acceleration table

* Add no acceleration items page for acc table in flyout

* Add the table column table in the detail flyout

* Add check for table content type

* Add jest test for assc obj flyout

* Remove the console log for mock

* Set up acceleration status type

---------

Signed-off-by: Ryan Liang <[email protected]>
(cherry picked from commit 524e501)
  • Loading branch information
RyanL1997 authored and A9 Swift Project User committed Apr 7, 2024
1 parent d0fe071 commit da68fef
Show file tree
Hide file tree
Showing 11 changed files with 1,872 additions and 470 deletions.
4 changes: 2 additions & 2 deletions auto_sync_commit_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"last_github_commit": "5bb1ae780cde1fbff0783386fa6ba1f4b3258764",
"last_gitfarm_commit": "05700746b8b34fd255fca596cb7477eb0f675a95"
"last_github_commit": "524e501a704e939f85b4589ce8edadc3811542bf",
"last_gitfarm_commit": "194617bf1b61b0f3c14541679b12efc94c0fd462"
}
24 changes: 23 additions & 1 deletion common/types/data_connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

import { EuiComboBoxOptionOption } from '@elastic/eui';

export type AccelerationStatus = 'ACTIVE' | 'INACTIVE';

export interface PermissionsConfigurationProps {
roles: Role[];
selectedRoles: Role[];
Expand All @@ -13,13 +15,33 @@ export interface PermissionsConfigurationProps {
hasSecurityAccess: boolean;
}

export interface TableColumn {
name: string;
dataType: string;
}

export interface Acceleration {
name: string;
status: AccelerationStatus;
type: string;
database: string;
table: string;
destination: string;
dateCreated: number;
dateUpdated: number;
index: string;
sql: string;
}

export interface AssociatedObject {
datasource: string;
id: string;
name: string;
database: string;
type: string;
createdByIntegration: string;
accelerations: string[];
accelerations: Acceleration[];
columns: TableColumn[];
}

export type Role = EuiComboBoxOptionOption;
Expand Down
Loading

0 comments on commit da68fef

Please sign in to comment.