[PR #15301] [MERGED] Fixes: #13722 - Correct range expansion code when a numeric set is used #14566

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15301
Author: @DanSheps
Created: 2/28/2024
Status: Merged
Merged: 3/11/2024
Merged by: @jeremystretch

Base: developHead: 13722-fixes-range-expansion


📝 Commits (4)

  • 017a66b Fixes: #13722 - Correct range expansion code when a numeric set is used
  • 221e095 Correct to my own suggestion
  • 665ea40 Clean up logic
  • ad12984 Simplify range detection

📊 Changes

2 files changed (+36 additions, -20 deletions)

View changed files

📝 netbox/utilities/forms/utils.py (+26 -19)
📝 netbox/utilities/tests/test_forms.py (+10 -1)

📄 Description

Fixes: #13722 - Correct range expansion code when a numeric set is used

  • Correct range expansion to account for a numeric set ([1,2])
  • Added test

🔄 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/15301 **Author:** [@DanSheps](https://github.com/DanSheps) **Created:** 2/28/2024 **Status:** ✅ Merged **Merged:** 3/11/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `13722-fixes-range-expansion` --- ### 📝 Commits (4) - [`017a66b`](https://github.com/netbox-community/netbox/commit/017a66b5f9835b913f0260979b3cd3e126a0a4b7) Fixes: #13722 - Correct range expansion code when a numeric set is used - [`221e095`](https://github.com/netbox-community/netbox/commit/221e095f1d7e0b8e58b3c5bb52c4e7c62adf8ab2) Correct to my own suggestion - [`665ea40`](https://github.com/netbox-community/netbox/commit/665ea402f68800e82a06eae352ddf31acf1fe45b) Clean up logic - [`ad12984`](https://github.com/netbox-community/netbox/commit/ad1298428fa013d80d9dcc034014509e78e0a2a5) Simplify range detection ### 📊 Changes **2 files changed** (+36 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/forms/utils.py` (+26 -19) 📝 `netbox/utilities/tests/test_forms.py` (+10 -1) </details> ### 📄 Description ### Fixes: #13722 - Correct range expansion code when a numeric set is used * Correct range expansion to account for a numeric set ([1,2]) * Added test --- <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:25:14 +01:00
adam closed this issue 2025-12-29 23:25:14 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14566