aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/organizations
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2018-10-09 15:43:17 +0200
committerSonarTech <sonartech@sonarsource.com>2018-10-10 13:10:51 +0200
commit1c042dd1f4d5efecdf509e412af10d07453a4329 (patch)
treedcc3cacef4ffb8792bafaeb599b5294f3a76ac0e /server/sonar-web/src/main/js/apps/organizations
parente6bb0c9a13e5c477c5402ca476d1a8b8eb159cf3 (diff)
downloadsonarqube-1c042dd1f4d5efecdf509e412af10d07453a4329.tar.gz
sonarqube-1c042dd1f4d5efecdf509e412af10d07453a4329.zip
SONAR-11302 Decrease ORGANIZATIONS#KEE from 300 to 255
As personal organizations are created from login, it was decided to increase the org key size to a round number (300) higher than the login size (255). Unfortunately, MySQL doesn't support to use more than 255 characters in a unique index.
Diffstat (limited to 'server/sonar-web/src/main/js/apps/organizations')
-rw-r--r--server/sonar-web/src/main/js/apps/organizations/components/OrganizationEdit.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/organizations/components/__tests__/__snapshots__/OrganizationEdit-test.tsx.snap6
2 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationEdit.tsx b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationEdit.tsx
index 28e99ee3a3e..03a0be23ef9 100644
--- a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationEdit.tsx
+++ b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationEdit.tsx
@@ -119,7 +119,7 @@ export class OrganizationEdit extends React.PureComponent<Props, State> {
<input
disabled={this.state.loading}
id="organization-name"
- maxLength={300}
+ maxLength={255}
name="name"
onChange={e => this.setState({ name: e.target.value })}
required={true}
diff --git a/server/sonar-web/src/main/js/apps/organizations/components/__tests__/__snapshots__/OrganizationEdit-test.tsx.snap b/server/sonar-web/src/main/js/apps/organizations/components/__tests__/__snapshots__/OrganizationEdit-test.tsx.snap
index 63cf648f317..71bc33ee084 100644
--- a/server/sonar-web/src/main/js/apps/organizations/components/__tests__/__snapshots__/OrganizationEdit-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/organizations/components/__tests__/__snapshots__/OrganizationEdit-test.tsx.snap
@@ -40,7 +40,7 @@ exports[`smoke test 1`] = `
<input
disabled={false}
id="organization-name"
- maxLength={300}
+ maxLength={255}
name="name"
onChange={[Function]}
required={true}
@@ -176,7 +176,7 @@ exports[`smoke test 2`] = `
<input
disabled={false}
id="organization-name"
- maxLength={300}
+ maxLength={255}
name="name"
onChange={[Function]}
required={true}
@@ -327,7 +327,7 @@ exports[`smoke test 3`] = `
<input
disabled={true}
id="organization-name"
- maxLength={300}
+ maxLength={255}
name="name"
onChange={[Function]}
required={true}