[PR #19912] [MERGED] Closes #19903: Add regex and iregex filter lookup expressions and corresponding tests #15754

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19912
Author: @miaow2
Created: 7/18/2025
Status: Merged
Merged: 7/24/2025
Merged by: @bctiemann

Base: mainHead: 19903-regexp


📝 Commits (1)

  • c40bfb1 Add regex and iregex filter lookup expressions and corresponding tests

📊 Changes

3 files changed (+48 additions, -12 deletions)

View changed files

📝 docs/reference/filtering.md (+14 -12)
📝 netbox/utilities/constants.py (+2 -0)
📝 netbox/utilities/tests/test_filters.py (+32 -0)

📄 Description

Closes: #19903

Add regex and iregex lookups to filters for string fields


🔄 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/19912 **Author:** [@miaow2](https://github.com/miaow2) **Created:** 7/18/2025 **Status:** ✅ Merged **Merged:** 7/24/2025 **Merged by:** [@bctiemann](https://github.com/bctiemann) **Base:** `main` ← **Head:** `19903-regexp` --- ### 📝 Commits (1) - [`c40bfb1`](https://github.com/netbox-community/netbox/commit/c40bfb14455078edc7ab0efab993b36bd3f21c21) Add regex and iregex filter lookup expressions and corresponding tests ### 📊 Changes **3 files changed** (+48 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `docs/reference/filtering.md` (+14 -12) 📝 `netbox/utilities/constants.py` (+2 -0) 📝 `netbox/utilities/tests/test_filters.py` (+32 -0) </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. --> ### Closes: #19903 Add regex and iregex lookups to filters for string fields <!-- 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:51 +01:00
adam closed this issue 2025-12-30 00:23:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15754