[kapacitor] HTTP Post URL not properly handled
When creating a task in kapacitor that needs to post it's result, chronograf does not include the user input in the URL field when creating the task in kapacitor.
The task will always have .post(''):
var trigger = data
|alert()
.crit(lambda: "value" > crit)
.stateChangesOnly()
.message(message)
.id(idVar)
.idTag(idTag)
.levelTag(levelTag)
.messageField(messageField)
.durationField(durationField)
.post('')
This bug applies to the SMTP alert config too. The email addresses that you enter are ignored.
The missing fields don't even make it into the HTTP PUT request, let alone the Kapacitor config.
Whenever you type in the relevant input elements you get this Javascript error:
Uncaught TypeError: Cannot read property 'alertProperty' of null
at onChange (webpack:///./src/kapacitor/components/RuleMessageAlertConfig.js?:49:64)
Possibly related to this commit?
Hey @Tomcat-Engineering and @jackzampolin , thanks for writing in. We'll take a look!
(also thanks for looking up that commit!)
Check if this fixes #1156