Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dgarros
Copy link
Contributor

@dgarros dgarros commented May 10, 2021

Fixes: #396

This PR improves how we are validating the source_filter and destination_filter in a Relationship object during clean() by loading the value of the filter in the right filterset. Any error reported by the filterset will raise a ValidationError.

In the process I had to fix some unit tests that were using non valid parameters

Copy link
Contributor

@jathanism jathanism left a comment

Choose a reason for hiding this comment

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

Just nitpicking naming of variables here to be consistent with multi-words (improving readability).

@dgarros dgarros requested a review from glennmatthews May 24, 2021 14:07
@glennmatthews glennmatthews merged commit f6d3b05 into nautobot:develop May 25, 2021
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.

Wrong relationship filter are not throwing a Validation Error

3 participants