influxdata / influxdata/ui

Issue on creating new task through UI

Open
#3,430 5 comments 0 reactions 2 assignees Claimed by @garylfowler View on GitHub
kind/bug team/automation team/edge team/ui
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

## About the bug

**Steps to reproduce:**
List the minimal actions needed to reproduce the behavior.

1. Create a new task through UI something like this -
```import "influxdata/influxdb/monitor"
import "slack"
import "influxdata/influxdb/secrets"
import "array"

option task = {name: "No Task", every: 1m, offset: 2s}

slack_endpoint = slack["endpoint"](url: "https://hooks.slack.com/services/Txxxxxxxxx")
notification = {
_notification_rule_id: "08762fc8a72f2000",
_notification_rule_name: "My Test Rule",
_notification_endpoint_id: "07fd2b39e56ee000",
_notification_endpoint_name: "Slack Service",
}

from(bucket: "TEST_DB")
|> range(start: -1h)
|> filter(fn: (r) => r["_measurement"] == "myMeasurement")
|> filter(fn: (r) => r["_field"] == "testField")
|> aggregateWindow(every: 1m, fn: count, createEmpty: false)
|> filter(fn: (r) => r["_value"] > 3)
|> monitor["notify"](data: notification, endpoint: slack_endpoint(mapFn: (r) =>
({channel: "", text: "Count is getting higher...", color: "danger"})))
```
2. Save it.

**Expected behavior:**
Should have been saved

**Actual behavior:**
Raised an error and the whole popup getting closed and have to write whole code again.

**Visual Proof:**
![image](https://user-images.githubusercontent.com/36849367/146037283-dc1f6e62-b695-49ac-911a-8c0a467f17ac.png)

![image](https://user-images.githubusercontent.com/36849367/146035771-ee9356f7-9b5a-4fc3-91b3-5a2db81671ac.png)

## About your environment

**Environment info:**

InfluxDB2.0 (Docker Version)

**Config:**
NA

**Logs:**
NA

**Performance:**
NA

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.