From faf1c99da44b8b8ff405440569de7a494627e047 Mon Sep 17 00:00:00 2001 From: Ryan Liang Date: Fri, 22 Mar 2024 16:54:21 -0700 Subject: [PATCH] Correct the lint Signed-off-by: Ryan Liang --- .../acceleration_table.spec.js | 196 ++++++------ .../associated_object_table.spec.js | 291 +++++++++--------- .../accelerations-cache.json | 238 +++++++------- .../flint-datasources/catalog-cache.json | 60 ++-- .../flint-datasources/panel_constants.js | 6 +- 5 files changed, 405 insertions(+), 386 deletions(-) diff --git a/.cypress/integration/flint_datasources/acceleration_table.spec.js b/.cypress/integration/flint_datasources/acceleration_table.spec.js index bf283a6b8d..e72a138efd 100644 --- a/.cypress/integration/flint_datasources/acceleration_table.spec.js +++ b/.cypress/integration/flint_datasources/acceleration_table.spec.js @@ -6,109 +6,109 @@ /// import { - ACC_TABLE_TITLE, - ACC_TABLE_DESC, - UPDATE_AT_DESC, - LOCALIZED_UPDATE_TIMESTAMP_ACC, - REFRESH_BTN_DESC, - CREATE_ACC_BTN_DESC, - ACC_NAME, - ACC_STATUS, - ACC_TYPE, - ACC_DATABASE, - ACC_TABLE, - ACC_REFRESH_TYPE, - ACC_DESTINATION_INDEX, - ACC_ACTIONS_COL, -} from '../../utils/flint-datasources/panel_constants' + ACC_TABLE_TITLE, + ACC_TABLE_DESC, + UPDATE_AT_DESC, + LOCALIZED_UPDATE_TIMESTAMP_ACC, + REFRESH_BTN_DESC, + CREATE_ACC_BTN_DESC, + ACC_NAME, + ACC_STATUS, + ACC_TYPE, + ACC_DATABASE, + ACC_TABLE, + ACC_REFRESH_TYPE, + ACC_DESTINATION_INDEX, + ACC_ACTIONS_COL, +} from '../../utils/flint-datasources/panel_constants'; Cypress.on('uncaught:exception', (err, runnable) => { - if (err.message.includes('ResizeObserver loop completed with undelivered notifications')) { - return false; - } + if (err.message.includes('ResizeObserver loop completed with undelivered notifications')) { + return false; + } }); const goToAccelerationTable = () => { - cy.visit(`${Cypress.env('opensearchDashboards')}/app/datasources`); - cy.get('h1[data-test-subj="dataconnections-header"]').should('be.visible'); - cy.get('a[data-test-subj="mys3DataConnectionsLink"]').click(); - cy.get('button#acceleration_table').click(); -} + cy.visit(`${Cypress.env('opensearchDashboards')}/app/datasources`); + cy.get('h1[data-test-subj="dataconnections-header"]').should('be.visible'); + cy.get('a[data-test-subj="mys3DataConnectionsLink"]').click(); + cy.get('button#acceleration_table').click(); +}; describe('Acceleration Table test', () => { - beforeEach(() => { - // Load the catalog cache data - const catalogCachePath = './.cypress/utils/flint-datasources/catalog-cache.json'; - cy.readFile(catalogCachePath).then((cache) => { - cy.visit(`${Cypress.env('opensearchDashboards')}`, { - onBeforeLoad: (win) => { - win.localStorage.setItem('async-query-catalog-cache', JSON.stringify(cache)); - }, - }); - }); - - // Load the accelerations cache data - const accelerationCachePath = './.cypress/utils/flint-datasources/accelerations-cache.json'; - cy.readFile(accelerationCachePath).then((cache) => { - cy.visit(`${Cypress.env('opensearchDashboards')}`, { - onBeforeLoad: (win) => { - win.localStorage.setItem('async-query-acclerations-cache', JSON.stringify(cache)); - }, - }); - }); - }); - - afterEach(() => { - cy.clearLocalStorage('async-query-catalog-cache'); - cy.clearLocalStorage('async-query-acclerations-cache'); - }); - - it('Navigates to Acceleration table and check header elements', () => { - goToAccelerationTable(); - - cy.contains('.euiFlexItem .euiText.euiText--medium', ACC_TABLE_TITLE) - .should('contain.text', ACC_TABLE_DESC); - - cy.contains('.euiTextColor--subdued', UPDATE_AT_DESC).should('exist'); - cy.contains('.euiTextColor--subdued', LOCALIZED_UPDATE_TIMESTAMP_ACC).should('exist'); - - cy.contains('.euiButton--primary', REFRESH_BTN_DESC).should('exist'); - cy.contains('.euiButton--primary.euiButton--fill', CREATE_ACC_BTN_DESC).should('exist'); - }); - - it('Navigates to Acceleration table and check table columns', () => { - goToAccelerationTable(); - - cy.get('th[data-test-subj="tableHeaderCell_indexName_0"]') - .contains('span', ACC_NAME) - .should('exist'); - - cy.get('th[data-test-subj="tableHeaderCell_status_1"]') - .contains('span', ACC_STATUS) - .should('exist'); - - cy.get('th[data-test-subj="tableHeaderCell_type_2"]') - .contains('span', ACC_TYPE) - .should('exist'); - - cy.get('th[data-test-subj="tableHeaderCell_database_3"]') - .contains('span', ACC_DATABASE) - .should('exist'); - - cy.get('th[data-test-subj="tableHeaderCell_table_4"]') - .contains('span', ACC_TABLE) - .should('exist'); - - cy.get('th[data-test-subj="tableHeaderCell_refreshType_5"]') - .contains('span', ACC_REFRESH_TYPE) - .should('exist'); - - cy.get('th[data-test-subj="tableHeaderCell_flintIndexName_6"]') - .contains('span', ACC_DESTINATION_INDEX) - .should('exist'); - - cy.get('th') - .contains('span[title="Actions"]', ACC_ACTIONS_COL) - .should('exist'); - }); + beforeEach(() => { + // Load the catalog cache data + const catalogCachePath = './.cypress/utils/flint-datasources/catalog-cache.json'; + cy.readFile(catalogCachePath).then((cache) => { + cy.visit(`${Cypress.env('opensearchDashboards')}`, { + onBeforeLoad: (win) => { + win.localStorage.setItem('async-query-catalog-cache', JSON.stringify(cache)); + }, + }); + }); + + // Load the accelerations cache data + const accelerationCachePath = './.cypress/utils/flint-datasources/accelerations-cache.json'; + cy.readFile(accelerationCachePath).then((cache) => { + cy.visit(`${Cypress.env('opensearchDashboards')}`, { + onBeforeLoad: (win) => { + win.localStorage.setItem('async-query-acclerations-cache', JSON.stringify(cache)); + }, + }); + }); + }); + + afterEach(() => { + cy.clearLocalStorage('async-query-catalog-cache'); + cy.clearLocalStorage('async-query-acclerations-cache'); + }); + + it('Navigates to Acceleration table and check header elements', () => { + goToAccelerationTable(); + + cy.contains('.euiFlexItem .euiText.euiText--medium', ACC_TABLE_TITLE).should( + 'contain.text', + ACC_TABLE_DESC + ); + + cy.contains('.euiTextColor--subdued', UPDATE_AT_DESC).should('exist'); + cy.contains('.euiTextColor--subdued', LOCALIZED_UPDATE_TIMESTAMP_ACC).should('exist'); + + cy.contains('.euiButton--primary', REFRESH_BTN_DESC).should('exist'); + cy.contains('.euiButton--primary.euiButton--fill', CREATE_ACC_BTN_DESC).should('exist'); + }); + + it('Navigates to Acceleration table and check table columns', () => { + goToAccelerationTable(); + + cy.get('th[data-test-subj="tableHeaderCell_indexName_0"]') + .contains('span', ACC_NAME) + .should('exist'); + + cy.get('th[data-test-subj="tableHeaderCell_status_1"]') + .contains('span', ACC_STATUS) + .should('exist'); + + cy.get('th[data-test-subj="tableHeaderCell_type_2"]') + .contains('span', ACC_TYPE) + .should('exist'); + + cy.get('th[data-test-subj="tableHeaderCell_database_3"]') + .contains('span', ACC_DATABASE) + .should('exist'); + + cy.get('th[data-test-subj="tableHeaderCell_table_4"]') + .contains('span', ACC_TABLE) + .should('exist'); + + cy.get('th[data-test-subj="tableHeaderCell_refreshType_5"]') + .contains('span', ACC_REFRESH_TYPE) + .should('exist'); + + cy.get('th[data-test-subj="tableHeaderCell_flintIndexName_6"]') + .contains('span', ACC_DESTINATION_INDEX) + .should('exist'); + + cy.get('th').contains('span[title="Actions"]', ACC_ACTIONS_COL).should('exist'); + }); }); diff --git a/.cypress/integration/flint_datasources/associated_object_table.spec.js b/.cypress/integration/flint_datasources/associated_object_table.spec.js index 77c26c0c54..b35cdaa5ca 100644 --- a/.cypress/integration/flint_datasources/associated_object_table.spec.js +++ b/.cypress/integration/flint_datasources/associated_object_table.spec.js @@ -6,149 +6,166 @@ /// import { - ASSO_TABLE_CALLOUT, - ASSO_TABLE_TITTLE, - ASSO_HEADER_DESC, - UPDATE_AT_DESC, - LOCALIZED_UPDATE_TIMESTAMP_AO, - REFRESH_BTN_DESC, - CREATE_ACC_BTN_DESC, - ASSO_NAME_COL, - ASSO_TYPE_COL, - ASSO_ACC_COL, - ASSO_ACTION_COL, - TABLE_NAME_1, - ACTION_ICON_DIS, - ACTION_ICON_ACC, - AO_TYPE_TABLE, - ASSO_TABLE_FILTER, - SKIP_INDEX_NAME, - ASSO_SEARCH_BAR_DEFAULT_INPUT, - ASSO_SEARCH_BAR_FILTER_INPUT, -} from '../../utils/flint-datasources/panel_constants' + ASSO_TABLE_CALLOUT, + ASSO_TABLE_TITTLE, + ASSO_HEADER_DESC, + UPDATE_AT_DESC, + LOCALIZED_UPDATE_TIMESTAMP_AO, + REFRESH_BTN_DESC, + CREATE_ACC_BTN_DESC, + ASSO_NAME_COL, + ASSO_TYPE_COL, + ASSO_ACC_COL, + ASSO_ACTION_COL, + TABLE_NAME_1, + ACTION_ICON_DIS, + ACTION_ICON_ACC, + AO_TYPE_TABLE, + ASSO_TABLE_FILTER, + SKIP_INDEX_NAME, + ASSO_SEARCH_BAR_DEFAULT_INPUT, + ASSO_SEARCH_BAR_FILTER_INPUT, +} from '../../utils/flint-datasources/panel_constants'; Cypress.on('uncaught:exception', (err, runnable) => { - if (err.message.includes('ResizeObserver loop completed with undelivered notifications')) { - return false; - } + if (err.message.includes('ResizeObserver loop completed with undelivered notifications')) { + return false; + } }); const goToAssociatedObjectTable = () => { - cy.visit(`${Cypress.env('opensearchDashboards')}/app/datasources`); - cy.get('h1[data-test-subj="dataconnections-header"]').should('be.visible'); - cy.get('a[data-test-subj="mys3DataConnectionsLink"]').click(); -} + cy.visit(`${Cypress.env('opensearchDashboards')}/app/datasources`); + cy.get('h1[data-test-subj="dataconnections-header"]').should('be.visible'); + cy.get('a[data-test-subj="mys3DataConnectionsLink"]').click(); +}; describe('Associated Object Table test', () => { - beforeEach(() => { - // Load the catalog cache data - const catalogCachePath = './.cypress/utils/flint-datasources/catalog-cache.json'; - cy.readFile(catalogCachePath).then((cache) => { - cy.visit(`${Cypress.env('opensearchDashboards')}`, { - onBeforeLoad: (win) => { - win.localStorage.setItem('async-query-catalog-cache', JSON.stringify(cache)); - }, - }); - }); - - // Load the accelerations cache data - const accelerationCachePath = './.cypress/utils/flint-datasources/accelerations-cache.json'; - cy.readFile(accelerationCachePath).then((cache) => { - cy.visit(`${Cypress.env('opensearchDashboards')}`, { - onBeforeLoad: (win) => { - win.localStorage.setItem('async-query-acclerations-cache', JSON.stringify(cache)); - }, - }); - }); - }); - - afterEach(() => { - cy.clearLocalStorage('async-query-catalog-cache'); - cy.clearLocalStorage('async-query-acclerations-cache'); - }); - - it('Navigates to Associated objects table and check callout', () => { - goToAssociatedObjectTable(); - - cy.get('div.euiCallOut.euiCallOut--primary').should('exist'); - - cy.get('div.euiCallOut.euiCallOut--primary') - .find('span.euiCallOutHeader__title') - .contains(ASSO_TABLE_CALLOUT) - .should('exist'); - }); - - it('Navigates to Associated objects table and check header elements', () => { - goToAssociatedObjectTable(); - - cy.contains('.euiFlexItem .euiText.euiText--medium', ASSO_TABLE_TITTLE) - .should('contain.text', ASSO_HEADER_DESC); - - cy.contains('.euiTextColor--subdued', UPDATE_AT_DESC).should('exist'); - cy.contains('.euiTextColor--subdued', LOCALIZED_UPDATE_TIMESTAMP_AO).should('exist'); - - cy.contains('.euiButton--primary', REFRESH_BTN_DESC).should('exist'); - cy.contains('.euiButton--primary.euiButton--fill', CREATE_ACC_BTN_DESC).should('exist'); - }); - - it('Navigates to Associated objects table and check table elements', () => { - goToAssociatedObjectTable(); - - cy.contains('.euiTableCellContent__text', ASSO_NAME_COL).as('NameHeader') - .should('exist') - .parent() - .find('svg.euiIcon--medium.euiTableSortIcon') - .should('exist'); - - cy.contains('.euiTableCellContent__text', ASSO_TYPE_COL).should('exist'); - - cy.contains('.euiTableCellContent__text', ASSO_ACC_COL).should('exist'); - - cy.contains('.euiTableCellContent__text', ASSO_ACTION_COL).as('ActionsHeader') - .should('exist') - .parents('.euiTableCellContent') - .should('have.class', 'euiTableCellContent--alignRight'); - }); - - it('Navigates to Associated objects table and check table content', () => { - goToAssociatedObjectTable(); - - cy.get('tr.euiTableRow').contains('button', TABLE_NAME_1).parents('tr.euiTableRow').as('targetRow'); - - cy.get('@targetRow').find('td[data-test-subj="nameCell"]').contains('button', TABLE_NAME_1).should('exist'); - - cy.get('@targetRow').find('td').contains('div', AO_TYPE_TABLE).should('exist'); - - cy.get('@targetRow').find('div.euiTableCellContent--alignRight').within(() => { - cy.get('button.euiButtonIcon').eq(0).invoke('attr', 'aria-labelledby').then((labelId) => { - cy.get('button.euiButtonIcon').eq(0).should('exist'); - cy.get(`span#${labelId}`).should('have.text', ACTION_ICON_DIS); - }); - - cy.get('button.euiButtonIcon').eq(1).invoke('attr', 'aria-labelledby').then((labelId) => { - cy.get('button.euiButtonIcon').eq(1).should('exist'); - cy.get(`span#${labelId}`).should('have.text', ACTION_ICON_ACC); - }); - }); - }); - - it('Navigates to Associated objects table and check table filter logic', () => { - goToAssociatedObjectTable(); - - cy.contains(`[data-text=${ASSO_TABLE_FILTER}]`, ASSO_TABLE_FILTER) - .should('be.visible') - .click(); - - cy.contains('span.euiFlexItem.euiFilterSelectItem__content', SKIP_INDEX_NAME) - .should('be.visible') - .click(); - - cy.get(`input[type="search"][placeholder="${ASSO_SEARCH_BAR_DEFAULT_INPUT}"]`) - .should('have.value', ASSO_SEARCH_BAR_FILTER_INPUT); - - cy.get('tr.euiTableRow').each(($row) => { - cy.wrap($row).find('td[data-test-subj="nameCell"]') - .should('contain.text', SKIP_INDEX_NAME); + beforeEach(() => { + // Load the catalog cache data + const catalogCachePath = './.cypress/utils/flint-datasources/catalog-cache.json'; + cy.readFile(catalogCachePath).then((cache) => { + cy.visit(`${Cypress.env('opensearchDashboards')}`, { + onBeforeLoad: (win) => { + win.localStorage.setItem('async-query-catalog-cache', JSON.stringify(cache)); + }, + }); }); - }); + + // Load the accelerations cache data + const accelerationCachePath = './.cypress/utils/flint-datasources/accelerations-cache.json'; + cy.readFile(accelerationCachePath).then((cache) => { + cy.visit(`${Cypress.env('opensearchDashboards')}`, { + onBeforeLoad: (win) => { + win.localStorage.setItem('async-query-acclerations-cache', JSON.stringify(cache)); + }, + }); + }); + }); + + afterEach(() => { + cy.clearLocalStorage('async-query-catalog-cache'); + cy.clearLocalStorage('async-query-acclerations-cache'); + }); + + it('Navigates to Associated objects table and check callout', () => { + goToAssociatedObjectTable(); + + cy.get('div.euiCallOut.euiCallOut--primary').should('exist'); + + cy.get('div.euiCallOut.euiCallOut--primary') + .find('span.euiCallOutHeader__title') + .contains(ASSO_TABLE_CALLOUT) + .should('exist'); + }); + + it('Navigates to Associated objects table and check header elements', () => { + goToAssociatedObjectTable(); + + cy.contains('.euiFlexItem .euiText.euiText--medium', ASSO_TABLE_TITTLE).should( + 'contain.text', + ASSO_HEADER_DESC + ); + + cy.contains('.euiTextColor--subdued', UPDATE_AT_DESC).should('exist'); + cy.contains('.euiTextColor--subdued', LOCALIZED_UPDATE_TIMESTAMP_AO).should('exist'); + + cy.contains('.euiButton--primary', REFRESH_BTN_DESC).should('exist'); + cy.contains('.euiButton--primary.euiButton--fill', CREATE_ACC_BTN_DESC).should('exist'); + }); + + it('Navigates to Associated objects table and check table elements', () => { + goToAssociatedObjectTable(); + + cy.contains('.euiTableCellContent__text', ASSO_NAME_COL) + .as('NameHeader') + .should('exist') + .parent() + .find('svg.euiIcon--medium.euiTableSortIcon') + .should('exist'); + + cy.contains('.euiTableCellContent__text', ASSO_TYPE_COL).should('exist'); + + cy.contains('.euiTableCellContent__text', ASSO_ACC_COL).should('exist'); + + cy.contains('.euiTableCellContent__text', ASSO_ACTION_COL) + .as('ActionsHeader') + .should('exist') + .parents('.euiTableCellContent') + .should('have.class', 'euiTableCellContent--alignRight'); + }); + + it('Navigates to Associated objects table and check table content', () => { + goToAssociatedObjectTable(); + + cy.get('tr.euiTableRow') + .contains('button', TABLE_NAME_1) + .parents('tr.euiTableRow') + .as('targetRow'); + + cy.get('@targetRow') + .find('td[data-test-subj="nameCell"]') + .contains('button', TABLE_NAME_1) + .should('exist'); + + cy.get('@targetRow').find('td').contains('div', AO_TYPE_TABLE).should('exist'); + + cy.get('@targetRow') + .find('div.euiTableCellContent--alignRight') + .within(() => { + cy.get('button.euiButtonIcon') + .eq(0) + .invoke('attr', 'aria-labelledby') + .then((labelId) => { + cy.get('button.euiButtonIcon').eq(0).should('exist'); + cy.get(`span#${labelId}`).should('have.text', ACTION_ICON_DIS); + }); + + cy.get('button.euiButtonIcon') + .eq(1) + .invoke('attr', 'aria-labelledby') + .then((labelId) => { + cy.get('button.euiButtonIcon').eq(1).should('exist'); + cy.get(`span#${labelId}`).should('have.text', ACTION_ICON_ACC); + }); + }); + }); + + it('Navigates to Associated objects table and check table filter logic', () => { + goToAssociatedObjectTable(); + + cy.contains(`[data-text=${ASSO_TABLE_FILTER}]`, ASSO_TABLE_FILTER).should('be.visible').click(); + + cy.contains('span.euiFlexItem.euiFilterSelectItem__content', SKIP_INDEX_NAME) + .should('be.visible') + .click(); + + cy.get(`input[type="search"][placeholder="${ASSO_SEARCH_BAR_DEFAULT_INPUT}"]`).should( + 'have.value', + ASSO_SEARCH_BAR_FILTER_INPUT + ); + + cy.get('tr.euiTableRow').each(($row) => { + cy.wrap($row).find('td[data-test-subj="nameCell"]').should('contain.text', SKIP_INDEX_NAME); + }); + }); }); diff --git a/.cypress/utils/flint-datasources/accelerations-cache.json b/.cypress/utils/flint-datasources/accelerations-cache.json index 3c5551fb9d..67c5b4648c 100644 --- a/.cypress/utils/flint-datasources/accelerations-cache.json +++ b/.cypress/utils/flint-datasources/accelerations-cache.json @@ -1,120 +1,120 @@ { - "version": "1.0", - "dataSources": [ - { - "name": "mys3", - "accelerations": [ - { - "flintIndexName": "flint_mys3_default_http_count_view", - "type": "materialized", - "database": "default", - "table": null, - "indexName": "http_count_view", - "autoRefresh": false, - "status": "active" - }, - { - "flintIndexName": "flint_mys3_default_http_count_view_2", - "type": "materialized", - "database": "default", - "table": null, - "indexName": "http_count_view_2", - "autoRefresh": true, - "status": "refreshing" - }, - { - "flintIndexName": "flint_mys3_default_http_logs_1_skipping_index", - "type": "skipping", - "database": "default", - "table": "http_logs_1", - "indexName": null, - "autoRefresh": false, - "status": "active" - }, - { - "flintIndexName": "flint_mys3_default_http_logs_covering2_index", - "type": "covering", - "database": "default", - "table": "http_logs", - "indexName": "covering2", - "autoRefresh": false, - "status": "active" - }, - { - "flintIndexName": "flint_mys3_default_http_logs_covering_index", - "type": "covering", - "database": "default", - "table": "http_logs", - "indexName": "covering", - "autoRefresh": true, - "status": "active" - }, - { - "flintIndexName": "flint_mys3_default_http_logs_coveringdummy_index", - "type": "covering", - "database": "default", - "table": "http_logs", - "indexName": "coveringdummy", - "autoRefresh": false, - "status": "active" - }, - { - "flintIndexName": "flint_mys3_default_http_logs_cv_1_index", - "type": "covering", - "database": "default", - "table": "http_logs", - "indexName": "cv_1", - "autoRefresh": false, - "status": "active" - }, - { - "flintIndexName": "flint_mys3_default_http_logs_cv_idx_index", - "type": "covering", - "database": "default", - "table": "http_logs", - "indexName": "cv_idx", - "autoRefresh": false, - "status": "active" - }, - { - "flintIndexName": "flint_mys3_default_http_logs_cvcv1_index", - "type": "covering", - "database": "default", - "table": "http_logs", - "indexName": "cvcv1", - "autoRefresh": true, - "status": "refreshing" - }, - { - "flintIndexName": "flint_mys3_default_http_logs_skipping_index", - "type": "skipping", - "database": "default", - "table": "http_logs", - "indexName": null, - "autoRefresh": false, - "status": "deleted" - }, - { - "flintIndexName": "flint_mys3_default_http_logs_status_clientip_and_day_index", - "type": "covering", - "database": "default", - "table": "http_logs", - "indexName": "status_clientip_and_day", - "autoRefresh": true, - "status": "refreshing" - }, - { - "flintIndexName": "flint_mys3_dummy3_default_http_logs_skipping_index", - "type": "skipping", - "database": "default", - "table": "http_logs", - "indexName": null, - "autoRefresh": false, - "status": "unavailable" - } - ], - "lastUpdated": "Thu, 21 Mar 2024 22:01:22 GMT", - "status": "Updated" - } - ] -} \ No newline at end of file + "version": "1.0", + "dataSources": [ + { + "name": "mys3", + "accelerations": [ + { + "flintIndexName": "flint_mys3_default_http_count_view", + "type": "materialized", + "database": "default", + "table": null, + "indexName": "http_count_view", + "autoRefresh": false, + "status": "active" + }, + { + "flintIndexName": "flint_mys3_default_http_count_view_2", + "type": "materialized", + "database": "default", + "table": null, + "indexName": "http_count_view_2", + "autoRefresh": true, + "status": "refreshing" + }, + { + "flintIndexName": "flint_mys3_default_http_logs_1_skipping_index", + "type": "skipping", + "database": "default", + "table": "http_logs_1", + "indexName": null, + "autoRefresh": false, + "status": "active" + }, + { + "flintIndexName": "flint_mys3_default_http_logs_covering2_index", + "type": "covering", + "database": "default", + "table": "http_logs", + "indexName": "covering2", + "autoRefresh": false, + "status": "active" + }, + { + "flintIndexName": "flint_mys3_default_http_logs_covering_index", + "type": "covering", + "database": "default", + "table": "http_logs", + "indexName": "covering", + "autoRefresh": true, + "status": "active" + }, + { + "flintIndexName": "flint_mys3_default_http_logs_coveringdummy_index", + "type": "covering", + "database": "default", + "table": "http_logs", + "indexName": "coveringdummy", + "autoRefresh": false, + "status": "active" + }, + { + "flintIndexName": "flint_mys3_default_http_logs_cv_1_index", + "type": "covering", + "database": "default", + "table": "http_logs", + "indexName": "cv_1", + "autoRefresh": false, + "status": "active" + }, + { + "flintIndexName": "flint_mys3_default_http_logs_cv_idx_index", + "type": "covering", + "database": "default", + "table": "http_logs", + "indexName": "cv_idx", + "autoRefresh": false, + "status": "active" + }, + { + "flintIndexName": "flint_mys3_default_http_logs_cvcv1_index", + "type": "covering", + "database": "default", + "table": "http_logs", + "indexName": "cvcv1", + "autoRefresh": true, + "status": "refreshing" + }, + { + "flintIndexName": "flint_mys3_default_http_logs_skipping_index", + "type": "skipping", + "database": "default", + "table": "http_logs", + "indexName": null, + "autoRefresh": false, + "status": "deleted" + }, + { + "flintIndexName": "flint_mys3_default_http_logs_status_clientip_and_day_index", + "type": "covering", + "database": "default", + "table": "http_logs", + "indexName": "status_clientip_and_day", + "autoRefresh": true, + "status": "refreshing" + }, + { + "flintIndexName": "flint_mys3_dummy3_default_http_logs_skipping_index", + "type": "skipping", + "database": "default", + "table": "http_logs", + "indexName": null, + "autoRefresh": false, + "status": "unavailable" + } + ], + "lastUpdated": "Thu, 21 Mar 2024 22:01:22 GMT", + "status": "Updated" + } + ] +} diff --git a/.cypress/utils/flint-datasources/catalog-cache.json b/.cypress/utils/flint-datasources/catalog-cache.json index 5c69dcd38d..64d077350a 100644 --- a/.cypress/utils/flint-datasources/catalog-cache.json +++ b/.cypress/utils/flint-datasources/catalog-cache.json @@ -1,31 +1,31 @@ { - "version": "1.0", - "dataSources": [ - { - "name": "mys3", - "lastUpdated": "Thu, 21 Mar 2024 22:01:13 GMT", - "status": "Updated", - "databases": [ - { - "name": "default", - "tables": [ - { - "name": "http_logs" - }, - { - "name": "http_logs_1" - }, - { - "name": "table_no_timestamp" - }, - { - "name": "table_struct" - } - ], - "lastUpdated": "Thu, 21 Mar 2024 22:01:18 GMT", - "status": "Updated" - } - ] - } - ] -} \ No newline at end of file + "version": "1.0", + "dataSources": [ + { + "name": "mys3", + "lastUpdated": "Thu, 21 Mar 2024 22:01:13 GMT", + "status": "Updated", + "databases": [ + { + "name": "default", + "tables": [ + { + "name": "http_logs" + }, + { + "name": "http_logs_1" + }, + { + "name": "table_no_timestamp" + }, + { + "name": "table_struct" + } + ], + "lastUpdated": "Thu, 21 Mar 2024 22:01:18 GMT", + "status": "Updated" + } + ] + } + ] +} diff --git a/.cypress/utils/flint-datasources/panel_constants.js b/.cypress/utils/flint-datasources/panel_constants.js index 1351a522c9..66ceab433b 100644 --- a/.cypress/utils/flint-datasources/panel_constants.js +++ b/.cypress/utils/flint-datasources/panel_constants.js @@ -4,7 +4,8 @@ */ // Associated Object Table Callout -export const ASSO_TABLE_CALLOUT = 'Accelerations recommended for tables. Setup acceleration or configure integrations'; +export const ASSO_TABLE_CALLOUT = + 'Accelerations recommended for tables. Setup acceleration or configure integrations'; // Associated Object Table Header export const ASSO_TABLE_TITTLE = 'Associated objects'; @@ -30,7 +31,8 @@ export const ASSO_SEARCH_BAR_FILTER_INPUT = 'accelerations:skipping_index'; //Acceleration Table Header export const ACC_TABLE_TITLE = 'Accelerations'; -export const ACC_TABLE_DESC = 'Accelerations optimize query performance by indexing external data into OpenSearch.'; +export const ACC_TABLE_DESC = + 'Accelerations optimize query performance by indexing external data into OpenSearch.'; export const LOCALIZED_UPDATE_TIMESTAMP_ACC = '3/21/2024, 3:01:22 PM';