-
Notifications
You must be signed in to change notification settings - Fork 992
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error messages when a pending Trusted Publisher's project nam…
…e already exists (#17405) * Improve error messages when creating projects and publishers This change improves the error messages when uploading a new project or creating a pending Trusted Publisher, when the new project's name already exists or is too similar to an existing project. Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com> * Fix test error Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com> * Fix name checking Fix the check for projects with too-similar names when there is more than one existing project with the same ultranormalized name. Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com> * Remove similar name from error messages Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com> * Move errors back to interfaces.py Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com> * De-parametrize tests Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com> * Use exceptions instead of errors Also change the TooSimilar error to store the conflicting project name instead of a reference to the entire project. Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com> * Address review comments Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com> --------- Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com>
- Loading branch information
1 parent
0e7e85f
commit 4775901
Showing
15 changed files
with
384 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.