Commit Graph

30726 Commits (b6b5befad7c43247eb4f6bbbef944351cf3ceb4c)

Author SHA1 Message Date
Jakub Bednář b6b5befad7
fix(http): The org parameter takes either the ID or Name interchangeably (#14540) 2019-08-06 06:20:26 +02:00
Deniz Kusefoglu bca1af25a9
feat: alerting - Add alert builder (#14550)
* Add check saving flows and change activeTab type

* Add first pass at alertBuilder

* Change TimeMachineEnum type

* Add xy view properties to checks, and convert to and from check View type

* Add Column Header to checks column

* Add change current check type action

* Access view type through properties

* Load xy view options for check view

* Add orgID to check in createCheck

* Clear current check on close CheckEO

* Create Check Alerting Button

* Create check view on edit and new check EO

* Fix edit check eo action bug

* Update threshold types

* When switch schedule from every to cron change the inputs that are visible

* save Current Check from VEO if view type is check

* Add description component to checks

* TimeMachineIDs to TimeMachineID

* Remove bracketed object decleration

* Remove as Threshold type

* Use ViewType instead of typeof

* Create CheckType type

* Remove time machine reducer tests

* Remove check view properties that come from xyView

* Fix EditCheck hooks

* Move status calculations to body of function

* Update redux store when performing check CRUD

* Create add and remove check actions in timeMachine

* Remove trailing space
2019-08-05 17:38:49 -07:00
j. Emrys Landivar (docmerlin) b303d54584 perf(query): hoist bucket lookups so we do not look up per table
perf(query): hoist bucket lookups so we do not look up per table
2019-08-05 16:02:33 -05:00
j. Emrys Landivar (docmerlin) 7bd481d829 respond to pr comments 2019-08-05 13:16:51 -05:00
j. Emrys Landivar (docmerlin) 24c1f21e4e WIP 2019-08-05 13:16:51 -05:00
Christopher Henn f0c506faff fix(ui): fix v.windowPeriod computation 2019-08-05 07:19:15 -07:00
Andrew Watkins 841f22cbee
build(webpack): fix hashing and css hmr (#14552) 2019-08-03 11:36:58 -07:00
Christopher Henn 98e64ecf3d chore(swagger): update codeowners file for swagger spec 2019-08-02 16:06:54 -07:00
Christopher Henn 7c7c9be76b fix(ui): avoid logging CancellationErrors to console
It is expected that if a function awaits a promise, and that promise
rejects with a `CancellationError`, that the function catch and silence
the error. We usually do this, except for one subtle case: in the
`QueryBuilderFetcher`, cancellable promises are intercepted and their
results are cached. Since this caching branch of the promise chain had
no error handling, we were still seeing `CancellationError`s logged to
the console.

This commit blackholes those errors so that they do not show in the
console. It is only expected that the caller of these caching wrappers
handle the `CancellationError`.

Closes #14404
2019-08-02 14:45:42 -07:00
Christopher Henn 15f33dc88d fix(ui): enable source maps in production 2019-08-02 14:45:42 -07:00
Christopher Henn 6c1f4608e8 fix(ui): avoid setState error when logging in 2019-08-02 14:45:42 -07:00
Christopher Henn 8ca1d75d6d chore(ui): use latest chrome for e2e tests 2019-08-02 13:50:22 -07:00
Christopher Henn 5104cc1f11 fix(ui): handle rate limited and error Flux responses 2019-08-02 13:50:22 -07:00
Christopher Henn 8a5dcd5707 feat(ui): display notification when Flux response is truncated 2019-08-02 13:50:22 -07:00
Christopher Henn e62fbe6242 refactor(ui): remove unused workers code 2019-08-02 13:50:22 -07:00
Christopher Henn 827e174f76 fix(ui): polish cell loading states on dashboard
Before we would switch from a spinner to "Loading..." text while a cell
loaded for the first time.

This commit changes cells to only show "Loading..." while loading, which
feels less spastic.
2019-08-02 13:50:22 -07:00
Christopher Henn 56d1f43ab6 refactor(ui): migrate usage of client write API
Part of #14482
2019-08-02 13:50:22 -07:00
Christopher Henn e395f0e3a8 refactor(ui): bump tsconfig target
The latest version of Chrome, Firefox, Safari, and Edge support ES2017.
2019-08-02 13:50:22 -07:00
Christopher Henn ff51a78eae refactor(ui): support receiving limited Flux responses
Adds support for fetching a Flux response with a limit, and returning a
partial response instead of an error if that limit is exceeded.

The logic is implemented here instead of in influxdb-client-js as part
of #14482.
2019-08-02 13:50:22 -07:00
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