Commit Graph

30707 Commits (d0dedff57643cba17eafd4765d6be5432fe68061)

Author SHA1 Message Date
Christopher Henn d0dedff576 refactor(ui): use locally generated AST fetching utils
Moves the handwritten AST wrapper types from influxdb-client-js back
into the UI. Long term I think we should improve the `swagger.yml` spec
for these types so that we can use their generated counterparts. This
will take some tedious labor and a review from the Flux team.

Part of #14482
2019-08-02 13:50:22 -07:00
Christopher M. Wolff 42bb664aaf
feat(query): add storage request duration metric (#14534)
influxdata/idpe#4126
2019-08-02 08:53:14 -07:00
Christopher Henn 89d6f9ea3e fix(ui): improve detection of relevant tokens to display
When a user saves a query from the DE as a task, we display an overlay
that allows them to select the token they use for the task. Since not
all tokens have access to the buckets read from and written to in the
query, we filter the list of tokens that are selectable in the overlay.

This commit:

- Improves the detection of what buckets are read from in the query by
  using an AST based approach to analyzing the query, rather than some
  stringy heuristics
- Removes the assumption that only a single bucket is read from in the
  query

Closes #14226
2019-08-02 07:51:57 -07:00
Christopher Henn 96d0a4f88b refactor(ui): use selector to get active query 2019-08-02 07:51:57 -07:00
Christopher Henn 55ebcf275a refactor(ui): extract helper for filtering irrelevant tokens 2019-08-02 07:51:57 -07:00
Jonathan A. Sternberg e4c89cbe0c
feat(query/stdlib): push down exists operator to storage (#14538)
The `exists` operator now gets pushed down to storage correctly. If
`exists` is used on a tag, then it will be rewritten to `tag != ""`
which is how storage defines if a tag exists. If `not exists` is used,
then it will use `tag == ""` which is how you would query storage for
only if a tag doesn't exist.

The `tag == ""` and `tag != ""` are different. For `tag == ""`, the
predicate is impossible for the storage layer to return true with.
Ideally, we would just rewrite this to return nothing and we wouldn't
bother with even querying storage. Instead, we just do not rewrite this
predicate because it cannot be rewritten to make sense with storage. If
we see `tag != ""`, it is the only one that can be passed through as-is
because `tag != ""` returns the same values as `exists tag`. It will
return true for every non-null value.
2019-08-02 09:31:10 -05:00
jlapacik 945f16ff4b docs(tsm1): TagKeys and TagValues return partial results with non-nil errors 2019-08-01 13:47:11 -07:00
jlapacik e7a0068e46 fix(tsm1): TagKeys/TagValues returns when context canceled 2019-08-01 13:47:11 -07:00
jlapacik 66662dca7f test(tsm1): TagKeys/TagValues stops scanning when context is canceled 2019-08-01 13:47:11 -07:00
Michael Desa 9cbb62cee5 refactor(organizations/actions/orgs): avoid mutation of bucket in createOrgWithBucket 2019-08-01 10:13:07 -07:00
Michael Desa e1e4a574a3 refactor(ui): migrate orgs to use new generated types 2019-08-01 10:13:07 -07:00
Michael Desa 6a91854c71 refactor(ui): migrate buckets to use new generated types
Co-authored-by: Chris Henn <chris@chrishenn.net>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2019-08-01 10:13:07 -07:00
Christopher M. Wolff e142f6ca7c
fix(query): add LookupName method to dependency interfaces (needed by flux to()) (#14498) 2019-08-01 10:10:43 -07:00
kelwang 0cefcf1597
Merge pull request #14521 from influxdata/feature/check-api
feat: Add check API
2019-07-31 19:15:29 -04:00
Kelvin Wang 87730440ee feat(cmd/launcher): add check to launcher 2019-07-31 19:00:26 -04:00
Jade McGough 5d826961db feat(http): add checks http handler 2019-07-31 19:00:26 -04:00
Kelvin Wang 5072e207ee feat(authorizer): add check 2019-07-31 19:00:26 -04:00
Jade McGough 0e5091ed21 feat(kv): add check kv 2019-07-31 18:52:13 -04:00
Jade McGough ec9ecf23a1 feat(influxdb): add check struct 2019-07-31 18:52:13 -04:00
Alirie Gray ea0888a7d5
Merge pull request #14454 from influxdata/tasks/executor-metrics
feat(tasks): add new executor prometheus metrics
2019-07-31 14:40:29 -07:00
Alirie Gray 30abb1b1b0 feat(tasks): add new executor prometheus metrics 2019-07-31 14:29:05 -07:00
George b2fe0d1d63
fix(tasks): surface flux errors on pre-auth check (#14492) 2019-07-31 11:46:28 +02:00
Christopher Henn 918ca3ec4f fix(ui): upgrade giraffe to 0.16.2
Closes #14504
2019-07-30 14:33:04 -07:00
Christopher Henn ce68ad800f fix(ui): prevent dashboard cell crash when editing cell
Previously, opening the VEO for a cell on a dashboard would cause the
view for the cell on the dashboard to reload. In turn, this would cause
the dashboard cell to crash.

This commit updates the logic for opening the VEO so that the view is
only reloaded when necessary.

Co-authored-by: Michael Desa <mjdesa@gmail.com>
Co-authored-by: Chris Henn <chris@chrishenn.net>
2019-07-30 13:55:48 -07:00
Andrew Watkins 86ae43c813
chore(ui/alerts): change notificationRule to rule (#14506)
* chore(ui): change notification rule to rule

* chore(ui/alerts/actions): change from notificationRule to rule

* feat flag

* fix: component name

* fix: no console.log
2019-07-30 11:56:34 -07:00
Christopher Henn 1250be5f80 refactor(ui): inline API type generation
Part of #14482
2019-07-30 09:35:05 -07:00
Deniz Kusefoglu bbc37b4c68
feat: Alerting add alert builder veo state (#14499)
* Define new check, edit check and check view routes with VEO

Co-authored-by: Michael Desa <mjdesa@gmail.com>

* Add task status to other task types

* Put editAlerting route behind feature flag

* add action and reducer for update current check

* Add init edit and new check editor overlay

* Split VEO in to two for new and edit view

* get edit and new CheckEO's ready

* Create getViewForTimeMachine action

* current check should be a partial check

* Fix view typing

* Fix linter errors

* Fix equality

* Catch save VEO errors
2019-07-29 15:54:35 -07:00
alexpaxton 93649a71b5
refactor(clockface): replace local resource list components with Clockface resource list components (#14493)
* refactor(resource-list): replace local labels resource list with Clockface resource list

* refactor(resource-list): replace local variables resource list with Clockface resource list

* refactor(resource-list): replace local collectors resource list with Clockface resource list

* refactor(resource-list): replace local scrapers resource list with Clockface resource list

* refactor(resource-list): replace local templates resource list with Clockface resource list

* refactor(resource-list): replace local static templates resource list with Clockface resource list

* refactor(resource-list): replace local members resource list with Clockface resource list

* refactor(resource-list): replace local buckets resource list with Clockface resource list

* refactor(resource-list): replace local tasks resource list with Clockface resource list

* refactor(resource-list): replace local dashboards resource list with Clockface resource list

* refactor(resource-list): replace local notification rule & check resource lists with Clockface resource lists

* Delete local resource list components

* test: update affected snapshot tests

* test(e2e): fix labels integration tests

* refactor: use router.push() instead of window.location.assign()
2019-07-29 12:52:32 -10:00
Michael Desa 99e15b262f
Merge pull request #14496 from influxdata/fix/sort-create-dash-from-template-list
fix(component/TemplateBrowserList): sort list of templates alphabetically
2019-07-29 17:04:38 -04:00
Michael Desa 42c8b1a408
fix(component/TaskTokenDropdown): sort list of tokens alphabetically
Closes #14472
2019-07-29 16:41:00 -04:00
Russ Savage 383e6b1368
fix(components/TelegrafExplainer): Update link to Telegraf docs (#14497)
fix(components/TelegrafExplainer): Update link to Telegraf docs Update changelog
2019-07-29 13:33:30 -07:00
Michael Desa fb6b690380
fix(component/TemplateBrowserList): sort list of templates alphabetically
Closes #14465
2019-07-29 16:31:25 -04:00
Chris Goller 837a410bea
feat(http): gzip compress the query CSV response. (#14495)
If client requests with Accept-Encoding: gzip, then
compress response and return with Content-Encoding: gzip.

This increases the server-side load by about 12%, but saves network bandwidth.

benchmark                     old ns/op     new ns/op     delta
Benchmark_Query_no_gzip-4     123609        137885        +11.55%

benchmark                     old allocs     new allocs     delta
Benchmark_Query_no_gzip-4     149            150            +0.67%

benchmark                     old bytes     new bytes     delta
Benchmark_Query_no_gzip-4     14297         15205         +6.35%
2019-07-29 14:47:55 -05:00
alexpaxton a2a44067be
refactor(clockface): replace local index list with Clockface index list (#14491)
* refactor(clockface): replace index lists with clockface index lists

* refactor(clockface): replace local index list import with clockface index list import

* refactor(clockface): remove local index list components
2019-07-29 08:13:20 -10:00
kelwang 13d2b8df66
Merge pull request #14475 from zhulongcheng/fix-json-omitempty
fix(influxdb): rename json option "omitEmpty" to "omitempty"
2019-07-29 11:40:27 -04:00
kelwang ab241b1332
Merge pull request #11741 from influxdata/task-members
fix: task members endpoints
2019-07-29 11:30:06 -04:00
kelwang b72441d3ca
Merge pull request #14487 from zhulongcheng/patch-notification-rule
feat(http): patch notification rule
2019-07-29 11:15:39 -04:00
Jade McGough 254680f094 fix(kv): add task organization ID lookup 2019-07-28 22:07:03 -07:00
zhulongcheng ce4d5a9852 feat(http): patch notification rule 2019-07-28 22:08:23 +08:00
zhulongcheng 41a8174dca docs(http): patch notification rule
/notificationRules/{ruleID}
2019-07-28 22:04:04 +08:00
Andrew Watkins d0913d227c
feat(ui): wasm flux parser (#14471)
* build(ui): add ability to bundle wasm

* refactor(ui/ast): remove cruft from async AST calls

* chore: add TODO

* test: mock @influxdata/flux-parser package

* oops: I will not hide my shame
2019-07-26 17:21:52 -07:00
Chris Goller d3821e12dd
ci(nightly): install protoc (#14486) 2019-07-26 16:21:14 -05:00
Christopher Henn 42ecae8bb2 fix(ui): upgrade clockface to 0.0.19
Closes #13725
2019-07-26 13:40:55 -07:00
Alirie Gray 016143891c
Merge pull request #14353 from influxdata/task/require-token-for-creation
chore(tasks): remove old auth code and allow only token auth
2019-07-26 10:36:50 -07:00
Alirie Gray 7b96bd95f0 test(tasks): fix cypress tests for task creation with token 2019-07-26 09:51:33 -07:00
Alirie Gray c04f3a2b30 chore(tasks): remove old auth code and allow only token auth 2019-07-26 09:51:32 -07:00
George a481d4ab5d
fix: enforce bucket authentication on task update (#14480) 2019-07-26 17:37:45 +02:00
zhulongcheng 67891fdc5e fix(influxdb): rename json option "omitEmpty" to "omitempty" 2019-07-26 11:14:44 +08:00
Sebastian Borza a96194797d
Merge pull request #14466 from influxdata/revert_revert
fix(task): push task backend logging messages back to debug
2019-07-25 21:48:53 -05:00
Russ Savage b28fb15598
add bzr to release build (#14474) 2019-07-25 16:46:15 -07:00