[openSUSE/open-build-service] 9bed78: Add uniqueness validation for token string
Branch: refs/heads/refactor_trigger_webhooks_controllers Home: https://github.com/openSUSE/open-build-service Commit: 9bed780a4c7c94fd8873461ba2d6773ec4d2698a https://github.com/openSUSE/open-build-service/commit/9bed780a4c7c94fd887346... Author: Lukas Krause <lkrause@suse.de> Date: 2021-04-26 (Mon, 26 Apr 2021) Changed paths: M src/api/app/models/token.rb Log Message: ----------- Add uniqueness validation for token string On the database level we already ensure the uniqueness of the token string through an uniq index. In order to properly test this in the model specs and to have better exception handling, the validation should also be present in the token model. Commit: f6bc3668eb0fba39f274d7eabaad20db4d1afca7 https://github.com/openSUSE/open-build-service/commit/f6bc3668eb0fba39f274d7... Author: Victor Pereira <vpereira@suse.de> Date: 2021-04-26 (Mon, 26 Apr 2021) Changed paths: M src/api/app/models/token.rb Log Message: ----------- Merge pull request #11034 from krauselukas/token_model_uniqueness_validation Add uniqueness validation for token string Compare: https://github.com/openSUSE/open-build-service/compare/f188ed3da888...f6bc36...
participants (1)
-
Victor Pereira