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

Updating 2.x from 2.7 changes #482

Merged
merged 31 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0453fa7
Fix for hover issue on docs of discover/explorer data grid (#329) (#358)
joshuali925 Apr 17, 2023
48a28a0
[2.7] Refactor Saved objects and add visualization embeddable (#341) …
joshuali925 Apr 17, 2023
946d9f6
Cohesion main to 2.7 (#382)
pjfitzgibbons Apr 18, 2023
5ebd873
Fix redirection to legacy event_analytics URL (#383) (#384)
opensearch-trigger-bot[bot] Apr 18, 2023
f0c1f39
[2.7] Redo pick from main to 2.7 (#385)
joshuali925 Apr 18, 2023
2adc5de
Metrics analytics support for SOpanels (#386) (#388)
opensearch-trigger-bot[bot] Apr 18, 2023
aca3c8b
change plugin ordering (#389) (#390)
opensearch-trigger-bot[bot] Apr 19, 2023
ae49cf2
notebooks fix for cypress and minor bugs (#392) (#393)
ps48 Apr 19, 2023
c6a9a87
Update traces integration tests (#391) (#397)
opensearch-trigger-bot[bot] Apr 19, 2023
5571a2f
Fix redirection to legacy event_analytics URL from dashboards (#399) …
opensearch-trigger-bot[bot] Apr 19, 2023
b0ffb9d
Adjust metrics top menu layout to avoid overflow (#398) (#402)
opensearch-trigger-bot[bot] Apr 19, 2023
7a628ed
Support duplicate visualization in dashboard (#400) (#405)
opensearch-trigger-bot[bot] Apr 20, 2023
64a01d0
fix panel visualization preview, new viz workflow (#401) (#404)
opensearch-trigger-bot[bot] Apr 20, 2023
5af4840
Fix saving multiple metrics to SOpanels (#407) (#408)
opensearch-trigger-bot[bot] Apr 20, 2023
bac5746
Panel table fixes (#406)
pjfitzgibbons Apr 20, 2023
ca2baf6
Release Notes 2.7.0.0 (#394) (#412)
opensearch-trigger-bot[bot] Apr 21, 2023
88bd102
[Dashboard listing] update edit url and view url (#416) (#421)
opensearch-trigger-bot[bot] Apr 25, 2023
fce8cf8
Fix invalid time range in new panels (#419)
joshuali925 Apr 25, 2023
edf1663
open new tab for editing panel visualization (#430)
mengweieric Apr 26, 2023
cde1cef
Save new prometheus metrics to OSD saved objects (#428)
joshuali925 Apr 26, 2023
b3c0847
fixes edit mode callback bug in Saved Object Panels (#420)
ps48 Apr 27, 2023
a9d1d37
Add Toasts to Observability Dashboards (#435)
ps48 Apr 28, 2023
7a9f740
change samples to saved object (#427) (#436)
derek-ho May 1, 2023
58be126
Add Error handling on duplicate dashboard names (#441)
rupal-bq May 4, 2023
ffa18c4
fix timestamp overriding issue (#449)
mengweieric May 4, 2023
2d2ce04
Renaming custom panels to Observability Dashboards (#450)
mengweieric May 5, 2023
324939f
Fix delete failure when no osd item selected (#452)
joshuali925 May 5, 2023
e836bc9
Open log patterns by default (#444) (#459)
joshuali925 May 9, 2023
cff3094
Merge branch '2.7' into 2.x
ps48 May 24, 2023
9504374
diff merging between 2.x and 2.7
ps48 May 24, 2023
b9c1bc1
add service fields length check in app analytics
ps48 May 24, 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
Binary file added .cypress/.DS_Store
Binary file not shown.
37 changes: 22 additions & 15 deletions .cypress/integration/2_notebooks.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,26 @@ import { SAMPLE_PANEL } from '../utils/panel_constants';
import { skipOn } from '@cypress/skip-test';

const moveToEventsHome = () => {
cy.visit(`${Cypress.env('opensearchDashboards')}/app/observability-dashboards#/event_analytics/`);
cy.visit(`${Cypress.env('opensearchDashboards')}/app/observability-logs#/`);
cy.wait(delay * 3);
};

const moveToPanelHome = () => {
cy.visit(
`${Cypress.env('opensearchDashboards')}/app/observability-dashboards#/operational_panels/`
);
cy.visit(`${Cypress.env('opensearchDashboards')}/app/observability-dashboards#/`);
cy.wait(delay * 3);
};

const moveToTestNotebook = () => {
cy.visit(`${Cypress.env('opensearchDashboards')}/app/observability-notebooks#/`, {
timeout: 6000,
});
cy.get('.euiTableCellContent')
.contains(TEST_NOTEBOOK, {
timeout: 6000,
})
.click();
};

describe('Adding sample data and visualization', () => {
it('Adds sample flights data for visualization paragraph', () => {
cy.visit(`${Cypress.env('opensearchDashboards')}/app/home#/tutorial_directory/sampleData`);
Expand All @@ -41,28 +50,29 @@ describe('Adding sample data and visualization', () => {
});

it('Add sample observability data', () => {
moveToPanelHome();
cy.get('.euiButton__text').contains('Actions').trigger('mouseover').click();
moveToEventsHome();
cy.get('button[data-test-subj="eventHomeAction"]').trigger('mouseover').click();
cy.wait(100);
cy.get('.euiContextMenuItem__text').contains('Add samples').trigger('mouseover').click();
cy.get('button[data-test-subj="eventHomeAction__addSamples"]').trigger('mouseover').click();
cy.wait(100 * 3);
cy.get('.euiModalHeader__title[data-test-subj="confirmModalTitleText"]')
.contains('Add samples')
.should('exist');
cy.wait(100);
cy.get('.euiButton__text').contains('Yes').trigger('mouseover').click();
cy.get('button[data-test-subj="confirmModalConfirmButton"]').trigger('mouseover').click();
cy.wait(100 * 5);
cy.route2('POST', '/addSamplePanels').as('addSamples');
cy.wait('@addSamples').then(() => {
cy.get('.euiTableCellContent').contains(SAMPLE_PANEL).should('exist');
cy.get('.euiToastHeader__title').should('contain', 'successfully');
});
cy.wait(100);
});
});

describe('Testing notebooks table', () => {
beforeEach(() => {
cy.visit(`${Cypress.env('opensearchDashboards')}/app/observability-dashboards#/notebooks`);
cy.visit(`${Cypress.env('opensearchDashboards')}/app/observability-notebooks#/`);
cy.wait(delay);
});

it('Notebooks table empty state', () => {
Expand Down Expand Up @@ -178,7 +188,7 @@ describe('Testing notebooks table', () => {

describe('Test reporting integration if plugin installed', () => {
beforeEach(() => {
cy.visit(`${Cypress.env('opensearchDashboards')}/app/observability-dashboards#/notebooks`);
cy.visit(`${Cypress.env('opensearchDashboards')}/app/observability-notebooks#/`);
cy.get('.euiTableCellContent').contains(TEST_NOTEBOOK).click();
cy.wait(delay * 3);
cy.get('body').then(($body) => {
Expand Down Expand Up @@ -222,8 +232,7 @@ describe('Test reporting integration if plugin installed', () => {

describe('Testing paragraphs', () => {
beforeEach(() => {
cy.visit(`${Cypress.env('opensearchDashboards')}/app/observability-dashboards#/notebooks`);
cy.get('.euiTableCellContent').contains(TEST_NOTEBOOK).click();
moveToTestNotebook();
});

it('Goes into a notebook and creates paragraphs', () => {
Expand Down Expand Up @@ -550,7 +559,5 @@ describe('clean up all test data', () => {
});
cy.get('button.euiButton--danger').should('not.be.disabled');
cy.get('.euiButton__text').contains('Delete').trigger('mouseover').click();

cy.get('.euiTextAlign').contains('No Operational Panels').should('exist');
});
});
Loading