-
Notifications
You must be signed in to change notification settings - Fork 174
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
Fixing dynamic tenancy changes for issues 1412 #1419
Changes from 1 commit
c7ed2d1
2710020
b909a2a
b7131fe
3450d12
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,7 +67,6 @@ import { showTableStatusMessage } from '../../utils/loading-spinner-utils'; | |
import { useContextMenuState } from '../../utils/context-menu'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could you also update the fetchDatat method to be:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure will do. Thanks. |
||
import { generateResourceName } from '../../utils/resource-utils'; | ||
import { DocLinks } from '../../constants'; | ||
import { TenantInstructionView } from './tenant-instruction-view'; | ||
import { TenantList } from './tenant-list'; | ||
import { getBreadcrumbs, Route_MAP } from '../../app-router'; | ||
import { buildUrl } from '../../utils/url-builder'; | ||
|
@@ -479,9 +478,6 @@ export function ManageTab(props: AppDependencies) { | |
); | ||
}; | ||
|
||
if (!props.config.multitenancy.enabled) { | ||
return <TenantInstructionView />; | ||
} | ||
/* eslint-disable */ | ||
return ( | ||
<> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,7 +131,7 @@ describe('Tenant list', () => { | |
config={config1 as any} | ||
/> | ||
); | ||
expect(component.find(TenantInstructionView).length).toBe(1); | ||
expect(component.find(TenantInstructionView).length).toBe(0); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For my understanding, why we change the test case here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We changes the way manage tab would look when multitenancy.enabled is false. Hence the result will change. This is now same as before we merged our changes for dynamic tenancy config. |
||
}); | ||
|
||
it('fetch data error', (done) => { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be extracted as a class-level variable:
and use the variable across the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DarshitChanpura
isMultiTenancyEnabled
can change if we change the value of multitenancy_enabled in Security config. Therefore making a constant using it might not be the best idea.