-
Notifications
You must be signed in to change notification settings - Fork 263
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
Inconsistency in ContactAssociation uniqueness constraints #5644
Labels
type: bug
Something isn't working as expected
Comments
I will be submitting a PR shortly that fixes this issue. |
jdueitt
added a commit
to jdueitt/nautobot
that referenced
this issue
Apr 30, 2024
jdueitt
added a commit
to jdueitt/nautobot
that referenced
this issue
Apr 30, 2024
jdueitt
added a commit
to jdueitt/nautobot
that referenced
this issue
Apr 30, 2024
4 tasks
@glennmatthews the PR is now in for this. From my perspective, I have this resolved and it's not a hot button issue for me. So, no need to rush a new release out to get this rolled in. |
jdueitt
added a commit
to jdueitt/nautobot
that referenced
this issue
May 1, 2024
Done so that all related objects can be found and objects built at test time.
glennmatthews
pushed a commit
that referenced
this issue
May 2, 2024
* Add a test for importing contact associations (#5644) * Align the uniqueness constraints of the model with the API serializer (#5644) * Closes #5644: Align constraints in serializer and model * Move the change log fragment to the proper location. * Add Roles to the test (#5644) Done so that all related objects can be found and objects built at test time.
edwardtheharris
pushed a commit
to edwardtheharris/nautobot
that referenced
this issue
Jul 15, 2024
* Add a test for importing contact associations (nautobot#5644) * Align the uniqueness constraints of the model with the API serializer (nautobot#5644) * Closes nautobot#5644: Align constraints in serializer and model * Move the change log fragment to the proper location. * Add Roles to the test (nautobot#5644) Done so that all related objects can be found and objects built at test time.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Performing a Import Objects job on the content type of
extras | contact association
does not honor the same uniqueness constraints as using the form to manually enter a new association. Specifically, associated the same contact, and role to multiple objects will result in a failure using the Job, but can be done manually by going to each object and assigning the contact.Test Data
Location Types
Locations
Contacts
Steps to Reproduce
Expected Behavior
The expected behavior is the form indicating that it successfully imported the contact associations.
![NautobotContactAssociationImport-0003](https://private-user-images.githubusercontent.com/635290/326546677-920c150a-fc55-48ee-9f8d-f07c2f8496ea.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMTExOTIsIm5iZiI6MTcyMjExMDg5MiwicGF0aCI6Ii82MzUyOTAvMzI2NTQ2Njc3LTkyMGMxNTBhLWZjNTUtNDhlZS05ZjhkLWYwN2MyZjg0OTZlYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyN1QyMDA4MTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03OGFjNzRhNmMwNmRhZmFhOTE2YWNlNWFiNjZmMDI4MjI0YmJmOWEwOTJjNTY4ODI0MTc4NTg3OGU1NWExNWYwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.hnqvevaDlFK0iCzPe2DR0tc0I5DYnRgnmwF12FBXjQY)
Observed Behavior
The text was updated successfully, but these errors were encountered: