Skip to content

Commit

Permalink
Revert "Remove MDS selector for tenancy tab (opensearch-project#1937)" (
Browse files Browse the repository at this point in the history
opensearch-project#1943) (opensearch-project#1956)

This reverts commit 9d0f262.

Co-authored-by: Darshit Chanpura <[email protected]>
(cherry picked from commit 37c2695)

Co-authored-by: Derek Ho <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and derek-ho authored May 14, 2024
1 parent 9478488 commit 6295ef3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions public/apps/configuration/panels/tenant-list/tenant-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ import { ExternalLink } from '../../utils/display-utils';
import { DocLinks } from '../../constants';
import { getDashboardsInfo } from '../../../../utils/dashboards-info-utils';
import { TenantInstructionView } from './tenant-instruction-view';
import { LocalCluster } from '../../app-router';
import { SecurityPluginTopNavMenu } from '../../top-nav-menu';

interface TenantListProps extends AppDependencies {
tabID: string;
Expand Down Expand Up @@ -133,6 +135,12 @@ export function TenantList(props: TenantListProps) {

return (
<>
<SecurityPluginTopNavMenu
{...props}
dataSourcePickerReadOnly={true}
setDataSource={() => {}}
selectedDataSource={LocalCluster}
/>
<EuiPageHeader>
<EuiTitle size="l">
<h1>Dashboards multi-tenancy</h1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ describe('Multi-datasources enabled', () => {
cy.visit(`http://localhost:5601/app/security-dashboards-plugin${localDataSourceUrl}#/tenants`);

cy.contains('h1', 'Dashboards multi-tenancy');
cy.get('[data-test-subj="dataSourceSelectableButton"]').should('not.exist');
cy.get('[data-test-subj="dataSourceViewButton"]').should('contain', 'Local cluster');
});

it('Checks Audit Logs Tab', () => {
Expand Down

0 comments on commit 6295ef3

Please sign in to comment.