[PR #20130] [MERGED] Closes #20129: Enable dynamic model feature registration #15831

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20130
Author: @jeremystretch
Created: 8/19/2025
Status: Merged
Merged: 8/20/2025
Merged by: @jnovinger

Base: featureHead: 20129-model-feature-registration


📝 Commits (2)

  • a9a97eb Closes #20129: Enable dynamic model feature registration
  • f09fa4a Correct import path for register_model_feature()

📊 Changes

6 files changed (+98 additions, -85 deletions)

View changed files

📝 docs/development/application-registry.md (+3 -18)
📝 docs/development/models.md (+20 -13)
📝 docs/plugins/development/models.md (+22 -14)
📝 netbox/core/models/object_types.py (+3 -3)
📝 netbox/netbox/models/features.py (+20 -37)
📝 netbox/netbox/utils.py (+30 -0)

📄 Description

Closes: #20129

  • Introduce the register_model_feature() function for registering individual model features by name
  • Replace FEATURES_MAP with calls to register_model_feature()
  • Update development documentation

🔄 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/20130 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/19/2025 **Status:** ✅ Merged **Merged:** 8/20/2025 **Merged by:** [@jnovinger](https://github.com/jnovinger) **Base:** `feature` ← **Head:** `20129-model-feature-registration` --- ### 📝 Commits (2) - [`a9a97eb`](https://github.com/netbox-community/netbox/commit/a9a97ebec19c5b153f2dfa01a2ba0b1b758b14d0) Closes #20129: Enable dynamic model feature registration - [`f09fa4a`](https://github.com/netbox-community/netbox/commit/f09fa4a2c22304b45bd3cfbf282b9d73375ab5e8) Correct import path for register_model_feature() ### 📊 Changes **6 files changed** (+98 additions, -85 deletions) <details> <summary>View changed files</summary> 📝 `docs/development/application-registry.md` (+3 -18) 📝 `docs/development/models.md` (+20 -13) 📝 `docs/plugins/development/models.md` (+22 -14) 📝 `netbox/core/models/object_types.py` (+3 -3) 📝 `netbox/netbox/models/features.py` (+20 -37) 📝 `netbox/netbox/utils.py` (+30 -0) </details> ### 📄 Description ### Closes: #20129 - Introduce the `register_model_feature()` function for registering individual model features by name - Replace `FEATURES_MAP` with calls to `register_model_feature()` - Update development documentation --- <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:24:18 +01:00
adam closed this issue 2025-12-30 00:24:18 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15831