Skip to content

Commit

Permalink
Disable the overview app (#54)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Ruiz Becerra <[email protected]>
  • Loading branch information
yenienserrano and AlexRuiz7 committed Jun 9, 2023
1 parent 1097581 commit a73f7e4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs:
yarn-
- name: Setup chromedriver
run: node scripts/upgrade_chromedriver.js
run: yarn add --dev [email protected]

- name: Run bootstrap (Linux)
if: matrix.os != 'windows-latest'
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/opensearch_dashboards_overview/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@

export const PLUGIN_ID = 'opensearchDashboardsOverview';
export const PLUGIN_NAME = 'Overview';
export const PLUGIN_PATH = `/app/opensearch_dashboards_overview`;
export const PLUGIN_PATH = `/app/home/`;
export const PLUGIN_ICON = 'inputOutput';

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/plugins/opensearch_dashboards_overview/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ export class OpenSearchDashboardsOverviewPlugin
return hasOpenSearchDashboardsApp;
}),
distinct(),
map((hasOpenSearchDashboardsApp) => {
map(() => {
return () => {
if (!hasOpenSearchDashboardsApp) {
return { status: AppStatus.inaccessible, navLinkStatus: AppNavLinkStatus.hidden };
} else {
return { status: AppStatus.accessible, navLinkStatus: AppNavLinkStatus.default };
}
// Wazuh: Hide the OpenSearch Dashboards Overview app
return {
status: AppStatus.inaccessible,
navLinkStatus: AppNavLinkStatus.hidden,
};
};
})
);
Expand Down
5 changes: 4 additions & 1 deletion test/functional/apps/visualize/_custom_branding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const expectedWelcomeMessage = 'Welcome to OpenSearch';

describe('OpenSearch Dashboards branding configuration', function customHomeBranding() {
describe('should render overview page', async () => {
/**
* This test is skipped because the overview page is not available.
*/
describe.skip('should render overview page', async () => {
this.tags('includeFirefox');

before(async function () {
Expand Down

0 comments on commit a73f7e4

Please sign in to comment.