Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event Rule breaks when script is deleted #14852

Closed
renatoalmeidaoliveira opened this issue Jan 18, 2024 · 2 comments · Fixed by #15888
Closed

Event Rule breaks when script is deleted #14852

renatoalmeidaoliveira opened this issue Jan 18, 2024 · 2 comments · Fixed by #15888
Assignees
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@renatoalmeidaoliveira
Copy link
Contributor

Deployment Type

Self-hosted

NetBox Version

v3.7.0

Python Version

3.8

Steps to Reproduce

  1. Create a Script
  2. Create a EventRule linked with the created Script
  3. Delete the Script
  4. Try to open the EventRule

Expected Behavior

The Script deletion cascades the deletion of the EventRule

Observed Behavior

<class 'django.urls.exceptions.NoReverseMatch'>

Reverse for 'script' with keyword arguments '{'module': '', 'name': 'EventRule'}' not found. 1 pattern(s) tried: ['extras/scripts/(?P<module>[^/]+)/(?P<name>[^/]+)/\\Z']

Python version: 3.10.13
NetBox version: 3.7.0
@renatoalmeidaoliveira renatoalmeidaoliveira added the type: bug A confirmed report of unexpected behavior in the application label Jan 18, 2024
@renatoalmeidaoliveira
Copy link
Contributor Author

The user can't manually delete the EventRule either, it trows the error:


'NoneType' object has no attribute 'scripts'

Python version: 3.10.13
NetBox version: 3.7.0

@DanSheps DanSheps added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: medium Results in substantial degraded or broken functionality for specfic workflows labels Jan 19, 2024
@jeffgdotorg
Copy link
Contributor

#14438 is related. We should handle this one today since the other issue is scheduled for 4.0.

@abhi1693 abhi1693 self-assigned this Jan 19, 2024
@abhi1693 abhi1693 added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Jan 19, 2024
@jeremystretch jeremystretch assigned arthanson and unassigned abhi1693 Apr 29, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
5 participants