[PR #13342] [MERGED] Replaces device_role with role on device model #14164

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13342
Author: @abhi1693
Created: 8/2/2023
Status: Merged
Merged: 8/2/2023
Merged by: @jeremystretch

Base: featureHead: feat/6391-role


📝 Commits (6)

📊 Changes

37 files changed (+422 additions, -331 deletions)

View changed files

📝 docs/customization/custom-scripts.md (+1 -1)
📝 netbox/dcim/api/serializers.py (+11 -6)
📝 netbox/dcim/api/views.py (+2 -2)
📝 netbox/dcim/filtersets.py (+18 -6)
📝 netbox/dcim/forms/bulk_edit.py (+2 -2)
📝 netbox/dcim/forms/bulk_import.py (+2 -2)
📝 netbox/dcim/forms/filtersets.py (+12 -12)
📝 netbox/dcim/forms/model_forms.py (+2 -2)
netbox/dcim/migrations/0181_rename_device_role_device_role.py (+35 -0)
📝 netbox/dcim/models/devices.py (+18 -4)
📝 netbox/dcim/models/racks.py (+1 -1)
📝 netbox/dcim/svg/cables.py (+2 -2)
📝 netbox/dcim/svg/racks.py (+3 -3)
📝 netbox/dcim/tables/devices.py (+9 -9)
📝 netbox/dcim/tests/test_api.py (+60 -60)
📝 netbox/dcim/tests/test_cablepaths.py (+2 -2)
📝 netbox/dcim/tests/test_filtersets.py (+95 -95)
📝 netbox/dcim/tests/test_forms.py (+7 -7)
📝 netbox/dcim/tests/test_models.py (+50 -24)
📝 netbox/dcim/tests/test_natural_ordering.py (+2 -2)

...and 17 more files

📄 Description

Fixes: #6391


🔄 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/13342 **Author:** [@abhi1693](https://github.com/abhi1693) **Created:** 8/2/2023 **Status:** ✅ Merged **Merged:** 8/2/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `feat/6391-role` --- ### 📝 Commits (6) - [`9cbd706`](https://github.com/netbox-community/netbox/commit/9cbd70678b97652c16d0be3f6a0431c721e9e4ae) replaces device_role with role on device model #6391 - [`7b78785`](https://github.com/netbox-community/netbox/commit/7b787855cd214261e5da30d693a00f8768244f90) fixes lint issue #6391 - [`c2b68b0`](https://github.com/netbox-community/netbox/commit/c2b68b0f62125afdf406b567a4d19e050565bb83) revert the database user - [`c666162`](https://github.com/netbox-community/netbox/commit/c6661626669a6684034798b6e74eefa86d8d9cfa) revert test_runner comment - [`b710aff`](https://github.com/netbox-community/netbox/commit/b710aff306c51b38d9c5eb290171f62435be08b7) changes as per review - [`f83f9e5`](https://github.com/netbox-community/netbox/commit/f83f9e53a6bad3f4d2cf35cb4281f51e17c8539e) Update references to device_role column in UserConfigs ### 📊 Changes **37 files changed** (+422 additions, -331 deletions) <details> <summary>View changed files</summary> 📝 `docs/customization/custom-scripts.md` (+1 -1) 📝 `netbox/dcim/api/serializers.py` (+11 -6) 📝 `netbox/dcim/api/views.py` (+2 -2) 📝 `netbox/dcim/filtersets.py` (+18 -6) 📝 `netbox/dcim/forms/bulk_edit.py` (+2 -2) 📝 `netbox/dcim/forms/bulk_import.py` (+2 -2) 📝 `netbox/dcim/forms/filtersets.py` (+12 -12) 📝 `netbox/dcim/forms/model_forms.py` (+2 -2) ➕ `netbox/dcim/migrations/0181_rename_device_role_device_role.py` (+35 -0) 📝 `netbox/dcim/models/devices.py` (+18 -4) 📝 `netbox/dcim/models/racks.py` (+1 -1) 📝 `netbox/dcim/svg/cables.py` (+2 -2) 📝 `netbox/dcim/svg/racks.py` (+3 -3) 📝 `netbox/dcim/tables/devices.py` (+9 -9) 📝 `netbox/dcim/tests/test_api.py` (+60 -60) 📝 `netbox/dcim/tests/test_cablepaths.py` (+2 -2) 📝 `netbox/dcim/tests/test_filtersets.py` (+95 -95) 📝 `netbox/dcim/tests/test_forms.py` (+7 -7) 📝 `netbox/dcim/tests/test_models.py` (+50 -24) 📝 `netbox/dcim/tests/test_natural_ordering.py` (+2 -2) _...and 17 more files_ </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #6391 <!-- Please include a summary of the proposed changes below. --> --- <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 23:22:56 +01:00
adam closed this issue 2025-12-29 23:22:56 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14164