Bladeren bron

SONAR-15340 - Increase DevOps form fields max length

tags/9.1.0.47736
Belen Pruvost 2 jaren geleden
bovenliggende
commit
eb5fd708f7

+ 1
- 0
server/sonar-web/src/main/js/apps/settings/components/almIntegration/AzureForm.tsx Bestand weergeven

@@ -93,6 +93,7 @@ export default function AzureForm(props: AzureFormProps) {
overwriteOnly={Boolean(formData.key)}
propKey="personalAccessToken"
value={formData.personalAccessToken}
maxLength={2000}
isSecret={true}
/>
</>

+ 1
- 0
server/sonar-web/src/main/js/apps/settings/components/almIntegration/BitbucketCloudForm.tsx Bestand weergeven

@@ -104,6 +104,7 @@ export default function BitbucketCloudForm(props: BitbucketCloudFormProps) {
overwriteOnly={Boolean(formData.key)}
propKey="clientSecret"
value={formData.clientSecret || ''}
maxLength={160}
isSecret={true}
/>
</>

+ 1
- 0
server/sonar-web/src/main/js/apps/settings/components/almIntegration/BitbucketServerForm.tsx Bestand weergeven

@@ -92,6 +92,7 @@ export default function BitbucketServerForm(props: BitbucketServerFormProps) {
overwriteOnly={Boolean(formData.key)}
propKey="personalAccessToken"
value={formData.personalAccessToken || ''}
maxLength={2000}
isSecret={true}
/>
</>

+ 2
- 1
server/sonar-web/src/main/js/apps/settings/components/almIntegration/GithubForm.tsx Bestand weergeven

@@ -95,7 +95,7 @@ export default function GithubForm(props: GithubFormProps) {
<AlmBindingDefinitionFormField
id="client_secret.github"
help={translate('settings.almintegration.form.client_secret.github.help')}
maxLength={80}
maxLength={160}
onFieldChange={onFieldChange}
overwriteOnly={Boolean(formData.key)}
propKey="clientSecret"
@@ -110,6 +110,7 @@ export default function GithubForm(props: GithubFormProps) {
overwriteOnly={Boolean(formData.key)}
propKey="privateKey"
value={formData.privateKey}
maxLength={2500}
isSecret={true}
/>
</>

+ 1
- 0
server/sonar-web/src/main/js/apps/settings/components/almIntegration/GitlabForm.tsx Bestand weergeven

@@ -89,6 +89,7 @@ export default function GitlabForm(props: GitlabFormProps) {
overwriteOnly={Boolean(formData.key)}
propKey="personalAccessToken"
value={formData.personalAccessToken}
maxLength={2000}
isSecret={true}
/>
</>

+ 2
- 0
server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AzureForm-test.tsx.snap Bestand weergeven

@@ -65,6 +65,7 @@ exports[`should render correctly: create 1`] = `
id="personal_access_token"
isSecret={true}
isTextArea={true}
maxLength={2000}
onFieldChange={[MockFunction]}
overwriteOnly={false}
propKey="personalAccessToken"
@@ -138,6 +139,7 @@ exports[`should render correctly: edit 1`] = `
id="personal_access_token"
isSecret={true}
isTextArea={true}
maxLength={2000}
onFieldChange={[MockFunction]}
overwriteOnly={true}
propKey="personalAccessToken"

+ 1
- 0
server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketCloudForm-test.tsx.snap Bestand weergeven

@@ -77,6 +77,7 @@ exports[`should render correctly 1`] = `
help="settings.almintegration.form.oauth_secret.bitbucketcloud.help"
id="client_secret.bitbucketcloud"
isSecret={true}
maxLength={160}
onFieldChange={[MockFunction]}
overwriteOnly={true}
propKey="clientSecret"

+ 1
- 0
server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketServerForm-test.tsx.snap Bestand weergeven

@@ -61,6 +61,7 @@ exports[`should render correctly 1`] = `
id="personal_access_token"
isSecret={true}
isTextArea={true}
maxLength={2000}
onFieldChange={[MockFunction]}
overwriteOnly={true}
propKey="personalAccessToken"

+ 4
- 2
server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GithubForm-test.tsx.snap Bestand weergeven

@@ -74,7 +74,7 @@ exports[`should render correctly 1`] = `
help="settings.almintegration.form.client_secret.github.help"
id="client_secret.github"
isSecret={true}
maxLength={80}
maxLength={160}
onFieldChange={[MockFunction]}
overwriteOnly={false}
propKey="clientSecret"
@@ -85,6 +85,7 @@ exports[`should render correctly 1`] = `
id="private_key"
isSecret={true}
isTextArea={true}
maxLength={2500}
onFieldChange={[MockFunction]}
overwriteOnly={false}
propKey="privateKey"
@@ -167,7 +168,7 @@ exports[`should render correctly 2`] = `
help="settings.almintegration.form.client_secret.github.help"
id="client_secret.github"
isSecret={true}
maxLength={80}
maxLength={160}
onFieldChange={[MockFunction]}
overwriteOnly={true}
propKey="clientSecret"
@@ -178,6 +179,7 @@ exports[`should render correctly 2`] = `
id="private_key"
isSecret={true}
isTextArea={true}
maxLength={2500}
onFieldChange={[MockFunction]}
overwriteOnly={true}
propKey="privateKey"

+ 2
- 0
server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GitlabForm-test.tsx.snap Bestand weergeven

@@ -61,6 +61,7 @@ exports[`should render correctly 1`] = `
id="personal_access_token"
isSecret={true}
isTextArea={true}
maxLength={2000}
onFieldChange={[MockFunction]}
overwriteOnly={false}
propKey="personalAccessToken"
@@ -130,6 +131,7 @@ exports[`should render correctly 2`] = `
id="personal_access_token"
isSecret={true}
isTextArea={true}
maxLength={2000}
onFieldChange={[MockFunction]}
overwriteOnly={true}
propKey="personalAccessToken"

Laden…
Annuleren
Opslaan