[PR #15054] [CLOSED] Render Action Data as Jinja2 #14513

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15054
Author: @renatoalmeidaoliveira
Created: 2/6/2024
Status: Closed

Base: developHead: develop


📝 Commits (1)

  • 4de5046 Render Action Data as Jinja2

📊 Changes

2 files changed (+19 additions, -1 deletions)

View changed files

📝 netbox/extras/events.py (+10 -1)
📝 netbox/extras/models/models.py (+9 -0)

📄 Description

Fixes: #14884

Fixes: #14896

Changes the way process_event_rules schedules a Script Event, and add method render_script_data to EventRule model.

Those changes allows users to send custom data to the Scripts scheduled by the EventRules.
Looking at the code implementation, maybe extending this implementation with some modifications allow a single code to schedule Job, and move Webhooks Body Data to the Action Data.


🔄 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/15054 **Author:** [@renatoalmeidaoliveira](https://github.com/renatoalmeidaoliveira) **Created:** 2/6/2024 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `develop` --- ### 📝 Commits (1) - [`4de5046`](https://github.com/netbox-community/netbox/commit/4de5046109fafa20fd6173128f9ed5aeebbc5ee6) Render Action Data as Jinja2 ### 📊 Changes **2 files changed** (+19 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/events.py` (+10 -1) 📝 `netbox/extras/models/models.py` (+9 -0) </details> ### 📄 Description ### Fixes: #14884 ### Fixes: #14896 Changes the way `process_event_rules` schedules a Script Event, and add method `render_script_data` to `EventRule` model. Those changes allows users to send custom data to the Scripts scheduled by the EventRules. Looking at the code implementation, maybe extending this implementation with some modifications allow a single code to schedule Job, and move Webhooks Body Data to the Action Data. --- <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:24:54 +01:00
adam closed this issue 2025-12-29 23:24:54 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14513