[PR #6873] [MERGED] Closes #6829: GraphQL reverse generic relations #13179

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/6873
Author: @jeremystretch
Created: 8/3/2021
Status: Merged
Merged: 8/3/2021
Merged by: @jeremystretch

Base: featureHead: 6829-graphql-reverse-relations


📝 Commits (9)

📊 Changes

15 files changed (+266 additions, -88 deletions)

View changed files

📝 docs/release-notes/version-3.0.md (+4 -0)
📝 netbox/circuits/graphql/types.py (+6 -6)
📝 netbox/dcim/graphql/types.py (+70 -34)
📝 netbox/dcim/models/racks.py (+6 -0)
📝 netbox/dcim/models/sites.py (+24 -0)
netbox/extras/graphql/mixins.py (+45 -0)
📝 netbox/extras/graphql/types.py (+17 -8)
netbox/ipam/graphql/mixins.py (+20 -0)
📝 netbox/ipam/graphql/types.py (+12 -12)
📝 netbox/netbox/graphql/types.py (+28 -17)
📝 netbox/netbox/models.py (+5 -0)
📝 netbox/tenancy/graphql/types.py (+3 -3)
📝 netbox/utilities/testing/api.py (+6 -2)
📝 netbox/virtualization/graphql/types.py (+8 -6)
📝 netbox/virtualization/models.py (+12 -0)

📄 Description

Closes: #6829

  • Refactor base object types
  • Introduce ObjectChangeType
  • Add support for most reverse generic relationships called out in the feature request

🔄 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/6873 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/3/2021 **Status:** ✅ Merged **Merged:** 8/3/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `6829-graphql-reverse-relations` --- ### 📝 Commits (9) - [`0df67db`](https://github.com/netbox-community/netbox/commit/0df67dbc12783b1322a8bd48f3d888d6411e39f4) Add ip_addresses relation on InterfaceType, VMInterfaceType - [`8ad9587`](https://github.com/netbox-community/netbox/commit/8ad958708f266c5f10e54596fc0bd9502da7d450) Add image_attachments to Device, Location, Rack, Site - [`735286d`](https://github.com/netbox-community/netbox/commit/735286d3b0c6fa772dd151c8935509a1f82a5f8e) Add vlan_groups to Region, SiteGroup, Site, Location, Rack, ClusterGroup, Cluster - [`c416fce`](https://github.com/netbox-community/netbox/commit/c416fce400e6f8fd3d06f18e61a483b9b5f0b0ee) Refactor base Graphene object types - [`ea86321`](https://github.com/netbox-community/netbox/commit/ea86321da80a7e1df8846c1f552abbe9f9a219de) Add journal_entries to Graphene object types for all primary models - [`1518a46`](https://github.com/netbox-community/netbox/commit/1518a460d58a5af23eb5ed5ab5dd08ad7186c822) Rename base Graphene types to match base models - [`88d2441`](https://github.com/netbox-community/netbox/commit/88d2441ab377ddac17ecf59028fa07623f97f2ab) Add changelog GraphQL relation for changelogged models - [`cc26bc4`](https://github.com/netbox-community/netbox/commit/cc26bc485840f4456fdd099ee1f7fedb923afbd7) Changelog for #6829 - [`1b61281`](https://github.com/netbox-community/netbox/commit/1b612816cc767f5ef4d8db0e69d0a3949d31e8ac) Merge branch 'feature' into 6829-graphql-reverse-relations ### 📊 Changes **15 files changed** (+266 additions, -88 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-notes/version-3.0.md` (+4 -0) 📝 `netbox/circuits/graphql/types.py` (+6 -6) 📝 `netbox/dcim/graphql/types.py` (+70 -34) 📝 `netbox/dcim/models/racks.py` (+6 -0) 📝 `netbox/dcim/models/sites.py` (+24 -0) ➕ `netbox/extras/graphql/mixins.py` (+45 -0) 📝 `netbox/extras/graphql/types.py` (+17 -8) ➕ `netbox/ipam/graphql/mixins.py` (+20 -0) 📝 `netbox/ipam/graphql/types.py` (+12 -12) 📝 `netbox/netbox/graphql/types.py` (+28 -17) 📝 `netbox/netbox/models.py` (+5 -0) 📝 `netbox/tenancy/graphql/types.py` (+3 -3) 📝 `netbox/utilities/testing/api.py` (+6 -2) 📝 `netbox/virtualization/graphql/types.py` (+8 -6) 📝 `netbox/virtualization/models.py` (+12 -0) </details> ### 📄 Description ### Closes: #6829 - Refactor base object types - Introduce ObjectChangeType - Add support for most reverse generic relationships called out in the feature request --- <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:25:49 +01:00
adam closed this issue 2025-12-29 22:25:50 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13179