[MM-64696] LDAP Wizard: Add help text for slow LDAP queries (#32161)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
1b7d27707d
Коммит
0832bf8fd4
@@ -366,7 +366,8 @@ export const ldapWizardAdminDefinition: LDAPAdminDefinitionConfigSchemaSettings
|
||||
),
|
||||
),
|
||||
label: defineMessage({id: 'admin.ldap.testFiltersTitle', defaultMessage: 'Test Filters'}),
|
||||
help_text_markdown: false,
|
||||
help_text: defineMessage({id: 'admin.ldap.testFiltersHelpText', defaultMessage: '**Note**: This test is similar in scope to an LDAP sync and may take time depending on the size of the LDAP Server, hardware, or network conditions.'}),
|
||||
help_text_markdown: true,
|
||||
error_message: defineMessage({id: 'admin.ldap.testFiltersFailure', defaultMessage: 'We failed to apply some filters: {error}'}),
|
||||
success_message: defineMessage({id: 'admin.ldap.testFiltersSuccess', defaultMessage: 'Test Successful'}),
|
||||
},
|
||||
@@ -526,7 +527,9 @@ export const ldapWizardAdminDefinition: LDAPAdminDefinitionConfigSchemaSettings
|
||||
type: 'button',
|
||||
action: ldapTestAttributes,
|
||||
key: 'LdapSettings.TestAttributes',
|
||||
help_text_markdown: false,
|
||||
label: defineMessage({id: 'admin.ldap.testAttributesTitle', defaultMessage: 'Test Attributes'}),
|
||||
help_text: defineMessage({id: 'admin.ldap.testFiltersHelpText', defaultMessage: '**Note**: This test is similar in scope to an LDAP sync and may take time depending on the size of the LDAP Server, hardware, or network conditions.'}),
|
||||
help_text_markdown: true,
|
||||
isDisabled: it.any(
|
||||
it.not(it.userHasWritePermissionOnResource(RESOURCE_KEYS.AUTHENTICATION.LDAP)),
|
||||
it.all(
|
||||
@@ -534,7 +537,6 @@ export const ldapWizardAdminDefinition: LDAPAdminDefinitionConfigSchemaSettings
|
||||
it.stateIsFalse('LdapSettings.EnableSync'),
|
||||
),
|
||||
),
|
||||
label: defineMessage({id: 'admin.ldap.testAttributesTitle', defaultMessage: 'Test Attributes'}),
|
||||
error_message: defineMessage({id: 'admin.ldap.testAttributesFailure', defaultMessage: 'We failed to find some attributes: {error}'}),
|
||||
success_message: defineMessage({id: 'admin.ldap.testAttributesSuccess', defaultMessage: 'Test Successful'}),
|
||||
},
|
||||
@@ -583,7 +585,9 @@ export const ldapWizardAdminDefinition: LDAPAdminDefinitionConfigSchemaSettings
|
||||
type: 'button',
|
||||
action: ldapTestGroupAttributes,
|
||||
key: 'LdapSettings.TestGroupAttributes',
|
||||
help_text_markdown: false,
|
||||
label: defineMessage({id: 'admin.ldap.testGroupAttributesTitle', defaultMessage: 'Test Group Attributes'}),
|
||||
help_text: defineMessage({id: 'admin.ldap.testFiltersHelpText', defaultMessage: '**Note**: This test is similar in scope to an LDAP sync and may take time depending on the size of the LDAP Server, hardware, or network conditions.'}),
|
||||
help_text_markdown: true,
|
||||
isDisabled: it.any(
|
||||
it.not(it.userHasWritePermissionOnResource(RESOURCE_KEYS.AUTHENTICATION.LDAP)),
|
||||
it.all(
|
||||
@@ -591,7 +595,6 @@ export const ldapWizardAdminDefinition: LDAPAdminDefinitionConfigSchemaSettings
|
||||
it.stateIsFalse('LdapSettings.EnableSync'),
|
||||
),
|
||||
),
|
||||
label: defineMessage({id: 'admin.ldap.testGroupAttributesTitle', defaultMessage: 'Test Group Attributes'}),
|
||||
error_message: defineMessage({id: 'admin.ldap.testGroupAttributesFailure', defaultMessage: 'We failed to find some attributes: {error}'}),
|
||||
success_message: defineMessage({id: 'admin.ldap.testGroupAttributesSuccess', defaultMessage: 'Test Successful'}),
|
||||
},
|
||||
|
||||
@@ -1542,6 +1542,7 @@
|
||||
"admin.ldap.testConnectionSuccess": "Test Connection Successful",
|
||||
"admin.ldap.testConnectionTitle": "Test Connection",
|
||||
"admin.ldap.testFiltersFailure": "We failed to apply some filters: {error}",
|
||||
"admin.ldap.testFiltersHelpText": "**Note**: This test is similar in scope to an LDAP sync and may take time depending on the size of the LDAP Server, hardware, or network conditions.",
|
||||
"admin.ldap.testFiltersPartialFailure": "{failedCount, number} of {totalCount, number} filter test{totalCount, plural, one {} other {s}} failed. Check the highlighted fields for details.",
|
||||
"admin.ldap.testFiltersSuccess": "Test Successful",
|
||||
"admin.ldap.testFiltersTitle": "Test Filters",
|
||||
|
||||
Ссылка в новой задаче
Block a user