[PR #8562] [MERGED] Closes #8405: GraphQL support for plugins #13368

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8562
Author: @jeremystretch
Created: 2/4/2022
Status: Merged
Merged: 2/7/2022
Merged by: @jeremystretch

Base: featureHead: 8405-plugins-graphql


📝 Commits (3)

  • df95115 Refactor plugins registry
  • 03ea257 Initial work on GraphQL
  • dae5c94 Expose BaseObjectType and NetBoxObjectType for plugins

📊 Changes

18 files changed (+201 additions, -87 deletions)

View changed files

docs/plugins/development/graphql.md (+59 -0)
📝 docs/plugins/development/index.md (+19 -18)
📝 mkdocs.yml (+1 -0)
📝 netbox/circuits/graphql/types.py (+4 -4)
📝 netbox/dcim/graphql/types.py (+11 -11)
📝 netbox/extras/plugins/__init__.py (+32 -12)
📝 netbox/extras/templatetags/plugins.py (+1 -1)
netbox/extras/tests/dummy_plugin/graphql.py (+21 -0)
📝 netbox/extras/tests/test_plugins.py (+15 -5)
📝 netbox/ipam/graphql/types.py (+12 -12)
📝 netbox/netbox/graphql/fields.py (+6 -7)
📝 netbox/netbox/graphql/schema.py (+2 -0)
📝 netbox/netbox/graphql/types.py (+5 -4)
📝 netbox/netbox/navigation_menu.py (+2 -2)
📝 netbox/netbox/preferences.py (+2 -2)
📝 netbox/tenancy/graphql/types.py (+3 -3)
📝 netbox/virtualization/graphql/types.py (+3 -3)
📝 netbox/wireless/graphql/types.py (+3 -3)

📄 Description

Fixes: #8405

  • Refactors the registry to group plugin features under plugins
  • Exposes object type and field classes for use by plugins
  • Renames PrimaryObjectType to NetBoxObjectType
  • Documentation & tests

🔄 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/8562 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 2/4/2022 **Status:** ✅ Merged **Merged:** 2/7/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `8405-plugins-graphql` --- ### 📝 Commits (3) - [`df95115`](https://github.com/netbox-community/netbox/commit/df95115e2e559afc5866390d6d06f66ae7db8ae0) Refactor plugins registry - [`03ea257`](https://github.com/netbox-community/netbox/commit/03ea25771141dd8406e4ed9eb4797e4e8d8f70bf) Initial work on GraphQL - [`dae5c94`](https://github.com/netbox-community/netbox/commit/dae5c94be0d9a8fb22dbe0f0e4c9cf94db6d0bb0) Expose BaseObjectType and NetBoxObjectType for plugins ### 📊 Changes **18 files changed** (+201 additions, -87 deletions) <details> <summary>View changed files</summary> ➕ `docs/plugins/development/graphql.md` (+59 -0) 📝 `docs/plugins/development/index.md` (+19 -18) 📝 `mkdocs.yml` (+1 -0) 📝 `netbox/circuits/graphql/types.py` (+4 -4) 📝 `netbox/dcim/graphql/types.py` (+11 -11) 📝 `netbox/extras/plugins/__init__.py` (+32 -12) 📝 `netbox/extras/templatetags/plugins.py` (+1 -1) ➕ `netbox/extras/tests/dummy_plugin/graphql.py` (+21 -0) 📝 `netbox/extras/tests/test_plugins.py` (+15 -5) 📝 `netbox/ipam/graphql/types.py` (+12 -12) 📝 `netbox/netbox/graphql/fields.py` (+6 -7) 📝 `netbox/netbox/graphql/schema.py` (+2 -0) 📝 `netbox/netbox/graphql/types.py` (+5 -4) 📝 `netbox/netbox/navigation_menu.py` (+2 -2) 📝 `netbox/netbox/preferences.py` (+2 -2) 📝 `netbox/tenancy/graphql/types.py` (+3 -3) 📝 `netbox/virtualization/graphql/types.py` (+3 -3) 📝 `netbox/wireless/graphql/types.py` (+3 -3) </details> ### 📄 Description ### Fixes: #8405 - Refactors the registry to group plugin features under `plugins` - Exposes object type and field classes for use by plugins - Renames `PrimaryObjectType` to `NetBoxObjectType` - Documentation & tests --- <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:27:01 +01:00
adam closed this issue 2025-12-29 22:27:01 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13368