* refactor(ui): add explainer panel to buckets index view
* refactor: convert both explainer components from SFC to FunctionComponent
* refactor: appease linter
* fix(debug): debugging popover refactor
* fix(ui/timerangedropdown): refactored the daterangepicker implementation into a popover
* chore(linter): fixed linter errors
* feat(tests): added tests to refactor and reported found issues
* fix(ui/boxtooltip): moved boxtooltip a few pixels to prevent onMouseOver and onMouseOut from constantly triggering in EventMarker. Added a comment about the solution and wrote a new issue to deal with a long-term solution to the problem
* expose store to cypress
* Load variables from dashboard in edit cell view
* Initialize new veo with dashboard variable values
* Add cypress pipe library
* Add tests of redux state changes to cell
* Remove unused async command
* Create passing tests for view with variable
* Add moar tests!
* Add jest import
* Fix linter errors
* Use get to define default value
* Fix eslint errors
* Disable eslint for commands
* Improve code styles
* 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
* chore(ui/GetResources): parallelized GetResources CDM calls
Refactored GetResources CDM call to take in an array of ResourceTypes to run in parallel rather than taking in a single ResourceType.
* chore(ui/GetResources): parallelized GetResources CDM calls
Refactored GetResources CDM call to take in an array of ResourceTypes to run in parallel rather than taking in a single ResourceType.
* fix(tests): updated components & refactored getresources to be async
* chore(ui/GetResources): parallelized GetResources CDM calls
Refactored GetResources CDM call to take in an array of ResourceTypes to run in parallel rather than taking in a single ResourceType.
* fix(tests): updated components & refactored getresources to be async
* fix(jstest): Fixed linter errors
* fix(jstest): fixed js test specs
* 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
* chore(ui): upgrade clockface dependency
* refactor(ui): update components affected by breaking changes
* refactor(ui): update test snapshots
* refactor(ui): remove obsolete component
* refactor(ui): remove reference to non-existant stylesheet
* refactor(ui): update selector in e2e collectors test
* refactor(ui): attempt to fix e2e test
* refactor(ui): appease linter
* refactor(ui): update implementation of client library cards
* refactor: update all breakage from new version
* refactor: revert this commit
* refactor: fix popover by using useRef instead of createRef
* fix: update all instances of EmptyStateText
* fix: update all instances of PageHeader
* fix: update straggler empty state text
* fix: update instance of PageHeaderCenter
* fix: update instance of PageContents
* fix: update style rule for dashboard cards
* chore: update test snapshots
* refactor: update instance of question mark tooltip
* refactor: use brighten prop to ensure contrast with background
* Revert "refactor: revert this commit"
This reverts commit f325916d91.
* chore: upgrade to NPM package instead of local
* refactor: fix css import
* refactor: update test snapshot
* refactor: Guard against string being null
Co-Authored-By: Alex Boatwright <alex@drdelambre.com>
* refactor: move resource getter inside overlay so it does not disrupt layout
* refactor: fix unit test by updating selector
* refactor: guard against name being absent
* chore: upgrade to latest clockface to utilize a bugfix
* chore: update snapshot test
* refactor: fix appearance of searchableDropdown
* chore: upgrade dependency (again) for bugfixes
* refactor: fix labels e2e test
* refactor: fix tokens e2e test
* refactor: appease linter
* chore(flux): update Flux function docs with experimental and 0.50 functions
* removed unnecessary newlines from fluxFunctions.ts
* fix(fluxFunctions): add space before param
1. Removing dashboard changes from earlier commit
2. Changing inital state variable name to just be endpoint
3. moving dispatch in check actions
4. Adding notification to endpoints
These are the final tests and rule fix for this issue.
The checks is special in how it was fixed.
But endpoints and rules have the exact same fix on them
All the tests are running smoothly
EsLint was run so this branch should no longer fail from that as well.
1. We fixed the endpoints so it no longer routes to 404 page, instead now routes to the alerting index. When endpoint id does not exist.
2.Added Cypress test to confirm the routing works on checks. Routing the user to the index page when the checks id does not exist.
hopefully this commit doesnt do anything, but it opens up the ability to
change the static folder of the project through the environment variable
STATIC_FOLDER so that we can cache static files and not cache the index
file (allowing more passive deployment strategies), and allows the user
to change the base path of the project with the BASE_PATH variable,
opening up the ability to run an instance behind an nginx proxy,
though that change is pending an update to the @influxdata/oats package
before we can turn it on
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.
while exploring containerization of the frontend, i decided to remove the
existing environment configuration from package.json and push them into
external files in an attempt to improve the caching strategies available
for local development. the CI pipeline should be watching the lock file,
but changes to the testing environment locally shouldn't cause a rebuild
of node_modules.
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.
* Add init event markers
* Add events to dashboard graphs
* Add level coloring and styling to event markers
* Window statuses by time and graph groups of events
* Put event markers behind feature flag
* init tooltip
* Upgrade giraffe library
* Add Tooltip
* Add status query to Time Machine
* Status rows return lowercase check level statuses
* rename events to statuses
* Radically improve tooltip style
Co-authored-by: alexpaxton <thealexpaxton@gmail.com>
* Add time formatting
* Make status query more readable
* Clean up comments
* refactor(ui): add vector graphic logos for each client library
* refactor(ui): replace mock content with real content
* refactor(ui): display client library content in overlays with routes
* refactor(ui): cleanup factored out components
* refactor(ui): increase size of client library overlays
* refactor(ui): make client library overlays wider
* refactor(ui): add link to docs for each client library
* refactor(ui): cleanup commented code
* refacotor(ui): split first time create check button into one for each type
* refactor(ui): replace create check button with dropdown
* refactor(ui): remove check type toggle from conditions card
* refactor(ui): split check creation into 2 routes
* refactor(ui): change default check depending on type
* refactor(ui): hide function selector when building a deadman check
* refactor(ui): move validation popover to check save button
* refactor(ui): remove unused component
* refactor(ui): ensure deadman queries do not have an aggregate function
Co-Authored-By: Deniz Kusefoglu <deniz@influxdata.com>
* refactor(ui): update alerting get started copy
* refactor(ui): update e2e test
* refactor(ui): use existing checkType type
Closes https://github.com/influxdata/influxdb/issues/15060
Previously, the create button for a variable wouldn't be enabled unless
the user clicked in the text box, despite a query being present. This
adds an aditional check to the `isFormValid` method that ensures that if
a query is present the create button will be enabled.
The previous bucket retention form component was frusterating to use.
This commit replaces it with a simple duration dropdown that we use in a
few other places. It refactors the various duration utilities to make it
happen.
The hope is to eventually improve this duration dropdown into a combined
text input/dropdown component that can accept custom durations with
validation.
The following steps would result in a server error:
1. Open create bucket overlay
2. Enter valid name
2. Click "Periodically" radio option
3. Click "Never" again
4. Submit
The issue is that the bucket was being submitted with an invaild
retention duration, even though the user had selected to use no
retention duration (by clicking "Never").
The solution was to clear the retention duration state when switching
back to the "Never" radio option.
* refactor(ui): remove action buttons from system bucket cards
* refactor(ui): make check builder more compact
* refactor(ui): add raw data toggle to check editor
* refactor(ui): fix logic for displaying system bucket label
* refactor(ui): remove edit link from system buckets
We want to display a row for each notification, but we were displaying
a row for each field for each notification.
By filtering out the system fields (those that start with an
underscore), we are in left with only a single user-specific field.
Closes https://github.com/influxdata/influxdb/issues/15042
Previously, there was an optional URL provided for the pagerduty
endpoint. However, the pagerduty API url does not change and as a result
it should not have been a parameter. The Pagerduty API does require a
`clientURL` that is presented in the pagerduty UI when an alert is
triggered. Currently that value will default to the alerts history page
for the organization.