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

Rename the Contact model to RegistrationContact #373

Merged
merged 5 commits into from
Sep 3, 2024

Conversation

peteeckel
Copy link
Owner

@peteeckel peteeckel commented Aug 27, 2024

When the feature to enable the management of domain registration information was introduced, it seemed like a good idea to name the model for the Admin-C, Tech-C etc. "Contact". The idea was that namespacing by the plugin's application name would provide enough separation from the core "Contact" model.

Turned out, that idea was wrong. When Strawberry replaced the old GraphQL package in NetBox, the collisions became apparent as Strawberry does not observe the namespacing by app. This could be worked around, but error messages when creating the strawberry schema remained.

For this reason, this PR renames the "Contact" model to "RegistrationContact", which resolves the issue.

Breaking Change

This is a breaking change. All API and script applications using DNS registration contacts will need to be adjusted. This seems to be a minor price to pay for a cleaner integration into NetBox.

This PR will be merged before NetBox DNS 1.1.0 is released (shortly after the release of NetBox 4.1.0)

@peteeckel peteeckel self-assigned this Aug 27, 2024
@peteeckel peteeckel marked this pull request as draft August 27, 2024 15:30
@peteeckel peteeckel force-pushed the feature/rename-contact-model branch 4 times, most recently from 49ef740 to a227cee Compare August 29, 2024 08:06
@peteeckel peteeckel force-pushed the feature/rename-contact-model branch 2 times, most recently from 608c9e2 to 36c3527 Compare September 3, 2024 16:16
@peteeckel peteeckel marked this pull request as ready for review September 3, 2024 16:17
@peteeckel peteeckel merged commit 78dcfdc into main Sep 3, 2024
6 checks passed
@peteeckel peteeckel deleted the feature/rename-contact-model branch September 3, 2024 16:46
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.

1 participant