Commit Graph

1761 Commits (8e56c367371cccbe60ca9213553dd9256b3e576f)

Author SHA1 Message Date
Michael Desa 8e56c36737
feat(notification_rule): create notification rule task
feat(notification_rule): generate base flux for notification rule

wip: saving state

fix(notification/endpoint): add comment about weird requirements

feat(notification_rule): create notification rule task
2019-08-16 15:43:15 -04:00
alexpaxton 1f499d599a
refactor(ui): scrub alerting ui copy ()
* refactor(ui): rename Alerting related page titles

* refactor(ui): update copy in alerting index empty state

* refactor(ui): shrink dashed buttons slightly

* refactor(ui): update copy in VEO and alerting overlays

* refactor(ui): ensure AND in rule builder is a different color

* refactor(ui): fix linter error for reals
2019-08-16 11:34:26 -07:00
Deniz Kusefoglu 6bfce8483f
feat: check threshold conditions ()
* Fix alert-ids in AlertBuilder

* Render deadman or threshold depending on check

* Add threshold condition cards

* swap ComponentSpacer with FlexBox

* Remove unnecessary component props

* Remove extra nesting

* Better gets

* Fix linter erros in value input

* Disconnect CheckConditionsCard from redux

* Add tags inputs
2019-08-16 09:14:31 -07:00
alexpaxton 53f6806df1
chore(ui): upgrade Clockface dependency to 0.0.25 ()
* chore(ui): upgrade clockface dependency to latest

* refactor(ui): replace references to "ComponentSpacer" with "FlexBox"

* refactor(ui): update snapshot tests

* refactor(ui): appease the linter

* refactor(ui): appease the linter, again

* refactor(ui): WIP improve flaky e2e test

Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>

* test(e2e): refactor scraper tests
2019-08-15 17:04:06 -07:00
Christopher Henn 33a5d8ff5d feat(ui): integrate notification rule overlays with API 2019-08-15 16:24:52 -07:00
Russ Savage 235e0b4d60
fix spelling in logBins example () 2019-08-15 13:41:30 -07:00
Deniz Kusefoglu e637e1e140
Feat/current check to time machine ()
* Move current check to TimeMachine alerting

* Unify RemoveButton actions in to  ConvertFromCheckView

* Unify AddCheckDialog actions

* Switch saveCurrentCheck to saveCheckFromTimeMachine

* Remove current check from checks reducer

* Change getCurrentCheck to getCheckForTimeMachine

* Get Check along with view in EditcheckEO

* Tidy imports

* Import Actions With on...

* fix module name

* Remove check fixtures
2019-08-14 17:37:33 -07:00
Christopher Henn 54c9537bfc refactor(ui): differentiate server/client side IDs 2019-08-14 15:48:39 -07:00
Christopher Henn 26f98262bb refactor(ui): differentiate dynamic/constant/fixture data 2019-08-14 15:48:39 -07:00
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 ()
* 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 ()
* 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 ()
* 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 
2019-08-12 16:02:33 -07:00
Deniz Kusefoglu d11dbf04cc
Fix checks bugs ()
* 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 ()
* 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 ()
* 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 ()
* 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 ()
* 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 ()
* 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 () 2019-08-08 10:14:08 -07:00
Deniz Kusefoglu 4d1dd96a05
Add return behavior to Alerting buttons () 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 ()
* 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 ()
* 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 ()
* 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 ()
* 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 ()
* 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 () 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 
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 
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