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 fehlt
User:
NotFound: Benutzer konnte nicht gefunden werden
AlreadyExists: Benutzer existierts bereits
NotFoundOnOrg: Benutzer konnte in der gewünschten Organisation nicht gefunden werden
NotAllowedOrg: Benutzer gehört nicht der benötigten Organisation an
UserIDMissing: User ID fehlt
@@ -41,6 +42,7 @@ Errors:
NotMachine: Der Benutzer muss technisch sein
NotAllowedToLink: Der Benutzer darf nicht mit einem externen Login Provider verlinkt werden
Username:
AlreadyExists: Benutzername ist bereits vergeben
Reservied: Benutzername ist bereits vergeben
Code:
Empty: Code ist leer
@@ -64,6 +66,7 @@ Errors:
IDPConfigNotExisting: IDP Provider ungültig für diese Organisation
NotAllowed: Externer IDP ist auf dieser Organisation nicht erlaubt.
MinimumExternalIDPNeeded: Mindestens ein IDP muss hinzugefügt werden.
AlreadyExists: External IDP ist bereits vergeben
MFA:
OTP:
AlreadyReady: Multifaktor OTP (OneTimePassword) ist bereits eingerichtet
@@ -84,6 +87,7 @@ Errors:
ValidateLoginFailed: Zugangsdaten konnten nicht validiert werden
CloneWarning: Authentifizierungsdaten wurden möglicherweise geklont
Org:
AlreadyExist: Organisationsname existiert bereits
Invalid: Organisation ist ungültig
AlreadyDeactivated: Organisation ist bereits deaktiviert
AlreadyActive: Organisation ist bereits aktiv
@@ -250,6 +254,8 @@ Errors:
NotActive: Benutzer Berechtigung ist nicht aktiv
NotInactive: Benutzer Berechtigung ist nicht deaktiviert
NoPermissionForProject: Benutzer hat keine Rechte auf diesem Projekt
IDPConfig:
AlreadyExists: IDP Konfiguration mit diesem Name existiert bereits
Changes:
NotFound: Es konnte kein Änderungsverlauf gefunden werden
Token:

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: