Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add Retrieval from Catalog Cache #1517

Merged
merged 10 commits into from
Mar 15, 2024
28 changes: 22 additions & 6 deletions common/types/data_connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,35 @@
name: string;
database: string;
type: string;
createdByIntegration: string;
accelerations: Acceleration[];
columns: TableColumn[];
columns?: TableColumn[];
}

export type Role = EuiComboBoxOptionOption;

export type DatasourceType = 'S3GLUE' | 'PROMETHEUS';

export interface S3GlueProperties {
'glue.indexstore.opensearch.uri': string;
'glue.indexstore.opensearch.region': string;
}

export interface PrometheusProperties {
'prometheus.uri': string;
}

export interface DatasourceDetails {
allowedRoles: string[];
name: string;
connector: DatasourceType;
description: string;
properties: S3GlueProperties | PrometheusProperties;
}

interface AsyncApiDataResponse {
status: string;
schema?: Array<{ name: string; type: string }>;
datarows?: any;

Check warning on line 70 in common/types/data_connections.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type
total?: number;
size?: number;
error?: string;
Expand Down Expand Up @@ -105,7 +121,7 @@
dataSources: CachedDataSource[];
}

export interface CachedAccelerations {
export interface CachedAcceleration {
flintIndexName: string;
type: AccelerationIndexType;
database: string;
Expand All @@ -115,16 +131,16 @@
status: string;
}

export interface CachedAcclerationByDataSource {
export interface CachedAccelerationByDataSource {
name: string;
accelerations: CachedAccelerations[];
accelerations: CachedAcceleration[];
lastUpdated: string; // date string in UTC format
status: CachedDataSourceStatus;
}

export interface AccelerationsCacheData {
version: string;
dataSources: CachedAcclerationByDataSource[];
dataSources: CachedAccelerationByDataSource[];
}

export interface PollingSuccessResult {
Expand Down
1 change: 1 addition & 0 deletions common/types/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
}

export interface ITabQueryResults {
[tabId: string]: any;

Check warning on line 70 in common/types/explorer.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type
}

export interface ITabQueries {
Expand Down Expand Up @@ -133,17 +133,17 @@
side?: string | undefined
) => void;
http: CoreStart['http'];
tabCreatedTypes?: any;

Check warning on line 136 in common/types/explorer.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type
searchBarConfigs?: any;

Check warning on line 137 in common/types/explorer.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type
appId?: string;
addVisualizationToPanel?: any;

Check warning on line 139 in common/types/explorer.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type
startTime?: string;
endTime?: string;
setStartTime?: any;

Check warning on line 142 in common/types/explorer.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type
setEndTime?: any;

Check warning on line 143 in common/types/explorer.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type
appBaseQuery?: string;
callback?: any;

Check warning on line 145 in common/types/explorer.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type
callbackInApp?: any;

Check warning on line 146 in common/types/explorer.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type
queryManager?: QueryManager;
}

Expand Down Expand Up @@ -210,7 +210,7 @@

export interface IVisualizationContainerPropsData {
appData?: { fromApp: boolean };
rawVizData?: any;

Check warning on line 213 in common/types/explorer.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type
query?: IQuery;
indexFields?: IField[];
userConfigs?: any;
Expand Down Expand Up @@ -430,6 +430,7 @@
SCHEDULED = 'scheduled',
CANCELED = 'canceled',
WAITING = 'waiting',
INITIAL = 'initial',
}

export interface DirectQueryRequest {
Expand Down
Loading
Loading