[PR #19284] [MERGED] Fixes #19264: Support table configs on child object list views #15591

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19284
Author: @jeremystretch
Created: 4/23/2025
Status: Merged
Merged: 4/23/2025
Merged by: @jnovinger

Base: featureHead: 19264-child-view-table-configs


📝 Commits (2)

  • a3a9cef Fixes #19264: Support table configs on child object list views
  • 02103ab Clear assigned table config when resetting the configuration

📊 Changes

7 files changed (+40 additions, -24 deletions)

View changed files

📝 netbox/netbox/views/generic/bulk_views.py (+4 -20)
📝 netbox/netbox/views/generic/mixins.py (+12 -0)
📝 netbox/netbox/views/generic/object_views.py (+2 -0)
📝 netbox/project-static/dist/netbox.js (+1 -1)
📝 netbox/project-static/dist/netbox.js.map (+2 -2)
📝 netbox/project-static/src/tableConfig.ts (+2 -1)
📝 netbox/utilities/tables.py (+17 -0)

📄 Description

Fixes: #19264

  • Move the logic for applying a TableConfig (specified by the tableconfig_id URL parameter) to TableMixin
  • Move the logic for querying available TableConfigs to the new get_table_configs() utility function
  • Pass table_configs as template context under ObjectChildrenView

🔄 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/19284 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 4/23/2025 **Status:** ✅ Merged **Merged:** 4/23/2025 **Merged by:** [@jnovinger](https://github.com/jnovinger) **Base:** `feature` ← **Head:** `19264-child-view-table-configs` --- ### 📝 Commits (2) - [`a3a9cef`](https://github.com/netbox-community/netbox/commit/a3a9cef52f17ac5b9970ffd7cdd869a4f8561771) Fixes #19264: Support table configs on child object list views - [`02103ab`](https://github.com/netbox-community/netbox/commit/02103ab26e86f3c6e41321811a269c049018a68d) Clear assigned table config when resetting the configuration ### 📊 Changes **7 files changed** (+40 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/views/generic/bulk_views.py` (+4 -20) 📝 `netbox/netbox/views/generic/mixins.py` (+12 -0) 📝 `netbox/netbox/views/generic/object_views.py` (+2 -0) 📝 `netbox/project-static/dist/netbox.js` (+1 -1) 📝 `netbox/project-static/dist/netbox.js.map` (+2 -2) 📝 `netbox/project-static/src/tableConfig.ts` (+2 -1) 📝 `netbox/utilities/tables.py` (+17 -0) </details> ### 📄 Description ### Fixes: #19264 - Move the logic for applying a TableConfig (specified by the `tableconfig_id` URL parameter) to TableMixin - Move the logic for querying available TableConfigs to the new `get_table_configs()` utility function - Pass `table_configs` as template context under ObjectChildrenView --- <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:22:54 +01:00
adam closed this issue 2025-12-30 00:22:54 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15591