[PR #20919] [MERGED] Closes #13182: Support PrimaryModel and OrganizationalModel in plugins #16088

Closed
opened 2025-12-30 00:25:43 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20919
Author: @jeremystretch
Created: 12/3/2025
Status: Merged
Merged: 12/9/2025
Merged by: @arthanson

Base: featureHead: 13182-plugins-api-models


📝 Commits (6)

📊 Changes

7 files changed (+138 additions, -22 deletions)

View changed files

📝 docs/plugins/development/filtersets.md (+8 -0)
📝 docs/plugins/development/forms.md (+46 -6)
📝 docs/plugins/development/graphql-api.md (+16 -0)
📝 docs/plugins/development/models.md (+40 -0)
📝 docs/plugins/development/rest-api.md (+8 -0)
📝 docs/plugins/development/tables.md (+8 -0)
📝 netbox/netbox/forms/filtersets.py (+12 -16)

📄 Description

Closes: #13182

  • Document support for the base model classes
  • Document support for base class-specific resources:
    • Filtersets
    • Forms
    • GraphQL API filters
    • REST API serializers
    • Tables
  • Introduce OwnerFilterMixin and refactor the filterset forms

🔄 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/20919 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 12/3/2025 **Status:** ✅ Merged **Merged:** 12/9/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `feature` ← **Head:** `13182-plugins-api-models` --- ### 📝 Commits (6) - [`6d777a2`](https://github.com/netbox-community/netbox/commit/6d777a20ad7f2daa48e390bfc6b2e48dbbcd84fe) Initial work on #13182 - [`1715ce6`](https://github.com/netbox-community/netbox/commit/1715ce6cdd7a752dc93cd0e5e0c1333fa5ae0821) Document remaining primary/organizational/nestedgroup resources for the plugins API (except GraphQL types & filters) - [`16c8dff`](https://github.com/netbox-community/netbox/commit/16c8dffe7c50440e4b521b17ca0598670b6f2355) Refactor filterset forms to use OwnerFilterMixin - [`6dc0020`](https://github.com/netbox-community/netbox/commit/6dc00206a485e22054a02185134626ee2beeb623) Add GraphQL filter classes - [`3317169`](https://github.com/netbox-community/netbox/commit/33171693293d92079a190428de76d2a83ec054d3) Clean up formatting - [`71aba26`](https://github.com/netbox-community/netbox/commit/71aba26917c582e50cf3d9291fd8772a19169ef4) Correct table header ### 📊 Changes **7 files changed** (+138 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `docs/plugins/development/filtersets.md` (+8 -0) 📝 `docs/plugins/development/forms.md` (+46 -6) 📝 `docs/plugins/development/graphql-api.md` (+16 -0) 📝 `docs/plugins/development/models.md` (+40 -0) 📝 `docs/plugins/development/rest-api.md` (+8 -0) 📝 `docs/plugins/development/tables.md` (+8 -0) 📝 `netbox/netbox/forms/filtersets.py` (+12 -16) </details> ### 📄 Description ### Closes: #13182 - Document support for the base model classes - Document support for base class-specific resources: - Filtersets - Forms - GraphQL API filters - REST API serializers - Tables - Introduce `OwnerFilterMixin` and refactor the filterset forms --- <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-30 00:25:43 +01:00
adam closed this issue 2025-12-30 00:25:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#16088