Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Manage datasources #967

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
89b9dc6
fix name change bug and modify test to test behavior
derek-ho Jul 20, 2023
7ca7f86
Merge branch 'main' of github.com:opensearch-project/dashboards-obser…
derek-ho Jul 21, 2023
d43d00a
Merge branch 'main' of github.com:opensearch-project/dashboards-obser…
derek-ho Jul 21, 2023
a38e513
get rid of lint
derek-ho Jul 25, 2023
cb8889a
test for flyout
derek-ho Jul 25, 2023
f6b7a77
flyout to medium size
derek-ho Jul 25, 2023
feaaf47
Merge branch 'main' of github.com:opensearch-project/dashboards-obser…
derek-ho Aug 3, 2023
63985eb
make accelerate extensible
derek-ho Aug 7, 2023
81f3809
get datasources and hook up to pplservice
derek-ho Aug 9, 2023
2b4d21c
get flint working
derek-ho Aug 11, 2023
a858482
add datasource page with steps and buttons on bottom bar
derek-ho Aug 17, 2023
069ad9e
datasources as a new plugin and mostly working
derek-ho Aug 23, 2023
5e502ce
Merge branch 'feature/flint' into accelerate
derek-ho Aug 23, 2023
5720ffd
hook up manage to show datasources call
derek-ho Aug 23, 2023
63a162d
Merge branch 'main' of github.com:opensearch-project/dashboards-obser…
derek-ho Aug 23, 2023
515f265
update two tables with descriptions
derek-ho Aug 23, 2023
8d7b933
make some updates to the page
derek-ho Aug 31, 2023
c37ff6d
cleanup unused files for data connections
derek-ho Sep 1, 2023
b453a75
cleanup and add overview panel columns
derek-ho Sep 5, 2023
9fa45b6
render tabs
derek-ho Sep 5, 2023
d8a626f
add unit tests
derek-ho Sep 6, 2023
f453c7e
update data test subj and snapshot
derek-ho Sep 6, 2023
5cc9387
Add datasources to management overview
derek-ho Sep 6, 2023
3caa45d
remove spark logo and update snapshot
derek-ho Sep 6, 2023
c7e5add
refactor routes out
derek-ho Sep 6, 2023
bc88ebe
separate out the roles
derek-ho Sep 7, 2023
04402dc
bump version back to 3.0
derek-ho Sep 7, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .cypress/integration/10_datasources.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

/// <reference types="cypress" />

const moveToDatasourcesHome = () => {
cy.visit(`${Cypress.env('opensearchDashboards')}/app/datasources`);
};

describe('Basic sanity test for datasources plugin', () => {
it('Navigates to datasources plugin and expects the correct header', () => {
moveToDatasourcesHome();
cy.get('[data-test-subj="datasources-header"]').should('exist');
});
});



7 changes: 7 additions & 0 deletions common/constants/data_connections.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

export const OPENSEARCH_DOCUMENTATION_URL =
'https://opensearch.org/docs/latest/data-connections/index';
11 changes: 10 additions & 1 deletion common/constants/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const DSL_CAT = '/cat.indices';
export const DSL_MAPPING = '/indices.getFieldMapping';
export const OBSERVABILITY_BASE = '/api/observability';
export const INTEGRATIONS_BASE = '/api/integrations';
export const DATASOURCES_BASE = '/api/datasources';
export const EVENT_ANALYTICS = '/event_analytics';
export const SAVED_OBJECTS = '/saved_objects';
export const SAVED_QUERY = '/query';
Expand All @@ -23,6 +24,7 @@ export const SAVED_VISUALIZATION = '/vis';
export const PPL_ENDPOINT = '/_plugins/_ppl';
export const SQL_ENDPOINT = '/_plugins/_sql';
export const DSL_ENDPOINT = '/_plugins/_dsl';
export const DATASOURCES_ENDPOINT = '/_plugins/_query/_datasources';

export const observabilityID = 'observability-logs';
export const observabilityTitle = 'Observability';
Expand Down Expand Up @@ -56,6 +58,10 @@ export const observabilityIntegrationsID = 'integrations';
export const observabilityIntegrationsTitle = 'Integrations';
export const observabilityIntegrationsPluginOrder = 9020;

export const observabilityDatasourcesID = 'datasources';
export const observabilityDatasourcesTitle = 'Datasources';
export const observabilityDatasourcesPluginOrder = 9030;
derek-ho marked this conversation as resolved.
Show resolved Hide resolved

// Shared Constants
export const SQL_DOCUMENTATION_URL = 'https://opensearch.org/docs/latest/search-plugins/sql/index/';
export const PPL_DOCUMENTATION_URL =
Expand All @@ -74,10 +80,13 @@ export const PPL_NEWLINE_REGEX = /[\n\r]+/g;

// Observability plugin URI
const BASE_OBSERVABILITY_URI = '/_plugins/_observability';
const BASE_INTEGRATIONS_URI = '/_plugins/_integrations'; // Used later in front-end for routing
const BASE_DATASOURCES_URI = '/_plugins/_query/_datasources';
export const OPENSEARCH_PANELS_API = {
OBJECT: `${BASE_OBSERVABILITY_URI}/object`,
};
export const OPENSEARCH_DATASOURCES_API = {
DATASOURCE: `${BASE_DATASOURCES_URI}`,
};

// Saved Objects
export const SAVED_OBJECT = '/object';
Expand Down
3 changes: 3 additions & 0 deletions opensearch_dashboards.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@
"uiActions",
"urlForwarding",
"visualizations"
],
"optionalPlugins": [
"managementOverview"
]
}
2 changes: 2 additions & 0 deletions public/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { EventAnalytics } from './event_analytics';
import { Home as MetricsHome } from './metrics/index';
import { Main as NotebooksHome } from './notebooks/components/main';
import { Home as TraceAnalyticsHome } from './trace_analytics/home';
import { Home as DatasourcesHome } from './data_connections/home';

interface ObservabilityAppDeps {
CoreStartProp: CoreStart;
Expand All @@ -44,6 +45,7 @@ const pages = {
notebooks: NotebooksHome,
dashboards: CustomPanelsHome,
integrations: IntegrationsHome,
datasources: DatasourcesHome,
};

export const App = ({
Expand Down
Loading