[PR #19995] [MERGED] Closes #19973: nbshell improvements #15786

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19995
Author: @jeremystretch
Created: 7/31/2025
Status: Merged
Merged: 8/1/2025
Merged by: @arthanson

Base: featureHead: 19973-update-nbshell


📝 Commits (3)

  • 19f89ac #19973: Improve & extend nbhshell banner text
  • 1f04cff Populate namespaced models & constants from all core apps and plugins
  • 8b20b2e Introduce lsapps() and extend lsmodels()

📊 Changes

3 files changed (+117 additions, -53 deletions)

View changed files

📝 base_requirements.txt (+4 -0)
📝 netbox/core/management/commands/nbshell.py (+112 -53)
📝 requirements.txt (+1 -0)

📄 Description

Closes: #19973

  • Declare colorama as an explicit dependency (already required by Django)
  • List installed plugins in nbshell banner text
  • Load all models and constants from plugins in addition to core apps
  • Namespace all core & plugin models and constants
  • Clean up obsolete references
  • Implement color highlighting
  • Add lsapps() helper function & extend lsmodels() to accept an app label argument

🔄 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/19995 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 7/31/2025 **Status:** ✅ Merged **Merged:** 8/1/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `feature` ← **Head:** `19973-update-nbshell` --- ### 📝 Commits (3) - [`19f89ac`](https://github.com/netbox-community/netbox/commit/19f89acc3a214e4cec967f071dad418e57322c6b) #19973: Improve & extend nbhshell banner text - [`1f04cff`](https://github.com/netbox-community/netbox/commit/1f04cff82885b5e6eaee823262982d554db52532) Populate namespaced models & constants from all core apps and plugins - [`8b20b2e`](https://github.com/netbox-community/netbox/commit/8b20b2e99290aa42386c94c150ba7277e43eb3dc) Introduce lsapps() and extend lsmodels() ### 📊 Changes **3 files changed** (+117 additions, -53 deletions) <details> <summary>View changed files</summary> 📝 `base_requirements.txt` (+4 -0) 📝 `netbox/core/management/commands/nbshell.py` (+112 -53) 📝 `requirements.txt` (+1 -0) </details> ### 📄 Description ### Closes: #19973 - Declare `colorama` as an explicit dependency (already required by Django) - List installed plugins in `nbshell` banner text - Load all models and constants from plugins in addition to core apps - Namespace all core & plugin models and constants - Clean up obsolete references - Implement color highlighting - Add `lsapps()` helper function & extend `lsmodels()` to accept an app label argument --- <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:04 +01:00
adam closed this issue 2025-12-30 00:24:04 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15786