Commit Graph

31494 Commits (aa5b094c8de2c12a2177e728973c1432118c4832)

Author SHA1 Message Date
j. Emrys Landivar (docmerlin) 3fd94cbb69 feat(task): new scheduler now with more tests 2019-10-14 14:02:25 -05:00
Lyon Hill 84bc9a8293 feat(task): add scheduler metrics (first pass) 2019-10-14 14:02:25 -05:00
j. Emrys Landivar (docmerlin) 4695eccda5 feat(tasks): new tree-based scheduler 2019-10-14 14:02:25 -05:00
Zoe Steinkamp f2970510e0 fix(endpoints, rules, checks): route user to alerting index
Added in the final notification fixes, also adding a PR for fruther problems with the rules and endpoints
2019-10-14 12:44:02 -06:00
Zoe Steinkamp 02c1462d5d fix(endpoints, rules, checks): route user to alerting index
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
2019-10-14 12:43:52 -06:00
Zoe Steinkamp d83576c506 fix(endpoints, rules, checks): route user to alerting index
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.
2019-10-14 12:43:01 -06:00
Zoe Steinkamp e6c2a9f373 Eslint clean up 2019-10-14 12:43:01 -06:00
Zoe Steinkamp 5e4ff33ec0 fix(endpoints): route user to alerting index
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.
2019-10-14 12:43:01 -06:00
Zoe Steinkamp a40f77c0ac Solution and cypress testing documentation
The solution for the issue is present as well as the cypress testing documentation
2019-10-14 12:43:01 -06:00
Zoe Steinkamp 5afb613fce
Merge pull request #15381 from influxdata/zs--dashboard404routing-#15325
fix(dashboards)routing to dashboard page instead of 404
2019-10-14 12:35:06 -06:00
Johnny Steenbergen d25afc835a
Merge pull request #15347 from influxdata/4447/vault_configuration_flags
fix(vault): add configuration dependency to vault service constructor
2019-10-14 10:51:10 -07:00
Johnny Steenbergen 6b023a5cfd fix(vault): add configuration dependency to vault service constructor
this fix allows the DI of the vault service configuration. There are place
where we'd like to adminster this with flags, but are locked into
the default env var setup we had previously. One other note is that
calling api.DefaultConfig() calls the ReadEnvironment() method already,
so that was dropped.
2019-10-14 10:01:30 -07:00
Alex Boatwright f08152c77c
chore(ui): allow deployment configuration (#15383)
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
2019-10-11 12:17:49 -07:00
alexpaxton 79f8cf0e9d
refactor(overlays): proposed new pattern for handling overlays (#15368)
* refactor: introduce components for showing/hiding overlays

* refactor: use OverlayRouter pattern for cell note overlay

* refactor: appease linter

* refactor: add dependency for handling search params

* refactor: add a bunch of inline comments

* refactor: undo changes to dashboard and cell components

* refactor: remove searchParam based overlay components

* refactor: add Overlay key in redux, create actions & reducers

* refactor: introduce redux based overlay controller

* refactor: update Note editing to use redux based pattern

* refactor: place Note route in correct location

* refactor: remove dependecy

* refactor: add trailing whitespace

* refactor: add back in moar trailing spaces

* refactor: ensure dismising Note overlay updates the route

* refactor: appease linter

* refactor: catch a small mistake

* refactor: use explicit variable for visibility
2019-10-11 11:13:01 -07:00
Zoe Steinkamp 6caa615670 fix(dashboards)routing to dashboard page instead of 404
ES lint clean up
2019-10-11 09:25:48 -06:00
Lyon Hill 3c6779f011
feat(task): Allow tasks to run more isolated from other task systems (#15384)
* feat(task): Allow tasks to run more isolated from other task systems

To allow the task internal system to be used for user created tasks as well
as checks, notification and other future additions we needed to take 2 actions:

1 - We need to use type as a first class citizen, meaning that task's have a type
and each system that will be creating tasks will set the task type through the api.
This is a change to the previous assumption that any user could set task types. This change
will allow us to have other service's white label the task service for their own purposes and not
have to worry about colissions between the types.

2 - We needed to allow other systems to add data specific to the problem they are trying to solve.
For this purpose adding a `metadata` field to the internal task system which should allow other systems to
use the task service.

These changes will allow us in the future to allow for the current check's and notifications implementations
to create a task with meta data instead of creating a check object and a task object in the database.
By allowing this new behavior checks, notifications, and user task's can all follow the same pattern:

Field an api request in a system specific http endpoint, use a small translation to the `TaskService` function call,
translate the results to what the api expects for this system, and return results.

* fix(task): undo additional check for ownerID because check is not ready
2019-10-11 08:53:38 -06:00
Deniz Kusefoglu bdba601c30
fix: Place resource fetch logic in overlay (#15358)
* Place resource fetch logic in overlay

* Fix existing buckets tests

* Add test for routing to overlay and rerouting if bucket doesn't exist
2019-10-10 15:22:14 -07:00
Zoe Steinkamp f866c74ef3
Merge pull request #15382 from influxdata/zs-DurationTaskCreationPage-#15175
fix(tasks) Example duration on Task Creation pane.
2019-10-10 15:42:45 -06:00
Zoe Steinkamp a30732f016 fix(dashboards)routing to dashboard page instead of 404
Fixing the tests, adjusting index file
2019-10-10 13:54:48 -06:00
Jakub Bednář 0de3711d2e feat(ui): Add documentation for Java, C# and Python client (#15378)
* feat(ui): Add documentation for Java, C# and Python client

* feat(ui): Add documentation for Java, C# and Python client - fixed formatting
2019-10-10 12:24:17 -07:00
Zoe Steinkamp 30992d9fb4 fix(tasks) Example duration on Task Creation pane.
The fix, no test for the placeholder
2019-10-10 11:40:33 -06:00
Alirie Gray 364e80bc94
fix(tasks): use go errors for scheduler metrics (#15374) 2019-10-10 09:55:30 -07:00
Zoe Steinkamp 6926e66b2d fix(dashboards)routing to dashboard page instead of 404
This is the cypress test

And the lint fixes
2019-10-10 10:41:01 -06:00
Zoe Steinkamp cdbb192ce6 fix(dashboards)routing to dashboard page instead of 404
This is the actual fix, just need the test
2019-10-10 10:10:37 -06:00
kelwang 072270d7d8
Merge pull request #15372 from influxdata/cli_list_org_members
fix(cmd/influx): fix list org members
2019-10-10 12:10:25 -04:00
Kelvin Wang c96fe7ed6e fix(cmd/influx): fix list org members 2019-10-10 11:57:03 -04:00
Alirie Gray be28de8fbc
feat(tasks): deactivate task on unrecoverable error (#15369) 2019-10-09 13:51:03 -07:00
Johnny Steenbergen faa3f1e22c
Merge pull request #15343 from influxdata/2939/blacklist_senstive_data_endpoints
fix(logging): blacklist endpoints with sensitive data from logging body
2019-10-09 13:32:36 -07:00
Johnny Steenbergen dbe0103d92 fix(logging): blacklist endpoints with sensitive data from logging body 2019-10-09 13:17:24 -07:00
Jonathan A. Sternberg eacc1b0d9c
fix(query): update the QueryServiceProxyBridge to check for an error properly (#15353)
The QueryServiceProxyBridge would not check for errors properly because
it would return any error encountered when running the query as a read
error on the `io.Reader`. This made it so that the csv decoder could not
identify if the error was related to the query or if it was related to
reading. The csv decoder needed to tell the difference because an error
with reading from the `io.Reader` needs to be returned as a decoder
error while an error from the query needs to be returned as-is.

Instead of adapting the csv decoder to do that, we instead lazily
initialize the result iterator when `More()` is called and call `Peek()`
on the reader. If no bytes can be read, we assume this was an error
while executing the query and return it as such. If we are able to read
at least one byte, we decode it through the csv decoder.
2019-10-09 11:06:32 -07:00
Alex Boatwright d431c6e8a7
fix(ui): unblock build by adding jest config to typescript ignore list (#15365) 2019-10-09 09:48:18 -07:00
Edd Robinson ef1e15a0ad
Merge pull request #15318 from influxdata/er-mv-comp-limiter
feat(storage): allow compaction limiter to be injected into engine
2019-10-09 13:11:44 +01:00
Bucky Schwarz e90ab6ebdf
Merge pull request #15354 from influxdata/bucky_variable_show_keys
fix: Map type Variables selector shows keys, not values
2019-10-08 16:06:48 -07:00
Bucky Schwarz 78244ce6de
fix: Map type Variables selector shows keys, not values
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.
2019-10-08 15:52:06 -07:00
Andrew Watkins 393f0e7772
Merge pull request #15357 from influxdata/fix/axis-submits
fix(VEO): only execute queries if cellID or dashboardID change
2019-10-08 15:44:25 -07:00
Alex Boatwright b91a856f59
chore(ui): relocate testing configuration (#15356)
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.
2019-10-08 15:39:33 -07:00
Lyon Hill f5e9b5e04f
feat(task): add type to some specific metrics in new execution. (#15340) 2019-10-08 15:58:41 -06:00
Andrew Watkins 3c65f21552 fix(VEO): only execute queries if cellID or dashboardID change 2019-10-08 13:02:02 -07:00
Alex Boatwright 99478fe21f
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.
2019-10-08 12:56:00 -07:00
Deniz Kusefoglu 9f011d605e
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
2019-10-08 12:23:16 -07:00
Johnny Steenbergen 5a546d5827
Merge pull request #15335 from influxdata/2939/add_logging_to_gateway
2939/add logging to gateway
2019-10-07 14:49:36 -07:00
Johnny Steenbergen eab6241e28 chore: add goland config to gitignore 2019-10-07 14:19:21 -07:00
Johnny Steenbergen 9d5392cfd9 fix(logging): add debug logging for all http requests 2019-10-07 14:19:21 -07:00
Jakub Bednář ea9cf13af6
fix(notification/rule): fixed http NotificationRule (#15245)
* Fixed handler path for a list of all labels for a notification rule
* Fixed filtering NotificationRules by limit and offset
2019-10-07 09:36:55 +02:00
Edd Robinson 9be0de2f7f
Merge pull request #15306 from i-sevostyanov/master
fix(storage): added missing string values for CacheStatus type.
2019-10-04 14:23:37 -07:00
Ilya Sevostyanov 596414a3ff
fix(storage): added missing string values for CacheStatus type.
Closes: #15284.
2019-10-04 23:50:21 +03:00
Edd Robinson 179c57ab2e feat(storage): allow compaction limiter to be injected 2019-10-04 12:35:21 -07:00
Iris Scholten f4dabb7fe1
Merge pull request #15313 from influxdata/comment-shortcut
feat(ui): Add shortcut for commenting in script editor
2019-10-03 14:42:35 -07:00
Iris Scholten 54cc5be3c6 fix: add missing semicolon 2019-10-03 14:27:19 -07:00
Iris Scholten 7bf80b55a4 chore: update changelog 2019-10-03 13:08:25 -07:00