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

14033 raise validation error if A and B term go to same object #14050

Merged
merged 3 commits into from
Nov 1, 2023

Conversation

arthanson
Copy link
Collaborator

Fixes: #14033

On cable creation, don't allow cables to have A and B terminations pointing to the same object.

@arthanson arthanson marked this pull request as ready for review October 16, 2023 21:37
Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per @abhi1693's comment, let's move this logic from the form to Cable.clean() to ensure the same validation is applied for cables created via the REST API as well.

@jeremystretch
Copy link
Member

Thanks @arthanson!

@jeremystretch jeremystretch merged commit b3fb393 into develop Nov 1, 2023
8 checks passed
@jeremystretch jeremystretch deleted the 14033-cable-same-object branch November 1, 2023 20:30
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cable registration to the same Interface results in a server error.
3 participants