[PR #5929] [MERGED] Closes #4999: Support for dynamic table-based exports #13070

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/5929
Author: @jeremystretch
Created: 3/5/2021
Status: Merged
Merged: 3/5/2021
Merged by: @jeremystretch

Base: featureHead: 4999-table-export


📝 Commits (8)

📊 Changes

15 files changed (+204 additions, -178 deletions)

View changed files

📝 base_requirements.txt (+4 -0)
📝 docs/release-notes/version-2.11.md (+6 -0)
📝 netbox/circuits/tables.py (+2 -4)
📝 netbox/dcim/tables/devices.py (+3 -7)
📝 netbox/dcim/tables/racks.py (+9 -20)
📝 netbox/dcim/tables/sites.py (+4 -11)
📝 netbox/dcim/tables/template_code.py (+0 -12)
📝 netbox/ipam/tables.py (+17 -53)
📝 netbox/netbox/views/generic.py (+43 -23)
📝 netbox/tenancy/tables.py (+25 -19)
📝 netbox/utilities/tables.py (+55 -0)
📝 netbox/utilities/templates/buttons/export.html (+16 -19)
📝 netbox/utilities/testing/views.py (+17 -6)
📝 netbox/virtualization/tables.py (+2 -4)
📝 requirements.txt (+1 -0)

📄 Description

Closes: #4999

  • Introduces custom columns for some of the commonly used representations
  • Enables table-based CSV export using django-tables2 and tablib

🔄 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/5929 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 3/5/2021 **Status:** ✅ Merged **Merged:** 3/5/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `4999-table-export` --- ### 📝 Commits (8) - [`23b58cc`](https://github.com/netbox-community/netbox/commit/23b58ccbe82be8f8362232ba271c8e772d3ab48a) Override value() on custom table columns - [`20a85c1`](https://github.com/netbox-community/netbox/commit/20a85c1ef264ecfffcbe8602ab103baed5a7cf5b) Introduce TenantColumn to simplify representation - [`a8a272b`](https://github.com/netbox-community/netbox/commit/a8a272b06825bfa7cf5bf3e3e1227f85dc050184) Enable table-based export - [`0d44a32`](https://github.com/netbox-community/netbox/commit/0d44a320a05341590006c1cc9cf5ee990bf61a2d) Add tablib as a required package - [`6149ba6`](https://github.com/netbox-community/netbox/commit/6149ba6e366788178cb907b7937c90e64f493e49) Export only visible columns - [`32501c9`](https://github.com/netbox-community/netbox/commit/32501c96e5f0dc13c12a995718a9d69b65a5a417) Introduce MPTTColumn to represent MPTT models - [`e703d9f`](https://github.com/netbox-community/netbox/commit/e703d9ff78ca4c952f69684c543dc06417e45ceb) Introduce UtilizationColumn to render utilization graphs consistently - [`0015c8d`](https://github.com/netbox-community/netbox/commit/0015c8dfa25a5fd669aa63d0c5d6d83cf2188e54) Changelog for #4999 ### 📊 Changes **15 files changed** (+204 additions, -178 deletions) <details> <summary>View changed files</summary> 📝 `base_requirements.txt` (+4 -0) 📝 `docs/release-notes/version-2.11.md` (+6 -0) 📝 `netbox/circuits/tables.py` (+2 -4) 📝 `netbox/dcim/tables/devices.py` (+3 -7) 📝 `netbox/dcim/tables/racks.py` (+9 -20) 📝 `netbox/dcim/tables/sites.py` (+4 -11) 📝 `netbox/dcim/tables/template_code.py` (+0 -12) 📝 `netbox/ipam/tables.py` (+17 -53) 📝 `netbox/netbox/views/generic.py` (+43 -23) 📝 `netbox/tenancy/tables.py` (+25 -19) 📝 `netbox/utilities/tables.py` (+55 -0) 📝 `netbox/utilities/templates/buttons/export.html` (+16 -19) 📝 `netbox/utilities/testing/views.py` (+17 -6) 📝 `netbox/virtualization/tables.py` (+2 -4) 📝 `requirements.txt` (+1 -0) </details> ### 📄 Description ### Closes: #4999 - Introduces custom columns for some of the commonly used representations - Enables table-based CSV export using django-tables2 and tablib --- <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:25:14 +01:00
adam closed this issue 2025-12-29 22:25:14 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13070