Changing event rule action type messes up Conditions field #14838
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
Deployment Type
Self-hosted
NetBox Version
v3.7.1
Python Version
3.11
Steps to Reproduce
{ "and": [{"attr": "status.value", "value": "deprecated"}]}
Expected Behavior
Conditions field stays as-is
Observed Behavior
Conditions field is rewritten as invalid JSON:
"{ \"and\": [{\"attr\": \"status.value\", \"value\": \"deprecated\"}]}"
The quoting is added with every change of the Action type.
This also happens if editing an existing event rule and changing the Action type.
Workaround
The text was updated successfully, but these errors were encountered: