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

Drop obsolete constraint on server table #371

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

kofrezo
Copy link
Contributor

@kofrezo kofrezo commented Jul 24, 2024

This constraint ensured that they are no duplicate ip addresses per servertype for objects of ip address type other than loadbalancer.

This is now ensured and checked in the clean method of the Server model. This has the advantage that errors are raised as validation exceptions properly displayed in the Servershell and adminapi as errors. The constraints are swallowed as database exception.

This constraint ensured that they are no duplicate ip addresses per
servertype for objects of ip address type other than loadbalancer.

This is now ensured and checked in the clean method of the Server model.
This has the advantage that errors are raised as validation exceptions
properly displayed in the Servershell and adminapi as errors. The
constraints are swallowed as database exception.
@kofrezo kofrezo requested a review from brainexe July 24, 2024 12:44
@kofrezo kofrezo self-assigned this Jul 24, 2024
@kofrezo kofrezo merged commit 3efb012 into main Jul 24, 2024
5 checks passed
@kofrezo kofrezo deleted the dk_serverdb_remove_obsolete_constraint branch July 24, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants