[PR #7630] [MERGED] Closes #6238: Implement conditional webhooks #13262

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/7630
Author: @jeremystretch
Created: 10/25/2021
Status: Merged
Merged: 10/25/2021
Merged by: @jeremystretch

Base: featureHead: 6238-conditional-webhooks


📝 Commits (6)

📊 Changes

13 files changed (+515 additions, -18 deletions)

View changed files

📝 docs/models/extras/webhook.md (+14 -0)
docs/reference/conditions.md (+89 -0)
📝 docs/release-notes/version-3.1.md (+16 -0)
📝 mkdocs.yml (+2 -0)
📝 netbox/extras/api/serializers.py (+1 -1)
netbox/extras/conditions.py (+144 -0)
📝 netbox/extras/forms/bulk_edit.py (+1 -1)
📝 netbox/extras/forms/models.py (+1 -0)
netbox/extras/migrations/0063_webhook_conditions.py (+18 -0)
📝 netbox/extras/models/models.py (+14 -4)
netbox/extras/tests/test_conditions.py (+199 -0)
📝 netbox/extras/tests/test_views.py (+1 -0)
📝 netbox/extras/webhooks_worker.py (+15 -12)

📄 Description

Closes: #6238

  • Introduces condition sets for expressing conditional logic
  • Extends the Webhook model to permit the assignment of conditions that control its execution

🔄 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/7630 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 10/25/2021 **Status:** ✅ Merged **Merged:** 10/25/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `6238-conditional-webhooks` --- ### 📝 Commits (6) - [`7e26d92`](https://github.com/netbox-community/netbox/commit/7e26d921901077522a6f0fa4c4755c26280a1a7d) Introduce conditions & condition sets - [`78ecc86`](https://github.com/netbox-community/netbox/commit/78ecc8673ca71bc6db3dddf065ca4203bc224740) Add conditions for webhooks - [`b92de63`](https://github.com/netbox-community/netbox/commit/b92de63245e186b54b8507e11804ffc1e275ce42) Improve validation - [`35c967e`](https://github.com/netbox-community/netbox/commit/35c967e6f72ebdc4edb3be7d3737aa0912469688) Implement condition negation - [`2423e08`](https://github.com/netbox-community/netbox/commit/2423e0872ff5e1953b4647a8617954870ec39064) Documentation & changelog for #6238 - [`0d84338`](https://github.com/netbox-community/netbox/commit/0d84338e28c4a34036b168dfcdb075b0bf091449) Add regex condition op ### 📊 Changes **13 files changed** (+515 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `docs/models/extras/webhook.md` (+14 -0) ➕ `docs/reference/conditions.md` (+89 -0) 📝 `docs/release-notes/version-3.1.md` (+16 -0) 📝 `mkdocs.yml` (+2 -0) 📝 `netbox/extras/api/serializers.py` (+1 -1) ➕ `netbox/extras/conditions.py` (+144 -0) 📝 `netbox/extras/forms/bulk_edit.py` (+1 -1) 📝 `netbox/extras/forms/models.py` (+1 -0) ➕ `netbox/extras/migrations/0063_webhook_conditions.py` (+18 -0) 📝 `netbox/extras/models/models.py` (+14 -4) ➕ `netbox/extras/tests/test_conditions.py` (+199 -0) 📝 `netbox/extras/tests/test_views.py` (+1 -0) 📝 `netbox/extras/webhooks_worker.py` (+15 -12) </details> ### 📄 Description ### Closes: #6238 - Introduces condition sets for expressing conditional logic - Extends the Webhook model to permit the assignment of conditions that control its execution --- <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 22:26:19 +01:00
adam closed this issue 2025-12-29 22:26:19 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13262