Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
AlarmCallback does not allow clearing of optional fields with default-value #2108
I noticed this on Graylog v1 and Graylog v2 (2.0.0-beta.3). I am not able to delete the value of an optional field which has a default value.
In the example below the field "MYFIELD" will show the default value of "SOME_DEFAULT_VALUE" when editing the plugin properties. If I delete the value in the web-UI, the config-field will take the default-value of the field.
How can I provide my AlarmCallback with a default-value during configuration, but then also allow the user to delete that value. The only way to make this work at the moment is to ask the user to enter some string which I then identify in the plugin as an empty value (in this case "null"):
Steps to reproduce the problem