influxdata / influxdata/influxdb

Table/Single-Stat thresholds should have different comparison operators for different types

Open
#16,308 1 comment 0 reactions 0 assignees View on GitHub
team/ui
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

Currently, table/single-stat thresholds only have a `<=` comparison operator. This only makes sense for numeric type columns. We should give different options for the different types.
![image](https://user-images.githubusercontent.com/1477539/71285241-92aa2480-2319-11ea-85de-14b53ee68bc8.png)

#### String
- [ ] `==`
- [ ] `!=`
- [ ] `~=`

#### Numeric
- [ ] `==`
- [ ] `!=`
- [ ] `<=`
- [ ] `>=`
- [ ] `<`
- [ ] `>`

Contributor guide

Open the contributing guide

Research direction

Start by locating the table and single-stat threshold handling and determine how the current <= operator is applied to column types. Compare the available string and numeric operators with the issue checklist. Done means both visualizations offer the appropriate operators for each type and threshold comparisons behave accordingly.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.