Skip to content

Conversation

@renatoalmeidaoliveira
Copy link
Contributor

Fixes: #18579 Add contact filters to services

  • Added the ContactModelFilterSet to every ModelFilterSet where it was missing
  • Added ContactModelFilterForm to every ModelFilterForm where it was missing
  • Added the appropriated FieldSet for Contacts

As @bctiemann commented in the issue, there were several other model classes with ContactsMixin that didn’t have the appropriate fields and filters.
The following models were fixed in this PR:

  • Services
  • ProviderAccount
  • Aggregate
  • Prefix
  • IPRange
  • IPAddress
  • L2VPN
  • TunnelGroup
  • Tunnel

@renatoalmeidaoliveira renatoalmeidaoliveira requested review from a team and jnovinger and removed request for a team March 5, 2025 13:37
Copy link
Member

@jnovinger jnovinger left a comment

Choose a reason for hiding this comment

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

Contact related filters are not working for ProviderAccount--I'm seeing false positives. Looks like maybe you missed updating the filterset.
image

Copy link
Member

@jnovinger jnovinger left a comment

Choose a reason for hiding this comment

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

Hey @renatoalmeidaoliveira , my apologies, I noticed something on my second look that I completely missed the first time re: parent class ordering. Let me know if you have any questions.

The changes for my the review look great, thanks. Also, added a couple of suggestions for import ordering, for consistency's sake.

Setup NetBoxModelFilterSetForm as the last inherited class

Co-authored-by: Jason Novinger <[email protected]>
@jnovinger jnovinger merged commit 3ef7ab4 into netbox-community:main Mar 6, 2025
3 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2025
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.

Add contact filters to services

2 participants