influxdata / influxdata/ui

Alert error messages are inaccessible in the UI

Open
#4,356 2 comments 0 reactions 0 assignees View on GitHub
kind/bug team/automation team/ui team/unity
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

Currently our alert error messages are inaccessible in the UI unless you perform some hacky maneuvers. However, I think it's an easy fix to resolve this issue.

To reproduce:
1. create an alert with a message that references a field/column that does NOT exist
2. save the alert and observe that it fails
3. observe that while the alert is in a failure state, there is no way to collect information on WHY the alert is failing

Notes:
I noticed that you can see the logs of the alert's associated task to get the error message by copying the task ID and navigating to `/tasks/{id}/runs`. However, this task ID does not show up in the list of tasks on the Tasks page (intentionally). This is because we do not want users to be able to edit the task associated to the alert because they could break it. However, there is no harm in them seeing the logs.

In my mind this is a critical issue because if users run into an issue while creating an Alert, they have no way to debug the issue further. When I experienced this bug, my Alert was failing because I had `null` values in my query's results. I had absolutely no idea what was causing the failure and it took me over an hour to figure it out - extremely frustrating!

Proposed fix:
1. Clicking the red triangle on the failed alert should take you to `/tasks/{taskID}/runs` page in the UI
2. The `/tasks/{taskID}/runs` page should only show the "Edit" button IF the provided task ID exists in the response from /api/v2/tasks

![image](https://user-images.githubusercontent.com/6411855/162487914-49beb383-be2a-44d5-87bb-c2adc174b541.png)

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.