[PR #7575] [MERGED] Closes #1344: Contact objects #13253

Closed
opened 2025-12-29 22:26:16 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/7575
Author: @jeremystretch
Created: 10/18/2021
Status: Merged
Merged: 10/19/2021
Merged by: @jeremystretch

Base: featureHead: 1344-contacts


📝 Commits (7)

  • 2e78568 Initial work on contacts
  • f193f0d Add contact assignments to models
  • faf1e6a Add contact/role assignment tables
  • f485a47 Tweak uniqueness constraints
  • 487d677 Cleanup and documentation for #1344
  • b44a5ea Prevent duplicate contact assignments
  • 554b44b Fix string repr for ContactAssignment

📊 Changes

50 files changed (+1971 additions, -75 deletions)

View changed files

docs/core-functionality/contacts.md (+5 -0)
docs/models/tenancy/contact.md (+31 -0)
docs/models/tenancy/contactgroup.md (+3 -0)
docs/models/tenancy/contactrole.md (+3 -0)
📝 mkdocs.yml (+1 -0)
📝 netbox/circuits/models.py (+10 -0)
📝 netbox/dcim/models/devices.py (+10 -0)
📝 netbox/dcim/models/power.py (+5 -0)
📝 netbox/dcim/models/racks.py (+5 -0)
📝 netbox/dcim/models/sites.py (+20 -0)
📝 netbox/netbox/navigation_menu.py (+8 -0)
📝 netbox/templates/circuits/circuit.html (+6 -5)
📝 netbox/templates/circuits/provider.html (+2 -1)
📝 netbox/templates/dcim/device.html (+1 -0)
📝 netbox/templates/dcim/location.html (+1 -0)
📝 netbox/templates/dcim/manufacturer.html (+1 -0)
📝 netbox/templates/dcim/powerpanel.html (+1 -0)
📝 netbox/templates/dcim/rack.html (+1 -0)
📝 netbox/templates/dcim/region.html (+1 -0)
📝 netbox/templates/dcim/site.html (+52 -37)

...and 30 more files

📄 Description

Closes: #1344

Introduces the following models within the tenancy app:

  • ContactGroup - Self-nesting organizational model for contacts (similar to SiteGroup)
  • Contact - Represents a reusable set of contact info (name, title, phone, email, etc.)
  • ContactRole - Functional role of the relationship between a contact and an object in NetBox
  • ContactAssignment - Binds a mapping of object, contact, and role; also conveys priority

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/7575 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 10/18/2021 **Status:** ✅ Merged **Merged:** 10/19/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `1344-contacts` --- ### 📝 Commits (7) - [`2e78568`](https://github.com/netbox-community/netbox/commit/2e78568d4de3afe015cb50fd2a4461b30b7b6557) Initial work on contacts - [`f193f0d`](https://github.com/netbox-community/netbox/commit/f193f0d3f9d465872dbb01f9eaf976ded3e4fb3a) Add contact assignments to models - [`faf1e6a`](https://github.com/netbox-community/netbox/commit/faf1e6a43d75cf826c9b460356a70814eb8427d2) Add contact/role assignment tables - [`f485a47`](https://github.com/netbox-community/netbox/commit/f485a47b4849c1e756f3d3c5c56c3ccb49688a03) Tweak uniqueness constraints - [`487d677`](https://github.com/netbox-community/netbox/commit/487d67768bf6a52c9e96e8a1a3aebda17640f0fe) Cleanup and documentation for #1344 - [`b44a5ea`](https://github.com/netbox-community/netbox/commit/b44a5ea60956f63a5514f7b221a9914e3f510012) Prevent duplicate contact assignments - [`554b44b`](https://github.com/netbox-community/netbox/commit/554b44b9f2dfc8d10ddc2e4b3dd492c57bc81d4b) Fix string repr for ContactAssignment ### 📊 Changes **50 files changed** (+1971 additions, -75 deletions) <details> <summary>View changed files</summary> ➕ `docs/core-functionality/contacts.md` (+5 -0) ➕ `docs/models/tenancy/contact.md` (+31 -0) ➕ `docs/models/tenancy/contactgroup.md` (+3 -0) ➕ `docs/models/tenancy/contactrole.md` (+3 -0) 📝 `mkdocs.yml` (+1 -0) 📝 `netbox/circuits/models.py` (+10 -0) 📝 `netbox/dcim/models/devices.py` (+10 -0) 📝 `netbox/dcim/models/power.py` (+5 -0) 📝 `netbox/dcim/models/racks.py` (+5 -0) 📝 `netbox/dcim/models/sites.py` (+20 -0) 📝 `netbox/netbox/navigation_menu.py` (+8 -0) 📝 `netbox/templates/circuits/circuit.html` (+6 -5) 📝 `netbox/templates/circuits/provider.html` (+2 -1) 📝 `netbox/templates/dcim/device.html` (+1 -0) 📝 `netbox/templates/dcim/location.html` (+1 -0) 📝 `netbox/templates/dcim/manufacturer.html` (+1 -0) 📝 `netbox/templates/dcim/powerpanel.html` (+1 -0) 📝 `netbox/templates/dcim/rack.html` (+1 -0) 📝 `netbox/templates/dcim/region.html` (+1 -0) 📝 `netbox/templates/dcim/site.html` (+52 -37) _...and 30 more files_ </details> ### 📄 Description ### Closes: #1344 Introduces the following models within the tenancy app: * ContactGroup - Self-nesting organizational model for contacts (similar to SiteGroup) * Contact - Represents a reusable set of contact info (name, title, phone, email, etc.) * ContactRole - Functional role of the relationship between a contact and an object in NetBox * ContactAssignment - Binds a mapping of object, contact, and role; also conveys priority --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:26:16 +01:00
adam closed this issue 2025-12-29 22:26:16 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13253