Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add specific check for duplicate cat URLS #359

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

ryanlerch
Copy link
Contributor

previously, if a user tried to create a category URL that already existed in a category, it was caught as a SQLALCHEMY integrity error, and the application did not crash. However we just printed the exception to the logs, and it looked like an error. This commit adds some error checking to see if the URL already exitst, and informs the user as such.

Resolves: #317

previously, if a user tried to create a category URL that already
existed in a category, it was caught as a SQLALCHEMY integrity error,
and the application did not crash. However we just printed the exception
to the logs, and it looked like an error. This commit adds some error
checking to see if the URL already exitst, and informs the user as such.

Resolves: fedora-infra#317

Signed-off-by: Ryan Lerch <[email protected]>
@abompard abompard force-pushed the master branch 4 times, most recently from 861f200 to d9d0078 Compare July 12, 2024 10:19
@abompard abompard merged commit 5b71abd into fedora-infra:master Jul 30, 2024
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(IntegrityError) duplicate key value violates unique constraint "host_category_url_url_key"
2 participants