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)

* Add acceleration flyout to associated objects table

Signed-off-by: Ryan Liang <[email protected]>

* Add assc obj table details flyout skeleton

Signed-off-by: Ryan Liang <[email protected]>

* Add assc obj table details flyout skeleton 1

Signed-off-by: Ryan Liang <[email protected]>

* Add assc obj table details flyout skeleton 2

Signed-off-by: Ryan Liang <[email protected]>

* Add assc obj table details flyout for acceleration table

Signed-off-by: Ryan Liang <[email protected]>

* Add no acceleration items page for acc table in flyout

Signed-off-by: Ryan Liang <[email protected]>

* Add the table column table in the detail flyout

Signed-off-by: Ryan Liang <[email protected]>

* Add check for table content type

Signed-off-by: Ryan Liang <[email protected]>

* Add jest test for assc obj flyout

Signed-off-by: Ryan Liang <[email protected]>

* Remove the console log for mock

Signed-off-by: Ryan Liang <[email protected]>

* Set up acceleration status type

Signed-off-by: Ryan Liang <[email protected]>

---------

Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 authored Mar 9, 2024
1 parent 943126f commit df7020a
Show file tree
Hide file tree
Showing 10 changed files with 1,870 additions and 468 deletions.
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 df7020a

Please sign in to comment.