File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
public/apps/configuration/utils Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ export const PRIVATE_TENANT_SYMBOL = '__user__';
47
47
export const DEFAULT_TENANT = 'default' ;
48
48
export const GLOBAL_TENANT_RENDERING_TEXT = 'Global' ;
49
49
export const PRIVATE_TENANT_RENDERING_TEXT = 'Private' ;
50
+ export const globalTenantName = 'global_tenant' ;
50
51
51
52
export enum AuthType {
52
53
BASIC = 'basicauth' ,
Original file line number Diff line number Diff line change @@ -40,13 +40,12 @@ import { getResourceUrl } from './resource-utils';
40
40
import {
41
41
GLOBAL_TENANT_RENDERING_TEXT ,
42
42
GLOBAL_TENANT_SYMBOL ,
43
+ globalTenantName ,
43
44
isGlobalTenant ,
44
45
isRenderingPrivateTenant ,
45
46
PRIVATE_TENANT_RENDERING_TEXT ,
46
47
} from '../../../../common' ;
47
48
48
- export const globalTenantName = 'global_tenant' ;
49
-
50
49
export const GLOBAL_USER_DICT : { [ key : string ] : string } = {
51
50
Label : 'Global' ,
52
51
Value : GLOBAL_TENANT_SYMBOL ,
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import {
20
20
resolveTenantName ,
21
21
RESOLVED_GLOBAL_TENANT ,
22
22
RESOLVED_PRIVATE_TENANT ,
23
- globalTenantName ,
24
23
formatTenantName ,
25
24
transformRoleTenantPermissionData ,
26
25
getTenantPermissionType ,
@@ -32,6 +31,7 @@ import {
32
31
TENANT_WRITE_PERMISSION ,
33
32
} from '../../constants' ;
34
33
import { TenantPermissionType } from '../../types' ;
34
+ import { globalTenantName } from '../../../../../common' ;
35
35
36
36
describe ( 'Tenant list utils' , ( ) => {
37
37
const expectedGlobalTenantListing = {
Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ import {
36
36
} from 'opensearch-dashboards/server' ;
37
37
import { Config } from 'packages/osd-config/target' ;
38
38
import { SecurityPluginConfigType } from '..' ;
39
- import { globalTenantName } from '../../public/apps/configuration/utils/tenant-utils' ;
40
39
import { OpenSearchDashboardsAuthState } from '../auth/types/authentication_type' ;
41
40
import {
42
41
DEFAULT_TENANT ,
43
42
GLOBAL_TENANT_SYMBOL ,
43
+ globalTenantName ,
44
44
isPrivateTenant ,
45
45
PRIVATE_TENANT_SYMBOL ,
46
46
} from '../../common' ;
You can’t perform that action at this time.
0 commit comments