influxdata / influxdata/influxdb
Query Builder: Clean Up Generated Queries
Open
@hoorayimhelping is already working on this.
Since Dec 2, 2019.
difficulty/medium
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
Queries produced by the query builder are a bit clunky. This is a catch-all to list issues that can be cleaned up.
### Consecutive Filters
Two `filter` Tag Selectors produce a query like this:
```flux
|> filter(fn: (r) => r._measurement == "mem")
|> filter(fn: (r) => r._field == "active")
```
when
```flux
|> filter(fn: (r) => (r._measurement == "mem") and (r._field == "active"))
```
is probably more readable and more like what a human might write.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.