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

Revert "Disable the overview app" #47

Merged
merged 1 commit into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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(() => {
map((hasOpenSearchDashboardsApp) => {
return () => {
// Wazuh: Hide the OpenSearch Dashboards Overview app
return {
status: AppStatus.inaccessible,
navLinkStatus: AppNavLinkStatus.hidden,
};
if (!hasOpenSearchDashboardsApp) {
return { status: AppStatus.inaccessible, navLinkStatus: AppNavLinkStatus.hidden };
} else {
return { status: AppStatus.accessible, navLinkStatus: AppNavLinkStatus.default };
}
};
})
);
Expand Down
5 changes: 1 addition & 4 deletions test/functional/apps/visualize/_custom_branding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const expectedWelcomeMessage = 'Welcome to OpenSearch';

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

before(async function () {
Expand Down