Skip to content

Commit

Permalink
Remove MDS selector for tenancy tab (opensearch-project#1937)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho authored May 8, 2024
1 parent 6425893 commit 9d0f262
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions public/apps/configuration/panels/tenant-list/tenant-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ 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 @@ -135,12 +133,6 @@ 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="dataSourceViewButton"]').should('contain', 'Local cluster');
cy.get('[data-test-subj="dataSourceSelectableButton"]').should('not.exist');
});

it('Checks Service Accounts Tab', () => {
Expand Down

0 comments on commit 9d0f262

Please sign in to comment.