* feat(ui): Add matching rules card to alert builder
* feat(checks): Add tags from query results to NR matching query parameters
* feat(ui): Update changelog
* feat(nr): Change api function to match import convention
* fix(ui): Fix changelog update mistake
* Click submit button after typing in time machine
* feat(notification rules): Add feature flag to matching notification rules
feat(ui): added last run status checks for notification rules and check rules, readded updateCheck to fix linter and functionality issues with program and added tests to ensure check creation and update stability
this work is to support pkger, but was able to add back in the
skipped tests. seeing failures upstream, and didn't catch it in
influxdb b/c the tests were being skipped.
closes: #14799
the original design made the secrets unable to be reused, a bit to opinionated
to be useful eleswhere. This relaxes that requirement so that secrets can be
referenced here.
fix(ui): adding times in script editor will default start and endtime for timerange queries, compute timeranges based on script and based on widest date range & fix dashboard so that cells that have been saved with timerange scripts are based on those timeranges
one thing to note here is that new endpoint was created. there was no
endpoint for setting an initial password that worked. The existin endpoint
was a bit messy and coupled across multiple routes. Having multiple auth
schemes proved incredibly taxing to write against.
* fix(bucket-list): wrapped DWP in featureFlag and sorted bucket list
* chore(changelog): updated the changelog to reflect PR changes
* fix(e2e): skipping tests until featureflag removed from DWP
* chore(tests): refactoring to use selector and add tests
* chore(refactor): created selector for ordering bucketlist and added tests
* fix(bucketsort): updated func and var names to accurately reflect intent
* fix(bucket/selector): renamed func for accuracy
* fix(DWP): reset redux state when DWP resolves or rejects
* chore(lint): fixed lint and added PR to changelog
* fix(linter): removed unused depenency in tests
* fix(storage): add failing test for array cursor iterator stats
* fix(storage): make arrayCursorIterator.Stats() return stats of in-focus cursor
* fix(storage): add failing test to assert arrayCursorIterator.Stats() returns accumulated result
* fix(storage): assumulate stats in arrayCursorIterator.Stats() call across all observed cursors
* feat(kv): unique variable names
- adds system bucket for creating an index of unique variable names
- adds tests
- deleted unit tests for dead code
- removed a test runner for the variable service from http
* feat: (http) label names to be unique
* feat(http): should work for updates as well
* chore: commented out former work. added a failing test
* feat: ensure label uniqueness & test cases
* feat: updating labels ensures uniqueness
* fix: fixes a failing unrelated test
* chore: update changelog
* fix(ui/tasks): edit & update functionality has been fixed. Also fixed the issue where task form data didn't persist when toggling between schedule task options
* chore(CHANGELOG): updated changelog with current PR
* fix(ui/tasks): updated reducer test to more accurately reflect the current reducer functionality and updated the parameter name for consistency
* fix(linter): removed extra whitespace
* chore(comment): removed old comment from PR since it's no longer necessary
* fix(ui/collectorList-telegraf): sort telegrafs based on buckets
* fix(ui/collectors): added tests to the sort by telegrafs/buckets functionality
* fix(ui/collectors): made PR suggested changes
* fix(ui/collectors): updated snapshot test
* fix(collectors): added collectors changes
* fix: labels test
* fix: sanity check
* chore: skip tests to resolve in separate PR
* fix: revisit page
* fix(ui/labeloverlayerror):
UI is now correctly disabling the submit button and returning an invalid input error when a user tries to submit an empty input for the label overlay name
Updated change log and added in link to issue for newly built tests
Updated the updateLabelOverlay methods to correspond with the changes made to the labeloverlayform
add test for hydrateVars
dashboard variable dropdown test: inspect values, not just array length
add RTL test for variable dropdown changes
lint
fix: Disable saving threshold check if no threshold selected (#15348)
* Prevent check saving if no thresholds
* Add tests
* Add changes to changelog
* make optional props optional
* use false instead of null for boolean
changelog
fix(ui): ignore false change events in VariableForm (#15317)
closes#15059
the issue is to persist user data across variable type selection interfaces within the variable editor. this commit pushes all of the variable editor information down to redux to allow persistence outside of the view state until the user clicks "cancel" or "create" in the interface.
* refactor(ui): add default values for deadman condition
* refactor(ui): limit values to 2 decimal places when dragging thereshold handles
* refactor(ui): prevent system buckets from being deleted or renamed
* refactor(ui): indicate which buckets are system buckets
* refactor(ui): prevent user from creating buckets starting with _
* refactor(ui): remove system bucketes from generate token overlay
* refactor(ui): remove system buckets from bucket dropdowns
* chore(ui): update changelog
* refactor(ui): move check message to its own card
* refactor(ui): ensure builder cards fill width of overlay
* refactor(ui): make conditions boxes fill width of parent
* refactor(ui): allow check properties card to grow
* refactor(ui): remove matching rules card
* chore(ui): update changelog
e2e tests are failing because the fancyscroll bar component hides
the admin step during certain points in onboarding.
We were able to reproduce when the form in the admin step had been
marked as valid.
The use of the scrollbar in the setting seemed unneeded as it could
be rendered in a quite small window.
Therefore, we removed the scrollbar altogether for now.
Co-authored-by: Christopher Henn <chris@chrishenn.net>
* refactor(ui): move QuestionMarkTooltip into shared folder
* refactor(ui): delete unused component
* refactor(ui): allow QuestionMarkTooltip to wrap other elements
* refactor(ui): Add question mark tooltips to alerting column headers
* refactor(ui): color code buttons to indicate importance and grouping
* refactor(ui): swap order of endpoints and rules columns
* refactor(ui): show "first time" widget when no alerting resources exist
* refactor(ui): update alerting empty copy
* refactor(ui): ensure onboarding tooltips are using the correct prop names
* refactor(ui): remove tests for tooltips in admin step
These should be handled by Clockface instead
* refactor(ui): fix affected e2e test
* chore(ui): update changelog
* refactor(ui): expose bucket options as buttons instead of context menu
* chore(ui): update changelog
* refactor(ui): increase distance between bucket options and meta line
To have checks and notifications happen transactionally we need to be
able to alert the task system when a new task was created using the checks and notifications systems.
These two new middlewares allow us to inform the task system of a update
to a task that was created through the check or notification systems.
* refactor(ui): extend url activator to check on deeper URLs
* refactor(ui): create load data nav and page components
* refactor(ui): update telegrafs, scrapers, and buckets to use load data nav
* refactor(ui): update side nav and router to expose load data tab
* chore(ui): update changelog
* refactor(ui): update link to telegrafs page from status page
* refactor(ui): fix broken routes
* refactor(ui): make settings page tabs consistent with load data tabs
* refactor(ui): appease the linter gods
* refactor(ui): attempt to fix e2e tests
* 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
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%
* Report errors found when iterating over flux query in task
* Add failing test for tasks executor result iterator exhaust failure
* Ensure errors exhausting tasks query result iterator are surfaced as task failure
* Update CHANGELOG with task result iteration error surfacing fix
* 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
Co-authored-by: Jade McGough <jade@influxdata.com>
* Add session renew option to launcher and use in middlewhere
* pass session options to services
* Update SessionAutoRenew to SessionRenewDisabled
* Add test for service constructor defaults
* Update changelog
The method we used to compute a single stat / gauge value previously did
account for missing data. If the latest value in a response was part of
a numeric column but was null/NaN/not defined, the single stat
computation would fail and a user would see an error message "Could not
display single stat because your values are non-numeric".
This commit updates the single stat computation to find the latest
*defined* numeric values.
If no latest valid numeric values are found, we will either:
- Display an error message if using the compuation within a single stat
visualization
- Display nothing if using the computation within a within a line +
single stat visualization (i.e. display the line vis only)
If multiple latest values are found, we make an arbitrary selection
(same as previous behavior). The goal is to eventually expose UI
elements to the user so they can make this selection themselves.
This commit also updates the single stat computation to use the
@influxdata/vis `Table` format as an intermediate/parsed representation
of a Flux CSV response. This unlocks the possibility for performance
gains in our CSV parsing. See #13852.
Closes#13824
* Add optional multiselect styling to query builder lists
* Style buckets list to be single select
* Style function list to be multi-select
* Style tag selector to be multi-select
* Updoot
* Appease the linter gods
* Fix scrollbars in selector list
* Make variables toggle button themed to match variables
* Make dropdowns only be draggable from the hamburger
* Polish styles of variable dropdown
* Updoot
* Move and rename components
* Break overlay into subcomponents
* Create empty state with link when no templates exist
* Break down template overlay components further
* Enable scrolling in overlay
Use custom UI instead of responsive grid
* Updoot changelog
* Fix e2e test
* Improve readability of code
* Import types from src/types instead of directly from client
* Import type from src/types instead of directly from client
* Do not display version of template in details panel
* WIP import types from src/types instead of directly from client
* Fix template types
* Install new scrollbars library
* First pass at new wrapper for scrollbars
* Replace FancyScrollbars with DapperScrollbars in Page components
* Polish DapperScrollbars
* Update dropdown component to use DapperScrollbars
* Update a couple dropdowns to conform to new constraints
* Update legend to use Dapper Scrollbars
* Fix linting error
* Implement DapperScrollbars in overlays
* Ensure proper functionality in page contents
* Use fixed sizing for overlay scrollbars
* Updoot