* 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
* 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
* refactor(ui): replace instances of local confirmation button with clockface
* refactor(ui): delete local confirmation button
* refactor(ui): fix affected e2e tokens test
* 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
* 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
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.
* 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
* 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
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
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.
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.
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
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
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>
* 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
* 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
* 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()
* 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
* 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
* Update dependency
* Fix appearance of signin form
* Fix appearance of inline label editor
* Update implementation of dropdown
* Remove comment
* Fix appearance of auto refresh dropdown
* Update implementation of time range dropdown
* Update implementation of time zone dropdown
* Update implementation of window selector
* Fix missing button text in window selector
Oooooops
* Update implementation of time format dropdown
* Update implementation of column selector
* Update implementation of geometry dropdown
* Ensure line graphs have a default color palette
* Update implementation of color scheme dropdown
* Update implementation of heat map color selector
* Update dropdown implementations in histogram options
* Update implementation of Variable Builder dropdowns
* Update implementation of buckets dropdown
* Tweak color of slide toggle in token row to be green
* Update implementation of Generate Token dropdown
* Update snapshot tests
* Update bucket dropdown tests
* Fix query builder test
* Update onboarding buttons test
* Fix some e2e tests
* Fix tokens e2e tests
* Fix variables e2e tests
* Update implemenation of view type dropdown
Also removing the empty view type from existence
Co-Authored-By: Christopher Henn <chnn@users.noreply.github.com>
* Fix query builder add card button
Made it less prone to breakage
* Fix appearance of VEO
* Update styles of renamable page title
* Update styles using button or icon or input
* Ensure time range dropdown is not blank initially
* Update implementation of variable tooltip dropdown
* Update implementation of dropdowns in Add Members form
* Update implementation of Color dropdown
* Update implementation of dropdowns in scatter plot options
* Upddate implementation of precision dropdown
* Update implementation of sort by table option dropdown
* Update implementation of dashboards dropdown in save as menu
* Update implementations of dropdowns in task form
* Update Variable control bar dropdowns
* Delete unused component
* Remove unused imports
* Update bucket dropdown implementation in delete data form
* Update searchable dropdown to use new clockface components
* Delete local dropdown components
* Fix failing unit tests
* blerp
* Coerce type in view type dropdown
* Fix onboarding styles
* Fix e2e tests
Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>
* Fix last e2e test
Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>
* build(e2e): allow cypress to run with webpack dev server
* bump to client 0.5.3
* export Query type from client and create alerting mock
* Bump client to 0.5.5
* Merge all status enums to one type
* Fix threshold visualization types
* Add extra underscore to notification rules
* Use check view type from client
* Add description field to checks, notificationrules and endpoints
* Add init check cards
* Add check card actions
* Correct component name
* Add check card context and toggle
* Add id to notification rule base
* Add notification rule cards
* add checks reducer tests
* user immer for checks reducer
* add tests and immer to notification rule reducer
Changes the `latestValues` logic to ignore null/empty Flux rows. This
prevents a single stat/gauge crash.
Also wraps the time machine `Vis` in a error boundary, to mitigate the
results of a crash.
Closes#14422
* Add columns for checks, nr's and endpoints
* Add checks getters and redux store
* Add notification rules Store and fetching
* Connect ChecksColumn to redux and add checkcards
* specify const types in action creators
Upgrades influxdb-client-js to latest dev tip, which includes a fix for
issue #14086.
I also ran into an issue where the templates UI was crashing. It was
fixed by running
npm update @influxdata/influxdb-templates
To avoid having to run this not-obvious fix in the future, I [added a
release process][0] to influxdb-templates, released a version, and
pinned influxdb to that version.
Closes#14086
[0]: 401ec1687a
* wip: cleanup
* perf(dashboards): dont fetch each views' data when opening veo
* chore: fix types
* chore: fix types
* perf: stop rerendering of all views when variables change
* chore: cleanup
Wraps each dropdown in the variable control bar in a error boundary of
its own, using a new `ErrorBoundary` component.
The `ErrorBoundary` component can wrap both class and non-class
components alike (unlike the existing `ErrorHandling` class decorator).
Also removed the redudant logging from the `ErrorHandling` HOC; an error
caught by an error boundary will log once now, rather than twice.
* Separate input element from date-picker
* Add error message padding to DatePicker input
Co-authored-by: alexpaxton <thealexpaxton@gmail.com>
* Prevent time selection vertical jitter and polish styles
Co-Authored-By: Deniz Kusefoglu <deniz@influxdata.com>
* Use Form component from @influxdata/clockface
* Add x and y column picker to line graph
* Use column selector in heatmap options
* Add column selector to histogram
* Add column selector to scatter plot
* Fix tests
* Add xColumn and yColumn to data structure in line graph tests
* Move scatter container defaults to visSwitcher
* Add fillcolumn validity checking to histogram
* regularize XYcontainer and render it and lineplussingle stat in visSwitcher
* Initialize all views with null columns
* Place Line and Scatter Options x-y column selector behind cloud feature flag
* Rename getGroupableColumnSelection
* Add defaults to x/y column selections in line graphs
* Add defaults to x/y column selections in scatter
* # This is a combination of 2 commits.
# The first commit's message is:
added writeData command
# The 2nd commit message will be skipped:
# delinting
* added writeData command
* better junit reporting
removed chainable .only.
* starting onboarding test
* complete onboarding to quick start
* additional onboarding tests
* adding field requirements test
WIP - updating to new org ctx - stablizing
WIP - linting - stablizing
fixing merge conflicts
* refactor onboarding test to leverage data-testid
fixing jstests with new data-testid attribs
refactor add last data-testid replacements onb test
improving assert
* passing in additional data-testid values
troubleshoot tokens test
WIP tokens test - clean up after troubleshoot
WIP - tokens tests
updating testID in tokens test
* re-enable all current tokens tests
* starting labels test
* labels tests
* minor fix
minor fix
* cy.writeData chunked
* resynching onboarding.test.ts
* Add scatter to visualization types dropdown
* Add initial scatter options
* Add scatter visualization to view switcher
* Add scatter to VEO
* Add scatter type to graph types
* Expand scatter options
* Update changelog
* Change scatter color type to strings
* Assume fluxgroupkey is set
* Regularize scatter options
* Place scatter behind feature flag