Move the registration of core event types to the app config #10961

Closed
opened 2025-12-29 21:38:27 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Mar 28, 2025).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Several event types are registered in core.events. We should move the registration under the ready() method of CoreConfig.

Justification

The core.events module serves primarily to declare the various object and job event types, which need to be imported from elsewhere in the application, typically very early in the initialization process. The registration of these events should be deferred until the application has finished initializing.

Originally created by @jeremystretch on GitHub (Mar 28, 2025). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Several event types are registered in `core.events`. We should move the registration under the `ready()` method of CoreConfig. ### Justification The `core.events` module serves primarily to declare the various object and job event types, which need to be imported from elsewhere in the application, typically very early in the initialization process. The registration of these events should be deferred until the application has finished initializing.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 21:38:27 +01:00
adam closed this issue 2025-12-29 21:38:27 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10961