[PR #19803] [MERGED] Fixes #19800: ModuleType import supports associating ModuleTypeProfile #15718

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19803
Author: @jnovinger
Created: 7/2/2025
Status: Merged
Merged: 7/14/2025
Merged by: @jeremystretch

Base: mainHead: 19800-module-type-import-does-not-assign-profile


📝 Commits (3)

  • 255e388 Fixes #19800: ModuleType import supports associating ModuleTypeProfile
  • 1984f52 Fixes up ModuleTypeTestCase to include bulk import testing
  • ac48272 Address PR feedback

📊 Changes

2 files changed (+71 additions, -16 deletions)

View changed files

📝 netbox/dcim/forms/bulk_import.py (+2 -2)
📝 netbox/dcim/tests/test_views.py (+69 -14)

📄 Description

Fixes: #19800

  • Fixes issue by adding profile to the list of fields the import form should recognize
  • Fixes up module type bulk import testing by adding necessary permissions for related models and adding inheritance of BulkImportObjectsViewTestCase
  • Adds an additional regression assertion to make sure that this fix does not regress

🔄 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/19803 **Author:** [@jnovinger](https://github.com/jnovinger) **Created:** 7/2/2025 **Status:** ✅ Merged **Merged:** 7/14/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `19800-module-type-import-does-not-assign-profile` --- ### 📝 Commits (3) - [`255e388`](https://github.com/netbox-community/netbox/commit/255e3881ddb862dd85c84a7079767441bd733b01) Fixes #19800: ModuleType import supports associating ModuleTypeProfile - [`1984f52`](https://github.com/netbox-community/netbox/commit/1984f523058d425a43f1c24404d38ad6be0687a3) Fixes up ModuleTypeTestCase to include bulk import testing - [`ac48272`](https://github.com/netbox-community/netbox/commit/ac48272bc2ed20990997dc0ee07b9b197f256f51) Address PR feedback ### 📊 Changes **2 files changed** (+71 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/forms/bulk_import.py` (+2 -2) 📝 `netbox/dcim/tests/test_views.py` (+69 -14) </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: #19800 - Fixes issue by adding `profile` to the list of fields the import form should recognize - Fixes up module type bulk import testing by adding necessary permissions for related models and adding inheritance of `BulkImportObjectsViewTestCase` - Adds an additional regression assertion to make sure that this fix does not regress <!-- 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-30 00:23:37 +01:00
adam closed this issue 2025-12-30 00:23:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15718