feat: uniqueness (#1190)

* feat: uniqueness on events

* fix: some tests

* fix: add unique username

* fix: nice error message

* fix: add unique test

* fix: add unique test

* fix: add unique constraint to events

* fix: correct unique constraint on user events

* fix: remove user constraint

* fix: add unique constraints

* fix: add unique constraints

* fix: add unique constraints

* fix: unnique constraints without interface

* fix: unique idp config

* fix: unique constraint comments

* fix: unique constraints in one table

* fix: unique constraints error

* fix: fix unique constraint on create user

* fix: fix unique constraint on create project

* fix: fix unique constraint on idp configs
This commit is contained in:
Fabi
2021-01-21 10:49:38 +01:00
committed by GitHub
parent c2e6e782a8
commit 28bfe72930
62 changed files with 1046 additions and 313 deletions

View File

@@ -5,6 +5,7 @@ Errors:
IDMissing: ID missing
User:
NotFound: User could not be found
AlreadyExists: User already exists
NotFoundOnOrg: User could not be found on chosen organisation
NotAllowedOrg: User is no member of the required organisation
UserIDMissing: User ID missing
@@ -41,6 +42,7 @@ Errors:
NotMachine: The User must be technical
NotAllowedToLink: User is not allowed to link with external login provider
Username:
AlreadyExists: Username already taken
Reservied: Username is already taken
Code:
Empty: Code is empty
@@ -64,6 +66,7 @@ Errors:
IDPConfigNotExisting: IDP provider invalid for this organisation
NotAllowed: External IDP not allowed on this organisation
MinimumExternalIDPNeeded: At least one IDP must be added
AlreadyExists: External IDP already taken
MFA:
OTP:
AlreadyReady: Multifactor OTP (OneTimePassword) is already set up
@@ -84,6 +87,7 @@ Errors:
ValidateLoginFailed: Error on validate login credentials
CloneWarning: Credentials may be cloned
Org:
AlreadyExist: Organisationname already taken
Invalid: Organisation is invalid
AlreadyDeactivated: Organisation is already deactivated
AlreadyActive: Organisation is already ative
@@ -247,6 +251,8 @@ Errors:
NotActive: User grant is not active
NotInactive: User grant is not deactivated
NoPermissionForProject: User has no permissions on this project
IDPConfig:
AlreadyExists: IDP Configuration with this name already exists
Changes:
NotFound: No history found
Token: