diff --git a/dashboards-observability/.cypress/integration/trace_analytics_dashboard.spec.js b/dashboards-observability/.cypress/integration/trace_analytics_dashboard.spec.js
index 5512635ca..6e510a8d8 100644
--- a/dashboards-observability/.cypress/integration/trace_analytics_dashboard.spec.js
+++ b/dashboards-observability/.cypress/integration/trace_analytics_dashboard.spec.js
@@ -77,7 +77,7 @@ describe('Testing dashboard table empty state', () => {
it('Renders empty state', () => {
cy.contains(' (0)').should('exist');
- cy.get('h2.euiTitle').contains('No matches').should('exist');
+ cy.contains('No matches').should('exist');
});
});
@@ -163,17 +163,18 @@ describe('Testing plots', () => {
});
it('Renders service map', () => {
+ // plotly scale texts are in attribute "data-unformatted"
cy.get('text.ytitle[data-unformatted="Latency (ms)"]').should('exist');
cy.get('text[data-unformatted="200"]').should('exist');
cy.get('.vis-network').should('exist');
- cy.get('.euiToggle__input[title="Error rate"]').click();
+ cy.get('.euiButton__text[title="Error rate"]').click();
cy.get('text.ytitle[data-unformatted="Error rate"]').should('exist');
cy.get('text[data-unformatted="10%"]').should('exist');
- cy.get('.euiToggle__input[title="Throughput"]').click();
+ cy.get('.euiButton__text[title="Throughput"]').click();
cy.get('text.ytitle[data-unformatted="Throughput"]').should('exist');
- cy.get('text[data-unformatted="60"]').should('exist');
+ cy.get('text[data-unformatted="50"]').should('exist');
cy.get('input[type="search"]').eq(1).focus().type('payment{enter}');
cy.wait(delay);
@@ -181,8 +182,8 @@ describe('Testing plots', () => {
it('Renders plots', () => {
cy.get('text.ytitle[data-unformatted="Error rate (%)"]').should('exist');
- cy.get('text.annotation-text[data-unformatted="Now: 0%"]').should('exist');
+ cy.get('text.annotation-text[data-unformatted="Now: 14.81%"]').should('exist');
cy.get('text.ytitle[data-unformatted="Throughput (n)"]').should('exist');
- cy.get('text.annotation-text[data-unformatted="Now: 62"]').should('exist');
+ cy.get('text.annotation-text[data-unformatted="Now: 108"]').should('exist');
});
});
diff --git a/dashboards-observability/.cypress/integration/trace_analytics_services.spec.js b/dashboards-observability/.cypress/integration/trace_analytics_services.spec.js
index bb3c43490..6421982a9 100644
--- a/dashboards-observability/.cypress/integration/trace_analytics_services.spec.js
+++ b/dashboards-observability/.cypress/integration/trace_analytics_services.spec.js
@@ -5,7 +5,7 @@
///
-import { delay, SERVICE_NAME, setTimeFilter } from '../utils/constants';
+import { delay, SERVICE_NAME, SERVICE_SPAN_ID, setTimeFilter } from '../utils/constants';
describe('Testing services table empty state', () => {
beforeEach(() => {
@@ -19,7 +19,7 @@ describe('Testing services table empty state', () => {
it('Renders empty state', () => {
cy.contains(' (0)').should('exist');
- cy.get('h2.euiTitle').contains('No matches').should('exist');
+ cy.contains('No matches').should('exist');
});
});
@@ -43,7 +43,6 @@ describe('Testing services table', () => {
it('Searches correctly', () => {
cy.get('input[type="search"]').first().focus().type(`${SERVICE_NAME}{enter}`);
cy.get('.euiButton__text').contains('Refresh').click();
- cy.wait(delay);
cy.contains(' (1)').should('exist');
cy.contains('3.57%').should('exist');
});
@@ -61,11 +60,10 @@ describe('Testing service view empty state', () => {
win.sessionStorage.clear();
},
});
- cy.wait(delay * 3);
});
it('Renders service view empty state', () => {
- cy.get('h2.euiTitle').contains('frontend-client').should('exist');
+ cy.contains('frontend-client').should('exist');
cy.get('.euiText').contains('0').should('exist');
cy.get('.euiText').contains('-').should('exist');
});
@@ -109,6 +107,7 @@ describe('Testing service view', () => {
});
it('Renders spans data grid, flyout, filters', () => {
+ cy.get('.euiLink').contains(SERVICE_SPAN_ID).trigger('mouseover', { force: true });
cy.get('button[data-datagrid-interactable="true"]').eq(0).click({ force: true });
cy.wait(delay);
cy.contains('Span detail').should('exist');
diff --git a/dashboards-observability/.cypress/integration/trace_analytics_traces.spec.js b/dashboards-observability/.cypress/integration/trace_analytics_traces.spec.js
index 2f96fab54..d8c5735fc 100644
--- a/dashboards-observability/.cypress/integration/trace_analytics_traces.spec.js
+++ b/dashboards-observability/.cypress/integration/trace_analytics_traces.spec.js
@@ -19,7 +19,7 @@ describe('Testing traces table empty state', () => {
it('Renders empty state', () => {
cy.contains(' (0)').should('exist');
- cy.get('h2.euiTitle').contains('No matches').should('exist');
+ cy.contains('No matches').should('exist');
});
});
@@ -54,7 +54,6 @@ describe('Testing traces table', () => {
it('Searches correctly', () => {
cy.get('input[type="search"]').focus().type(`${TRACE_ID}{enter}`);
cy.get('.euiButton__text').contains('Refresh').click();
- cy.wait(delay);
cy.contains(' (1)').should('exist');
cy.contains('03/25/2021 10:21:22').should('exist');
});
@@ -67,14 +66,13 @@ describe('Testing trace view', () => {
win.sessionStorage.clear();
},
});
- cy.wait(delay * 3);
});
it('Renders the trace view', () => {
cy.contains('43.75%').should('exist');
cy.contains('42.58%').should('exist');
cy.contains('03/25/2021 10:21:22').should('exist');
- cy.get('h2.euiTitle').contains(TRACE_ID).should('exist');
+ cy.contains(TRACE_ID).should('exist');
cy.get('div.js-plotly-plot').should('have.length.gte', 2);
cy.get('text[data-unformatted="database
mysql.APM "]').should('exist');
@@ -82,25 +80,28 @@ describe('Testing trace view', () => {
});
it('Has working breadcrumbs', () => {
- cy.get('.euiBreadcrumb').contains(TRACE_ID).click();
+ cy.get(`.euiBreadcrumb[href="#/trace_analytics/traces/${TRACE_ID}"]`).click();
cy.wait(delay);
cy.get('h2.euiTitle').contains(TRACE_ID).should('exist');
- cy.get('.euiBreadcrumb').contains('Traces').click();
+ cy.get('.euiBreadcrumb[href="#/trace_analytics/traces"]').click();
cy.wait(delay);
cy.get('.euiTitle').contains('Traces').should('exist');
- cy.get('.euiBreadcrumb').contains('Trace analytics').click();
+ cy.get('.euiBreadcrumb[href="#/trace_analytics/home"]').click();
cy.wait(delay);
cy.get('.euiTitle').contains('Dashboard').should('exist');
- cy.get('.euiBreadcrumb').contains('Observability').click();
+ cy.get('.euiBreadcrumb[href="observability-dashboards#/"]').click();
cy.wait(delay);
cy.get('.euiTitle').contains('Event analytics').should('exist');
});
it('Renders data grid, flyout and filters', () => {
- cy.get('.euiToggle__input[title="Span list"]').click({ force: true });
+ cy.get('.euiButton__text[title="Span list"]').click({ force: true });
cy.contains('2 columns hidden').should('exist');
+ cy.wait(delay);
+ cy.get('.euiLink').contains(SPAN_ID).trigger('mouseover', { force: true });
cy.get('button[data-datagrid-interactable="true"]').eq(0).click({ force: true });
+ cy.get('button[data-datagrid-interactable="true"]').eq(0).click({ force: true }); // first click doesn't go through eui data grid
cy.wait(delay);
cy.contains('Span detail').should('exist');
cy.contains('Span attributes').should('exist');
diff --git a/dashboards-observability/.cypress/utils/constants.js b/dashboards-observability/.cypress/utils/constants.js
index 56506b842..75e343086 100644
--- a/dashboards-observability/.cypress/utils/constants.js
+++ b/dashboards-observability/.cypress/utils/constants.js
@@ -9,6 +9,7 @@ export const delay = 1500;
export const TRACE_ID = '8832ed6abbb2a83516461960c89af49d';
export const SPAN_ID = 'a673bc074b438374';
export const SERVICE_NAME = 'frontend-client';
+export const SERVICE_SPAN_ID = '7df5609a6d104736';
export const testDataSet = [
{
@@ -40,7 +41,7 @@ export const setTimeFilter = (setEndTime = false, refresh = true) => {
cy.get('.euiTab__content').contains('Absolute').click();
cy.get('input[data-test-subj="superDatePickerAbsoluteDateInput"]')
.focus()
- .type('{selectall}' + startTime);
+ .type('{selectall}' + startTime, { force: true });
if (setEndTime) {
cy.wait(delay);
cy.get(
@@ -50,7 +51,7 @@ export const setTimeFilter = (setEndTime = false, refresh = true) => {
cy.get('.euiTab__content').contains('Absolute').click();
cy.get('input[data-test-subj="superDatePickerAbsoluteDateInput"]')
.focus()
- .type('{selectall}' + endTime);
+ .type('{selectall}' + endTime, { force: true });
}
if (refresh) cy.get('.euiButton__text').contains('Refresh').click();
cy.wait(delay);
@@ -98,4 +99,4 @@ export const supressResizeObserverIssue = () => {
cy.on('uncaught:exception', (err, runnable) => {
if (err.message.includes('ResizeObserver loop')) return false;
});
-};
\ No newline at end of file
+};
diff --git a/dashboards-observability/public/components/app.tsx b/dashboards-observability/public/components/app.tsx
index 3cc0da4de..b4d164331 100644
--- a/dashboards-observability/public/components/app.tsx
+++ b/dashboards-observability/public/components/app.tsx
@@ -13,7 +13,7 @@ import store from '../framework/redux/store';
import { AppPluginStartDependencies } from '../types';
import { Home as ApplicationAnalyticsHome } from './application_analytics/home';
import { Home as CustomPanelsHome } from './custom_panels/home';
-import { EventAnalytics } from './explorer/event_analytics';
+import { EventAnalytics } from './event_analytics';
import { Main as NotebooksHome } from './notebooks/components/main';
import { Home as TraceAnalyticsHome } from './trace_analytics/home';
diff --git a/dashboards-observability/public/components/application_analytics/components/application.tsx b/dashboards-observability/public/components/application_analytics/components/application.tsx
index 582d181cd..08ab10f22 100644
--- a/dashboards-observability/public/components/application_analytics/components/application.tsx
+++ b/dashboards-observability/public/components/application_analytics/components/application.tsx
@@ -36,7 +36,7 @@ import {
PanelTitle,
} from '../../../../public/components/trace_analytics/components/common/helper_functions';
import { SpanDetailTable } from '../../../../public/components/trace_analytics/components/traces/span_detail_table';
-import { Explorer } from '../../explorer/explorer';
+import { Explorer } from '../../event_analytics/explorer/explorer';
import { Configuration } from './configuration';
import {
TAB_CONFIG_ID_TXT_PFX,
diff --git a/dashboards-observability/public/components/application_analytics/helpers/utils.tsx b/dashboards-observability/public/components/application_analytics/helpers/utils.tsx
index 57c4bf768..40f8e1f98 100644
--- a/dashboards-observability/public/components/application_analytics/helpers/utils.tsx
+++ b/dashboards-observability/public/components/application_analytics/helpers/utils.tsx
@@ -18,21 +18,21 @@ import { VisualizationType } from '../../../../common/types/custom_panels';
import { NEW_SELECTED_QUERY_TAB, TAB_CREATED_TYPE } from '../../../../common/constants/explorer';
import { APP_ANALYTICS_API_PREFIX } from '../../../../common/constants/application_analytics';
import { HttpSetup } from '../../../../../../src/core/public';
-import { init as initFields, remove as removefields } from '../../explorer/slices/field_slice';
+import { init as initFields, remove as removefields } from '../../event_analytics/redux/slices/field_slice';
import {
init as initVisualizationConfig,
reset as resetVisualizationConfig,
-} from '../../explorer/slices/viualization_config_slice';
+} from '../../event_analytics/redux/slices/viualization_config_slice';
import {
init as initQuery,
remove as removeQuery,
changeQuery,
-} from '../../explorer/slices/query_slice';
+} from '../../event_analytics/redux/slices/query_slice';
import {
init as initQueryResult,
remove as removeQueryResult,
-} from '../../explorer/slices/query_result_slice';
-import { addTab, removeTab } from '../../explorer/slices/query_tab_slice';
+} from '../../event_analytics/redux/slices/query_result_slice';
+import { addTab, removeTab } from '../../event_analytics/redux/slices/query_tab_slice';
// Name validation
export const isNameValid = (name: string, existingNames: string[]) => {
diff --git a/dashboards-observability/public/components/common/search/search.tsx b/dashboards-observability/public/components/common/search/search.tsx
index 6995b6945..799ae2688 100644
--- a/dashboards-observability/public/components/common/search/search.tsx
+++ b/dashboards-observability/public/components/common/search/search.tsx
@@ -21,7 +21,7 @@ import _ from 'lodash';
import { DatePicker } from './date_picker';
import '@algolia/autocomplete-theme-classic';
import { Autocomplete } from './autocomplete';
-import { SavePanel } from '../../explorer/save_panel';
+import { SavePanel } from '../../event_analytics/explorer/save_panel';
import { PPLReferenceFlyout } from '../helpers';
import { uiSettingsService } from '../../../../common/utils';
import { APP_ANALYTICS_TAB_ID_REGEX } from '../../../../common/constants/explorer';
diff --git a/dashboards-observability/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap b/dashboards-observability/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap
index 8d81dec7f..1ae063c63 100644
--- a/dashboards-observability/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap
+++ b/dashboards-observability/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap
@@ -72,11 +72,20 @@ exports[`Panels View Component renders panel view container with visualizations
}
cloneCustomPanel={[MockFunction]}
deleteCustomPanel={[MockFunction]}
+ dslService={
+ DSLService {
+ "fetch": [Function],
+ "fetchFields": [Function],
+ "fetchIndices": [Function],
+ "http": [MockFunction],
+ }
+ }
endTime="now"
http={[MockFunction]}
+ onEditClick={[Function]}
page="operationalPanels"
panelId="L8Sx53wBDp0rvEg3yoLb"
- parentBreadcrumb={
+ parentBreadcrumbs={
Array [
Object {
"href": "#/operational_panels/",
@@ -101,19 +110,22 @@ exports[`Panels View Component renders panel view container with visualizations
startTime="now-30m"
>
-
+
-
@@ -357,38 +374,33 @@ exports[`Panels View Component renders panel view container with visualizations
-
- Add Visualization
-
- }
- closePopover={[Function]}
- display="inlineBlock"
- hasArrow={true}
- id="addVisualizationContextMenu"
- isOpen={false}
- ownFocus={false}
- panelPaddingSize="none"
+
-
+ Add visualization
+
+ }
+ closePopover={[Function]}
+ display="inlineBlock"
+ hasArrow={true}
+ id="addVisualizationContextMenu"
+ isOpen={false}
+ ownFocus={true}
+ panelPaddingSize="none"
>
-
-
+
+
-
+
-
}
- disabled={true}
- fullWidth={true}
- onChange={[Function]}
- onKeyPress={[Function]}
+ baseQuery="source = "
+ dslService={
+ DSLService {
+ "fetch": [Function],
+ "fetchFields": [Function],
+ "fetchIndices": [Function],
+ "http": [MockFunction],
+ }
+ }
+ getSuggestions={[Function]}
+ handleQueryChange={[Function]}
+ handleQuerySearch={[Function]}
+ isDisabled={true}
+ key="autocomplete-search-bar"
+ onItemSelect={[Function]}
placeholder="Use PPL 'where' clauses to add filters on all visualizations [where Carrier = 'OpenSearch-Air']"
- value=""
+ possibleCommands={
+ Array [
+ Object {
+ "label": "where",
+ },
+ ]
+ }
+ query=""
+ tabId="panels-filter"
+ tempQuery=""
>
-
- PPL
-
- }
- fullWidth={true}
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ }
+ aria-autocomplete="both"
+ aria-labelledby="autocomplete-4-label"
+ autoCapitalize="off"
+ autoComplete="off"
+ autoCorrect="off"
+ autoFocus={false}
+ data-test-subj="searchAutocompleteTextArea"
+ disabled={true}
+ enterKeyHint="search"
+ fullWidth={true}
+ id="autocomplete-textarea"
+ maxLength={512}
+ onBlur={[Function]}
+ onChange={[Function]}
+ onClick={[Function]}
+ onFocus={[Function]}
+ onKeyDown={[Function]}
+ placeholder="Use PPL 'where' clauses to add filters on all visualizations [where Carrier = 'OpenSearch-Air']"
+ spellCheck="false"
+ type="search"
+ value=""
+ >
+
+ PPL
+
+ }
+ fullWidth={true}
+ inputId="autocomplete-textarea"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
-
+
@@ -1196,38 +1290,33 @@ exports[`Panels View Component renders panel view container with visualizations
-
- Add Visualization
-
- }
- closePopover={[Function]}
- display="inlineBlock"
- hasArrow={true}
- id="addVisualizationContextMenu"
- isOpen={false}
- ownFocus={false}
- panelPaddingSize="none"
+
-
+ Add visualization
+
+ }
+ closePopover={[Function]}
+ display="inlineBlock"
+ hasArrow={true}
+ id="addVisualizationContextMenu"
+ isOpen={false}
+ ownFocus={true}
+ panelPaddingSize="none"
>
-
-
+
+
@@ -1397,6 +1493,7 @@ exports[`Panels View Component renders panel view container with visualizations
editMode={false}
endTime="now"
http={[MockFunction]}
+ onEditClick={[Function]}
onRefresh={false}
panelId="L8Sx53wBDp0rvEg3yoLb"
panelVisualizations={Array []}
@@ -1527,7 +1624,7 @@ exports[`Panels View Component renders panel view container with visualizations
`;
-exports[`Panels View Component renders panel view container with visualizations 2`] = `
+exports[`Panels View Component renders panel view container without visualizations 1`] = `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Created on
- Invalid date
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Panel actions
-
- }
- closePopover={[Function]}
- display="inlineBlock"
- hasArrow={true}
- isOpen={false}
- ownFocus={false}
- panelPaddingSize="none"
- withTitle={true}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Add Visualization
-
- }
- closePopover={[Function]}
- display="inlineBlock"
- hasArrow={true}
- id="addVisualizationContextMenu"
- isOpen={false}
- ownFocus={false}
- panelPaddingSize="none"
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPL
-
- }
- disabled={true}
- fullWidth={true}
- onChange={[Function]}
- onKeyPress={[Function]}
- placeholder="Use PPL 'where' clauses to add filters on all visualizations [where Carrier = 'OpenSearch-Air']"
- value=""
- >
-
- PPL
-
- }
- fullWidth={true}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- >
-
-
-
-
-
- }
- closePopover={[Function]}
- display="inlineBlock"
- hasArrow={true}
- id="QuickSelectPopover"
- isOpen={false}
- ownFocus={true}
- panelPaddingSize="m"
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
}
- iconType={false}
- isCustom={true}
- startDateControl={
}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Start by adding
- your first visualization
-
-
-
-
-
-
-
-
- Use PPL Queries to fetch & filter observability data and create
- visualizations
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Add Visualization
-
- }
- closePopover={[Function]}
- display="inlineBlock"
- hasArrow={true}
- id="addVisualizationContextMenu"
- isOpen={false}
- ownFocus={false}
- panelPaddingSize="none"
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-`;
-
-exports[`Panels View Component renders panel view container without visualizations 1`] = `
-
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
+
@@ -3582,38 +1989,33 @@ exports[`Panels View Component renders panel view container without visualizatio
-
- Add Visualization
-
- }
- closePopover={[Function]}
- display="inlineBlock"
- hasArrow={true}
- id="addVisualizationContextMenu"
- isOpen={false}
- ownFocus={false}
- panelPaddingSize="none"
+
-
+ Add visualization
+
+ }
+ closePopover={[Function]}
+ display="inlineBlock"
+ hasArrow={true}
+ id="addVisualizationContextMenu"
+ isOpen={false}
+ ownFocus={true}
+ panelPaddingSize="none"
>
-
-
+
+
-
+
-
}
- disabled={true}
- fullWidth={true}
- onChange={[Function]}
- onKeyPress={[Function]}
+ baseQuery="source = "
+ dslService={
+ DSLService {
+ "fetch": [Function],
+ "fetchFields": [Function],
+ "fetchIndices": [Function],
+ "http": [MockFunction],
+ }
+ }
+ getSuggestions={[Function]}
+ handleQueryChange={[Function]}
+ handleQuerySearch={[Function]}
+ isDisabled={true}
+ key="autocomplete-search-bar"
+ onItemSelect={[Function]}
placeholder="Use PPL 'where' clauses to add filters on all visualizations [where Carrier = 'OpenSearch-Air']"
- value=""
+ possibleCommands={
+ Array [
+ Object {
+ "label": "where",
+ },
+ ]
+ }
+ query=""
+ tabId="panels-filter"
+ tempQuery=""
>
-
- PPL
-
- }
- fullWidth={true}
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ }
+ aria-autocomplete="both"
+ aria-labelledby="autocomplete-1-label"
+ autoCapitalize="off"
+ autoComplete="off"
+ autoCorrect="off"
+ autoFocus={false}
+ data-test-subj="searchAutocompleteTextArea"
+ disabled={true}
+ enterKeyHint="search"
+ fullWidth={true}
+ id="autocomplete-textarea"
+ maxLength={512}
+ onBlur={[Function]}
+ onChange={[Function]}
+ onClick={[Function]}
+ onFocus={[Function]}
+ onKeyDown={[Function]}
+ placeholder="Use PPL 'where' clauses to add filters on all visualizations [where Carrier = 'OpenSearch-Air']"
+ spellCheck="false"
+ type="search"
+ value=""
+ >
+
+ PPL
+
+ }
+ fullWidth={true}
+ inputId="autocomplete-textarea"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
-
+
@@ -4402,38 +2886,33 @@ exports[`Panels View Component renders panel view container without visualizatio
-
- Add Visualization
-
- }
- closePopover={[Function]}
- display="inlineBlock"
- hasArrow={true}
- id="addVisualizationContextMenu"
- isOpen={false}
- ownFocus={false}
- panelPaddingSize="none"
+
-
+ Add visualization
+
+ }
+ closePopover={[Function]}
+ display="inlineBlock"
+ hasArrow={true}
+ id="addVisualizationContextMenu"
+ isOpen={false}
+ ownFocus={true}
+ panelPaddingSize="none"
>
-
-
+
+
@@ -4598,6 +3084,7 @@ exports[`Panels View Component renders panel view container without visualizatio
editMode={false}
endTime="now"
http={[MockFunction]}
+ onEditClick={[Function]}
onRefresh={false}
panelId="L8Sx53wBDp0rvEg3yoLb"
panelVisualizations={Array []}
diff --git a/dashboards-observability/public/components/custom_panels/__tests__/custom_panel_view.test.tsx b/dashboards-observability/public/components/custom_panels/__tests__/custom_panel_view.test.tsx
index 3ad38f26d..81cb151cd 100644
--- a/dashboards-observability/public/components/custom_panels/__tests__/custom_panel_view.test.tsx
+++ b/dashboards-observability/public/components/custom_panels/__tests__/custom_panel_view.test.tsx
@@ -21,7 +21,7 @@ import DSLService from '../../../../public/services/requests/dsl';
import { coreStartMock } from '../../../../test/__mocks__/coreMocks';
import { HttpResponse } from '../../../../../../src/core/public';
-describe.skip('Panels View Component', () => {
+describe('Panels View Component', () => {
configure({ adapter: new Adapter() });
it('renders panel view container without visualizations', async () => {
diff --git a/dashboards-observability/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap b/dashboards-observability/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap
index 2657b951e..ee8985c12 100644
--- a/dashboards-observability/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap
+++ b/dashboards-observability/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap
@@ -2,374 +2,1295 @@
exports[`Utils helper functions renders displayVisualization function 1`] = `
-
-
-
-
-
-
-
+ data={
+ Array [
+ Object {
+ "marker": Object {
+ "color": Array [
+ "#3CA1C7",
+ "#8C55A3",
+ "#DB748A",
+ "#F2BE4B",
+ ],
+ },
+ "name": "avg(FlightDelayMin)",
+ "orientation": "v",
+ "type": "bar",
+ "x": Array [
+ "BeatsWest",
+ "Logstash Airways",
+ "OpenSearch Dashboards Airlines",
+ "OpenSearch-Air",
+ ],
+ "y": Array [
+ 53.65384615384615,
+ 45.36144578313253,
+ 63.1578947368421,
+ 46.81318681318681,
+ ],
+ },
+ ]
+ }
+ layout={
+ Object {
+ "barmode": "",
+ "colorway": Array [
+ "#3CA1C7",
+ "#8C55A3",
+ "#DB748A",
+ "#F2BE4B",
+ "#68CCC2",
+ "#2A7866",
+ "#843769",
+ "#374FB8",
+ "#BD6F26",
+ "#4C636F",
+ ],
+ "height": 500,
+ "legend": Object {
+ "orientation": "v",
+ "traceorder": "normal",
+ },
+ "margin": Object {
+ "b": 30,
+ "l": 60,
+ "pad": 0,
+ "r": 30,
+ "t": 50,
+ },
+ "showlegend": true,
+ "title": "",
+ }
+ }
+ >
+
+
+
+
+
+
+
`;
exports[`Utils helper functions renders displayVisualization function 2`] = `
-
-
-
-
-
-
-
+ >
+
+
+
+
+
+
+
`;
exports[`Utils helper functions renders displayVisualization function 3`] = `
-
-
-
-
-
-
-
-
-
+ useResizeHandler={true}
+ >
+
+
+
+
+
+
`;
exports[`Utils helper functions renders displayVisualization function 4`] = `
-
-
+
-
-
-
-
-
-
-
+ useResizeHandler={true}
+ >
+
+
+
+
+
+
`;
diff --git a/dashboards-observability/public/components/custom_panels/helpers/__tests__/utils.test.tsx b/dashboards-observability/public/components/custom_panels/helpers/__tests__/utils.test.tsx
index 0e92e37e7..e1d1f1dbb 100644
--- a/dashboards-observability/public/components/custom_panels/helpers/__tests__/utils.test.tsx
+++ b/dashboards-observability/public/components/custom_panels/helpers/__tests__/utils.test.tsx
@@ -28,7 +28,7 @@ import {
import { PPL_DATE_FORMAT } from '../../../../../common/constants/shared';
import React from 'react';
-describe.skip('Utils helper functions', () => {
+describe('Utils helper functions', () => {
configure({ adapter: new Adapter() });
it('validates isNameValid function', () => {
@@ -103,19 +103,25 @@ describe.skip('Utils helper functions', () => {
});
it('renders displayVisualization function', () => {
- const wrapper1 = mount({displayVisualization(samplePPLResponse, 'bar', false)}
);
+ const wrapper1 = mount(
+ {displayVisualization(sampleSavedVisualization, samplePPLResponse, 'bar')}
+ );
expect(wrapper1).toMatchSnapshot();
- const wrapper2 = mount({displayVisualization(samplePPLResponse, 'line', true)}
);
+ const wrapper2 = mount(
+ {displayVisualization(sampleSavedVisualization, samplePPLResponse, 'line')}
+ );
expect(wrapper2).toMatchSnapshot();
const wrapper3 = mount(
- {displayVisualization(samplePPLResponse, 'horizontal_bar', false)}
+
+ {displayVisualization(sampleSavedVisualization, samplePPLResponse, 'horizontal_bar')}
+
);
expect(wrapper3).toMatchSnapshot();
const wrapper4 = mount(
- {displayVisualization(samplePPLEmptyResponse, 'horizontal_bar', true)}
+ {displayVisualization({}, samplePPLEmptyResponse, 'horizontal_bar')}
);
expect(wrapper4).toMatchSnapshot();
});
diff --git a/dashboards-observability/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap b/dashboards-observability/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap
index 100d6bc41..7382d56d0 100644
--- a/dashboards-observability/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap
+++ b/dashboards-observability/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap
@@ -6,6 +6,7 @@ exports[`Visualization Container Component renders add visualization container 1
editMode={true}
fromTime="now-15m"
http={[MockFunction]}
+ onEditClick={[Function]}
onRefresh={true}
pplFilterValue="where Carrier = \\"OpenSearch-Air\\""
pplService={
@@ -25,155 +26,7 @@ exports[`Visualization Container Component renders add visualization container 1
grow={false}
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-`;
-
-exports[`Visualization Container Component renders add visualization container 2`] = `
-
-
-
{
+describe('Visualization Container Component', () => {
configure({ adapter: new Adapter() });
it('renders add visualization container', async () => {
diff --git a/dashboards-observability/public/components/explorer/__tests__/__snapshots__/no_results.test.tsx.snap b/dashboards-observability/public/components/event_analytics/__tests__/__snapshots__/no_results.test.tsx.snap
similarity index 100%
rename from dashboards-observability/public/components/explorer/__tests__/__snapshots__/no_results.test.tsx.snap
rename to dashboards-observability/public/components/event_analytics/__tests__/__snapshots__/no_results.test.tsx.snap
diff --git a/dashboards-observability/public/components/explorer/__tests__/no_results.test.tsx b/dashboards-observability/public/components/event_analytics/__tests__/no_results.test.tsx
similarity index 91%
rename from dashboards-observability/public/components/explorer/__tests__/no_results.test.tsx
rename to dashboards-observability/public/components/event_analytics/__tests__/no_results.test.tsx
index b87c8dc13..1bc6c9eb1 100644
--- a/dashboards-observability/public/components/explorer/__tests__/no_results.test.tsx
+++ b/dashboards-observability/public/components/event_analytics/__tests__/no_results.test.tsx
@@ -7,7 +7,7 @@ import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import { waitFor } from '@testing-library/react';
-import { NoResults } from '../no_results';
+import { NoResults } from '../explorer/no_results';
describe('No result component', () => {
configure({ adapter: new Adapter() });
diff --git a/dashboards-observability/public/components/explorer/__tests__/__snapshots__/data_grid.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/__tests__/__snapshots__/data_grid.test.tsx.snap
similarity index 87%
rename from dashboards-observability/public/components/explorer/__tests__/__snapshots__/data_grid.test.tsx.snap
rename to dashboards-observability/public/components/event_analytics/explorer/__tests__/__snapshots__/data_grid.test.tsx.snap
index a98dbe783..df40c845c 100644
--- a/dashboards-observability/public/components/explorer/__tests__/__snapshots__/data_grid.test.tsx.snap
+++ b/dashboards-observability/public/components/event_analytics/explorer/__tests__/__snapshots__/data_grid.test.tsx.snap
@@ -412,34 +412,46 @@ exports[`Datagrid component Renders data grid component 1`] = `
className="osdDocTableCell__toggleDetails"
key="grid-td-14"
>
-
+ >
+
+
+
+
+
@@ -628,34 +640,46 @@ exports[`Datagrid component Renders data grid component 1`] = `
className="osdDocTableCell__toggleDetails"
key="grid-td-17"
>
-
+ >
+
+
+
+
+
diff --git a/dashboards-observability/public/components/explorer/__tests__/data_grid.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/__tests__/data_grid.test.tsx
similarity index 86%
rename from dashboards-observability/public/components/explorer/__tests__/data_grid.test.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/__tests__/data_grid.test.tsx
index a45d7ecd9..f659f3243 100644
--- a/dashboards-observability/public/components/explorer/__tests__/data_grid.test.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/__tests__/data_grid.test.tsx
@@ -7,18 +7,18 @@ import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import { waitFor } from '@testing-library/react';
-import { DataGrid } from '../data_grid';
+import { DataGrid } from '../events_views/data_grid';
import {
SELECTED_FIELDS,
AVAILABLE_FIELDS,
UNSELECTED_FIELDS,
QUERIED_FIELDS
-} from '../../../../common/constants/explorer';
+} from '../../../../../common/constants/explorer';
import {
AVAILABLE_FIELDS as SIDEBAR_AVAILABLE_FIELDS,
QUERY_FIELDS,
DATA_GRID_ROWS
-} from '../../../../test/event_analytics_constants';
+} from '../../../../../test/event_analytics_constants';
describe('Datagrid component', () => {
configure({ adapter: new Adapter() });
diff --git a/dashboards-observability/public/components/explorer/docTable/__tests__/__snapshots__/docViewer.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/__snapshots__/doc_viewer.test.tsx.snap
similarity index 100%
rename from dashboards-observability/public/components/explorer/docTable/__tests__/__snapshots__/docViewer.test.tsx.snap
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/__snapshots__/doc_viewer.test.tsx.snap
diff --git a/dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/__snapshots__/doc_viewer_row.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/__snapshots__/doc_viewer_row.test.tsx.snap
new file mode 100644
index 000000000..87754ba9e
--- /dev/null
+++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/__snapshots__/doc_viewer_row.test.tsx.snap
@@ -0,0 +1,76 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Datagrid Doc viewer row component Renders Doc viewer row component 1`] = `
+
+
+
+
+
+
+ |
+
+ 45.957544288332315
+ |
+
+
+`;
diff --git a/dashboards-observability/public/components/explorer/docTable/__tests__/docViewer.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/doc_viewer.test.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/docTable/__tests__/docViewer.test.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/doc_viewer.test.tsx
diff --git a/dashboards-observability/public/components/explorer/docTable/__tests__/docViewerRow.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/doc_viewer_row.test.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/docTable/__tests__/docViewerRow.test.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/__tests__/doc_viewer_row.test.tsx
diff --git a/dashboards-observability/public/components/explorer/data_grid.scss b/dashboards-observability/public/components/event_analytics/explorer/events_views/data_grid.scss
similarity index 100%
rename from dashboards-observability/public/components/explorer/data_grid.scss
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/data_grid.scss
diff --git a/dashboards-observability/public/components/explorer/data_grid.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/data_grid.tsx
similarity index 91%
rename from dashboards-observability/public/components/explorer/data_grid.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/data_grid.tsx
index ad31d3745..d0385a9a0 100644
--- a/dashboards-observability/public/components/explorer/data_grid.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/data_grid.tsx
@@ -6,11 +6,11 @@
import './data_grid.scss';
import React, { useMemo, useState, useEffect, useRef, RefObject } from 'react';
-import { IExplorerFields } from '../../../common/types/explorer';
-import { DEFAULT_COLUMNS, PAGE_SIZE } from '../../../common/constants/explorer';
-import { getHeaders, getTrs, populateDataGrid } from './utils';
-import { HttpSetup } from '../../../../../src/core/public';
-import PPLService from '../../services/requests/ppl';
+import { IExplorerFields } from '../../../../../common/types/explorer';
+import { DEFAULT_COLUMNS, PAGE_SIZE } from '../../../../../common/constants/explorer';
+import { getHeaders, getTrs, populateDataGrid } from '../../utils';
+import { HttpSetup } from '../../../../../../../src/core/public';
+import PPLService from '../../../../services/requests/ppl';
interface DataGridProps {
http: HttpSetup;
diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/docDetailTable.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/doc_detail_table.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/docTable/detailTable/docDetailTable.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/doc_detail_table.tsx
diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/docDetailTitle.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/doc_detail_title.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/docTable/detailTable/docDetailTitle.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/doc_detail_title.tsx
diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row.tsx
similarity index 61%
rename from dashboards-observability/public/components/explorer/docTable/detailTable/table_row.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row.tsx
index 875c29191..865fa9581 100644
--- a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row.tsx
@@ -5,15 +5,10 @@
import classNames from 'classnames';
import React, { ReactNode } from 'react';
-// import { FieldMapping, DocViewFilterFn } from '../../doc_views/doc_views_types';
-import { DocViewTableRowBtnFilterAdd } from './table_row_btn_filter_add';
-import { DocViewTableRowBtnFilterRemove } from './table_row_btn_filter_remove';
-import { DocViewTableRowBtnToggleColumn } from './table_row_btn_toggle_column';
import { DocViewTableRowBtnCollapse } from './table_row_btn_collapse';
-import { DocViewTableRowBtnFilterExists } from './table_row_btn_filter_exists';
import { DocViewTableRowIconNoMapping } from './table_row_icon_no_mapping';
import { DocViewTableRowIconUnderscore } from './table_row_icon_underscore';
-import { FieldName } from '../../../common/field_name/field_name';
+import { FieldName } from '../../../../common/field_name/field_name';
export interface FieldMapping {
filterable?: boolean;
@@ -53,12 +48,8 @@ export function DocViewTableRow({
displayUnderscoreWarning,
isCollapsible,
isCollapsed,
- isColumnActive,
- onFilter,
onToggleCollapse,
- onToggleColumn,
value,
- valueRaw,
}: Props) {
const valueClassName = classNames({
// eslint-disable-next-line @typescript-eslint/naming-convention
@@ -68,31 +59,10 @@ export function DocViewTableRow({
return (
- {typeof onFilter === 'function' && (<>>
- //
- // onFilter(fieldMapping, valueRaw, '+')}
- // />
- // onFilter(fieldMapping, valueRaw, '-')}
- // />
- // {typeof onToggleColumn === 'function' && (
- //
- // )}
- // onFilter('_exists_', field, '+')}
- // scripted={fieldMapping && fieldMapping.scripted}
- // />
- // |
- )}
|
diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_collapse.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row_btn_collapse.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_collapse.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row_btn_collapse.tsx
diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_icon_no_mapping.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row_icon_no_mapping.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/docTable/detailTable/table_row_icon_no_mapping.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row_icon_no_mapping.tsx
diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_icon_underscore.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row_icon_underscore.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/docTable/detailTable/table_row_icon_underscore.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/detail_table/table_row_icon_underscore.tsx
diff --git a/dashboards-observability/public/components/explorer/docTable/docView.scss b/dashboards-observability/public/components/event_analytics/explorer/events_views/docView.scss
similarity index 95%
rename from dashboards-observability/public/components/explorer/docTable/docView.scss
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/docView.scss
index fbe69b2a6..c395ed4da 100644
--- a/dashboards-observability/public/components/explorer/docTable/docView.scss
+++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/docView.scss
@@ -37,8 +37,8 @@
.events-flyout-resize {
position: absolute;
- right: 50px;
- top: 17px;
+ right: 30px;
+ top: 0px;
z-index: 3;
}
diff --git a/dashboards-observability/public/components/explorer/docTable/docViewRow.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/docViewRow.tsx
similarity index 92%
rename from dashboards-observability/public/components/explorer/docTable/docViewRow.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/docViewRow.tsx
index 06a6bb3a1..7a4f2c3b2 100644
--- a/dashboards-observability/public/components/explorer/docTable/docViewRow.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/docViewRow.tsx
@@ -7,15 +7,15 @@ import './docView.scss';
import moment from 'moment';
import React, { forwardRef, useImperativeHandle, useMemo, useState } from 'react';
import { toPairs, uniqueId, has, forEach, isEqual } from 'lodash';
-import { EuiIcon, EuiLink } from '@elastic/eui';
+import { EuiButtonEmpty, EuiButtonIcon, EuiIcon, EuiLink } from '@elastic/eui';
import { useEffect } from 'react';
-import { IExplorerFields, IField } from '../../../../common/types/explorer';
+import { IExplorerFields, IField } from '../../../../../common/types/explorer';
import { DocFlyout } from './doc_flyout';
-import { HttpStart } from '../../../../../../src/core/public';
-import { OTEL_TRACE_ID, DATE_PICKER_FORMAT } from '../../../../common/constants/explorer';
+import { HttpStart } from '../../../../../../../src/core/public';
+import { OTEL_TRACE_ID, DATE_PICKER_FORMAT } from '../../../../../common/constants/explorer';
import { SurroundingFlyout } from './surrounding_flyout';
-import PPLService from '../../../services/requests/ppl';
-import { isValidTraceId } from '../utils';
+import PPLService from '../../../../services/requests/ppl';
+import { isValidTraceId } from '../../utils';
export interface IDocType {
[key: string]: string;
@@ -121,18 +121,13 @@ export const DocViewRow = forwardRef((props: IDocViewRowProps, ref) => {
const getExpColapTd = () => {
return (
-
+ iconType={detailsOpen || surroundingEventsOpen ? 'arrowLeft' : 'arrowRight'}
+ />
|
);
};
diff --git a/dashboards-observability/public/components/explorer/docTable/docViewer.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/docViewer.tsx
similarity index 92%
rename from dashboards-observability/public/components/explorer/docTable/docViewer.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/docViewer.tsx
index 240e7fdce..581b30aeb 100644
--- a/dashboards-observability/public/components/explorer/docTable/docViewer.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/docViewer.tsx
@@ -13,13 +13,13 @@ import {
EuiTabbedContent,
EuiTabbedContentTab,
} from '@elastic/eui';
-import { DocViewTable } from './detailTable/docDetailTable';
+import { DocViewTable } from './detail_table/doc_detail_table';
import { JsonCodeBlock } from './json_code_block/json_code_block';
import { IDocType } from './docViewRow';
-import { HttpSetup } from '../../../../../../src/core/public';
+import { HttpSetup } from '../../../../../../../src/core/public';
import { TraceBlock } from './trace_block/trace_block';
-import { OTEL_TRACE_ID } from '../../../../common/constants/explorer';
-import { isValidTraceId } from '../utils';
+import { OTEL_TRACE_ID } from '../../../../../common/constants/explorer';
+import { isValidTraceId } from '../../utils';
interface IDocViewerProps {
http: HttpSetup;
diff --git a/dashboards-observability/public/components/explorer/docTable/doc_flyout.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/doc_flyout.tsx
similarity index 89%
rename from dashboards-observability/public/components/explorer/docTable/doc_flyout.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/doc_flyout.tsx
index fdff39ea3..beba69089 100644
--- a/dashboards-observability/public/components/explorer/docTable/doc_flyout.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/doc_flyout.tsx
@@ -16,15 +16,15 @@ import {
EuiToolTip,
} from '@elastic/eui';
import moment from 'moment';
-import { FlyoutContainers } from '../../common/flyout_containers';
+import { FlyoutContainers } from '../../../common/flyout_containers';
import { IDocType } from './docViewRow';
import { DocViewer } from './docViewer';
-import { uiSettingsService } from '../../../../common/utils';
-import { IExplorerFields } from '../../../../common/types/explorer';
-import { getHeaders, populateDataGrid } from '../utils';
-import { DEFAULT_COLUMNS } from '../../../../common/constants/explorer';
-import { HttpSetup } from '../../../../../../src/core/public';
-import { PPL_STATS_REGEX } from '../../../../common/constants/shared';
+import { uiSettingsService } from '../../../../../common/utils';
+import { IExplorerFields } from '../../../../../common/types/explorer';
+import { getHeaders, populateDataGrid } from '../../utils';
+import { DEFAULT_COLUMNS } from '../../../../../common/constants/explorer';
+import { HttpSetup } from '../../../../../../../src/core/public';
+import { PPL_STATS_REGEX } from '../../../../../common/constants/shared';
interface Props {
http: HttpSetup;
diff --git a/dashboards-observability/public/components/explorer/docTable/index.ts b/dashboards-observability/public/components/event_analytics/explorer/events_views/index.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/docTable/index.ts
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/index.ts
diff --git a/dashboards-observability/public/components/explorer/docTable/json_code_block/__tests__/__snapshots__/json_code_block.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/events_views/json_code_block/__tests__/__snapshots__/json_code_block.test.tsx.snap
similarity index 100%
rename from dashboards-observability/public/components/explorer/docTable/json_code_block/__tests__/__snapshots__/json_code_block.test.tsx.snap
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/json_code_block/__tests__/__snapshots__/json_code_block.test.tsx.snap
diff --git a/dashboards-observability/public/components/explorer/docTable/json_code_block/__tests__/json_code_block.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/json_code_block/__tests__/json_code_block.test.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/docTable/json_code_block/__tests__/json_code_block.test.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/json_code_block/__tests__/json_code_block.test.tsx
diff --git a/dashboards-observability/public/components/explorer/docTable/json_code_block/json_code_block.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/json_code_block/json_code_block.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/docTable/json_code_block/json_code_block.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/json_code_block/json_code_block.tsx
diff --git a/dashboards-observability/public/components/explorer/docTable/surrounding_flyout.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/surrounding_flyout.tsx
similarity index 95%
rename from dashboards-observability/public/components/explorer/docTable/surrounding_flyout.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/surrounding_flyout.tsx
index 5ca0701dc..4c67c3e19 100644
--- a/dashboards-observability/public/components/explorer/docTable/surrounding_flyout.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/surrounding_flyout.tsx
@@ -21,13 +21,13 @@ import {
EuiTitle,
EuiToolTip,
} from '@elastic/eui';
-import { FlyoutContainers } from '../../common/flyout_containers';
+import { FlyoutContainers } from '../../../common/flyout_containers';
import { IDocType } from './docViewRow';
-import { IExplorerFields, IField } from '../../../../common/types/explorer';
-import { getHeaders, fetchSurroundingData, rangeNumDocs, populateDataGrid } from '../utils';
-import { DEFAULT_COLUMNS } from '../../../../common/constants/explorer';
-import { HttpSetup } from '../../../../../../src/core/public';
-import PPLService from '../../../services/requests/ppl';
+import { IExplorerFields, IField } from '../../../../../common/types/explorer';
+import { getHeaders, fetchSurroundingData, rangeNumDocs, populateDataGrid } from '../../utils';
+import { DEFAULT_COLUMNS } from '../../../../../common/constants/explorer';
+import { HttpSetup } from '../../../../../../../src/core/public';
+import PPLService from '../../../../services/requests/ppl';
interface Props {
http: HttpSetup;
diff --git a/dashboards-observability/public/components/explorer/docTable/trace_block/trace_block.tsx b/dashboards-observability/public/components/event_analytics/explorer/events_views/trace_block/trace_block.tsx
similarity index 78%
rename from dashboards-observability/public/components/explorer/docTable/trace_block/trace_block.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/events_views/trace_block/trace_block.tsx
index 6227666e8..e90476c92 100644
--- a/dashboards-observability/public/components/explorer/docTable/trace_block/trace_block.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/events_views/trace_block/trace_block.tsx
@@ -3,17 +3,17 @@
* SPDX-License-Identifier: Apache-2.0
*/
-import { TraceDetailRender } from '../../../application_analytics/components/flyout_components/trace_detail_render';
+import { TraceDetailRender } from '../../../../application_analytics/components/flyout_components/trace_detail_render';
import React, { useEffect } from 'react';
-import { HttpSetup } from '../../../../../../../src/core/public';
+import { HttpSetup } from '../../../../../../../../src/core/public';
import { EuiCallOut, EuiLink } from '@elastic/eui';
-import { TRACE_ANALYTICS_DOCUMENTATION_LINK } from '../../../../../common/constants/trace_analytics';
+import { TRACE_ANALYTICS_DOCUMENTATION_LINK } from '../../../../../../common/constants/trace_analytics';
import {
OPEN_TELEMETRY_LOG_CORRELATION_LINK,
OTEL_TRACE_ID,
-} from '../../../../../common/constants/explorer';
+} from '../../../../../../common/constants/explorer';
import { IDocType } from '../docViewRow';
-import { isValidTraceId } from '../../utils';
+import { isValidTraceId } from '../../../utils';
interface props {
http: HttpSetup;
diff --git a/dashboards-observability/public/components/explorer/explorer.scss b/dashboards-observability/public/components/event_analytics/explorer/explorer.scss
similarity index 100%
rename from dashboards-observability/public/components/explorer/explorer.scss
rename to dashboards-observability/public/components/event_analytics/explorer/explorer.scss
diff --git a/dashboards-observability/public/components/explorer/explorer.tsx b/dashboards-observability/public/components/event_analytics/explorer/explorer.tsx
similarity index 96%
rename from dashboards-observability/public/components/explorer/explorer.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/explorer.tsx
index 33ad3fa6e..37cd5affd 100644
--- a/dashboards-observability/public/components/explorer/explorer.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/explorer.tsx
@@ -23,15 +23,15 @@ import {
} from '@elastic/eui';
import dateMath from '@elastic/datemath';
import classNames from 'classnames';
-import { Search } from '../common/search/search';
+import { Search } from '../../common/search/search';
import { CountDistribution } from './visualizations/count_distribution';
-import { DataGrid } from './data_grid';
+import { DataGrid } from './events_views/data_grid';
import { Sidebar } from './sidebar';
import { NoResults } from './no_results';
import { HitsCounter } from './hits_counter/hits_counter';
import { TimechartHeader } from './timechart_header';
import { ExplorerVisualizations } from './visualizations';
-import { IField, IQueryTab, IDefaultTimestampState } from '../../../common/types/explorer';
+import { IField, IQueryTab, IDefaultTimestampState } from '../../../../common/types/explorer';
import {
TAB_CHART_TITLE,
TAB_EVENT_TITLE,
@@ -53,30 +53,30 @@ import {
INDEX,
FINAL_QUERY,
DATE_PICKER_FORMAT,
-} from '../../../common/constants/explorer';
-import { PPL_STATS_REGEX, PPL_NEWLINE_REGEX, LIVE_OPTIONS, LIVE_END_TIME } from '../../../common/constants/shared';
-import { getIndexPatternFromRawQuery, preprocessQuery, buildQuery } from '../../../common/utils';
-import { useFetchEvents, useFetchVisualizations } from './hooks';
-import { changeQuery, changeDateRange, selectQueries } from './slices/query_slice';
-import { selectQueryResult } from './slices/query_result_slice';
-import { selectFields, updateFields, sortFields } from './slices/field_slice';
-import { updateTabName } from './slices/query_tab_slice';
-import { selectCountDistribution } from './slices/count_distribution_slice';
-import { selectExplorerVisualization } from './slices/visualization_slice';
+} from '../../../../common/constants/explorer';
+import { PPL_STATS_REGEX, PPL_NEWLINE_REGEX, LIVE_OPTIONS, LIVE_END_TIME } from '../../../../common/constants/shared';
+import { getIndexPatternFromRawQuery, preprocessQuery, buildQuery } from '../../../../common/utils';
+import { useFetchEvents, useFetchVisualizations } from '../hooks';
+import { changeQuery, changeDateRange, selectQueries } from '../redux/slices/query_slice';
+import { selectQueryResult } from '../redux/slices/query_result_slice';
+import { selectFields, updateFields, sortFields } from '../redux/slices/field_slice';
+import { updateTabName } from '../redux/slices/query_tab_slice';
+import { selectCountDistribution } from '../redux/slices/count_distribution_slice';
+import { selectExplorerVisualization } from '../redux/slices/visualization_slice';
import {
selectVisualizationConfig,
change as changeVisualizationConfig,
-} from './slices/viualization_config_slice';
-import { change as updateVizConfig } from './slices/viualization_config_slice';
-import { IExplorerProps, IVisualizationContainerProps } from '../../../common/types/explorer';
-import { TabContext } from './hooks';
-import { getVizContainerProps } from '../visualizations/charts/helpers';
+} from '../redux/slices/viualization_config_slice';
+import { change as updateVizConfig } from '../redux/slices/viualization_config_slice';
+import { IExplorerProps, IVisualizationContainerProps } from '../../../../common/types/explorer';
+import { TabContext } from '../hooks';
+import { getVizContainerProps } from '../../visualizations/charts/helpers';
import {
parseGetSuggestions,
onItemSelect,
-} from '../common/search/autocomplete_logic';
-import { formatError } from './utils';
-import { sleep } from '../common/live_tail/live_tail_button';
+} from '../../common/search/autocomplete_logic';
+import { formatError } from '../utils';
+import { sleep } from '../../common/live_tail/live_tail_button';
const TYPE_TAB_MAPPING = {
[SAVED_QUERY]: TAB_EVENT_ID,
diff --git a/dashboards-observability/public/components/explorer/hits_counter/__tests__/__snapshots__/hits_counter.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/hits_counter/__tests__/__snapshots__/hits_counter.test.tsx.snap
similarity index 100%
rename from dashboards-observability/public/components/explorer/hits_counter/__tests__/__snapshots__/hits_counter.test.tsx.snap
rename to dashboards-observability/public/components/event_analytics/explorer/hits_counter/__tests__/__snapshots__/hits_counter.test.tsx.snap
diff --git a/dashboards-observability/public/components/explorer/hits_counter/__tests__/hits_counter.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/hits_counter/__tests__/hits_counter.test.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/hits_counter/__tests__/hits_counter.test.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/hits_counter/__tests__/hits_counter.test.tsx
diff --git a/dashboards-observability/public/components/explorer/hits_counter/hits_counter.tsx b/dashboards-observability/public/components/event_analytics/explorer/hits_counter/hits_counter.tsx
similarity index 96%
rename from dashboards-observability/public/components/explorer/hits_counter/hits_counter.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/hits_counter/hits_counter.tsx
index 8b7d3f1d0..0941658eb 100644
--- a/dashboards-observability/public/components/explorer/hits_counter/hits_counter.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/hits_counter/hits_counter.tsx
@@ -8,7 +8,7 @@ import React from 'react';
import { EuiButtonEmpty, EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui';
import { FormattedMessage, I18nProvider } from '@osd/i18n/react';
import { i18n } from '@osd/i18n';
-import { formatNumWithCommas } from '../../common/helpers';
+import { formatNumWithCommas } from '../../../common/helpers';
export interface HitsCounterProps {
/**
diff --git a/dashboards-observability/public/components/explorer/hits_counter/index.ts b/dashboards-observability/public/components/event_analytics/explorer/hits_counter/index.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/hits_counter/index.ts
rename to dashboards-observability/public/components/event_analytics/explorer/hits_counter/index.ts
diff --git a/dashboards-observability/public/components/explorer/log_explorer.scss b/dashboards-observability/public/components/event_analytics/explorer/log_explorer.scss
similarity index 100%
rename from dashboards-observability/public/components/explorer/log_explorer.scss
rename to dashboards-observability/public/components/event_analytics/explorer/log_explorer.scss
diff --git a/dashboards-observability/public/components/explorer/log_explorer.tsx b/dashboards-observability/public/components/event_analytics/explorer/log_explorer.tsx
similarity index 92%
rename from dashboards-observability/public/components/explorer/log_explorer.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/log_explorer.tsx
index dd10d70a7..53bd15be4 100644
--- a/dashboards-observability/public/components/explorer/log_explorer.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/log_explorer.tsx
@@ -11,7 +11,7 @@ import { uniqueId, map, isEmpty } from 'lodash';
import $ from 'jquery';
import { EuiIcon, EuiText, EuiTabbedContentTab, EuiTabbedContent } from '@elastic/eui';
import { Explorer } from './explorer';
-import { ILogExplorerProps } from '../../../common/types/explorer';
+import { ILogExplorerProps } from '../../../../common/types/explorer';
import {
TAB_TITLE,
TAB_ID_TXT_PFX,
@@ -21,11 +21,11 @@ import {
TAB_EVENT_ID,
TAB_CHART_ID,
APP_ANALYTICS_TAB_ID_REGEX,
-} from '../../../common/constants/explorer';
-import { selectQueryTabs, setSelectedQueryTab } from './slices/query_tab_slice';
-import { selectQueries } from './slices/query_slice';
-import { selectQueryResult } from './slices/query_result_slice';
-import { initializeTabData, removeTabData } from '../application_analytics/helpers/utils';
+} from '../../../../common/constants/explorer';
+import { selectQueryTabs, setSelectedQueryTab } from '../redux/slices/query_tab_slice';
+import { selectQueries } from '../redux/slices/query_slice';
+import { selectQueryResult } from '../redux/slices/query_result_slice';
+import { initializeTabData, removeTabData } from '../../application_analytics/helpers/utils';
const searchBarConfigs = {
[TAB_EVENT_ID]: {
diff --git a/dashboards-observability/public/components/explorer/no_results.tsx b/dashboards-observability/public/components/event_analytics/explorer/no_results.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/no_results.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/no_results.tsx
diff --git a/dashboards-observability/public/components/explorer/save_panel/__tests__/__snapshots__/save_panel.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/save_panel/__tests__/__snapshots__/save_panel.test.tsx.snap
similarity index 100%
rename from dashboards-observability/public/components/explorer/save_panel/__tests__/__snapshots__/save_panel.test.tsx.snap
rename to dashboards-observability/public/components/event_analytics/explorer/save_panel/__tests__/__snapshots__/save_panel.test.tsx.snap
diff --git a/dashboards-observability/public/components/explorer/save_panel/__tests__/save_panel.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/save_panel/__tests__/save_panel.test.tsx
similarity index 79%
rename from dashboards-observability/public/components/explorer/save_panel/__tests__/save_panel.test.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/save_panel/__tests__/save_panel.test.tsx
index 8a907ac2a..6eec4ca91 100644
--- a/dashboards-observability/public/components/explorer/save_panel/__tests__/save_panel.test.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/save_panel/__tests__/save_panel.test.tsx
@@ -8,9 +8,9 @@ import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import { waitFor } from '@testing-library/react';
import { SavePanel } from '../save_panel';
-import { SELECTED_PANELS_OPTIONS } from '../../../../../test/event_analytics_constants';
-import SavedObjects from '../../../../services/saved_objects/event_analytics/saved_objects';
-import httpClientMock from '../../../../../test/__mocks__/httpClientMock';
+import { SELECTED_PANELS_OPTIONS } from '../../../../../../test/event_analytics_constants';
+import SavedObjects from '../../../../../services/saved_objects/event_analytics/saved_objects';
+import httpClientMock from '../../../../../../test/__mocks__/httpClientMock';
describe('Saved query table component', () => {
configure({ adapter: new Adapter() });
diff --git a/dashboards-observability/public/components/explorer/save_panel/index.ts b/dashboards-observability/public/components/event_analytics/explorer/save_panel/index.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/save_panel/index.ts
rename to dashboards-observability/public/components/event_analytics/explorer/save_panel/index.ts
diff --git a/dashboards-observability/public/components/explorer/save_panel/save_panel.tsx b/dashboards-observability/public/components/event_analytics/explorer/save_panel/save_panel.tsx
similarity index 96%
rename from dashboards-observability/public/components/explorer/save_panel/save_panel.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/save_panel/save_panel.tsx
index e18022db5..c0b4793b5 100644
--- a/dashboards-observability/public/components/explorer/save_panel/save_panel.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/save_panel/save_panel.tsx
@@ -8,7 +8,7 @@ import { useDispatch, useSelector } from 'react-redux';
import { EuiTitle, EuiComboBox, EuiFormRow, EuiSpacer, EuiFieldText } from '@elastic/eui';
import { useEffect } from 'react';
import { isEmpty } from 'lodash';
-import SavedObjects from '../../../services/saved_objects/event_analytics/saved_objects';
+import SavedObjects from '../../../../services/saved_objects/event_analytics/saved_objects';
interface ISavedPanelProps {
selectedOptions: any;
diff --git a/dashboards-observability/public/components/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap
similarity index 100%
rename from dashboards-observability/public/components/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap
rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap
diff --git a/dashboards-observability/public/components/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap
similarity index 100%
rename from dashboards-observability/public/components/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap
rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap
diff --git a/dashboards-observability/public/components/explorer/sidebar/__tests__/field.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/field.test.tsx
similarity index 92%
rename from dashboards-observability/public/components/explorer/sidebar/__tests__/field.test.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/field.test.tsx
index c6660d934..472812664 100644
--- a/dashboards-observability/public/components/explorer/sidebar/__tests__/field.test.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/field.test.tsx
@@ -8,7 +8,7 @@ import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import { waitFor } from '@testing-library/react';
import { Field } from '../field';
-import { AGENT_FIELD } from '../../../../../test/event_analytics_constants';
+import { AGENT_FIELD } from '../../../../../../test/event_analytics_constants';
describe('Field component', () => {
configure({ adapter: new Adapter() });
diff --git a/dashboards-observability/public/components/explorer/sidebar/__tests__/sidebar.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/sidebar.test.tsx
similarity index 95%
rename from dashboards-observability/public/components/explorer/sidebar/__tests__/sidebar.test.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/sidebar.test.tsx
index 0e8e23ec4..6e1b9c5c7 100644
--- a/dashboards-observability/public/components/explorer/sidebar/__tests__/sidebar.test.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/sidebar/__tests__/sidebar.test.tsx
@@ -13,13 +13,13 @@ import {
AVAILABLE_FIELDS,
UNSELECTED_FIELDS,
QUERIED_FIELDS
-} from '../../../../../common/constants/explorer';
+} from '../../../../../../common/constants/explorer';
import {
AVAILABLE_FIELDS as SIDEBAR_AVAILABLE_FIELDS,
QUERY_FIELDS,
JSON_DATA,
JSON_DATA_ALL
-} from '../../../../../test/event_analytics_constants';
+} from '../../../../../../test/event_analytics_constants';
describe('Siderbar component', () => {
configure({ adapter: new Adapter() });
diff --git a/dashboards-observability/public/components/explorer/sidebar/field.tsx b/dashboards-observability/public/components/event_analytics/explorer/sidebar/field.tsx
similarity index 96%
rename from dashboards-observability/public/components/explorer/sidebar/field.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/field.tsx
index 3b6b127ae..efeacf5c1 100644
--- a/dashboards-observability/public/components/explorer/sidebar/field.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/sidebar/field.tsx
@@ -19,9 +19,9 @@ import {
EuiFlexItem,
EuiTitle,
} from '@elastic/eui';
-import { FieldButton } from '../../common/field_button';
-import { FieldIcon } from '../../common/field_icon';
-import { IField } from '../../../../common/types/explorer';
+import { FieldButton } from '../../../common/field_button';
+import { FieldIcon } from '../../../common/field_icon';
+import { IField } from '../../../../../common/types/explorer';
import { FieldInsights } from './field_insights';
interface IFieldProps {
diff --git a/dashboards-observability/public/components/explorer/sidebar/field_insights.tsx b/dashboards-observability/public/components/event_analytics/explorer/sidebar/field_insights.tsx
similarity index 96%
rename from dashboards-observability/public/components/explorer/sidebar/field_insights.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/field_insights.tsx
index 90b3c958e..6a682cc5c 100644
--- a/dashboards-observability/public/components/explorer/sidebar/field_insights.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/sidebar/field_insights.tsx
@@ -6,8 +6,8 @@
import React, { useMemo, useState, useContext, useEffect } from 'react';
import { indexOf, last } from 'lodash';
import { EuiFlexGroup, EuiFlexItem, EuiLink, EuiBasicTable } from '@elastic/eui';
-import { getIndexPatternFromRawQuery } from '../../../../common/utils/query_utils';
-import { TabContext } from '../hooks/use_tab_context';
+import { getIndexPatternFromRawQuery } from '../../../../../common/utils/query_utils';
+import { TabContext } from '../../hooks/use_tab_context';
export const FieldInsights = ({ field, query }: any) => {
const { pplService } = useContext(TabContext);
diff --git a/dashboards-observability/public/components/explorer/sidebar/index.ts b/dashboards-observability/public/components/event_analytics/explorer/sidebar/index.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/sidebar/index.ts
rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/index.ts
diff --git a/dashboards-observability/public/components/explorer/sidebar/sidebar.scss b/dashboards-observability/public/components/event_analytics/explorer/sidebar/sidebar.scss
similarity index 100%
rename from dashboards-observability/public/components/explorer/sidebar/sidebar.scss
rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/sidebar.scss
diff --git a/dashboards-observability/public/components/explorer/sidebar/sidebar.tsx b/dashboards-observability/public/components/event_analytics/explorer/sidebar/sidebar.tsx
similarity index 99%
rename from dashboards-observability/public/components/explorer/sidebar/sidebar.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/sidebar/sidebar.tsx
index be58d19b1..9a49ca926 100644
--- a/dashboards-observability/public/components/explorer/sidebar/sidebar.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/sidebar/sidebar.tsx
@@ -12,7 +12,7 @@ import { i18n } from '@osd/i18n';
import { FormattedMessage, I18nProvider } from '@osd/i18n/react';
import { cssNumber } from 'jquery';
import { Field } from './field';
-import { IExplorerFields, IField } from '../../../../common/types/explorer';
+import { IExplorerFields, IField } from '../../../../../common/types/explorer';
interface ISidebarProps {
explorerFields: IExplorerFields;
diff --git a/dashboards-observability/public/components/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap
similarity index 96%
rename from dashboards-observability/public/components/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap
rename to dashboards-observability/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap
index af8ade96a..9c302d242 100644
--- a/dashboards-observability/public/components/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap
+++ b/dashboards-observability/public/components/event_analytics/explorer/timechart_header/__tests__/__snapshots__/timechart_header.test.tsx.snap
@@ -172,7 +172,7 @@ exports[`Time chart header component Renders Time chart header component 1`] = `
{
+describe('Time chart header component', () => {
configure({ adapter: new Adapter() });
it('Renders Time chart header component', async () => {
diff --git a/dashboards-observability/public/components/explorer/timechart_header/index.ts b/dashboards-observability/public/components/event_analytics/explorer/timechart_header/index.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/timechart_header/index.ts
rename to dashboards-observability/public/components/event_analytics/explorer/timechart_header/index.ts
diff --git a/dashboards-observability/public/components/explorer/timechart_header/timechart_header.tsx b/dashboards-observability/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/timechart_header/timechart_header.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/timechart_header/timechart_header.tsx
diff --git a/dashboards-observability/public/components/explorer/visualizations/_mixins.scss b/dashboards-observability/public/components/event_analytics/explorer/visualizations/_mixins.scss
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/_mixins.scss
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/_mixins.scss
diff --git a/dashboards-observability/public/components/explorer/visualizations/_variables.scss b/dashboards-observability/public/components/event_analytics/explorer/visualizations/_variables.scss
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/_variables.scss
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/_variables.scss
diff --git a/dashboards-observability/public/components/explorer/visualizations/app.scss b/dashboards-observability/public/components/event_analytics/explorer/visualizations/app.scss
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/app.scss
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/app.scss
diff --git a/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap
new file mode 100644
index 000000000..69eda470d
--- /dev/null
+++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap
@@ -0,0 +1,6180 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Config panel component Renders config panel with visualization data 1`] = `
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Bar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
,
+ "id": "data-panel",
+ "name": "Data",
+ }
+ }
+ tabs={
+ Array [
+ Object {
+ "content":
,
+ "id": "data-panel",
+ "name": "Data",
+ },
+ Object {
+ "content":
,
+ "id": "style-panel",
+ "name": "Layout",
+ },
+ ]
+ }
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ X-axis
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Select a field
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Y-axis
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Select a field
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Orientation
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Select a field
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Mode
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Select a field
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`;
diff --git a/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/config_panel.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/config_panel.test.tsx
new file mode 100644
index 000000000..17744487d
--- /dev/null
+++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/config_panel.test.tsx
@@ -0,0 +1,52 @@
+/*
+ * Copyright OpenSearch Contributors
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import { configure, mount } from 'enzyme';
+import Adapter from 'enzyme-adapter-react-16';
+import React from 'react';
+import { waitFor } from '@testing-library/react';
+import { ConfigPanel } from '../config_panel';
+import {
+ TEST_VISUALIZATIONS_DATA,
+ EXPLORER_VISUALIZATIONS
+} from '../../../../../../../test/event_analytics_constants';
+import { TabContext } from '../../../../hooks';
+import PPLService from '../../../../../../services/requests/ppl';
+import httpClientMock from '../../../../../../../test/__mocks__/httpClientMock';
+
+jest.mock('!!raw-loader!./default.layout.spec.hjson', () => 'MOCK HJSON STRING');
+
+describe('Config panel component', () => {
+ configure({ adapter: new Adapter() });
+
+ it('Renders config panel with visualization data', async () => {
+ const setCurVisId = jest.fn();
+ const tabId = 'query-panel-1';
+ const curVisId = 'bar';
+ const pplService = new PPLService(httpClientMock);
+
+ const wrapper = mount(
+
+
+
+ );
+
+ wrapper.update();
+
+ await waitFor(() => {
+ expect(wrapper).toMatchSnapshot();
+ });
+ });
+});
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_panel.scss b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panel.scss
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/config_panel.scss
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panel.scss
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_panel.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panel.tsx
similarity index 91%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/config_panel.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panel.tsx
index 83a9012f0..f2eea5902 100644
--- a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_panel.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panel.tsx
@@ -17,13 +17,14 @@ import {
EuiComboBox,
EuiPanel,
EuiIcon,
+ EuiComboBoxOptionOption
} from '@elastic/eui';
-import { reset as resetVisualizationConfig } from '../../slices/viualization_config_slice';
+import { reset as resetVisualizationConfig } from '../../../redux/slices/viualization_config_slice';
import { getDefaultSpec } from '../visualization_specs/default_spec';
-import { TabContext } from '../../hooks';
-import { DefaultEditorControls } from './DefaultEditorControls';
-import { getVisType } from '../../../visualizations/charts/vis_types';
-import { ENABLED_VIS_TYPES } from '../../../../../common/constants/shared';
+import { TabContext } from '../../../hooks';
+import { DefaultEditorControls } from './config_panel_footer';
+import { getVisType } from '../../../../visualizations/charts/vis_types';
+import { ENABLED_VIS_TYPES } from '../../../../../../common/constants/shared';
const CONFIG_LAYOUT_TEMPLATE = `
{
@@ -152,12 +153,12 @@ export const ConfigPanel = ({ visualizations, setCurVisId }: any) => {
});
}, []);
- const vizSelectableItemRenderer = (option) => {
- const { iconType, label } = option;
+ const vizSelectableItemRenderer = (option: EuiComboBoxOptionOption) => {
+ const { iconType = 'empty', label = '' } = option;
return (
-
+
{label}
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/DefaultEditorControls.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panel_footer.tsx
similarity index 98%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/DefaultEditorControls.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panel_footer.tsx
index 4520102d2..44ad5584d 100644
--- a/dashboards-observability/public/components/explorer/visualizations/config_panel/DefaultEditorControls.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panel_footer.tsx
@@ -9,7 +9,6 @@ import {
EuiFlexItem,
EuiButton,
EuiButtonEmpty,
- EuiButtonToggle,
EuiToolTip,
} from '@elastic/eui';
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_chart_options.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_chart_options.tsx
similarity index 96%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_chart_options.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_chart_options.tsx
index db74dc66f..2f946ccb2 100644
--- a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_chart_options.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_chart_options.tsx
@@ -5,7 +5,7 @@
import React, { useMemo, useCallback } from 'react';
import { EuiAccordion, EuiSpacer } from '@elastic/eui';
-import { PanelItem } from '../../configPanelItem';
+import { PanelItem } from './config_panel_item';
export const ConfigChartOptions = ({
visualizations,
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_data_links.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_data_links.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_data_links.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_data_links.tsx
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_gauge_options.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_gauge_options.tsx
similarity index 92%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_gauge_options.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_gauge_options.tsx
index 6bfca43dd..fdb4b824b 100644
--- a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_gauge_options.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_gauge_options.tsx
@@ -4,10 +4,10 @@
*/
import React, { useMemo, useCallback } from 'react';
-import { indexOf, toString } from 'lodash';
+import { indexOf } from 'lodash';
import { EuiAccordion, EuiSpacer } from '@elastic/eui';
-import { PanelItem } from '../../configPanelItem';
-import { NUMERICAL_FIELDS } from '../../../../../../../common/constants/shared';
+import { PanelItem } from './config_panel_item';
+import { NUMERICAL_FIELDS } from '../../../../../../../../common/constants/shared';
export const ConfigGaugeValueOptions = ({
visualizations,
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/configPanelItem.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_panel_item.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/configPanelItem.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_panel_item.tsx
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_panel_options.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_panel_options.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_panel_options.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_panel_options.tsx
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_text.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_text.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_text.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_text.tsx
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_thresholds.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_thresholds.tsx
similarity index 98%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_thresholds.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_thresholds.tsx
index 6f07807e1..7033e0080 100644
--- a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_thresholds.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_thresholds.tsx
@@ -19,7 +19,7 @@ import {
htmlIdGenerator,
} from '@elastic/eui';
import { isEmpty } from 'lodash';
-import { PPL_SPAN_REGEX } from '../../../../../../../common/constants/shared';
+import { PPL_SPAN_REGEX } from '../../../../../../../../common/constants/shared';
export const ConfigThresholds = ({
visualizations,
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_value_options.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_value_options.tsx
similarity index 97%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_value_options.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_value_options.tsx
index f7ff2e609..7f0c75de5 100644
--- a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_value_options.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_value_options.tsx
@@ -5,7 +5,7 @@
import React, { useMemo, useCallback } from 'react';
import { EuiAccordion, EuiSpacer } from '@elastic/eui';
-import { PanelItem } from '../../configPanelItem';
+import { PanelItem } from './config_panel_item';
export const ConfigValueOptions = ({
visualizations,
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_visualization_selector.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_visualization_selector.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/config_visualization_selector.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_visualization_selector.tsx
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/index.ts b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/index.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_controls/index.ts
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/index.ts
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/default_vis_editor.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/default_vis_editor.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor.tsx
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_editor.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/json_editor.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/config_editor/config_editor.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/config_panes/json_editor.tsx
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/index.ts b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/index.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/config_panel/index.ts
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/index.ts
diff --git a/dashboards-observability/public/components/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap
diff --git a/dashboards-observability/public/components/explorer/visualizations/count_distribution/__tests__/count_distribution.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/count_distribution.test.tsx
similarity index 91%
rename from dashboards-observability/public/components/explorer/visualizations/count_distribution/__tests__/count_distribution.test.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/count_distribution.test.tsx
index 9ae80ea7c..9176ed34d 100644
--- a/dashboards-observability/public/components/explorer/visualizations/count_distribution/__tests__/count_distribution.test.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/count_distribution.test.tsx
@@ -8,7 +8,7 @@ import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import { waitFor } from '@testing-library/react';
import { CountDistribution } from '../count_distribution';
-import { SAMPLE_VISUALIZATIONS } from '../../../../../../test/event_analytics_constants';
+import { SAMPLE_VISUALIZATIONS } from '../../../../../../../test/event_analytics_constants';
describe('Count distribution component', () => {
configure({ adapter: new Adapter() });
diff --git a/dashboards-observability/public/components/explorer/visualizations/count_distribution/count_distribution.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/count_distribution/count_distribution.tsx
similarity index 86%
rename from dashboards-observability/public/components/explorer/visualizations/count_distribution/count_distribution.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/count_distribution/count_distribution.tsx
index 683873b5f..ec496a77f 100644
--- a/dashboards-observability/public/components/explorer/visualizations/count_distribution/count_distribution.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/count_distribution/count_distribution.tsx
@@ -4,8 +4,8 @@
*/
import React from 'react';
-import { LONG_CHART_COLOR } from '../../../../../common/constants/shared';
-import { Plt } from '../../../visualizations/plotly/plot';
+import { LONG_CHART_COLOR } from '../../../../../../common/constants/shared';
+import { Plt } from '../../../../visualizations/plotly/plot';
export const CountDistribution = ({ countDistribution }: any) => {
if (
diff --git a/dashboards-observability/public/components/explorer/visualizations/count_distribution/index.ts b/dashboards-observability/public/components/event_analytics/explorer/visualizations/count_distribution/index.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/count_distribution/index.ts
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/count_distribution/index.ts
diff --git a/dashboards-observability/public/components/explorer/visualizations/index.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/index.tsx
similarity index 95%
rename from dashboards-observability/public/components/explorer/visualizations/index.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/index.tsx
index 4042aab30..342a3c1ef 100644
--- a/dashboards-observability/public/components/explorer/visualizations/index.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/index.tsx
@@ -9,8 +9,8 @@ import _ from 'lodash';
import React from 'react';
import { EuiResizableContainer } from '@elastic/eui';
-import { SELECTED_TIMESTAMP } from '../../../../common/constants/explorer';
-import { IField, IQuery, IVisualizationContainerProps } from '../../../../common/types/explorer';
+import { SELECTED_TIMESTAMP } from '../../../../../common/constants/explorer';
+import { IField, IQuery, IVisualizationContainerProps } from '../../../../../common/types/explorer';
import { WorkspacePanel } from './workspace_panel';
import { ConfigPanel } from './config_panel';
import { Sidebar } from '../sidebar';
diff --git a/dashboards-observability/public/components/explorer/visualizations/shared_components/__tests__/__snapshots__/shared_components.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/__tests__/__snapshots__/shared_components.test.tsx.snap
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/shared_components/__tests__/__snapshots__/shared_components.test.tsx.snap
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/__tests__/__snapshots__/shared_components.test.tsx.snap
diff --git a/dashboards-observability/public/components/explorer/visualizations/shared_components/__tests__/shared_components.test.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/__tests__/shared_components.test.tsx
similarity index 92%
rename from dashboards-observability/public/components/explorer/visualizations/shared_components/__tests__/shared_components.test.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/__tests__/shared_components.test.tsx
index 89fd64289..f7ba12836 100644
--- a/dashboards-observability/public/components/explorer/visualizations/shared_components/__tests__/shared_components.test.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/__tests__/shared_components.test.tsx
@@ -8,7 +8,7 @@ import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import { waitFor } from '@testing-library/react';
import { EmptyPlaceholder } from '../empty_placeholder';
-import { LensIconChartBar } from '../../../../visualizations/assets/chart_bar';
+import { LensIconChartBar } from '../../../../../visualizations/assets/chart_bar';
import { ToolbarButton } from '../toolbar_button';
describe('Shared components', () => {
diff --git a/dashboards-observability/public/components/explorer/visualizations/shared_components/empty_placeholder.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/empty_placeholder.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/shared_components/empty_placeholder.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/empty_placeholder.tsx
diff --git a/dashboards-observability/public/components/explorer/visualizations/shared_components/index.ts b/dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/index.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/shared_components/index.ts
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/index.ts
diff --git a/dashboards-observability/public/components/explorer/visualizations/shared_components/plotly_viz_editor/index.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/plotly_viz_editor/index.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/shared_components/plotly_viz_editor/index.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/plotly_viz_editor/index.tsx
diff --git a/dashboards-observability/public/components/explorer/visualizations/shared_components/plotly_viz_editor/plotly_actions.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/plotly_viz_editor/plotly_actions.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/shared_components/plotly_viz_editor/plotly_actions.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/plotly_viz_editor/plotly_actions.tsx
diff --git a/dashboards-observability/public/components/explorer/visualizations/shared_components/plotly_viz_editor/plotly_editor.scss b/dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/plotly_viz_editor/plotly_editor.scss
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/shared_components/plotly_viz_editor/plotly_editor.scss
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/plotly_viz_editor/plotly_editor.scss
diff --git a/dashboards-observability/public/components/explorer/visualizations/shared_components/plotly_viz_editor/plotly_vis.scss b/dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/plotly_viz_editor/plotly_vis.scss
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/shared_components/plotly_viz_editor/plotly_vis.scss
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/plotly_viz_editor/plotly_vis.scss
diff --git a/dashboards-observability/public/components/explorer/visualizations/shared_components/plotly_viz_editor/plotly_viz_editor.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/plotly_viz_editor/plotly_viz_editor.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/shared_components/plotly_viz_editor/plotly_viz_editor.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/plotly_viz_editor/plotly_viz_editor.tsx
diff --git a/dashboards-observability/public/components/explorer/visualizations/shared_components/toolbar_button.scss b/dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/toolbar_button.scss
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/shared_components/toolbar_button.scss
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/toolbar_button.scss
diff --git a/dashboards-observability/public/components/explorer/visualizations/shared_components/toolbar_button.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/toolbar_button.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/shared_components/toolbar_button.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/shared_components/toolbar_button.tsx
diff --git a/dashboards-observability/public/components/explorer/visualizations/visualization_specs/default.data.spec.hjson b/dashboards-observability/public/components/event_analytics/explorer/visualizations/visualization_specs/default.data.spec.hjson
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/visualization_specs/default.data.spec.hjson
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/visualization_specs/default.data.spec.hjson
diff --git a/dashboards-observability/public/components/explorer/visualizations/visualization_specs/default.layout.spec.hjson b/dashboards-observability/public/components/event_analytics/explorer/visualizations/visualization_specs/default.layout.spec.hjson
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/visualization_specs/default.layout.spec.hjson
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/visualization_specs/default.layout.spec.hjson
diff --git a/dashboards-observability/public/components/explorer/visualizations/visualization_specs/default_spec.ts b/dashboards-observability/public/components/event_analytics/explorer/visualizations/visualization_specs/default_spec.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/visualization_specs/default_spec.ts
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/visualization_specs/default_spec.ts
diff --git a/dashboards-observability/public/components/explorer/visualizations/workspace_panel/index.ts b/dashboards-observability/public/components/event_analytics/explorer/visualizations/workspace_panel/index.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/workspace_panel/index.ts
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/workspace_panel/index.ts
diff --git a/dashboards-observability/public/components/explorer/visualizations/workspace_panel/workspace_panel.scss b/dashboards-observability/public/components/event_analytics/explorer/visualizations/workspace_panel/workspace_panel.scss
similarity index 100%
rename from dashboards-observability/public/components/explorer/visualizations/workspace_panel/workspace_panel.scss
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/workspace_panel/workspace_panel.scss
diff --git a/dashboards-observability/public/components/explorer/visualizations/workspace_panel/workspace_panel.tsx b/dashboards-observability/public/components/event_analytics/explorer/visualizations/workspace_panel/workspace_panel.tsx
similarity index 90%
rename from dashboards-observability/public/components/explorer/visualizations/workspace_panel/workspace_panel.tsx
rename to dashboards-observability/public/components/event_analytics/explorer/visualizations/workspace_panel/workspace_panel.tsx
index 525083525..aaf9a4542 100644
--- a/dashboards-observability/public/components/explorer/visualizations/workspace_panel/workspace_panel.tsx
+++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/workspace_panel/workspace_panel.tsx
@@ -8,9 +8,9 @@ import './workspace_panel.scss';
import React, { useState, useMemo } from 'react';
import { isEmpty } from 'lodash';
import { EuiPanel, EuiFlexGroup, EuiFlexItem, EuiSwitch, EuiSpacer } from '@elastic/eui';
-import { Visualization } from '../../../visualizations/visualization';
-import { DataTable } from '../../../visualizations/charts/data_table/data_table';
-import { uiSettingsService } from '../../../../../common/utils';
+import { Visualization } from '../../../../visualizations/visualization';
+import { DataTable } from '../../../../visualizations/charts/data_table/data_table';
+import { uiSettingsService } from '../../../../../../common/utils';
interface IWorkSpacePanel {
curVisId: string;
diff --git a/dashboards-observability/public/components/explorer/home_table/__tests__/__snapshots__/saved_query_table.test.tsx.snap b/dashboards-observability/public/components/event_analytics/home/__tests__/__snapshots__/saved_query_table.test.tsx.snap
similarity index 100%
rename from dashboards-observability/public/components/explorer/home_table/__tests__/__snapshots__/saved_query_table.test.tsx.snap
rename to dashboards-observability/public/components/event_analytics/home/__tests__/__snapshots__/saved_query_table.test.tsx.snap
diff --git a/dashboards-observability/public/components/explorer/home_table/__tests__/saved_query_table.test.tsx b/dashboards-observability/public/components/event_analytics/home/__tests__/saved_query_table.test.tsx
similarity index 94%
rename from dashboards-observability/public/components/explorer/home_table/__tests__/saved_query_table.test.tsx
rename to dashboards-observability/public/components/event_analytics/home/__tests__/saved_query_table.test.tsx
index c8e4eee8b..e76121016 100644
--- a/dashboards-observability/public/components/explorer/home_table/__tests__/saved_query_table.test.tsx
+++ b/dashboards-observability/public/components/event_analytics/home/__tests__/saved_query_table.test.tsx
@@ -7,7 +7,7 @@ import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import { waitFor } from '@testing-library/react';
-import { SavedQueryTable } from '../saved_query_table';
+import { SavedQueryTable } from '../saved_objects_table';
import { SAVED_HISTORIES } from '../../../../../test/event_analytics_constants';
describe('Saved query table component', () => {
diff --git a/dashboards-observability/public/components/explorer/home.scss b/dashboards-observability/public/components/event_analytics/home/home.scss
similarity index 100%
rename from dashboards-observability/public/components/explorer/home.scss
rename to dashboards-observability/public/components/event_analytics/home/home.scss
diff --git a/dashboards-observability/public/components/explorer/home.tsx b/dashboards-observability/public/components/event_analytics/home/home.tsx
similarity index 92%
rename from dashboards-observability/public/components/explorer/home.tsx
rename to dashboards-observability/public/components/event_analytics/home/home.tsx
index a07e7a0bb..5490d5b54 100644
--- a/dashboards-observability/public/components/explorer/home.tsx
+++ b/dashboards-observability/public/components/event_analytics/home/home.tsx
@@ -30,7 +30,7 @@ import {
EuiText,
EuiHorizontalRule,
} from '@elastic/eui';
-import { Search } from '../common/search/search';
+import { Search } from '../../common/search/search';
import {
RAW_QUERY,
TAB_ID_TXT_PFX,
@@ -39,26 +39,26 @@ import {
TAB_CREATED_TYPE,
NEW_TAB,
REDIRECT_TAB,
-} from '../../../common/constants/explorer';
+} from '../../../../common/constants/explorer';
import {
OBSERVABILITY_BASE,
EVENT_ANALYTICS,
SAVED_OBJECTS,
-} from '../../../common/constants/shared';
-import { EmptyTabParams, SavedQueryRes, SavedVizRes } from '../../../common/types/explorer';
-import { HttpStart } from '../../../../../src/core/public';
-import SavedObjects from '../../services/saved_objects/event_analytics/saved_objects';
-import { addTab, selectQueryTabs } from './slices/query_tab_slice';
-import { init as initFields } from './slices/field_slice';
-import { init as initQuery, changeQuery } from './slices/query_slice';
-import { init as initQueryResult, selectQueryResult } from './slices/query_result_slice';
-import { SavedQueryTable } from './home_table/saved_query_table';
-import { selectQueries } from './slices/query_slice';
-import { setSelectedQueryTab } from './slices/query_tab_slice';
-import { DeletePanelModal } from '../custom_panels/helpers/modal_containers';
-import { CUSTOM_PANELS_API_PREFIX } from '../../../common/constants/custom_panels';
-import { getSampleDataModal } from '../common/helpers/add_sample_modal';
-import { parseGetSuggestions, onItemSelect } from '../common/search/autocomplete_logic';
+} from '../../../../common/constants/shared';
+import { EmptyTabParams, SavedQueryRes, SavedVizRes } from '../../../../common/types/explorer';
+import { HttpStart } from '../../../../../../src/core/public';
+import SavedObjects from '../../../services/saved_objects/event_analytics/saved_objects';
+import { addTab, selectQueryTabs } from '../redux/slices/query_tab_slice';
+import { init as initFields } from '../redux/slices/field_slice';
+import { init as initQuery, changeQuery } from '../redux/slices/query_slice';
+import { init as initQueryResult, selectQueryResult } from '../redux/slices/query_result_slice';
+import { SavedQueryTable } from './saved_objects_table';
+import { selectQueries } from '../redux/slices/query_slice';
+import { setSelectedQueryTab } from '../redux/slices/query_tab_slice';
+import { DeletePanelModal } from '../../custom_panels/helpers/modal_containers';
+import { CUSTOM_PANELS_API_PREFIX } from '../../../../common/constants/custom_panels';
+import { getSampleDataModal } from '../../common/helpers/add_sample_modal';
+import { parseGetSuggestions, onItemSelect } from '../../common/search/autocomplete_logic';
interface IHomeProps {
pplService: any;
diff --git a/dashboards-observability/public/components/explorer/home_table/saved_query_table.tsx b/dashboards-observability/public/components/event_analytics/home/saved_objects_table.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/home_table/saved_query_table.tsx
rename to dashboards-observability/public/components/event_analytics/home/saved_objects_table.tsx
diff --git a/dashboards-observability/public/components/explorer/hooks/index.ts b/dashboards-observability/public/components/event_analytics/hooks/index.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/hooks/index.ts
rename to dashboards-observability/public/components/event_analytics/hooks/index.ts
diff --git a/dashboards-observability/public/components/explorer/hooks/use_fetch_events.ts b/dashboards-observability/public/components/event_analytics/hooks/use_fetch_events.ts
similarity index 94%
rename from dashboards-observability/public/components/explorer/hooks/use_fetch_events.ts
rename to dashboards-observability/public/components/event_analytics/hooks/use_fetch_events.ts
index 8abd87c99..dba08fd2c 100644
--- a/dashboards-observability/public/components/explorer/hooks/use_fetch_events.ts
+++ b/dashboards-observability/public/components/event_analytics/hooks/use_fetch_events.ts
@@ -15,10 +15,10 @@ import {
AVAILABLE_FIELDS,
QUERIED_FIELDS,
} from '../../../../common/constants/explorer';
-import { fetchSuccess, reset as queryResultReset } from '../slices/query_result_slice';
-import { selectQueries } from '../slices/query_slice';
-import { reset as visualizationReset } from '../slices/visualization_slice';
-import { updateFields, sortFields, selectFields } from '../slices/field_slice';
+import { fetchSuccess, reset as queryResultReset } from '../redux/slices/query_result_slice';
+import { selectQueries } from '../redux/slices/query_slice';
+import { reset as visualizationReset } from '../redux/slices/visualization_slice';
+import { updateFields, sortFields, selectFields } from '../redux/slices/field_slice';
import PPLService from '../../../services/requests/ppl';
interface IFetchEventsParams {
diff --git a/dashboards-observability/public/components/explorer/hooks/use_fetch_visualizations.ts b/dashboards-observability/public/components/event_analytics/hooks/use_fetch_visualizations.ts
similarity index 88%
rename from dashboards-observability/public/components/explorer/hooks/use_fetch_visualizations.ts
rename to dashboards-observability/public/components/event_analytics/hooks/use_fetch_visualizations.ts
index c60492c8c..866921201 100644
--- a/dashboards-observability/public/components/explorer/hooks/use_fetch_visualizations.ts
+++ b/dashboards-observability/public/components/event_analytics/hooks/use_fetch_visualizations.ts
@@ -12,12 +12,12 @@ import {
SELECTED_FIELDS,
SELECTED_TIMESTAMP,
} from '../../../../common/constants/explorer';
-import { render as renderCountDis } from '../slices/count_distribution_slice';
-import { selectQueries } from '../slices/query_slice';
-import { render as renderExplorerVis } from '../slices/visualization_slice';
-import { updateFields, sortFields } from '../slices/field_slice';
+import { render as renderCountDis } from '../redux/slices/count_distribution_slice';
+import { selectQueries } from '../redux/slices/query_slice';
+import { render as renderExplorerVis } from '../redux/slices/visualization_slice';
+import { updateFields, sortFields } from '../redux/slices/field_slice';
import PPLService from '../../../services/requests/ppl';
-import { fetchSuccess } from '../slices/query_result_slice';
+import { fetchSuccess } from '../redux/slices/query_result_slice';
interface IFetchVisualizationsParams {
pplService: PPLService;
diff --git a/dashboards-observability/public/components/explorer/hooks/use_tab_context.ts b/dashboards-observability/public/components/event_analytics/hooks/use_tab_context.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/hooks/use_tab_context.ts
rename to dashboards-observability/public/components/event_analytics/hooks/use_tab_context.ts
diff --git a/dashboards-observability/public/components/explorer/event_analytics.tsx b/dashboards-observability/public/components/event_analytics/index.tsx
similarity index 96%
rename from dashboards-observability/public/components/explorer/event_analytics.tsx
rename to dashboards-observability/public/components/event_analytics/index.tsx
index 7690e474d..edac5e494 100644
--- a/dashboards-observability/public/components/explorer/event_analytics.tsx
+++ b/dashboards-observability/public/components/event_analytics/index.tsx
@@ -11,8 +11,8 @@ import React, { ReactChild, useState } from 'react';
import { HashRouter, Route, Switch, useHistory } from 'react-router-dom';
import { RAW_QUERY } from '../../../common/constants/explorer';
import { ObservabilitySideBar } from '../common/side_nav';
-import { Home as EventExplorerHome } from './home';
-import { LogExplorer } from './log_explorer';
+import { Home as EventExplorerHome } from './home/home';
+import { LogExplorer } from './explorer/log_explorer';
export const EventAnalytics = ({
chrome,
diff --git a/dashboards-observability/public/components/explorer/reducers/fetch_reducers.ts b/dashboards-observability/public/components/event_analytics/redux/reducers/fetch_reducers.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/reducers/fetch_reducers.ts
rename to dashboards-observability/public/components/event_analytics/redux/reducers/fetch_reducers.ts
diff --git a/dashboards-observability/public/components/explorer/reducers/index.ts b/dashboards-observability/public/components/event_analytics/redux/reducers/index.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/reducers/index.ts
rename to dashboards-observability/public/components/event_analytics/redux/reducers/index.ts
diff --git a/dashboards-observability/public/components/explorer/reducers/query_reducers.ts b/dashboards-observability/public/components/event_analytics/redux/reducers/query_reducers.ts
similarity index 100%
rename from dashboards-observability/public/components/explorer/reducers/query_reducers.ts
rename to dashboards-observability/public/components/event_analytics/redux/reducers/query_reducers.ts
diff --git a/dashboards-observability/public/components/explorer/slices/count_distribution_slice.ts b/dashboards-observability/public/components/event_analytics/redux/slices/count_distribution_slice.ts
similarity index 86%
rename from dashboards-observability/public/components/explorer/slices/count_distribution_slice.ts
rename to dashboards-observability/public/components/event_analytics/redux/slices/count_distribution_slice.ts
index ad1331bfa..434682b25 100644
--- a/dashboards-observability/public/components/explorer/slices/count_distribution_slice.ts
+++ b/dashboards-observability/public/components/event_analytics/redux/slices/count_distribution_slice.ts
@@ -4,8 +4,8 @@
*/
import { createSlice } from '@reduxjs/toolkit';
-import { initialTabId } from '../../../framework/redux/store/shared_state';
-import { REDUX_EXPL_SLICE_COUNT_DISTRIBUTION } from '../../../../common/constants/explorer';
+import { initialTabId } from '../../../../framework/redux/store/shared_state';
+import { REDUX_EXPL_SLICE_COUNT_DISTRIBUTION } from '../../../../../common/constants/explorer';
const initialState = {
[initialTabId]: {},
diff --git a/dashboards-observability/public/components/explorer/slices/field_slice.ts b/dashboards-observability/public/components/event_analytics/redux/slices/field_slice.ts
similarity index 88%
rename from dashboards-observability/public/components/explorer/slices/field_slice.ts
rename to dashboards-observability/public/components/event_analytics/redux/slices/field_slice.ts
index 7519d2ef1..4c691d078 100644
--- a/dashboards-observability/public/components/explorer/slices/field_slice.ts
+++ b/dashboards-observability/public/components/event_analytics/redux/slices/field_slice.ts
@@ -5,15 +5,15 @@
import { createSlice } from '@reduxjs/toolkit';
import { forEach } from 'lodash';
-import { initialTabId } from '../../../framework/redux/store/shared_state';
+import { initialTabId } from '../../../../framework/redux/store/shared_state';
import {
SELECTED_FIELDS,
UNSELECTED_FIELDS,
AVAILABLE_FIELDS,
QUERIED_FIELDS,
REDUX_EXPL_SLICE_FIELDS,
-} from '../../../../common/constants/explorer';
-import { IField } from '../../../../common/types/explorer';
+} from '../../../../../common/constants/explorer';
+import { IField } from '../../../../../common/types/explorer';
const initialFields = {
[SELECTED_FIELDS]: [],
diff --git a/dashboards-observability/public/components/explorer/slices/query_result_slice.ts b/dashboards-observability/public/components/event_analytics/redux/slices/query_result_slice.ts
similarity index 83%
rename from dashboards-observability/public/components/explorer/slices/query_result_slice.ts
rename to dashboards-observability/public/components/event_analytics/redux/slices/query_result_slice.ts
index 2d3369d4a..0de05a6bf 100644
--- a/dashboards-observability/public/components/explorer/slices/query_result_slice.ts
+++ b/dashboards-observability/public/components/event_analytics/redux/slices/query_result_slice.ts
@@ -5,8 +5,8 @@
import { createSlice } from '@reduxjs/toolkit';
import { fetchSuccess as fetchSuccessReducer } from '../reducers';
-import { initialTabId } from '../../../framework/redux/store/shared_state';
-import { REDUX_EXPL_SLICE_QUERY_RESULT } from '../../../../common/constants/explorer';
+import { initialTabId } from '../../../../framework/redux/store/shared_state';
+import { REDUX_EXPL_SLICE_QUERY_RESULT } from '../../../../../common/constants/explorer';
const initialState = {
[initialTabId]: {},
diff --git a/dashboards-observability/public/components/explorer/slices/query_slice.ts b/dashboards-observability/public/components/event_analytics/redux/slices/query_slice.ts
similarity index 92%
rename from dashboards-observability/public/components/explorer/slices/query_slice.ts
rename to dashboards-observability/public/components/event_analytics/redux/slices/query_slice.ts
index 68677398d..6d82265e1 100644
--- a/dashboards-observability/public/components/explorer/slices/query_slice.ts
+++ b/dashboards-observability/public/components/event_analytics/redux/slices/query_slice.ts
@@ -4,7 +4,7 @@
*/
import { createSlice } from '@reduxjs/toolkit';
-import { initialTabId } from '../../../framework/redux/store/shared_state';
+import { initialTabId } from '../../../../framework/redux/store/shared_state';
import {
RAW_QUERY,
FINAL_QUERY,
@@ -13,7 +13,7 @@ import {
INDEX,
SELECTED_TIMESTAMP,
APP_ANALYTICS_TAB_ID_REGEX,
-} from '../../../../common/constants/explorer';
+} from '../../../../../common/constants/explorer';
const initialQueryState = {
[RAW_QUERY]: '',
diff --git a/dashboards-observability/public/components/explorer/slices/query_tab_slice.ts b/dashboards-observability/public/components/event_analytics/redux/slices/query_tab_slice.ts
similarity index 91%
rename from dashboards-observability/public/components/explorer/slices/query_tab_slice.ts
rename to dashboards-observability/public/components/event_analytics/redux/slices/query_tab_slice.ts
index d509b21ff..873986a34 100644
--- a/dashboards-observability/public/components/explorer/slices/query_tab_slice.ts
+++ b/dashboards-observability/public/components/event_analytics/redux/slices/query_tab_slice.ts
@@ -6,13 +6,13 @@
import {
createSlice
} from '@reduxjs/toolkit';
-import { initialTabId } from '../../../framework/redux/store/shared_state';
+import { initialTabId } from '../../../../framework/redux/store/shared_state';
import {
SELECTED_QUERY_TAB,
QUERY_TAB_IDS,
NEW_SELECTED_QUERY_TAB,
REDUX_EXPL_SLICE_QUERY_TABS
-} from '../../../../common/constants/explorer';
+} from '../../../../../common/constants/explorer';
import { assign } from 'lodash';
const initialState = {
diff --git a/dashboards-observability/public/components/explorer/slices/visualization_slice.ts b/dashboards-observability/public/components/event_analytics/redux/slices/visualization_slice.ts
similarity index 80%
rename from dashboards-observability/public/components/explorer/slices/visualization_slice.ts
rename to dashboards-observability/public/components/event_analytics/redux/slices/visualization_slice.ts
index 55888a499..d55d32017 100644
--- a/dashboards-observability/public/components/explorer/slices/visualization_slice.ts
+++ b/dashboards-observability/public/components/event_analytics/redux/slices/visualization_slice.ts
@@ -4,8 +4,8 @@
*/
import { createSlice } from '@reduxjs/toolkit';
-import { initialTabId } from '../../../framework/redux/store/shared_state';
-import { REDUX_EXPL_SLICE_VISUALIZATION } from '../../../../common/constants/explorer';
+import { initialTabId } from '../../../../framework/redux/store/shared_state';
+import { REDUX_EXPL_SLICE_VISUALIZATION } from '../../../../../common/constants/explorer';
const initialState = {
[initialTabId]: {},
diff --git a/dashboards-observability/public/components/explorer/slices/viualization_config_slice.ts b/dashboards-observability/public/components/event_analytics/redux/slices/viualization_config_slice.ts
similarity index 86%
rename from dashboards-observability/public/components/explorer/slices/viualization_config_slice.ts
rename to dashboards-observability/public/components/event_analytics/redux/slices/viualization_config_slice.ts
index bfdd94af1..08c1e5f32 100644
--- a/dashboards-observability/public/components/explorer/slices/viualization_config_slice.ts
+++ b/dashboards-observability/public/components/event_analytics/redux/slices/viualization_config_slice.ts
@@ -4,8 +4,8 @@
*/
import { createSlice } from '@reduxjs/toolkit';
-import { initialTabId } from '../../../framework/redux/store/shared_state';
-import { REDUX_EXPL_SLICE_VISUALIZATION } from '../../../../common/constants/explorer';
+import { initialTabId } from '../../../../framework/redux/store/shared_state';
+import { REDUX_EXPL_SLICE_VISUALIZATION } from '../../../../../common/constants/explorer';
const initialState = {
[initialTabId]: {},
diff --git a/dashboards-observability/public/components/explorer/utils/index.tsx b/dashboards-observability/public/components/event_analytics/utils/index.tsx
similarity index 100%
rename from dashboards-observability/public/components/explorer/utils/index.tsx
rename to dashboards-observability/public/components/event_analytics/utils/index.tsx
diff --git a/dashboards-observability/public/components/explorer/utils/utils.tsx b/dashboards-observability/public/components/event_analytics/utils/utils.tsx
similarity index 99%
rename from dashboards-observability/public/components/explorer/utils/utils.tsx
rename to dashboards-observability/public/components/event_analytics/utils/utils.tsx
index fc29e7a2f..d142f472f 100644
--- a/dashboards-observability/public/components/explorer/utils/utils.tsx
+++ b/dashboards-observability/public/components/event_analytics/utils/utils.tsx
@@ -8,7 +8,7 @@ import React from 'react';
import moment from 'moment';
import dateMath from '@elastic/datemath';
import { IExplorerFields, IField } from '../../../../common/types/explorer';
-import { DocViewRow, IDocType } from '../docTable';
+import { DocViewRow, IDocType } from '../explorer/events_views';
import { HttpStart } from '../../../../../../src/core/public';
import PPLService from '../../../services/requests/ppl';
import { TIME_INTERVAL_OPTIONS } from '../../../../common/constants/explorer';
diff --git a/dashboards-observability/public/components/explorer/__tests__/explorer.test.tsx b/dashboards-observability/public/components/explorer/__tests__/explorer.test.tsx
deleted file mode 100644
index 29078fed1..000000000
--- a/dashboards-observability/public/components/explorer/__tests__/explorer.test.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import { configure, mount } from 'enzyme';
-import Adapter from 'enzyme-adapter-react-16';
-import React, { MutableRefObject } from 'react';
-import { waitFor } from '@testing-library/react';
-import httpClientMock from '../../../../test/__mocks__/httpClientMock';
-// import { Explorer } from '../explorer';
-import PPLService from '../../../services/requests/ppl';
-import DSLService from '../../../services/requests/dsl';
-import SavedObjects from '../../../services/saved_objects/event_analytics/saved_objects';
-import TimestampUtils from '../../../services/timestamp/timestamp';
-import { coreStartMock } from '../../../../test/__mocks__/coreMocks';
-
-describe.skip('Event explorer component', () => {
- configure({ adapter: new Adapter() });
-
- it('Renders explorer component', async () => {
- const pplService = new PPLService(httpClientMock);
- const dslService = new DSLService(httpClientMock);
- const tabId = 'query-panel-1';
- const savedObjects = new SavedObjects(httpClientMock);
- const timestampUtils = new TimestampUtils(dslService);
- const setToast = jest.fn();
- const history = jest.fn() as any;
- history.replace = jest.fn();
- history.push = jest.fn();
- const notifications = coreStartMock.notifications;
- const savedObjectId = 'JIcoln0BYMuJGDsOLTnM';
-
- const wrapper = mount(
-
- );
-
- wrapper.update();
-
- await waitFor(() => {
- expect(wrapper).toMatchSnapshot();
- });
- });
-});
diff --git a/dashboards-observability/public/components/explorer/docTable/__tests__/__snapshots__/docViewerRow.test.tsx.snap b/dashboards-observability/public/components/explorer/docTable/__tests__/__snapshots__/docViewerRow.test.tsx.snap
deleted file mode 100644
index b023ef06d..000000000
--- a/dashboards-observability/public/components/explorer/docTable/__tests__/__snapshots__/docViewerRow.test.tsx.snap
+++ /dev/null
@@ -1,64 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Datagrid Doc viewer row component Renders Doc viewer row component 1`] = `
-
-
-
-
- |
-
- 45.957544288332315
- |
-
-
-`;
diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/table_helper.test.ts b/dashboards-observability/public/components/explorer/docTable/detailTable/table_helper.test.ts
deleted file mode 100644
index b714d76c5..000000000
--- a/dashboards-observability/public/components/explorer/docTable/detailTable/table_helper.test.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import { arrayContainsObjects } from './table_helper';
-
-describe('arrayContainsObjects', () => {
- it(`returns false for an array of primitives`, () => {
- const actual = arrayContainsObjects(['test', 'test']);
- expect(actual).toBeFalsy();
- });
-
- it(`returns true for an array of objects`, () => {
- const actual = arrayContainsObjects([{}, {}]);
- expect(actual).toBeTruthy();
- });
-
- it(`returns true for an array of objects and primitves`, () => {
- const actual = arrayContainsObjects([{}, 'sdf']);
- expect(actual).toBeTruthy();
- });
-
- it(`returns false for an array of null values`, () => {
- const actual = arrayContainsObjects([null, null]);
- expect(actual).toBeFalsy();
- });
-
- it(`returns false if no array is given`, () => {
- const actual = arrayContainsObjects([null, null]);
- expect(actual).toBeFalsy();
- });
-});
diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/table_helper.tsx b/dashboards-observability/public/components/explorer/docTable/detailTable/table_helper.tsx
deleted file mode 100644
index b0b3229d0..000000000
--- a/dashboards-observability/public/components/explorer/docTable/detailTable/table_helper.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-/**
- * Returns true if the given array contains at least 1 object
- */
-export function arrayContainsObjects(value: unknown[]): boolean {
- return Array.isArray(value) && value.some((v) => typeof v === 'object' && v !== null);
-}
-
-/**
- * Removes markup added by kibana fields html formatter
- */
-export function trimAngularSpan(text: string): string {
- return text.replace(/^/, '').replace(/<\/span>$/, '');
-}
diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_filter_add.tsx b/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_filter_add.tsx
deleted file mode 100644
index 09a1944d9..000000000
--- a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_filter_add.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import React from 'react';
-import { FormattedMessage } from '@osd/i18n/react';
-import { EuiToolTip, EuiButtonIcon } from '@elastic/eui';
-import { i18n } from '@osd/i18n';
-
-export interface Props {
- onClick: () => void;
- disabled: boolean;
-}
-
-export function DocViewTableRowBtnFilterAdd({ onClick, disabled = false }: Props) {
- const tooltipContent = disabled ? (
-
- ) : (
-
- );
-
- return (
-
-
-
- );
-}
diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_filter_exists.tsx b/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_filter_exists.tsx
deleted file mode 100644
index 494aec4c1..000000000
--- a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_filter_exists.tsx
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import React from 'react';
-import { FormattedMessage } from '@osd/i18n/react';
-import { EuiToolTip, EuiButtonIcon } from '@elastic/eui';
-import { i18n } from '@osd/i18n';
-
-export interface Props {
- onClick: () => void;
- disabled?: boolean;
- scripted?: boolean;
-}
-
-export function DocViewTableRowBtnFilterExists({
- onClick,
- disabled = false,
- scripted = false,
-}: Props) {
- const tooltipContent = disabled ? (
- scripted ? (
-
- ) : (
-
- )
- ) : (
-
- );
-
- return (
-
-
-
- );
-}
diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_filter_remove.tsx b/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_filter_remove.tsx
deleted file mode 100644
index 201fbf902..000000000
--- a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_filter_remove.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import React from 'react';
-import { FormattedMessage } from '@osd/i18n/react';
-import { EuiToolTip, EuiButtonIcon } from '@elastic/eui';
-import { i18n } from '@osd/i18n';
-
-export interface Props {
- onClick: () => void;
- disabled?: boolean;
-}
-
-export function DocViewTableRowBtnFilterRemove({ onClick, disabled = false }: Props) {
- const tooltipContent = disabled ? (
-
- ) : (
-
- );
-
- return (
-
-
-
- );
-}
diff --git a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_toggle_column.tsx b/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_toggle_column.tsx
deleted file mode 100644
index f9cc8a1cf..000000000
--- a/dashboards-observability/public/components/explorer/docTable/detailTable/table_row_btn_toggle_column.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import React from 'react';
-import { FormattedMessage } from '@osd/i18n/react';
-import { EuiToolTip, EuiButtonIcon } from '@elastic/eui';
-import { i18n } from '@osd/i18n';
-
-export interface Props {
- active: boolean;
- disabled?: boolean;
- onClick: () => void;
-}
-
-export function DocViewTableRowBtnToggleColumn({ onClick, active, disabled = false }: Props) {
- if (disabled) {
- return (
-
- );
- }
- return (
-
- }
- >
-
-
- );
-}
diff --git a/dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/datapanel.test.tsx.snap b/dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/datapanel.test.tsx.snap
deleted file mode 100644
index dbaf5c1fc..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/datapanel.test.tsx.snap
+++ /dev/null
@@ -1,6064 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Data panel component Renders data panel component 1`] = `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Available fields
-
-
- }
- extraAction={
-
- 20
-
- }
- id="1"
- initialIsOpen={false}
- isLoading={false}
- isLoadingMessage={false}
- paddingSize="none"
- >
-
-
-
-
-
-
- 20
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- agent
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- agent
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- bytes
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- bytes
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- clientip
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- clientip
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- event
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- event
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- extension
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- extension
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- geo
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- geo
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- host
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- host
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- index
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- index
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- ip
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- ip
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- machine
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- machine
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- memory
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- memory
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- message
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- message
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- phpmemory
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- phpmemory
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- referer
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- referer
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- request
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- request
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- response
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- response
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- tags
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- tags
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- timestamp
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- timestamp
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- url
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- url
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- utc_time
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- utc_time
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-`;
diff --git a/dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/field_accordion.test.tsx.snap b/dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/field_accordion.test.tsx.snap
deleted file mode 100644
index 3fba23c57..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/field_accordion.test.tsx.snap
+++ /dev/null
@@ -1,5693 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Visualization fields accordion component Renders fields accordion component 1`] = `
-
-
-
- Available fields
-
-
- }
- extraAction={
-
- 20
-
- }
- id="3367"
- initialIsOpen={false}
- isLoading={false}
- isLoadingMessage={false}
- paddingSize="none"
- >
-
-
-
-
-
-
- 20
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- agent
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- agent
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- bytes
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- bytes
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- clientip
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- clientip
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- event
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- event
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- extension
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- extension
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- geo
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- geo
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- host
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- host
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- index
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- index
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- ip
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- ip
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- machine
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- machine
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- memory
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- memory
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- message
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- message
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- phpmemory
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- phpmemory
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- referer
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- referer
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- request
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- request
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- response
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- response
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- tags
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- tags
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- timestamp
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- timestamp
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- url
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- url
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- utc_time
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- utc_time
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-`;
diff --git a/dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/field_item.test.tsx.snap b/dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/field_item.test.tsx.snap
deleted file mode 100644
index 437475812..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/field_item.test.tsx.snap
+++ /dev/null
@@ -1,278 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Visualization field item component Renders field item component 1`] = `
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- agent
-
- }
- isActive={false}
- onClick={[Function]}
- />
-
- }
- className="lnsFieldItem__popoverAnchor"
- closePopover={[Function]}
- data-test-subj="lnsFieldListPanelField"
- display="block"
- hasArrow={true}
- isOpen={false}
- ownFocus={true}
- panelClassName="lnsFieldItem__fieldPanel"
- panelPaddingSize="m"
- >
-
-
-
-
-
- }
- fieldInfoIcon={
-
- }
- fieldName={
-
- agent
-
- }
- isActive={false}
- onClick={[Function]}
- onDragEnd={[Function]}
- onDragLeave={[Function]}
- onDragOver={[Function]}
- onDragStart={[Function]}
- onDrop={[Function]}
- >
-
-
-
-
-
-
-
-
-
-
-
-`;
diff --git a/dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/field_list.test.tsx.snap b/dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/field_list.test.tsx.snap
deleted file mode 100644
index 50dd81e5b..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/field_list.test.tsx.snap
+++ /dev/null
@@ -1,237 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Visualization field list component Renders field list component 1`] = `
-
-
-
-
-
-
- Available fields
-
-
- }
- extraAction={
-
- 0
-
- }
- id="3327"
- initialIsOpen={false}
- isLoading={false}
- isLoadingMessage={false}
- paddingSize="none"
- >
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-`;
diff --git a/dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/lens_field_icon.test.tsx.snap b/dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/lens_field_icon.test.tsx.snap
deleted file mode 100644
index d9cbea0a6..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/__tests__/__snapshots__/lens_field_icon.test.tsx.snap
+++ /dev/null
@@ -1,55 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Visualization field icon component Renders field icon component 1`] = `
-
-
-
-
-
-
-
-
-
-
-
-
-
-`;
diff --git a/dashboards-observability/public/components/explorer/visualizations/__tests__/datapanel.test.tsx b/dashboards-observability/public/components/explorer/visualizations/__tests__/datapanel.test.tsx
deleted file mode 100644
index d6f99c338..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/__tests__/datapanel.test.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import { configure, mount } from 'enzyme';
-import Adapter from 'enzyme-adapter-react-16';
-import React from 'react';
-import { waitFor } from '@testing-library/react';
-import { DataPanel } from '../datapanel';
-import {
- SELECTED_FIELDS,
- AVAILABLE_FIELDS,
- UNSELECTED_FIELDS,
- QUERIED_FIELDS
-} from '../../../../../common/constants/explorer';
-import {
- AVAILABLE_FIELDS as SIDEBAR_AVAILABLE_FIELDS,
- QUERY_FIELDS
-} from '../../../../../test/event_analytics_constants';
-
-describe('Data panel component', () => {
- configure({ adapter: new Adapter() });
-
- const explorerFields = {
- [SELECTED_FIELDS]: [],
- [UNSELECTED_FIELDS]: [],
- [AVAILABLE_FIELDS]: SIDEBAR_AVAILABLE_FIELDS,
- [QUERIED_FIELDS]: QUERY_FIELDS
- };
- it('Renders data panel component', async () => {
-
- const wrapper = mount(
-
- );
-
- wrapper.update();
-
- await waitFor(() => {
- expect(wrapper).toMatchSnapshot();
- });
- });
-});
\ No newline at end of file
diff --git a/dashboards-observability/public/components/explorer/visualizations/__tests__/field_accordion.test.tsx b/dashboards-observability/public/components/explorer/visualizations/__tests__/field_accordion.test.tsx
deleted file mode 100644
index d171927b3..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/__tests__/field_accordion.test.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import { configure, mount } from 'enzyme';
-import Adapter from 'enzyme-adapter-react-16';
-import React from 'react';
-import { waitFor } from '@testing-library/react';
-import { FieldsAccordion } from '../fields_accordion';
-import {
- AVAILABLE_FIELDS
-} from '../../../../../test/event_analytics_constants';
-
-describe('Visualization fields accordion component', () => {
- configure({ adapter: new Adapter() });
-
- it('Renders fields accordion component', async () => {
-
- const wrapper = mount(
-
- );
-
- wrapper.update();
-
- await waitFor(() => {
- expect(wrapper).toMatchSnapshot();
- });
- });
-});
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap b/dashboards-observability/public/components/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap
deleted file mode 100644
index 319bdb828..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap
+++ /dev/null
@@ -1,3666 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Config panel component Renders config panel wrapper component with fields 1`] = `
-
-
- ,
- "id": "setting-panel",
- "name": "Settings",
- },
- ]
- }
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- X-axis
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- here goes advanced setting
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Y-axis
-
-
-
-
-
-
-
-
-
-
-
-
-
- Select a field
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- here goes advanced setting
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-`;
-
-exports[`Config panel component Renders empty config panel wrapper component 1`] = `
-
-
- ,
- "id": "setting-panel",
- "name": "Settings",
- },
- ]
- }
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- X-axis
-
-
-
-
-
-
-
-
-
-
-
-
-
- Select a field
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- here goes advanced setting
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Y-axis
-
-
-
-
-
-
-
-
-
-
-
-
-
- Select a field
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- here goes advanced setting
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-`;
-
-exports[`Config panel component Renders panel item component 1`] = `
-
-
- ,
- "id": "setting-panel",
- "name": "Settings",
- },
- ]
- }
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- X-axis
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- here goes advanced setting
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Y-axis
-
-
-
-
-
-
-
-
-
-
-
-
-
- Select a field
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- here goes advanced setting
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-`;
diff --git a/dashboards-observability/public/components/explorer/visualizations/config_panel/__tests__/config_panel.test.tsx b/dashboards-observability/public/components/explorer/visualizations/config_panel/__tests__/config_panel.test.tsx
deleted file mode 100644
index 24f76212a..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/config_panel/__tests__/config_panel.test.tsx
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import { configure, mount } from 'enzyme';
-import Adapter from 'enzyme-adapter-react-16';
-import React from 'react';
-import { waitFor } from '@testing-library/react';
-// import { ConfigPanel } from '../config_panel';
-import {
- SELECTED_FIELDS,
- AVAILABLE_FIELDS,
- UNSELECTED_FIELDS,
- QUERIED_FIELDS,
-} from '../../../../../../common/constants/explorer';
-import {
- AVAILABLE_FIELDS as SIDEBAR_AVAILABLE_FIELDS,
- QUERY_FIELDS,
-} from '../../../../../../test/event_analytics_constants';
-
-describe.skip('Config panel component', () => {
- configure({ adapter: new Adapter() });
-
- it('Renders empty config panel wrapper component', async () => {
- const wrapper = mount();
-
- wrapper.update();
-
- await waitFor(() => {
- expect(wrapper).toMatchSnapshot();
- });
- });
-
- it('Renders config panel wrapper component with fields', async () => {
- const explorerFields = {
- [SELECTED_FIELDS]: [],
- [UNSELECTED_FIELDS]: [],
- [AVAILABLE_FIELDS]: SIDEBAR_AVAILABLE_FIELDS,
- [QUERIED_FIELDS]: QUERY_FIELDS,
- };
-
- const wrapper = mount();
-
- wrapper.update();
-
- await waitFor(() => {
- expect(wrapper).toMatchSnapshot();
- });
- });
-
- it('Renders panel item component', async () => {
- const explorerFields = {
- [SELECTED_FIELDS]: [],
- [UNSELECTED_FIELDS]: [],
- [AVAILABLE_FIELDS]: SIDEBAR_AVAILABLE_FIELDS,
- [QUERIED_FIELDS]: QUERY_FIELDS,
- };
-
- const wrapper = mount();
-
- wrapper.update();
-
- await waitFor(() => {
- expect(wrapper).toMatchSnapshot();
- });
- });
-});
diff --git a/dashboards-observability/public/components/explorer/visualizations/datapanel.scss b/dashboards-observability/public/components/explorer/visualizations/datapanel.scss
deleted file mode 100644
index 9e97b1058..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/datapanel.scss
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-.lnsInnerIndexPatternDataPanel {
- width: 100%;
- height: 100%;
- padding: $euiSize $euiSize 0;
-}
-
-.lnsInnerIndexPatternDataPanel__header {
- display: flex;
- align-items: center;
- margin-bottom: $euiSizeS;
-}
-
-.lnsInnerIndexPatternDataPanel__fieldItems {
- // Quick fix for making sure the shadow and focus rings are visible outside the accordion bounds
- padding: $euiSizeXS;
-}
-
-.lnsInnerIndexPatternDataPanel__textField {
- @include euiFormControlLayoutPadding(1, 'right');
- @include euiFormControlLayoutPadding(1, 'left');
-}
-
-.lnsInnerIndexPatternDataPanel__filterType {
- font-size: $euiFontSizeS;
- padding: $euiSizeS;
- border-bottom: 1px solid $euiColorLightestShade;
-}
-
-.lnsInnerIndexPatternDataPanel__filterTypeInner {
- display: flex;
- align-items: center;
-
- .lnsFieldListPanel__fieldIcon {
- margin-right: $euiSizeS;
- }
-}
diff --git a/dashboards-observability/public/components/explorer/visualizations/datapanel.tsx b/dashboards-observability/public/components/explorer/visualizations/datapanel.tsx
deleted file mode 100644
index deccff299..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/datapanel.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import './datapanel.scss';
-import './field_item.scss';
-import React, { useState } from 'react';
-import _ from 'lodash';
-import {
- EuiFlexGroup,
- EuiFlexItem,
- EuiFormControlLayout,
- EuiSpacer
-} from '@elastic/eui';
-import { i18n } from '@osd/i18n';
-import { FieldList } from './fieldList';
-
-export const DataPanel = (props: any) => {
-
- const fields = props.explorerFields?.availableFields;
-
- const [searchTerm, setSearchTerm] = useState('');
-
- return (
-
-
- {},
- }}
- >
- {
- setSearchTerm(e.target.value);
- }}
- aria-label={i18n.translate('xpack.lens.indexPatterns.filterByNameAriaLabel', {
- defaultMessage: 'Search fields',
- })}
- />
-
-
-
-
- searchTerm === '' || field.name.indexOf(searchTerm) !== -1) }
- />
-
-
- );
-}
\ No newline at end of file
diff --git a/dashboards-observability/public/components/explorer/visualizations/drag_drop/drag_drop.scss b/dashboards-observability/public/components/explorer/visualizations/drag_drop/drag_drop.scss
deleted file mode 100644
index cc5399d13..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/drag_drop/drag_drop.scss
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-@import '../variables';
-@import '../mixins';
-
-.lnsDragDrop {
- transition: background-color $euiAnimSpeedFast ease-in-out, border-color $euiAnimSpeedFast ease-in-out;
-}
-
-// Draggable item
-.lnsDragDrop-isDraggable {
- @include lnsDraggable;
- @include lnsDragDropHover;
-
- // Include a possible nested button like when using FieldButton
- > .kbnFieldButton__button {
- cursor: grab;
- }
-
- &:focus {
- @include euiFocusRing;
- }
-}
-
-// Draggable item when it is moving
-.lnsDragDrop-isHidden {
- opacity: 0;
-}
-
-// Drop area
-.lnsDragDrop-isDroppable {
- @include lnsDroppable;
-}
-
-// Drop area when there's an item being dragged
-.lnsDragDrop-isDropTarget {
- @include lnsDroppableActive;
-}
-
-// Drop area while hovering with item
-.lnsDragDrop-isActiveDropTarget {
- @include lnsDroppableActiveHover;
-}
-
-// Drop area that is not allowed for current item
-.lnsDragDrop-isNotDroppable {
- @include lnsDroppableNotAllowed;
-}
-
-// Drop area will be replacing existing content
-.lnsDragDrop-isReplacing {
- &,
- .lnsLayerPanel__triggerLink {
- text-decoration: line-through;
- }
-}
diff --git a/dashboards-observability/public/components/explorer/visualizations/drag_drop/drag_drop.tsx b/dashboards-observability/public/components/explorer/visualizations/drag_drop/drag_drop.tsx
deleted file mode 100644
index 2d47eb175..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/drag_drop/drag_drop.tsx
+++ /dev/null
@@ -1,249 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import './drag_drop.scss';
-
-import React, { useState, useContext } from 'react';
-import classNames from 'classnames';
-import { DragContext } from './providers';
-// import { trackUiEvent } from '../lens_ui_telemetry';
-
-type DroppableEvent = React.DragEvent;
-
-/**
- * A function that handles a drop event.
- */
-export type DropHandler = (item: unknown) => void;
-
-/**
- * The base props to the DragDrop component.
- */
-interface BaseProps {
- /**
- * The CSS class(es) for the root element.
- */
- className?: string;
-
- /**
- * The event handler that fires when an item
- * is dropped onto this DragDrop component.
- */
- onDrop?: DropHandler;
-
- /**
- * The value associated with this item, if it is draggable.
- * If this component is dragged, this will be the value of
- * "dragging" in the root drag/drop context.
- */
- value?: unknown;
-
- /**
- * Optional comparison function to check whether a value is the dragged one
- */
- isValueEqual?: (value1: unknown, value2: unknown) => boolean;
-
- /**
- * The React element which will be passed the draggable handlers
- */
- children: React.ReactElement;
-
- /**
- * Indicates whether or not the currently dragged item
- * can be dropped onto this component.
- */
- droppable?: boolean;
-
- /**
- * Additional class names to apply when another element is over the drop target
- */
- getAdditionalClassesOnEnter?: () => string;
-
- /**
- * The optional test subject associated with this DOM element.
- */
- 'data-test-subj'?: string;
-
- /**
- * Indicates to the user whether the currently dragged item
- * will be moved or copied
- */
- dragType?: 'copy' | 'move';
-
- /**
- * Indicates to the user whether the drop action will
- * replace something that is existing or add a new one
- */
- dropType?: 'add' | 'replace';
-}
-
-/**
- * The props for a draggable instance of that component.
- */
-interface DraggableProps extends BaseProps {
- /**
- * Indicates whether or not this component is draggable.
- */
- draggable: true;
- /**
- * The label, which should be attached to the drag event, and which will e.g.
- * be used if the element will be dropped into a text field.
- */
- label: string;
-}
-
-/**
- * The props for a non-draggable instance of that component.
- */
-interface NonDraggableProps extends BaseProps {
- /**
- * Indicates whether or not this component is draggable.
- */
- draggable?: false;
-}
-
-type Props = DraggableProps | NonDraggableProps;
-
-/**
- * A draggable / droppable item. Items can be both draggable and droppable at
- * the same time.
- *
- * @param props
- */
-
-export const DragDrop = (props: Props) => {
- const { dragging, setDragging } = useContext(DragContext);
- const { value, draggable, droppable, isValueEqual } = props;
- return (
-
- );
-};
-
-const DragDropInner = React.memo(function DragDropInner(
- props: Props & {
- dragging: unknown;
- setDragging: (dragging: unknown) => void;
- isDragging: boolean;
- isNotDroppable: boolean;
- }
-) {
- const [state, setState] = useState({
- isActive: false,
- dragEnterClassNames: '',
- });
- const {
- className,
- onDrop,
- value,
- children,
- droppable,
- draggable,
- dragging,
- setDragging,
- isDragging,
- isNotDroppable,
- dragType = 'copy',
- dropType = 'add',
- } = props;
-
- const isMoveDragging = isDragging && dragType === 'move';
-
- const classes = classNames(
- 'lnsDragDrop',
- {
- 'lnsDragDrop-isDraggable': draggable,
- 'lnsDragDrop-isDragging': isDragging,
- 'lnsDragDrop-isHidden': isMoveDragging,
- 'lnsDragDrop-isDroppable': !draggable,
- 'lnsDragDrop-isDropTarget': droppable,
- 'lnsDragDrop-isActiveDropTarget': droppable && state.isActive,
- 'lnsDragDrop-isNotDroppable': !isMoveDragging && isNotDroppable,
- 'lnsDragDrop-isReplacing': droppable && state.isActive && dropType === 'replace',
- },
- className,
- state.dragEnterClassNames
- );
-
- const dragStart = (e: DroppableEvent) => {
- // Setting stopPropgagation causes Chrome failures, so
- // we are manually checking if we've already handled this
- // in a nested child, and doing nothing if so...
- if (e.dataTransfer.getData('text')) {
- return;
- }
-
- // We only can reach the dragStart method if the element is draggable,
- // so we know we have DraggableProps if we reach this code.
- e.dataTransfer.setData('text', (props as DraggableProps).label);
-
- // Chrome causes issues if you try to render from within a
- // dragStart event, so we drop a setTimeout to avoid that.
- setTimeout(() => setDragging(value));
- };
-
- const dragEnd = (e: DroppableEvent) => {
- e.stopPropagation();
- setDragging(undefined);
- };
-
- const dragOver = (e: DroppableEvent) => {
- if (!droppable) {
- return;
- }
-
- e.preventDefault();
-
- // An optimization to prevent a bunch of React churn.
- if (!state.isActive) {
- setState({
- ...state,
- isActive: true,
- dragEnterClassNames: props.getAdditionalClassesOnEnter
- ? props.getAdditionalClassesOnEnter()
- : '',
- });
- }
- };
-
- const dragLeave = () => {
- setState({ ...state, isActive: false, dragEnterClassNames: '' });
- };
-
- const drop = (e: DroppableEvent) => {
- e.preventDefault();
- e.stopPropagation();
-
- setState({ ...state, isActive: false, dragEnterClassNames: '' });
- setDragging(undefined);
-
- if (onDrop && droppable) {
- // trackUiEvent('drop_total');
- onDrop(dragging);
- }
- };
-
- return React.cloneElement(children, {
- 'data-test-subj': props['data-test-subj'] || 'lnsDragDrop',
- className: classNames(children.props.className, classes),
- onDragOver: dragOver,
- onDragLeave: dragLeave,
- onDrop: drop,
- draggable,
- onDragEnd: dragEnd,
- onDragStart: dragStart,
- });
-});
diff --git a/dashboards-observability/public/components/explorer/visualizations/drag_drop/index.ts b/dashboards-observability/public/components/explorer/visualizations/drag_drop/index.ts
deleted file mode 100644
index e2a5489cd..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/drag_drop/index.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-export * from './providers';
-export * from './drag_drop';
diff --git a/dashboards-observability/public/components/explorer/visualizations/drag_drop/providers.tsx b/dashboards-observability/public/components/explorer/visualizations/drag_drop/providers.tsx
deleted file mode 100644
index d5105277b..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/drag_drop/providers.tsx
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import React, { useState, useMemo } from 'react';
-
-/**
- * The shape of the drag / drop context.
- */
-export interface DragContextState {
- /**
- * The item being dragged or undefined.
- */
- dragging: unknown;
-
- /**
- * Set the item being dragged.
- */
- setDragging: (dragging: unknown) => void;
-}
-
-/**
- * The drag / drop context singleton, used like so:
- *
- * const { dragging, setDragging } = useContext(DragContext);
- */
-export const DragContext = React.createContext({
- dragging: undefined,
- setDragging: () => {},
-});
-
-/**
- * The argument to DragDropProvider.
- */
-export interface ProviderProps {
- /**
- * The item being dragged. If unspecified, the provider will
- * behave as if it is the root provider.
- */
- dragging: unknown;
-
- /**
- * Sets the item being dragged. If unspecified, the provider
- * will behave as if it is the root provider.
- */
- setDragging: (dragging: unknown) => void;
-
- /**
- * The React children.
- */
- children: React.ReactNode;
-}
-
-/**
- * A React provider that tracks the dragging state. This should
- * be placed at the root of any React application that supports
- * drag / drop.
- *
- * @param props
- */
-export function RootDragDropProvider({ children }: { children: React.ReactNode }) {
- const [state, setState] = useState<{ dragging: unknown }>({
- dragging: undefined,
- });
- const setDragging = useMemo(() => (dragging: unknown) => setState({ dragging }), [setState]);
-
- return (
-
- {children}
-
- );
-}
-
-/**
- * A React drag / drop provider that derives its state from a RootDragDropProvider. If
- * part of a React application is rendered separately from the root, this provider can
- * be used to enable drag / drop functionality within the disconnected part.
- *
- * @param props
- */
-export function ChildDragDropProvider({ dragging, setDragging, children }: ProviderProps) {
- const value = useMemo(() => ({ dragging, setDragging }), [setDragging, dragging]);
- return {children};
-}
diff --git a/dashboards-observability/public/components/explorer/visualizations/drag_drop/readme.md b/dashboards-observability/public/components/explorer/visualizations/drag_drop/readme.md
deleted file mode 100644
index 8d11cb622..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/drag_drop/readme.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# Drag / Drop
-
-This is a simple drag / drop mechanism that plays nice with React.
-
-We aren't using EUI or another library, due to the fact that Lens visualizations and datasources may or may not be written in React. Even visualizations which are written in React will end up having their own ReactDOM.render call, and in that sense will be a standalone React application. We want to enable drag / drop across React and native DOM boundaries.
-
-## Getting started
-
-First, place a RootDragDropProvider at the root of your application.
-
-```js
-
- ... your app here ...
-
-```
-
-If you have a child React application (e.g. a visualization), you will need to pass the drag / drop context down into it. This can be obtained like so:
-
-```js
-const context = useContext(DragContext);
-```
-
-In your child application, place a `ChildDragDropProvider` at the root of that, and spread the context into it:
-
-```js
-
- ... your child app here ...
-
-```
-
-This enables your child application to share the same drag / drop context as the root application.
-
-## Dragging
-
-An item can be both draggable and droppable at the same time, but for simplicity's sake, we'll treat these two cases separately.
-
-To enable dragging an item, use `DragDrop` with both a `draggable` and a `value` attribute.
-
-```js
-
- {fields.map(f => (
-
- {f.name}
-
- ))}
-
-```
-
-## Dropping
-
-To enable dropping, use `DragDrop` with both a `droppable` attribute and an `onDrop` handler attribute. Droppable should only be set to true if there is an item being dragged, and if a drop of the dragged item is supported.
-
-```js
-const { dragging } = useContext(DragContext);
-
-return (
- onChange([...items, item])}
- >
- {items.map(x => {x.name}
)}
-
-);
-```
-
-## Limitations
-
-Currently this is a very simple drag / drop mechanism. We don't support reordering out of the box, though it could probably be built on top of this solution without modification of the core.
diff --git a/dashboards-observability/public/components/explorer/visualizations/fieldList.tsx b/dashboards-observability/public/components/explorer/visualizations/fieldList.tsx
deleted file mode 100644
index 0375cd680..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/fieldList.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import React from 'react';
-import { FieldsAccordion } from './fields_accordion';
-
-export const FieldList = (
- {
- fields,
- id
- }: any
-) => {
-
- return (
-
- );
-};
\ No newline at end of file
diff --git a/dashboards-observability/public/components/explorer/visualizations/field_item.scss b/dashboards-observability/public/components/explorer/visualizations/field_item.scss
deleted file mode 100644
index 670884bb9..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/field_item.scss
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-.lnsFieldItem {
- .lnsFieldItem__infoIcon {
- visibility: hidden;
- opacity: 0;
- }
-
- &:hover:not([class*='isActive']) {
- cursor: grab;
-
- .lnsFieldItem__infoIcon {
- visibility: visible;
- opacity: 1;
- transition: opacity $euiAnimSpeedFast ease-in-out 1s;
- }
- }
-}
-
-.lnsFieldItem--missing {
- background: lightOrDarkTheme(transparentize($euiColorMediumShade, .9), $euiColorEmptyShade);
- color: $euiColorDarkShade;
-}
-
-.lnsFieldItem__topValue {
- margin-bottom: $euiSizeS;
-
- &:last-of-type {
- margin-bottom: 0;
- }
-}
-
-.lnsFieldItem__topValueProgress {
- background-color: $euiColorLightestShade;
-
- // sass-lint:disable-block no-vendor-prefixes
- &::-webkit-progress-bar {
- background-color: $euiColorLightestShade;
- }
-}
-
-.lnsFieldItem__fieldPanel {
- min-width: 260px;
- max-width: 300px;
-}
-
-.lnsFieldItem__buttonGroup {
- // Enforce lowercase for buttons or else some browsers inherit all caps from flyout title
- text-transform: none;
-}
diff --git a/dashboards-observability/public/components/explorer/visualizations/field_item.tsx b/dashboards-observability/public/components/explorer/visualizations/field_item.tsx
deleted file mode 100644
index 0405b3df0..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/field_item.tsx
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import './field_item.scss';
-
-import React, { useState } from 'react';
-import {
- EuiIconTip,
- EuiPopover
-} from '@elastic/eui';
-import { i18n } from '@osd/i18n';
-import { EuiHighlight } from '@elastic/eui';
-import { FieldButton } from '../../common/field_button';
-import { DragDrop } from './drag_drop';
-import { LensFieldIcon } from './lens_field_icon';
-
-import { debouncedComponent } from '../../common/debounced_component';
-
-function wrapOnDot(str?: string) {
- // u200B is a non-width white-space character, which allows
- // the browser to efficiently word-wrap right after the dot
- // without us having to draw a lot of extra DOM elements, etc
- return str ? str.replace(/\./g, '.\u200B') : '';
-}
-
-export const InnerFieldItem = function InnerFieldItem(props: any) {
- const {
- field,
- highlight,
- exists,
- hideDetails,
- } = props;
-
- const [infoIsOpen, setOpen] = useState(false);
-
- function togglePopover() {}
-
- const lensFieldIcon = ;
- const lensInfoIcon = (
-
- );
- return (
- ('.application') || undefined}
- button={
-
-
- {wrapOnDot(field.name)}
-
- }
- fieldInfoIcon={lensInfoIcon}
- />
-
- }
- isOpen={infoIsOpen}
- closePopover={() => setOpen(false)}
- anchorPosition="rightUp"
- panelClassName="lnsFieldItem__fieldPanel"
- >
-
- );
-};
-
-export const FieldItem = debouncedComponent(InnerFieldItem);
diff --git a/dashboards-observability/public/components/explorer/visualizations/field_list.scss b/dashboards-observability/public/components/explorer/visualizations/field_list.scss
deleted file mode 100644
index 33faa8dfe..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/field_list.scss
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-/**
- * 1. Don't cut off the shadow of the field items
- */
-
-.lnsIndexPatternFieldList {
- @include euiOverflowShadow;
- @include euiScrollBar;
- margin-left: -$euiSize; /* 1 */
- position: relative;
- flex-grow: 1;
- overflow: auto;
-}
-
-.lnsIndexPatternFieldList__accordionContainer {
- padding-top: $euiSizeS;
- position: absolute;
- top: 0;
- left: $euiSize; /* 1 */
- right: $euiSizeXS; /* 1 */
-}
diff --git a/dashboards-observability/public/components/explorer/visualizations/fields_accordion.tsx b/dashboards-observability/public/components/explorer/visualizations/fields_accordion.tsx
deleted file mode 100644
index 955558d3d..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/fields_accordion.tsx
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import './datapanel.scss';
-import React, { memo, useCallback } from 'react';
-import { i18n } from '@osd/i18n';
-import {
- EuiText,
- EuiNotificationBadge,
- EuiSpacer,
- EuiAccordion,
- EuiLoadingSpinner,
- EuiIconTip,
-} from '@elastic/eui';
-import { FieldItem } from './field_item';
-
-export const InnerFieldsAccordion = function InnerFieldsAccordion({
- id,
- label,
- isFiltered,
- paginatedFields,
- showExistenceFetchError,
-}: any) {
- const renderField = useCallback(
- (field) => (
-
- ),
- []
- );
-
- return (
-
- {label}
-
- }
- extraAction={
- showExistenceFetchError ? (
-
- ) : true ? (
-
- {paginatedFields?.length}
-
- ) : (
-
- )
- }
- >
-
-
- {paginatedFields && paginatedFields.map(renderField)}
-
-
- );
-};
-
-export const FieldsAccordion = memo(InnerFieldsAccordion);
diff --git a/dashboards-observability/public/components/explorer/visualizations/frame_layout.scss b/dashboards-observability/public/components/explorer/visualizations/frame_layout.scss
deleted file mode 100644
index 8d07d5a0a..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/frame_layout.scss
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-$lnsPanelMinWidth: $euiSize * 18;
-
-// These sizes also match canvas' page thumbnails for consistency
-$lnsSuggestionHeight: 100px;
-$lnsSuggestionWidth: 150px;
-
-.lnsFrameLayout {
- padding: 0;
- // position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- overflow: hidden;
- flex-direction: column;
-}
-
-.lnsFrameLayout__pageContent {
- display: flex;
- overflow: hidden;
- flex-grow: 1;
-}
-
-.lnsFrameLayout__pageBody {
- @include euiScrollBar;
- min-width: $lnsPanelMinWidth + $euiSizeXL;
- max-height: 100%;
- overflow: hidden auto;
- // Leave out bottom padding so the suggestions scrollbar stays flush to window edge
- // Leave out left padding so the left sidebar's focus states are visible outside of content bounds
- // This also means needing to add same amount of margin to page content and suggestion items
- padding: $euiSize $euiSize 0;
-
- &:first-child {
- padding-left: $euiSize;
- }
-}
-
-.lnsFrameLayout__sidebar {
- margin: 0 16px 0;
- flex: 1 0 18%;
- min-width: $lnsPanelMinWidth + $euiSize;
- display: flex;
- flex-direction: column;
- position: relative;
-}
-
-.lnsFrameLayout__sidebar--right {
- flex-basis: 25%;
- background-color: lightOrDarkTheme($euiColorLightestShade, $euiColorInk);
- min-width: $lnsPanelMinWidth + $euiSizeXL;
- max-width: $euiFormMaxWidth + $euiSizeXXL;
- max-height: 100%;
-
- .lnsConfigPanel {
- @include euiScrollBar;
- padding: $euiSize 0 $euiSize $euiSize;
- overflow-x: hidden;
- overflow-y: scroll;
- }
-}
diff --git a/dashboards-observability/public/components/explorer/visualizations/frame_layout.tsx b/dashboards-observability/public/components/explorer/visualizations/frame_layout.tsx
deleted file mode 100644
index 86781b213..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/frame_layout.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import './frame_layout.scss';
-
-import React from 'react';
-import { EuiPage, EuiPageSideBar, EuiPageBody } from '@elastic/eui';
-
-export interface FrameLayoutProps {
- dataPanel: React.ReactNode;
- configPanel?: React.ReactNode;
- suggestionsPanel?: React.ReactNode;
- workspacePanel?: React.ReactNode;
-}
-
-export function FrameLayout(props: FrameLayoutProps) {
- return (
-
-
-
- {props.workspacePanel}
-
-
- {props.configPanel}
-
-
-
- );
-}
diff --git a/dashboards-observability/public/components/explorer/visualizations/lens_field_icon.tsx b/dashboards-observability/public/components/explorer/visualizations/lens_field_icon.tsx
deleted file mode 100644
index 59c947bce..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/lens_field_icon.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import React from 'react';
-import { FieldIcon } from '../../common/field_icon';
-export function LensFieldIcon({ type, ...rest }) {
- return (
-
- );
-}
-
-export function normalizeOperationDataType(type) {
- return type === 'document' ? 'number' : type;
-}
diff --git a/dashboards-observability/public/components/explorer/visualizations/workspace_panel/chart_switch.scss b/dashboards-observability/public/components/explorer/visualizations/workspace_panel/chart_switch.scss
deleted file mode 100644
index 4c90496cd..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/workspace_panel/chart_switch.scss
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-.lnsChartSwitch__header {
- > * {
- display: flex;
- align-items: center;
- }
-}
-
-.lnsChartSwitch__summaryIcon {
- margin-right: $euiSizeS;
- transform: translateY(-1px);
- color: $euiTextSubduedColor;
-}
-
-// Targeting img as this won't target normal EuiIcon's only the custom svgs's
-img.lnsChartSwitch__chartIcon { // sass-lint:disable-line no-qualifying-elements
- // The large icons aren't square so max out the width to fill the height
- width: 100%;
-}
-
-.lnsChartSwitch__search {
- width: 4 * $euiSizeXXL;
-}
\ No newline at end of file
diff --git a/dashboards-observability/public/components/explorer/visualizations/workspace_panel/chart_switch.tsx b/dashboards-observability/public/components/explorer/visualizations/workspace_panel/chart_switch.tsx
deleted file mode 100644
index 4d96e88df..000000000
--- a/dashboards-observability/public/components/explorer/visualizations/workspace_panel/chart_switch.tsx
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import './chart_switch.scss';
-
-import React, { useState } from 'react';
-import { i18n } from '@osd/i18n';
-import {
- EuiPopover,
- EuiPopoverTitle,
- EuiFlexGroup,
- EuiFlexItem,
- EuiKeyPadMenu,
- EuiKeyPadMenuItem,
- EuiIcon,
-} from '@elastic/eui';
-import { ToolbarButton } from '../shared_components/toolbar_button';
-import { getPlotlyCategory } from '../../../visualizations/charts/shared/shared_configs';
-
-function VisualizationSummary(vis: any) {
- return (
- <>
-
- {vis.label}
- >
- );
-}
-
-const VIS_CATEGORY = getPlotlyCategory('list');
-
-export const ChartSwitch = ({ setVis, vis, visualizationTypes }: any) => {
- const [flyoutOpen, setFlyoutOpen] = useState(false);
-
- const popoverWrappedSwitch = (
- setFlyoutOpen(!flyoutOpen)}
- data-test-subj="lnsChartSwitchPopover"
- fontWeight="bold"
- >
-
-
- }
- isOpen={flyoutOpen}
- closePopover={() => setFlyoutOpen(false)}
- anchorPosition="downLeft"
- >
- {VIS_CATEGORY.map((vis_category) => {
- return (
- <>
-
-
-
- {i18n.translate('xpack.lens.configPanel.chartType', {
- defaultMessage: `${vis_category}`,
- })}
-
-
-
-
- {visualizationTypes
- .filter((v) => vis_category === v.category)
- .map((v) => (
- {v.label}}
- title={v.fullLabel}
- role="menuitem"
- data-test-subj={`lnsChartSwitchPopover_${v.id}`}
- onClick={() => {
- setVis(v.id);
- setFlyoutOpen(false);
- }}
- betaBadgeLabel={
- v.selection.dataLoss !== 'nothing'
- ? i18n.translate('xpack.lens.chartSwitch.dataLossLabel', {
- defaultMessage: 'Data loss',
- })
- : undefined
- }
- betaBadgeTooltipContent={
- v.selection.dataLoss !== 'nothing'
- ? i18n.translate('xpack.lens.chartSwitch.dataLossDescription', {
- defaultMessage:
- 'Switching to this chart will lose some of the configuration',
- })
- : undefined
- }
- betaBadgeIconType={v.selection.dataLoss !== 'nothing' ? 'alert' : undefined}
- >
-
-
- ))}
-
- >
- );
- })}
-
- );
-
- return {popoverWrappedSwitch}
;
-};
diff --git a/dashboards-observability/public/components/trace_analytics/components/common/legacy_route_helpers.ts b/dashboards-observability/public/components/trace_analytics/components/common/legacy_route_helpers.ts
new file mode 100644
index 000000000..139456bf5
--- /dev/null
+++ b/dashboards-observability/public/components/trace_analytics/components/common/legacy_route_helpers.ts
@@ -0,0 +1,14 @@
+/*
+ * Copyright OpenSearch Contributors
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import { observabilityID } from "../../../../../common/constants/shared";
+
+export const convertLegacyTraceAnalyticsUrl = (location: Location)=> {
+ const pathname = location.pathname.replace('trace-analytics-dashboards', observabilityID);
+ const hash = `#/trace_analytics${location.hash.replace(/^#/, '/home')}${
+ location.hash.includes('?') ? location.search.replace(/^\?/, '&') : location.search
+ }`;
+ return pathname + hash;
+};
diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap
index 9a16cf5d6..a9ebf70b0 100644
--- a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap
+++ b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap
@@ -2,8 +2,8 @@
exports[`Bar component Renders bar component 1`] = `
-
-
-
-
-
-
-`;
-
-exports[`Bar component Renders bar component 2`] = `
-
@@ -310,17 +403,34 @@ exports[`Bar component Renders bar component 2`] = `
data={
Array [
Object {
+ "marker": Object {
+ "color": Array [
+ "#3CA1C7",
+ "#8C55A3",
+ "#DB748A",
+ "#F2BE4B",
+ "#68CCC2",
+ "#2A7866",
+ ],
+ },
"name": "count()",
+ "orientation": "v",
"type": "bar",
"x": Array [
- "2021-05-01 00:00:00",
- "2021-06-01 00:00:00",
- "2021-07-01 00:00:00",
+ "error",
+ "info",
+ "login",
+ "security",
+ "success",
+ "warning",
],
"y": Array [
- 2549,
- 9337,
- 1173,
+ 154,
+ 1753,
+ 116,
+ 468,
+ 1964,
+ 219,
],
},
]
@@ -329,7 +439,7 @@ exports[`Bar component Renders bar component 2`] = `
layout={
Object {
"autosize": true,
- "barmode": "stack",
+ "barmode": "",
"colorway": Array [
"#8C55A3",
],
@@ -347,23 +457,17 @@ exports[`Bar component Renders bar component 2`] = `
"t": 30,
},
"showlegend": true,
+ "title": "",
"xaxis": Object {
"automargin": true,
- "autorange": true,
- "range": Array [
- "2021-04-16",
- "2021-07-16",
- ],
- "type": "date",
+ "rangemode": "normal",
+ "showgrid": true,
+ "zeroline": false,
},
"yaxis": Object {
- "automargin": true,
- "autorange": true,
- "range": Array [
- 0,
- 9828.421052631578,
- ],
- "type": "linear",
+ "rangemode": "normal",
+ "showgrid": true,
+ "zeroline": false,
},
}
}
diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/data_table.test.tsx.snap b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/data_table.test.tsx.snap
new file mode 100644
index 000000000..7108292e5
--- /dev/null
+++ b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/data_table.test.tsx.snap
@@ -0,0 +1,498 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Data table component Renders data table component 1`] = `
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`;
diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap
new file mode 100644
index 000000000..d59b50b98
--- /dev/null
+++ b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap
@@ -0,0 +1,419 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Heatmap component Renders heatmap component 1`] = `
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ No results found
+
+
+
+
+
+
+
+
+
+
+
+`;
diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap
deleted file mode 100644
index f73261fc7..000000000
--- a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap
+++ /dev/null
@@ -1,567 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Horizontal bar component Renders horizontal bar component 1`] = `
-
-
-
-
-
-
-
-
-
-`;
-
-exports[`Horizontal bar component Renders horizontal bar component 2`] = `
-
-
-
-
-
-
-
-
-
-`;
diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap
index 915d62476..96effb73e 100644
--- a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap
+++ b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap
@@ -2,8 +2,8 @@
exports[`Line component Renders line component 1`] = `
-
-
-
-
-
-
-`;
-
-exports[`Line component Renders line component 2`] = `
-
@@ -316,17 +392,24 @@ exports[`Line component Renders line component 2`] = `
data={
Array [
Object {
+ "mode": "line",
"name": "count()",
"type": "line",
"x": Array [
- "2021-05-01 00:00:00",
- "2021-06-01 00:00:00",
- "2021-07-01 00:00:00",
+ "error",
+ "info",
+ "login",
+ "security",
+ "success",
+ "warning",
],
"y": Array [
- 2549,
- 9337,
- 1173,
+ 154,
+ 1753,
+ 116,
+ 468,
+ 1964,
+ 219,
],
},
]
@@ -335,7 +418,7 @@ exports[`Line component Renders line component 2`] = `
layout={
Object {
"autosize": true,
- "barmode": "line",
+ "barmode": "stack",
"colorway": Array [
"#8C55A3",
],
@@ -352,26 +435,18 @@ exports[`Line component Renders line component 2`] = `
"r": 10,
"t": 30,
},
- "paper_bgcolor": "rgba(0, 0, 0, 0)",
- "plot_bgcolor": "rgba(0, 0, 0, 0)",
"showlegend": true,
+ "title": "",
"xaxis": Object {
"automargin": true,
- "autorange": true,
- "range": Array [
- "2021-04-27 03:45:50.6702",
- "2021-07-04 20:14:09.3298",
- ],
- "type": "date",
+ "rangemode": "normal",
+ "showgrid": true,
+ "zeroline": false,
},
"yaxis": Object {
- "automargin": true,
- "autorange": true,
- "range": Array [
- 425.69084628670123,
- 10084.309153713299,
- ],
- "type": "linear",
+ "rangemode": "normal",
+ "showgrid": true,
+ "zeroline": false,
},
}
}
diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap
new file mode 100644
index 000000000..9d7f69aa8
--- /dev/null
+++ b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap
@@ -0,0 +1,482 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Pie component Renders pie component 1`] = `
+
+
+
+
+
+
+
+`;
diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/text.test.tsx.snap b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/text.test.tsx.snap
new file mode 100644
index 000000000..ad95f0fc3
--- /dev/null
+++ b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/text.test.tsx.snap
@@ -0,0 +1,356 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Text component Renders text component 1`] = `
+
+
+
+
+
+
+ Text
+
+
+
+
+ Welcome to text editor!
+
+
+
+
+ With text editor, you are able to add text description(s) to your dashboards.
+
+
+
+
+
+
+`;
diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/bar.test.tsx b/dashboards-observability/public/components/visualizations/charts/__tests__/bar.test.tsx
index 3e56516fd..421f5f27c 100644
--- a/dashboards-observability/public/components/visualizations/charts/__tests__/bar.test.tsx
+++ b/dashboards-observability/public/components/visualizations/charts/__tests__/bar.test.tsx
@@ -10,19 +10,18 @@ import { waitFor } from '@testing-library/react';
import { Bar } from '../bar/bar';
import {
LAYOUT_CONFIG,
- SAMPLE_VISUALIZATIONS,
+ TEST_VISUALIZATIONS_DATA
} from '../../../../../test/event_analytics_constants';
-describe.skip('Bar component', () => {
+describe('Bar component', () => {
configure({ adapter: new Adapter() });
it('Renders bar component', async () => {
const wrapper = mount(
);
diff --git a/dashboards-observability/public/components/explorer/visualizations/__tests__/field_item.test.tsx b/dashboards-observability/public/components/visualizations/charts/__tests__/data_table.test.tsx
similarity index 52%
rename from dashboards-observability/public/components/explorer/visualizations/__tests__/field_item.test.tsx
rename to dashboards-observability/public/components/visualizations/charts/__tests__/data_table.test.tsx
index c5e4cd8f8..e6826ac2a 100644
--- a/dashboards-observability/public/components/explorer/visualizations/__tests__/field_item.test.tsx
+++ b/dashboards-observability/public/components/visualizations/charts/__tests__/data_table.test.tsx
@@ -7,26 +7,19 @@ import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import { waitFor } from '@testing-library/react';
-import { FieldItem } from '../field_item';
-import {
- AVAILABLE_FIELDS
-} from '../../../../../test/event_analytics_constants';
+import { DataTable } from '../data_table/data_table';
+import { TEST_VISUALIZATIONS_DATA } from '../../../../../test/event_analytics_constants';
-describe('Visualization field item component', () => {
+describe('Data table component', () => {
configure({ adapter: new Adapter() });
- it('Renders field item component', async () => {
-
+ it('Renders data table component', async () => {
const wrapper = mount(
-
);
-
+
wrapper.update();
await waitFor(() => {
diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/horizontal_bar.test.tsx b/dashboards-observability/public/components/visualizations/charts/__tests__/heatmap.test.tsx
similarity index 60%
rename from dashboards-observability/public/components/visualizations/charts/__tests__/horizontal_bar.test.tsx
rename to dashboards-observability/public/components/visualizations/charts/__tests__/heatmap.test.tsx
index 744783727..530e65908 100644
--- a/dashboards-observability/public/components/visualizations/charts/__tests__/horizontal_bar.test.tsx
+++ b/dashboards-observability/public/components/visualizations/charts/__tests__/heatmap.test.tsx
@@ -7,22 +7,21 @@ import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import { waitFor } from '@testing-library/react';
-import { HorizontalBar } from '../horizontal_bar';
+import { HeatMap } from '../maps/heatmap';
import {
LAYOUT_CONFIG,
- SAMPLE_VISUALIZATIONS,
+ TEST_VISUALIZATIONS_DATA
} from '../../../../../test/event_analytics_constants';
-describe.skip('Horizontal bar component', () => {
+describe('Heatmap component', () => {
configure({ adapter: new Adapter() });
- it('Renders horizontal bar component', async () => {
+ it('Renders heatmap component', async () => {
const wrapper = mount(
-
);
diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/line.test.tsx b/dashboards-observability/public/components/visualizations/charts/__tests__/line.test.tsx
index b5cce02e3..cbbc51819 100644
--- a/dashboards-observability/public/components/visualizations/charts/__tests__/line.test.tsx
+++ b/dashboards-observability/public/components/visualizations/charts/__tests__/line.test.tsx
@@ -10,19 +10,18 @@ import { waitFor } from '@testing-library/react';
import { Line } from '../lines/line';
import {
LAYOUT_CONFIG,
- SAMPLE_VISUALIZATIONS,
+ TEST_VISUALIZATIONS_DATA
} from '../../../../../test/event_analytics_constants';
-describe.skip('Line component', () => {
+describe('Line component', () => {
configure({ adapter: new Adapter() });
it('Renders line component', async () => {
const wrapper = mount(
);
diff --git a/dashboards-observability/public/components/explorer/visualizations/__tests__/field_list.test.tsx b/dashboards-observability/public/components/visualizations/charts/__tests__/pie.test.tsx
similarity index 64%
rename from dashboards-observability/public/components/explorer/visualizations/__tests__/field_list.test.tsx
rename to dashboards-observability/public/components/visualizations/charts/__tests__/pie.test.tsx
index 15f97b5c2..44f6675ec 100644
--- a/dashboards-observability/public/components/explorer/visualizations/__tests__/field_list.test.tsx
+++ b/dashboards-observability/public/components/visualizations/charts/__tests__/pie.test.tsx
@@ -7,23 +7,24 @@ import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import { waitFor } from '@testing-library/react';
-import { FieldList } from '../fieldList';
-import {
- AVAILABLE_FIELDS
+import { Pie } from '../pie/pie';
+import {
+ LAYOUT_CONFIG,
+ TEST_VISUALIZATIONS_DATA
} from '../../../../../test/event_analytics_constants';
-describe('Visualization field list component', () => {
+describe('Pie component', () => {
configure({ adapter: new Adapter() });
- it('Renders field list component', async () => {
-
+ it('Renders pie component', async () => {
const wrapper = mount(
-
);
-
+
wrapper.update();
await waitFor(() => {
diff --git a/dashboards-observability/public/components/explorer/visualizations/__tests__/lens_field_icon.test.tsx b/dashboards-observability/public/components/visualizations/charts/__tests__/text.test.tsx
similarity index 61%
rename from dashboards-observability/public/components/explorer/visualizations/__tests__/lens_field_icon.test.tsx
rename to dashboards-observability/public/components/visualizations/charts/__tests__/text.test.tsx
index bdc846feb..62cea476c 100644
--- a/dashboards-observability/public/components/explorer/visualizations/__tests__/lens_field_icon.test.tsx
+++ b/dashboards-observability/public/components/visualizations/charts/__tests__/text.test.tsx
@@ -7,23 +7,23 @@ import { configure, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import React from 'react';
import { waitFor } from '@testing-library/react';
-import { LensFieldIcon } from '../lens_field_icon';
+import { Text } from '../text/text';
+import { TEST_VISUALIZATIONS_DATA } from '../../../../../test/event_analytics_constants';
-describe('Visualization field icon component', () => {
+describe('Text component', () => {
configure({ adapter: new Adapter() });
- it('Renders field icon component', async () => {
-
+ it('Renders text component', async () => {
const wrapper = mount(
-
);
-
+
wrapper.update();
await waitFor(() => {
expect(wrapper).toMatchSnapshot();
});
});
-});
\ No newline at end of file
+});
diff --git a/dashboards-observability/public/components/visualizations/charts/bar/bar_type.ts b/dashboards-observability/public/components/visualizations/charts/bar/bar_type.ts
index 4f51c08e5..9e851d48b 100644
--- a/dashboards-observability/public/components/visualizations/charts/bar/bar_type.ts
+++ b/dashboards-observability/public/components/visualizations/charts/bar/bar_type.ts
@@ -6,13 +6,9 @@
import { Bar } from './bar';
import { getPlotlySharedConfigs, getPlotlyCategory } from '../shared/shared_configs';
import { LensIconChartBar } from '../../assets/chart_bar';
-import { VizDataPanel } from '../../../explorer/visualizations/config_panel/config_editor/default_vis_editor';
-import { ConfigEditor } from '../../../explorer/visualizations/config_panel/config_editor/config_editor';
-import {
- ConfigValueOptions,
- ConfigDataLinks,
- ConfigThresholds,
-} from '../../../explorer/visualizations/config_panel/config_editor/config_controls';
+import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor';
+import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor';
+import { ConfigValueOptions } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls';
const sharedConfigs = getPlotlySharedConfigs();
const VIS_CATEGORY = getPlotlyCategory();
diff --git a/dashboards-observability/public/components/visualizations/charts/bar/horizontal_bar_type.ts b/dashboards-observability/public/components/visualizations/charts/bar/horizontal_bar_type.ts
index 9a3523208..cbc25a1dc 100644
--- a/dashboards-observability/public/components/visualizations/charts/bar/horizontal_bar_type.ts
+++ b/dashboards-observability/public/components/visualizations/charts/bar/horizontal_bar_type.ts
@@ -1,9 +1,9 @@
import { Bar } from './bar';
import { getPlotlySharedConfigs, getPlotlyCategory } from '../shared/shared_configs';
import { LensIconChartBar } from '../../assets/chart_bar';
-import { VizDataPanel } from '../../../explorer/visualizations/config_panel/config_editor/default_vis_editor';
-import { ConfigEditor } from '../../../explorer/visualizations/config_panel/config_editor/config_editor';
-import { ConfigValueOptions } from '../../../explorer/visualizations/config_panel/config_editor/config_controls';
+import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor';
+import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor';
+import { ConfigValueOptions } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls';
const sharedConfigs = getPlotlySharedConfigs();
const VIS_CATEGORY = getPlotlyCategory();
diff --git a/dashboards-observability/public/components/visualizations/charts/bubble/bubble_type.ts b/dashboards-observability/public/components/visualizations/charts/bubble/bubble_type.ts
index 03b8181c2..091298ce5 100644
--- a/dashboards-observability/public/components/visualizations/charts/bubble/bubble_type.ts
+++ b/dashboards-observability/public/components/visualizations/charts/bubble/bubble_type.ts
@@ -6,9 +6,9 @@
import { Bubble } from './bubble';
import { getPlotlySharedConfigs, getPlotlyCategory } from '../shared/shared_configs';
import { LensIconChartPie } from '../../assets/chart_pie';
-import { VizDataPanel } from '../../../explorer/visualizations/config_panel/config_editor/default_vis_editor';
-import { ConfigEditor } from '../../../explorer/visualizations/config_panel/config_editor/config_editor';
-import { ConfigValueOptions } from '../../../explorer/visualizations/config_panel/config_editor/config_controls';
+import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor';
+import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor';
+import { ConfigValueOptions } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls';
const sharedConfigs = getPlotlySharedConfigs();
const VIS_CATEGORY = getPlotlyCategory();
diff --git a/dashboards-observability/public/components/visualizations/charts/financial/candle_stick/candle_stick_type.ts b/dashboards-observability/public/components/visualizations/charts/financial/candle_stick/candle_stick_type.ts
index d7d17db80..df9dd2fa9 100644
--- a/dashboards-observability/public/components/visualizations/charts/financial/candle_stick/candle_stick_type.ts
+++ b/dashboards-observability/public/components/visualizations/charts/financial/candle_stick/candle_stick_type.ts
@@ -6,9 +6,9 @@
import { CandleStick } from './candle_stick';
import { getPlotlySharedConfigs, getPlotlyCategory } from '../../shared/shared_configs';
import { LensIconChartBar } from '../../../assets/chart_bar';
-import { VizDataPanel } from '../../../../explorer/visualizations/config_panel/config_editor/default_vis_editor';
-import { ConfigEditor } from '../../../../explorer/visualizations/config_panel/config_editor/config_editor';
-import { ConfigValueOptions } from '../../../../explorer/visualizations/config_panel/config_editor/config_controls';
+import { VizDataPanel } from '../../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor';
+import { ConfigEditor } from '../../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor';
+import { ConfigValueOptions } from '../../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls';
const sharedConfigs = getPlotlySharedConfigs();
const VIS_CATEGORY = getPlotlyCategory();
diff --git a/dashboards-observability/public/components/visualizations/charts/financial/gauge/gauge_type.ts b/dashboards-observability/public/components/visualizations/charts/financial/gauge/gauge_type.ts
index 8201814ca..e5e91b7db 100644
--- a/dashboards-observability/public/components/visualizations/charts/financial/gauge/gauge_type.ts
+++ b/dashboards-observability/public/components/visualizations/charts/financial/gauge/gauge_type.ts
@@ -6,13 +6,13 @@
import { Gauge } from './gauge';
import { getPlotlySharedConfigs, getPlotlyCategory } from '../../shared/shared_configs';
import { LensIconChartLine } from '../../../assets/chart_line';
-import { VizDataPanel } from '../../../../explorer/visualizations/config_panel/config_editor/default_vis_editor';
-import { ConfigEditor } from '../../../../explorer/visualizations/config_panel/config_editor/config_editor';
+import { VizDataPanel } from '../../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor';
+import { ConfigEditor } from '../../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor';
import {
ConfigValueOptions,
ConfigThresholds,
ConfigGaugeValueOptions,
-} from '../../../../explorer/visualizations/config_panel/config_editor/config_controls';
+} from '../../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls';
const sharedConfigs = getPlotlySharedConfigs();
const VIS_CATEGORY = getPlotlyCategory();
diff --git a/dashboards-observability/public/components/visualizations/charts/histogram/histogram_type.ts b/dashboards-observability/public/components/visualizations/charts/histogram/histogram_type.ts
index fbc9543f5..3e6e0d967 100644
--- a/dashboards-observability/public/components/visualizations/charts/histogram/histogram_type.ts
+++ b/dashboards-observability/public/components/visualizations/charts/histogram/histogram_type.ts
@@ -6,9 +6,9 @@
import { Histogram } from './histogram';
import { getPlotlySharedConfigs, getPlotlyCategory } from '../shared/shared_configs';
import { LensIconChartLine } from '../../assets/chart_line';
-import { VizDataPanel } from '../../../explorer/visualizations/config_panel/config_editor/default_vis_editor';
-import { ConfigEditor } from '../../../explorer/visualizations/config_panel/config_editor/config_editor';
-import { ConfigValueOptions } from '../../../explorer/visualizations/config_panel/config_editor/config_controls';
+import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor';
+import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor';
+import { ConfigValueOptions } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls';
const sharedConfigs = getPlotlySharedConfigs();
const VIS_CATEGORY = getPlotlyCategory();
diff --git a/dashboards-observability/public/components/visualizations/charts/horizontal_bar.tsx b/dashboards-observability/public/components/visualizations/charts/horizontal_bar.tsx
deleted file mode 100644
index 0875f3861..000000000
--- a/dashboards-observability/public/components/visualizations/charts/horizontal_bar.tsx
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright OpenSearch Contributors
- * SPDX-License-Identifier: Apache-2.0
- */
-
-import React from 'react';
-import { merge } from 'lodash';
-import { Bar } from './bar/bar';
-
-interface IBarTrace {
- xvalues: any[];
- yvalues: any[];
- mode: string;
- name: string;
-}
-
-export interface IStackedBarProps {
- name: string;
- barValues: IBarTrace[];
- layoutConfig?: any;
-}
-
-export const HorizontalBar = ({
- visualizations,
- layoutConfig = {},
- dispatch,
- customVizData,
-}: any) => {
- // const horizontalBarLayoutConfig = merge(
- // {
- // yaxis: {
- // automargin: true,
- // },
- // },
- // layoutConfig
- // );
-
- return (
-
- );
-};
diff --git a/dashboards-observability/public/components/visualizations/charts/lines/line_type.ts b/dashboards-observability/public/components/visualizations/charts/lines/line_type.ts
index 74cde8ffe..68e0df75e 100644
--- a/dashboards-observability/public/components/visualizations/charts/lines/line_type.ts
+++ b/dashboards-observability/public/components/visualizations/charts/lines/line_type.ts
@@ -7,12 +7,12 @@ import { Line } from './line';
import { getPlotlySharedConfigs, getPlotlyCategory } from '../shared/shared_configs';
import { LensIconChartLine } from '../../assets/chart_line';
import { PLOTLY_COLOR } from '../../../../../common/constants/shared';
-import { VizDataPanel } from '../../../explorer/visualizations/config_panel/config_editor/default_vis_editor';
-import { ConfigEditor } from '../../../explorer/visualizations/config_panel/config_editor/config_editor';
+import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor';
+import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor';
import {
ConfigValueOptions,
ConfigThresholds,
-} from '../../../explorer/visualizations/config_panel/config_editor/config_controls';
+} from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls';
const sharedConfigs = getPlotlySharedConfigs();
const VIS_CATEGORY = getPlotlyCategory();
diff --git a/dashboards-observability/public/components/visualizations/charts/maps/heatmap.tsx b/dashboards-observability/public/components/visualizations/charts/maps/heatmap.tsx
index cb565284f..db746b50f 100644
--- a/dashboards-observability/public/components/visualizations/charts/maps/heatmap.tsx
+++ b/dashboards-observability/public/components/visualizations/charts/maps/heatmap.tsx
@@ -8,7 +8,7 @@ import { uniq, has, isArray, isEmpty } from 'lodash';
import Plotly from 'plotly.js-dist';
import { Plt } from '../../plotly/plot';
import { PLOTLY_COLOR } from '../../../../../common/constants/shared';
-import { EmptyPlaceholder } from '../../../../components/explorer/visualizations/shared_components/empty_placeholder';
+import { EmptyPlaceholder } from '../../../event_analytics/explorer/visualizations/shared_components/empty_placeholder';
export const HeatMap = ({ visualizations, layout, config }: any) => {
const {
diff --git a/dashboards-observability/public/components/visualizations/charts/maps/heatmap_type.ts b/dashboards-observability/public/components/visualizations/charts/maps/heatmap_type.ts
index daa5fa3b8..269e429c2 100644
--- a/dashboards-observability/public/components/visualizations/charts/maps/heatmap_type.ts
+++ b/dashboards-observability/public/components/visualizations/charts/maps/heatmap_type.ts
@@ -6,9 +6,9 @@
import { HeatMap } from './heatmap';
import { getPlotlySharedConfigs, getPlotlyCategory } from '../shared/shared_configs';
import { LensIconChartPie } from '../../assets/chart_pie';
-import { VizDataPanel } from '../../../explorer/visualizations/config_panel/config_editor/default_vis_editor';
-import { ConfigEditor } from '../../../explorer/visualizations/config_panel/config_editor/config_editor';
-import { ConfigValueOptions } from '../../../explorer/visualizations/config_panel/config_editor/config_controls';
+import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor';
+import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor';
+import { ConfigValueOptions } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls';
const sharedConfigs = getPlotlySharedConfigs();
const VIS_CATEGORY = getPlotlyCategory();
diff --git a/dashboards-observability/public/components/visualizations/charts/maps/treemap_type.ts b/dashboards-observability/public/components/visualizations/charts/maps/treemap_type.ts
index d25665e1e..74330f342 100644
--- a/dashboards-observability/public/components/visualizations/charts/maps/treemap_type.ts
+++ b/dashboards-observability/public/components/visualizations/charts/maps/treemap_type.ts
@@ -6,9 +6,9 @@
import { TreeMap } from './treemaps';
import { getPlotlySharedConfigs, getPlotlyCategory } from '../shared/shared_configs';
import { LensIconChartBar } from '../../assets/chart_bar';
-import { VizDataPanel } from '../../../explorer/visualizations/config_panel/config_editor/default_vis_editor';
-import { ConfigEditor } from '../../../explorer/visualizations/config_panel/config_editor/config_editor';
-import { ConfigValueOptions } from '../../../explorer/visualizations/config_panel/config_editor/config_controls';
+import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor';
+import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor';
+import { ConfigValueOptions } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls';
const sharedConfigs = getPlotlySharedConfigs();
const VIS_CATEGORY = getPlotlyCategory();
diff --git a/dashboards-observability/public/components/visualizations/charts/pie/pie.tsx b/dashboards-observability/public/components/visualizations/charts/pie/pie.tsx
index 961d090d1..0c07892e9 100644
--- a/dashboards-observability/public/components/visualizations/charts/pie/pie.tsx
+++ b/dashboards-observability/public/components/visualizations/charts/pie/pie.tsx
@@ -4,9 +4,8 @@
*/
import React from 'react';
-import { take, merge, isEmpty } from 'lodash';
+import { take, isEmpty } from 'lodash';
import { Plt } from '../../plotly/plot';
-import { PLOTLY_COLOR } from '../../../../../common/constants/shared';
export const Pie = ({ visualizations, layout, config }: any) => {
const { vis } = visualizations;
diff --git a/dashboards-observability/public/components/visualizations/charts/pie/pie_type.ts b/dashboards-observability/public/components/visualizations/charts/pie/pie_type.ts
index 721c4211d..7dbc507aa 100644
--- a/dashboards-observability/public/components/visualizations/charts/pie/pie_type.ts
+++ b/dashboards-observability/public/components/visualizations/charts/pie/pie_type.ts
@@ -7,9 +7,9 @@ import { Pie } from './pie';
import { getPlotlySharedConfigs, getPlotlyCategory } from '../shared/shared_configs';
import { LensIconChartPie } from '../../assets/chart_pie';
import { PLOTLY_COLOR } from '../../../../../common/constants/shared';
-import { VizDataPanel } from '../../../explorer/visualizations/config_panel/config_editor/default_vis_editor';
-import { ConfigEditor } from '../../../explorer/visualizations/config_panel/config_editor/config_editor';
-import { ConfigValueOptions } from '../../../explorer/visualizations/config_panel/config_editor/config_controls';
+import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor';
+import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor';
+import { ConfigValueOptions } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls';
const sharedConfigs = getPlotlySharedConfigs();
const VIS_CATEGORY = getPlotlyCategory();
diff --git a/dashboards-observability/public/components/visualizations/charts/text/text_type.ts b/dashboards-observability/public/components/visualizations/charts/text/text_type.ts
index 3a826498a..bc6b90ca9 100644
--- a/dashboards-observability/public/components/visualizations/charts/text/text_type.ts
+++ b/dashboards-observability/public/components/visualizations/charts/text/text_type.ts
@@ -7,8 +7,8 @@ import { Text } from './text';
import { getPlotlySharedConfigs, getPlotlyCategory } from '../shared/shared_configs';
import { LensIconChartLine } from '../../assets/chart_line';
import { PLOTLY_COLOR } from '../../../../../common/constants/shared';
-import { VizDataPanel } from '../../../explorer/visualizations/config_panel/config_editor/default_vis_editor';
-import { ConfigText } from '../../../explorer/visualizations/config_panel/config_editor/config_controls';
+import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor';
+import { ConfigText } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls';
const sharedConfigs = getPlotlySharedConfigs();
const VIS_CATEGORY = getPlotlyCategory();
diff --git a/dashboards-observability/public/components/visualizations/visualization.tsx b/dashboards-observability/public/components/visualizations/visualization.tsx
index fb22f6bf6..329e6881b 100644
--- a/dashboards-observability/public/components/visualizations/visualization.tsx
+++ b/dashboards-observability/public/components/visualizations/visualization.tsx
@@ -6,7 +6,7 @@
import React from 'react';
import { isArray } from 'lodash';
import { VisualizationChart } from './visualization_chart';
-import { EmptyPlaceholder } from '../../components/explorer/visualizations/shared_components/empty_placeholder';
+import { EmptyPlaceholder } from '../event_analytics/explorer/visualizations/shared_components/empty_placeholder';
interface IVisualizationProps {}
diff --git a/dashboards-observability/public/framework/redux/reducers/index.ts b/dashboards-observability/public/framework/redux/reducers/index.ts
index 18565c69c..1dfcf743c 100644
--- a/dashboards-observability/public/framework/redux/reducers/index.ts
+++ b/dashboards-observability/public/framework/redux/reducers/index.ts
@@ -5,13 +5,13 @@
import { combineReducers } from 'redux';
-import queriesReducer from '../../../components/explorer/slices/query_slice';
-import queryResultsReducer from '../../../components/explorer/slices/query_result_slice';
-import queryTabReducer from '../../../components/explorer/slices/query_tab_slice';
-import FieldsReducer from '../../../components/explorer/slices/field_slice';
-import countDistributionReducer from '../../../components/explorer/slices/count_distribution_slice';
-import explorerVisualizationReducer from '../../../components/explorer/slices/visualization_slice';
-import explorerVisualizationConfigReducer from '../../../components/explorer/slices/viualization_config_slice';
+import queriesReducer from '../../../components/event_analytics/redux/slices/query_slice';
+import queryResultsReducer from '../../../components/event_analytics/redux/slices/query_result_slice';
+import queryTabReducer from '../../../components/event_analytics/redux/slices/query_tab_slice';
+import FieldsReducer from '../../../components/event_analytics/redux/slices/field_slice';
+import countDistributionReducer from '../../../components/event_analytics/redux/slices/count_distribution_slice';
+import explorerVisualizationReducer from '../../../components/event_analytics/redux/slices/visualization_slice';
+import explorerVisualizationConfigReducer from '../../../components/event_analytics/redux/slices/viualization_config_slice';
const rootReducer = combineReducers({
// explorer reducers
diff --git a/dashboards-observability/public/plugin.ts b/dashboards-observability/public/plugin.ts
index 5180cf3e3..4c3b7f7a2 100644
--- a/dashboards-observability/public/plugin.ts
+++ b/dashboards-observability/public/plugin.ts
@@ -15,6 +15,7 @@ import TimestampUtils from './services/timestamp/timestamp';
import SavedObjects from './services/saved_objects/event_analytics/saved_objects';
import { AppPluginStartDependencies, ObservabilitySetup, ObservabilityStart } from './types';
import { convertLegacyNotebooksUrl } from './components/notebooks/components/helpers/legacy_route_helpers';
+import { convertLegacyTraceAnalyticsUrl } from './components/trace_analytics/components/common/legacy_route_helpers';
import { uiSettingsService } from '../common/utils';
export class ObservabilityPlugin implements Plugin {
@@ -26,6 +27,11 @@ export class ObservabilityPlugin implements Plugin/test/__mocks__/styleMock.js',
'\\.(gif|ttf|eot|svg|png)$': '/test/__mocks__/fileMock.js',
'\\@algolia/autocomplete-theme-classic$': '/test/__mocks__/styleMock.js',
+ "^!!raw-loader!.*": "jest-raw-loader",
},
testEnvironment: "jsdom",
};
diff --git a/dashboards-observability/yarn.lock b/dashboards-observability/yarn.lock
index 689c3533f..c205c9bf8 100644
--- a/dashboards-observability/yarn.lock
+++ b/dashboards-observability/yarn.lock
@@ -419,9 +419,9 @@ astral-regex@^1.0.0:
integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==
async@^3.2.0:
- version "3.2.1"
- resolved "https://registry.yarnpkg.com/async/-/async-3.2.1.tgz#d3274ec66d107a47476a4c49136aacdb00665fc8"
- integrity sha512-XdD5lRO/87udXCMC9meWdYiR+Nq6ZjUfXidViUZGu2F1MO4T3XwZ1et0hb2++BgLfhyJwy44BGB/yx80ABx8hg==
+ version "3.2.3"
+ resolved "https://registry.yarnpkg.com/async/-/async-3.2.3.tgz#ac53dafd3f4720ee9e8a160628f18ea91df196c9"
+ integrity sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g==
asynckit@^0.4.0:
version "0.4.0"
@@ -1881,12 +1881,7 @@ minimatch@^3.0.4:
dependencies:
brace-expansion "^1.1.7"
-minimist@^1.2.5:
- version "1.2.6"
- resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
- integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==
-
-minimist@^1.2.6:
+minimist@^1.2.5, minimist@^1.2.6:
version "1.2.6"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==
@@ -1906,9 +1901,9 @@ mkdirp@^0.5.4:
minimist "^1.2.5"
moment@^2.27.0:
- version "2.29.1"
- resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3"
- integrity sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==
+ version "2.29.2"
+ resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.2.tgz#00910c60b20843bcba52d37d58c628b47b1f20e4"
+ integrity sha512-UgzG4rvxYpN15jgCmVJwac49h9ly9NurikMWGPdVxm8GZD6XjkKPxDTjQQ43gtGgnV3X0cAyWDdP2Wexoquifg==
ms@2.0.0:
version "2.0.0"
diff --git a/opensearch-observability/build.gradle b/opensearch-observability/build.gradle
index 6f5d6fcbb..fcbf8c3c3 100644
--- a/opensearch-observability/build.gradle
+++ b/opensearch-observability/build.gradle
@@ -10,9 +10,9 @@ import org.opensearch.gradle.testclusters.StandaloneRestIntegTestTask
buildscript {
ext {
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
- opensearch_version = System.getProperty("opensearch.version", "2.0.0-alpha1-SNAPSHOT")
- buildVersionQualifier = System.getProperty("build.version_qualifier", "alpha1")
- // 2.0.0-alpha1-SNAPSHOT -> 2.0.0.0-alpha1-SNAPSHOT
+ opensearch_version = System.getProperty("opensearch.version", "2.0.0-rc1-SNAPSHOT")
+ buildVersionQualifier = System.getProperty("build.version_qualifier", "rc1")
+ // 2.0.0-rc1-SNAPSHOT -> 2.0.0.0-rc1-SNAPSHOT
version_tokens = opensearch_version.tokenize('-')
opensearch_build = version_tokens[0] + '.0'
if (buildVersionQualifier) {
@@ -261,6 +261,7 @@ testClusters.integTest {
String bwcVersion = "1.2.0-SNAPSHOT"
String baseName = "obsBwcCluster"
String bwcFilePath = "src/test/kotlin/org/opensearch/observability/resources/bwc/"
+String remoteFileURL = "https://github.com/opensearch-project/observability/releases/download/1.2.0.0/opensearch-observability-1.2.0.0.zip"
2.times {i ->
testClusters {
@@ -274,6 +275,14 @@ String bwcFilePath = "src/test/kotlin/org/opensearch/observability/resources/bwc
return new RegularFile() {
@Override
File getAsFile() {
+ File dir = new File(bwcFilePath + bwcVersion)
+ if (!dir.exists()) {
+ dir.mkdirs()
+ }
+ File file = new File(dir, "opensearch-observability-1.2.0.0-SNAPSHOT.zip")
+ if (!file.exists()) {
+ new URL(remoteFileURL).withInputStream{ ins -> file.withOutputStream{ it << ins }}
+ }
return fileTree(bwcFilePath + bwcVersion).getSingleFile()
}
}
diff --git a/opensearch-observability/src/test/kotlin/org/opensearch/observability/resources/bwc/.gitignore b/opensearch-observability/src/test/kotlin/org/opensearch/observability/resources/bwc/.gitignore
new file mode 100644
index 000000000..99f6ad50f
--- /dev/null
+++ b/opensearch-observability/src/test/kotlin/org/opensearch/observability/resources/bwc/.gitignore
@@ -0,0 +1,4 @@
+# ignore artifacts in this directory
+*
+*/
+!.gitignore
diff --git a/opensearch-observability/src/test/kotlin/org/opensearch/observability/resources/bwc/1.1.0-SNAPSHOT/opensearch-notebooks-1.1.0.0-SNAPSHOT.zip b/opensearch-observability/src/test/kotlin/org/opensearch/observability/resources/bwc/1.1.0-SNAPSHOT/opensearch-notebooks-1.1.0.0-SNAPSHOT.zip
deleted file mode 100644
index c51b51033..000000000
Binary files a/opensearch-observability/src/test/kotlin/org/opensearch/observability/resources/bwc/1.1.0-SNAPSHOT/opensearch-notebooks-1.1.0.0-SNAPSHOT.zip and /dev/null differ
diff --git a/opensearch-observability/src/test/kotlin/org/opensearch/observability/resources/bwc/1.2.0-SNAPSHOT/opensearch-observability-1.2.0.0-SNAPSHOT.zip b/opensearch-observability/src/test/kotlin/org/opensearch/observability/resources/bwc/1.2.0-SNAPSHOT/opensearch-observability-1.2.0.0-SNAPSHOT.zip
deleted file mode 100644
index ec0aa0dd9..000000000
Binary files a/opensearch-observability/src/test/kotlin/org/opensearch/observability/resources/bwc/1.2.0-SNAPSHOT/opensearch-observability-1.2.0.0-SNAPSHOT.zip and /dev/null differ