[PR #10377] [MERGED] #9045 #9046 - remove legacy fields from Provider #13619

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/10377
Author: @arthanson
Created: 9/15/2022
Status: Merged
Merged: 9/28/2022
Merged by: @jeremystretch

Base: featureHead: 9045-remove-asn-field


📝 Commits (8)

📊 Changes

14 files changed (+104 additions, -141 deletions)

View changed files

📝 netbox/circuits/api/serializers.py (+1 -1)
📝 netbox/circuits/filtersets.py (+1 -3)
📝 netbox/circuits/forms/bulk_edit.py (+2 -20)
📝 netbox/circuits/forms/bulk_import.py (+1 -1)
📝 netbox/circuits/forms/models.py (+3 -15)
netbox/circuits/migrations/0040_provider_remove_deprecated_fields.py (+59 -0)
📝 netbox/circuits/models/providers.py (+1 -19)
📝 netbox/circuits/tables/providers.py (+2 -2)
📝 netbox/circuits/tests/test_api.py (+1 -1)
📝 netbox/circuits/tests/test_filtersets.py (+5 -9)
📝 netbox/circuits/tests/test_views.py (+5 -13)
📝 netbox/extras/tests/test_customvalidator.py (+12 -8)
📝 netbox/templates/circuits/provider.html (+0 -29)
📝 netbox/utilities/tests/test_filters.py (+11 -20)

📄 Description

Fixes: #9045 #9046

Remove legacy ASN from provider model
Remove legacy contact fields from provider model:

Customer Portal
NOC Contact
Admin Contact


🔄 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/10377 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 9/15/2022 **Status:** ✅ Merged **Merged:** 9/28/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `9045-remove-asn-field` --- ### 📝 Commits (8) - [`51467ef`](https://github.com/netbox-community/netbox/commit/51467efbc8e10e2add1d265c7eaa434c99f877a9) #9045 - remove legacy fields from Provider - [`e4bb763`](https://github.com/netbox-community/netbox/commit/e4bb76362bcc5cec087d0513aacd15a7077dc4b6) #9045 fix tests - [`c0720c2`](https://github.com/netbox-community/netbox/commit/c0720c24c1cd50ce176cd8b08b88deb442602797) #9045 fix tests - [`9c98bd3`](https://github.com/netbox-community/netbox/commit/9c98bd3d579ecd2d40634193d4ef575331e34926) #9045 fix tests - [`827fa76`](https://github.com/netbox-community/netbox/commit/827fa76d615a860d68ded213719486de030313ac) Add safegaurd for legacy data to migration - [`d0b3930`](https://github.com/netbox-community/netbox/commit/d0b3930f9aef76e7ba813d83e8ccbf2b178eb666) 9045 remove fields from forms and tables - [`2eff0f9`](https://github.com/netbox-community/netbox/commit/2eff0f98c79c5aca99d9b410fd58a89e27d666e7) Update unrelated tests to use ASN model instead of Provider - [`0ab0f23`](https://github.com/netbox-community/netbox/commit/0ab0f237b945f0e305c3208bb48b8163cfdafff1) Fix migrations collision ### 📊 Changes **14 files changed** (+104 additions, -141 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/api/serializers.py` (+1 -1) 📝 `netbox/circuits/filtersets.py` (+1 -3) 📝 `netbox/circuits/forms/bulk_edit.py` (+2 -20) 📝 `netbox/circuits/forms/bulk_import.py` (+1 -1) 📝 `netbox/circuits/forms/models.py` (+3 -15) ➕ `netbox/circuits/migrations/0040_provider_remove_deprecated_fields.py` (+59 -0) 📝 `netbox/circuits/models/providers.py` (+1 -19) 📝 `netbox/circuits/tables/providers.py` (+2 -2) 📝 `netbox/circuits/tests/test_api.py` (+1 -1) 📝 `netbox/circuits/tests/test_filtersets.py` (+5 -9) 📝 `netbox/circuits/tests/test_views.py` (+5 -13) 📝 `netbox/extras/tests/test_customvalidator.py` (+12 -8) 📝 `netbox/templates/circuits/provider.html` (+0 -29) 📝 `netbox/utilities/tests/test_filters.py` (+11 -20) </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 filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WE BE CLOSED AUTOMATICALLY. Specify your assigned issue number on the line below. --> ### Fixes: #9045 #9046 <!-- Please include a summary of the proposed changes below. --> Remove legacy ASN from provider model Remove legacy contact fields from provider model: Customer Portal NOC Contact Admin Contact --- <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:19:53 +01:00
adam closed this issue 2025-12-29 23:19: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#13619