Skip to content

Commit

Permalink
Merge pull request #41 from wazuh/37-hide-overview-app
Browse files Browse the repository at this point in the history
Disable the overview app
  • Loading branch information
asteriscos authored Apr 27, 2023
2 parents e59374f + d5a384d commit 9e1c1ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
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 9e1c1ec

Please sign in to comment.