Commit Graph

1752 Commits (672f6eca93dbc742ed66df9d35060622784d71ac)

Author SHA1 Message Date
Christopher Henn 672f6eca93 refactor(ui): simplify notification rule state management 2019-08-14 15:48:39 -07:00
Christopher Henn fcfa827e8e fix(ui): polish notification rule message panel 2019-08-14 15:48:39 -07:00
kelseiv 12e192f474
Flux function updates (#14657)
* update exponentialMovingAverage

* add doubleEMA

* add tripleEMA

* add relativeStrengthIndex

* add holtWinters

* add date.microsecond

* add date.millisecond

* add date.nanosecond

* add date.quarter

* add date.truncate

* add date.week

* add runtime.version

* update map example

* for difference, add keepFirst, upd column and desc

* add date.year

* add chandeMomentumOscillator

* add hourSelection

* add tail

* remove tail

* add tail

* format prettier

* add edits from Scott and Russ

* fix format
2019-08-14 11:47:09 -07:00
Russ Savage 8a5d0e6230
feat(templates): adding new templates, removing calls to create templates (#14631)
* adding new templates; removing calls to create templates

* fixing quickstart dashboard creation

* Type dashboard template

* bump templates repo version

* add templateID to template meta in swagger

* Add templateID to document meta type in UI

* add templateID to telegrafPlugin and telegrafplugin info types

* Instantiate templates from static templates

* Get tests to pass

* Fix type conflicts

* Bump templates version

* update changelog
2019-08-14 11:01:19 -07:00
Christopher Henn d006d80ee6 refactor(ui): simplify event viewer field configuration 2019-08-14 07:56:34 -07:00
Christopher Henn 07f34e4e60 feat(ui): add notifications tab to alerting history page 2019-08-14 07:56:34 -07:00
Christopher Henn 90a8138c95 chore(ui): disable eslint via fork-ts-checker-webpack-plugin
Disables running ESLint through the fork-ts-checker-webpack-plugin in
development, due to its tendency to overuse CPU.

I think this OK since linter errors, unlike typechecking errors, are
usually confined to the file you are working within. So they're a good
fit to run via an editor, rather than the build tool.
2019-08-13 14:11:33 -07:00
alexpaxton 05c607aa41
refactor(ui): replace AutoInput with Clockface (#14628)
* refactor(ui): replace instaces of AutoInput with Clockface

* refactor(ui): delete local AutoInput component

* refactor(ui): ensure null gets passed back when bin count is set to auto

* refactor(ui): convert BinCountInput into a stateless component

* refactor(ui): convert BinCountInput to function component
2019-08-12 17:04:24 -07:00
Christopher Henn 648e80a9a6 feat(ui): stub out check visualization options 2019-08-12 16:30:19 -07:00
Christopher Henn fc18ec56a5 fix(ui): allow visualization options for a check view to be opened 2019-08-12 16:02:33 -07:00
Christopher Henn 1bf7ed9bae refactor(ui): move type to types directory 2019-08-12 16:02:33 -07:00
Christopher Henn 926bf1214e feat(ui): show dialog when adding check to cell
Closes #14585
2019-08-12 16:02:33 -07:00
Deniz Kusefoglu d11dbf04cc
Fix checks bugs (#14622)
* Fix editVEO check saving

* Get checks at dashboard load

* Fix check queries type

* save View before saving check in VEOs

* Get checks from checks list for checkPlot

* Add check view properties to backend

* Match Alerting Button to CheckAlertingButton

* Remove thresholds from default check

* Remove explicity declaration of check view type in query views

* Pass check down to CheckPlot

* Fix clashing action calls

* Fix calling check type change action from dispatch

* Only check for checkView if view is defined

* Remove type when spreading new check on to default check

* Fix check edit route in check cards

* Get checks for dashboard earlier

* Clean up getCheckForView selector
2019-08-12 14:48:24 -07:00
alexpaxton ee8dc2d5c3
refactor(ui): factor out local Form components (#14624)
* refactor(ui): replace instace of local Form with clockface

* refactor(ui): replace Form in token overlay

* refactor(ui): replace Form in label overlay

* refactor(ui): replace Form in danger overlay

* refactor(ui): delete local form layout components
2019-08-12 11:34:48 -07:00
Christopher Henn 02092e6960 fix(ui): feature flag alerting button 2019-08-12 10:47:32 -07:00
Christopher Henn 6d993a37c5 refactor(ui): migrate signin/signout to generated client 2019-08-09 16:11:04 -07:00
alexpaxton dc0d663364
chore(ui): replace local ConfirmationButton using Clockface (#14605)
* refactor(ui): replace instances of local confirmation button with clockface

* refactor(ui): delete local confirmation button

* refactor(ui): fix affected e2e tokens test
2019-08-09 16:01:41 -07:00
Christopher Henn ec4e788a82 feat(ui): introduce alert history page 2019-08-08 20:20:14 -07:00
alexpaxton fb94fd8ffe
refactor(ui): Polish appearance of Alerting UI (#14602)
* refactor(ui): polish appearance of alerting index view

* refactor(ui): ensure alert check editor header has proper padding

* refactor(ui): emphasize alerting button more

* refactor(ui): style check builder control bar

* refactor(ui): allow buidler card to have a customizable width

* refactor(ui): expose autohide prop from dapperscrollbars within buildercardbody

* refactor(ui): allow dashed button to have configurable color and size

* refactor(ui): add placeholder buttons in to thresholds card

* refactor(ui): add custom styles for alert builder cards

* refactor(ui): increase height of status message template

* refactor(ui): add empty state to matching rules card

* fix(ui): reconnect checks list to redux

* refactor(ui): use more appropriate copy in endpoints empty state
2019-08-08 16:45:48 -07:00
Andrew Watkins e66bc650c4
feat(rule): edit notification rule overlay (#14600)
* refactor: separate providers

* refactor(rule): protect shared reducers

* refactor(rule): dry

* fix(alterts): duplicate action calls
2019-08-08 16:12:52 -07:00
Deniz Kusefoglu 17c40a75de
Visualize check view with check plot (#14599)
* Use CheckPlot to visualize check view

* Revert to add threshold types

* Disable view type dropdown in checkView

* Add proper equality

* Add errors in default cases
2019-08-08 12:25:58 -07:00
alexpaxton b5c8adfdaf
chore(ui): upgrade clockface to 0.0.24 (#14598) 2019-08-08 10:14:08 -07:00
Deniz Kusefoglu 4d1dd96a05
Add return behavior to Alerting buttons (#14584) 2019-08-07 17:23:18 -07:00
Christopher Henn 6d5ac71543 fix(ui): sooth honeybader
Changes our error reporting strategy for Honeybadger from "report
everything logged by `console.error`" to "report everything caught by an
error boundary".

As before, Honeybadger still reports everything caught by
`window.onerror` as well.
2019-08-07 15:30:13 -07:00
Andrew Watkins 7d9ec64eec
build(client): generate client on each build (#14591)
* chore: add new types for NotiicationRules

* build(client): remove client and build each build

* chore: update gitignore to exclude generated client

* fix: allow client dir to be empty

* docs: add README to client dir

* fix(build): add autogen client to eslintignore

* build: gen client for ci js tests
2019-08-07 13:42:35 -07:00
Andrew Watkins 1d256551f6
feat(alerts): create notification rule overlay (#14520)
* feat(rules): render rule overlay

* feat(ui/rules): add name and schedule to new overlay

* style(alerts): style new rule overlay like veo

* feat(alerts): add rule conditions and period count components

* feat(alerts): introduce StatusLevels component

* feat(alerts): add status change and level dropdowns

* refactor(alerts): use context to pass dispatch

* feat(rules): change check status level

* wip: wip

* test(alters): add cypress tests for create notification rule

* test(e2e): more testing for NewRuleOverlay

* feat(alerts): delete notification status rule

* feat(alerts): add TagRule component

* feat(alerts): remove TagRule

* feat(alerts): add RuleEndpoint dropdown

* feat(alerts): add notification rule message

* wip: upgrade clockface to 0.23

* styles(alerts): notification status rule

* styles(alerts): make new rule overlay pretty

* style(alerts): add DashedButton component

* test(e2e): fix notificationRule tests

* chore: remove feature flag

* style(alerts): LevelsDropdown

* chore: fix dummy data

* chore: capitalize LevelType

* style(alerts): copy css into NewRuleOverlay styles

* chore(alerts): add suffix  to client side interfaces

* chore(alerts): compile time reducer error defaults

* chore: plural to singular enums

* chore: trying new util convention

* chore: add back feature flag

* refactor(alterts): move state manipulation into reducer

* chore: comment feature flag

* refactor: move state changes into reducer
2019-08-07 11:08:10 -07:00
Andrew Watkins 6f14174c32
fix: bucket save (#14582)
* fix(ui/buckets): close edit bucket modal on save

* test(e2e): test that modal closes after save
2019-08-06 14:50:07 -07:00
Andrew Watkins 972392f698
chore(ui): upgrade clockface (#14578)
* chore: upgrade clockface and fix type errors

* fix(clockface): types for TextArea onChange callback
2019-08-06 10:23:29 -07: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
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 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 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
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
George b2fe0d1d63
fix(tasks): surface flux errors on pre-auth check (#14492) 2019-07-31 11:46:28 +02:00