MM-61197, MM-60615: Move Connected Workspaces to Site Configuration (#28887)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
cc5b3a2f69
Коммит
da17205d0b
@@ -51,7 +51,7 @@ describe('Connected Workspaces', () => {
|
|||||||
it('empty state', () => {
|
it('empty state', () => {
|
||||||
cy.visit('/admin_console');
|
cy.visit('/admin_console');
|
||||||
|
|
||||||
cy.get("a[id='environment/secure_connections']").click();
|
cy.get("a[id='site_config/secure_connections']").click();
|
||||||
|
|
||||||
cy.findByTestId('secureConnectionsSection').within(() => {
|
cy.findByTestId('secureConnectionsSection').within(() => {
|
||||||
cy.findByRole('heading', {name: 'Connected Workspaces'});
|
cy.findByRole('heading', {name: 'Connected Workspaces'});
|
||||||
@@ -64,7 +64,7 @@ describe('Connected Workspaces', () => {
|
|||||||
const orgDisplayName = 'Testing Org Name ' + getRandomId();
|
const orgDisplayName = 'Testing Org Name ' + getRandomId();
|
||||||
|
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/admin_console/environment/secure_connections');
|
cy.visit('/admin_console/site_config/secure_connections');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('accept - bad codes', () => {
|
it('accept - bad codes', () => {
|
||||||
@@ -123,7 +123,7 @@ describe('Connected Workspaces', () => {
|
|||||||
const orgDisplayName2 = 'new display name here ' + getRandomId();
|
const orgDisplayName2 = 'new display name here ' + getRandomId();
|
||||||
|
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/admin_console/environment/secure_connections');
|
cy.visit('/admin_console/site_config/secure_connections');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('create', () => {
|
it('create', () => {
|
||||||
|
|||||||
@@ -1885,44 +1885,6 @@ const AdminDefinition: AdminDefinitionType = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
secure_connection_detail: {
|
|
||||||
url: `environment/secure_connections/:connection_id(create|${ID_PATH_PATTERN})`,
|
|
||||||
isHidden: it.any(
|
|
||||||
it.configIsTrue('ExperimentalSettings', 'RestrictSystemAdmin'),
|
|
||||||
it.configIsFalse('ConnectedWorkspacesSettings', 'EnableSharedChannels'),
|
|
||||||
it.configIsFalse('ConnectedWorkspacesSettings', 'EnableRemoteClusterService'),
|
|
||||||
it.not(it.any(
|
|
||||||
it.licensedForFeature('SharedChannels'),
|
|
||||||
it.licensedForSku(LicenseSkus.Enterprise),
|
|
||||||
it.licensedForSku(LicenseSkus.Professional),
|
|
||||||
)),
|
|
||||||
),
|
|
||||||
schema: {
|
|
||||||
id: 'SecureConnectionDetail',
|
|
||||||
component: SecureConnectionDetail,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
secure_connections: {
|
|
||||||
url: 'environment/secure_connections',
|
|
||||||
title: defineMessage({id: 'admin.sidebar.secureConnections', defaultMessage: 'Connected Workspaces (Beta)'}),
|
|
||||||
searchableStrings: secureConnectionsSearchableStrings,
|
|
||||||
isHidden: it.any(
|
|
||||||
it.configIsTrue('ExperimentalSettings', 'RestrictSystemAdmin'),
|
|
||||||
it.configIsFalse('ConnectedWorkspacesSettings', 'EnableSharedChannels'),
|
|
||||||
it.configIsFalse('ConnectedWorkspacesSettings', 'EnableRemoteClusterService'),
|
|
||||||
it.not(it.any(
|
|
||||||
it.licensedForFeature('SharedChannels'),
|
|
||||||
it.licensedForSku(LicenseSkus.Enterprise),
|
|
||||||
it.licensedForSku(LicenseSkus.Professional),
|
|
||||||
)),
|
|
||||||
),
|
|
||||||
schema: {
|
|
||||||
id: 'SecureConnections',
|
|
||||||
component: SecureConnections,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
site: {
|
site: {
|
||||||
@@ -3069,6 +3031,32 @@ const AdminDefinition: AdminDefinitionType = {
|
|||||||
component: IPFiltering,
|
component: IPFiltering,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
secure_connection_detail: {
|
||||||
|
url: `site_config/secure_connections/:connection_id(create|${ID_PATH_PATTERN})`,
|
||||||
|
isHidden: it.not(it.all(
|
||||||
|
it.configIsTrue('ConnectedWorkspacesSettings', 'EnableSharedChannels'),
|
||||||
|
it.configIsTrue('ConnectedWorkspacesSettings', 'EnableRemoteClusterService'),
|
||||||
|
it.licensedForFeature('SharedChannels'),
|
||||||
|
)),
|
||||||
|
schema: {
|
||||||
|
id: 'SecureConnectionDetail',
|
||||||
|
component: SecureConnectionDetail,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
secure_connections: {
|
||||||
|
url: 'site_config/secure_connections',
|
||||||
|
title: defineMessage({id: 'admin.sidebar.secureConnections', defaultMessage: 'Connected Workspaces (Beta)'}),
|
||||||
|
searchableStrings: secureConnectionsSearchableStrings,
|
||||||
|
isHidden: it.not(it.all(
|
||||||
|
it.configIsTrue('ConnectedWorkspacesSettings', 'EnableSharedChannels'),
|
||||||
|
it.configIsTrue('ConnectedWorkspacesSettings', 'EnableRemoteClusterService'),
|
||||||
|
it.licensedForFeature('SharedChannels'),
|
||||||
|
)),
|
||||||
|
schema: {
|
||||||
|
id: 'SecureConnections',
|
||||||
|
component: SecureConnections,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
authentication: {
|
authentication: {
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ export default function SecureConnectionDetail(props: Props) {
|
|||||||
<AdminHeader withBackButton={true}>
|
<AdminHeader withBackButton={true}>
|
||||||
<div>
|
<div>
|
||||||
<BlockableLink
|
<BlockableLink
|
||||||
to='/admin_console/environment/secure_connections'
|
to='/admin_console/site_config/secure_connections'
|
||||||
className='fa fa-angle-left back'
|
className='fa fa-angle-left back'
|
||||||
/>
|
/>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -190,7 +190,7 @@ export default function SecureConnectionDetail(props: Props) {
|
|||||||
|
|
||||||
<SaveChangesPanel
|
<SaveChangesPanel
|
||||||
saving={isCreating ? isPendingState(creating) : isPendingState(saving)}
|
saving={isCreating ? isPendingState(creating) : isPendingState(saving)}
|
||||||
cancelLink='/admin_console/environment/secure_connections'
|
cancelLink='/admin_console/site_config/secure_connections'
|
||||||
saveNeeded={hasChanges && isFormValid}
|
saveNeeded={hasChanges && isFormValid}
|
||||||
onClick={isCreating ? handleCreate : save}
|
onClick={isCreating ? handleCreate : save}
|
||||||
serverError={(isErrorState(saving) || isErrorState(creating)) ? (
|
serverError={(isErrorState(saving) || isErrorState(creating)) ? (
|
||||||
|
|||||||
@@ -235,11 +235,11 @@ export const useTeamOptions = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const getEditLocation = (rc: RemoteCluster): LocationDescriptor<RemoteCluster> => {
|
export const getEditLocation = (rc: RemoteCluster): LocationDescriptor<RemoteCluster> => {
|
||||||
return {pathname: `/admin_console/environment/secure_connections/${rc.remote_id}`, state: rc};
|
return {pathname: `/admin_console/site_config/secure_connections/${rc.remote_id}`, state: rc};
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getCreateLocation = (): LocationDescriptor<RemoteCluster> => {
|
export const getCreateLocation = (): LocationDescriptor<RemoteCluster> => {
|
||||||
return {pathname: '/admin_console/environment/secure_connections/create'};
|
return {pathname: '/admin_console/site_config/secure_connections/create'};
|
||||||
};
|
};
|
||||||
|
|
||||||
const SiteURLPendingPrefix = 'pending_';
|
const SiteURLPendingPrefix = 'pending_';
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user