influxdata / influxdata/influxdb

Query Builder: Clean Up Generated Queries

Open
#16,076 2 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.