[PR #20778] [MERGED] Fixes #20731 add data file data source to config template bulk import #16046

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20778
Author: @ifoughal
Created: 11/10/2025
Status: Merged
Merged: 11/17/2025
Merged by: @jeremystretch

Base: mainHead: 20731-add-data_file-data_source-to-config_template-bulk-import


📝 Commits (10+)

  • 81707a1 Feat: added data_source & data_file fields for ConfigTemplate import form
  • b3cfc7c Merge branch 'netbox-community:main' into 20731-add-data_file-data_source-to-config_template-bulk-import
  • 0fa1156 Merge branch 'netbox-community:main' into 20731-add-data_file-data_source-to-config_template-bulk-import
  • 0340b80 Style: fixed linter issues
  • 7bf0158 Merge branch '20731-add-data_file-data_source-to-config_template-bulk-import' of https://github.com/ifoughal/netbox into 20731-add-data_file-data_source-to-config_template-bulk-import
  • d8c2119 Merge branch 'netbox-community:main' into 20731-add-data_file-data_source-to-config_template-bulk-import
  • 6e92fc0 revert: Restore blank line between import groups in bulk_import.py
  • 1662a4f revert: Restored comma in grouped import
  • da34c60 Feat: combined core.models imports
  • 0823015 Revert: not in FR scope

📊 Changes

1 file changed (+30 additions, -3 deletions)

View changed files

📝 netbox/extras/forms/bulk_import.py (+30 -3)

📄 Description

Fixes: #20731

During bulk import of config templates, it is not possible to set a data-source with data-file for the config-templates to be imported.

The change adds 3 additional fields to template_code as optional fields:

  • data_source
  • data_file
  • auto_sync_enabled

🔄 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/20778 **Author:** [@ifoughal](https://github.com/ifoughal) **Created:** 11/10/2025 **Status:** ✅ Merged **Merged:** 11/17/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `20731-add-data_file-data_source-to-config_template-bulk-import` --- ### 📝 Commits (10+) - [`81707a1`](https://github.com/netbox-community/netbox/commit/81707a18b37a0e3b5461407f30d9366d4b04afcc) Feat: added data_source & data_file fields for ConfigTemplate import form - [`b3cfc7c`](https://github.com/netbox-community/netbox/commit/b3cfc7c668546e4e0de09a9c7b9c64cdf86058ce) Merge branch 'netbox-community:main' into 20731-add-data_file-data_source-to-config_template-bulk-import - [`0fa1156`](https://github.com/netbox-community/netbox/commit/0fa11567c84a1d0d24f40bda100642dcb0827ba3) Merge branch 'netbox-community:main' into 20731-add-data_file-data_source-to-config_template-bulk-import - [`0340b80`](https://github.com/netbox-community/netbox/commit/0340b804e6d9ca748226c49115c5acd81d71e281) Style: fixed linter issues - [`7bf0158`](https://github.com/netbox-community/netbox/commit/7bf015870670da97c9a85d68577d564e225ff282) Merge branch '20731-add-data_file-data_source-to-config_template-bulk-import' of https://github.com/ifoughal/netbox into 20731-add-data_file-data_source-to-config_template-bulk-import - [`d8c2119`](https://github.com/netbox-community/netbox/commit/d8c2119bdaf1e98c73409f66e59466953b761fc6) Merge branch 'netbox-community:main' into 20731-add-data_file-data_source-to-config_template-bulk-import - [`6e92fc0`](https://github.com/netbox-community/netbox/commit/6e92fc0b239be0c705b893dfc9b8716672bb7447) revert: Restore blank line between import groups in bulk_import.py - [`1662a4f`](https://github.com/netbox-community/netbox/commit/1662a4f134fae749a13fdf985e4c11d0575e9d14) revert: Restored comma in grouped import - [`da34c60`](https://github.com/netbox-community/netbox/commit/da34c60bff68a12e5f5c561b2e274aa33b9b28bc) Feat: combined core.models imports - [`0823015`](https://github.com/netbox-community/netbox/commit/0823015e3afadfccfc9df9cabeebe29b3b9f5ddf) Revert: not in FR scope ### 📊 Changes **1 file changed** (+30 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/forms/bulk_import.py` (+30 -3) </details> ### 📄 Description ### Fixes: #20731 During bulk import of config templates, it is not possible to set a data-source with data-file for the config-templates to be imported. The change adds 3 additional fields to template_code as optional fields: - data_source - data_file - auto_sync_enabled --- <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:25:30 +01:00
adam closed this issue 2025-12-30 00:25:31 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#16046