Webhook signals refactor #1876

Closed
opened 2025-12-29 17:20:01 +01:00 by adam · 1 comment
Owner

Originally created by @lampwins on GitHub (Jul 29, 2018).

Proposed Changes

With the addition of the Changelog feature, a new ChangeLoggingMiddleware middleware was created to take care of the object signals on a request. This is an elegant solution to work around problems with foreign key relationships not being available at the time of the original object creation. We should refactor the Webhook signal handling to piggyback this middleware.

Justification

#2260 was originally opened with the purpose of fixing #2137 but the scope has changed to the aforementioned refactor. This will serve as this issue for that PR.

Ultimately this will reduce some of the complexity in the Webhook implementation.

Originally created by @lampwins on GitHub (Jul 29, 2018). <!-- NOTE: This type of issue should be opened only by those reasonably familiar with NetBox's code base and interested in contributing to its development. Describe the proposed change(s) in detail. --> ### Proposed Changes With the addition of the Changelog feature, a new `ChangeLoggingMiddleware` middleware was created to take care of the object signals on a request. This is an elegant solution to work around problems with foreign key relationships not being available at the time of the original object creation. We should refactor the Webhook signal handling to piggyback this middleware. <!-- Provide justification for the proposed change(s). --> ### Justification #2260 was originally opened with the purpose of fixing #2137 but the scope has changed to the aforementioned refactor. This will serve as this issue for that PR. Ultimately this will reduce some of the complexity in the Webhook implementation.
adam closed this issue 2025-12-29 17:20:01 +01:00
Author
Owner

@lampwins commented on GitHub (Jul 30, 2018):

taken care of in #2260

@lampwins commented on GitHub (Jul 30, 2018): taken care of in #2260
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1876