[PR #8303] [MERGED] Closes #7679: Object table actions menus #13341

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8303
Author: @jeremystretch
Created: 1/10/2022
Status: Merged
Merged: 1/10/2022
Merged by: @jeremystretch

Base: featureHead: 7679-table-actions


📝 Commits (9)

📊 Changes

19 files changed (+374 additions, -395 deletions)

View changed files

📝 docs/release-notes/version-3.2.md (+1 -0)
📝 netbox/circuits/tables.py (+2 -3)
📝 netbox/dcim/tables/devices.py (+31 -59)
📝 netbox/dcim/tables/devicetypes.py (+29 -40)
📝 netbox/dcim/tables/racks.py (+4 -8)
📝 netbox/dcim/tables/sites.py (+8 -10)
📝 netbox/dcim/tables/template_code.py (+3 -3)
📝 netbox/extras/tables.py (+4 -8)
📝 netbox/ipam/tables/fhrp.py (+3 -4)
📝 netbox/ipam/tables/ip.py (+5 -12)
📝 netbox/ipam/tables/vlans.py (+11 -8)
📝 netbox/netbox/views/generic/object_views.py (+1 -1)
📝 netbox/tenancy/tables.py (+7 -11)
netbox/utilities/tables/__init__.py (+30 -0)
📝 netbox/utilities/tables/columns.py (+85 -210)
netbox/utilities/tables/tables.py (+138 -0)
📝 netbox/utilities/tests/test_tables.py (+2 -1)
📝 netbox/virtualization/tables.py (+8 -12)
📝 netbox/wireless/tables.py (+2 -5)

📄 Description

Closes: #7679

  • Refactor tables module
  • Introduce ActionsColumn to render a dropdown menu with edit/delete/changelog actions
  • Add ActionsColumn to all objects which don't already include an actions column
  • Replace ButtonsColumn with ActionsColumn on remaining tables

🔄 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/8303 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 1/10/2022 **Status:** ✅ Merged **Merged:** 1/10/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `7679-table-actions` --- ### 📝 Commits (9) - [`58f7eb3`](https://github.com/netbox-community/netbox/commit/58f7eb319faad9f135afbd86e060eb2e2ebf574e) Initial work on #7679 - [`00a8fd6`](https://github.com/netbox-community/netbox/commit/00a8fd654eb4eab47972c3ad7ca2b5bc6752d3e4) Refactor table utilities - [`6d48ce4`](https://github.com/netbox-community/netbox/commit/6d48ce4a253f687b1b26d147da8f482a50054d5b) Always include actions as a default column - [`ededa69`](https://github.com/netbox-community/netbox/commit/ededa69e4ab12379e360fc1ce8ab204d6379ac42) Only show relevant links for user permissions - [`1024adc`](https://github.com/netbox-community/netbox/commit/1024adca72570f58ac899850c5ca66bf782ee528) Exclude actions column from export - [`bff7400`](https://github.com/netbox-community/netbox/commit/bff7400de4503b8f25938680572e28c634f09ed4) Convert ActionsMenuItem to dataclass - [`8b07fbc`](https://github.com/netbox-community/netbox/commit/8b07fbc5544a7435f4178811f4927a7f606b6aaf) Allow passing additional columns & specifying a sequence - [`aed23d6`](https://github.com/netbox-community/netbox/commit/aed23d61fc752bc6a913759995ff1d57707e1602) Replace ButtonsColumn with ActionsColumn - [`94c1166`](https://github.com/netbox-community/netbox/commit/94c116617a67ac7b8c72b877f7506c367f05b0f6) Changelog for #7679 ### 📊 Changes **19 files changed** (+374 additions, -395 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-notes/version-3.2.md` (+1 -0) 📝 `netbox/circuits/tables.py` (+2 -3) 📝 `netbox/dcim/tables/devices.py` (+31 -59) 📝 `netbox/dcim/tables/devicetypes.py` (+29 -40) 📝 `netbox/dcim/tables/racks.py` (+4 -8) 📝 `netbox/dcim/tables/sites.py` (+8 -10) 📝 `netbox/dcim/tables/template_code.py` (+3 -3) 📝 `netbox/extras/tables.py` (+4 -8) 📝 `netbox/ipam/tables/fhrp.py` (+3 -4) 📝 `netbox/ipam/tables/ip.py` (+5 -12) 📝 `netbox/ipam/tables/vlans.py` (+11 -8) 📝 `netbox/netbox/views/generic/object_views.py` (+1 -1) 📝 `netbox/tenancy/tables.py` (+7 -11) ➕ `netbox/utilities/tables/__init__.py` (+30 -0) 📝 `netbox/utilities/tables/columns.py` (+85 -210) ➕ `netbox/utilities/tables/tables.py` (+138 -0) 📝 `netbox/utilities/tests/test_tables.py` (+2 -1) 📝 `netbox/virtualization/tables.py` (+8 -12) 📝 `netbox/wireless/tables.py` (+2 -5) </details> ### 📄 Description ### Closes: #7679 - Refactor tables module - Introduce ActionsColumn to render a dropdown menu with edit/delete/changelog actions - Add ActionsColumn to all objects which don't already include an `actions` column - Replace ButtonsColumn with ActionsColumn on remaining tables --- <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:26:52 +01:00
adam closed this issue 2025-12-29 22:26:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13341