Commit Graph

30956 Commits (e9c6ce11650fac3fe61fe4e35a8a2e445b2110ad)

Author SHA1 Message Date
alexpaxton e9c6ce1165
refactor(ui): replace CardSelectCard with SelectableCard (#14739)
* refactor(ui): replace CardSelectCard with SelectableCard

* refactor(ui): move ProtoboardIcon to shared folder

* refactor(ui): delete CardSelectCard

* refactor(ui): update test to use new component

* refactor(ui): fix erroneous imports

* refactor(ui): add missing file extension

* refactor(ui): fix affected e2e test
2019-08-28 08:43:52 -07:00
Lyon Hill 577578b65e
fix(task): Allow task's with no clear owner to use org owner (#14837)
When a task was created we used to use a token, we then decided to switch to using
A user id. To facilitate this change we pull the users auth associated with the task
and use the auth's `GetUserID` method. This only works if they have not deleted the auth.

We need a fail safe way to populate the ownerID in the circumstance that the auth associated
with the task has been deleted. To facilitate this we can pull the UserResourceMapping's for the org
resource of the type `Owner` and use a organization owner as the task owner. This makes sense because
any organization owner also own's any part of the organization including tasks.
2019-08-28 09:28:12 -06:00
Michael Desa 09054e0585
Merge pull request #14835 from influxdata/fix/deadman-durations
feat(deadman): add staleTime duration to deadman check
2019-08-28 11:02:59 -04:00
Michael Desa 6c9d399249
fix(testing): add stale time to checks tests 2019-08-28 10:40:37 -04:00
Michael Desa 02bda26866
feat(deadman): add staleTime duration to deadman check
fix(deadman): change timeSince to a duration string instead of int
2019-08-28 10:16:38 -04:00
Michael Desa ac4d7f9200
Merge pull request #14834 from influxdata/fix/check-auth
fix: authorize check and notification rule services correctly
2019-08-28 09:30:29 -04:00
Michael Desa d43e14eb7a
fix(authorizer): use authorizeWriteOrg and authorizeReadOrg for rules 2019-08-28 09:15:52 -04:00
Michael Desa 7dd70fab8f
fix(authorizer): use authorizeWriteOrg and authorizeReadOrg for checks 2019-08-28 09:09:17 -04:00
Deniz Kusefoglu 8766243470
Rule Check Endpoint polish (#14817)
* Make endpoint description field normal sized

* Add password type to secret inputs

* de-snarkify and remove defaults from new-endpoint-draft

* Make new tag rules unique

* Remove hardcoded fields in initRuleDraft

* Add tag rule make statusRule is equal to level

* Status rule can be "is equal to"

* Remove cron option from rule

* Add the text lastupdated to cards

* Fix offset and every copy

* Improve Tags in checks

* Move threshold deadman selector to conditions card

* Filter empty tag rules on notification rules

* Make dismiss button gray

* Fix review comments

* remove irrelevant tests

* Fix missing url field from http rule
2019-08-27 19:35:20 -07:00
Christopher Henn 18d8db67ad refactor(ui): migrate authorizations CRUD to generated client 2019-08-27 16:38:33 -07:00
Christopher Henn 6843314284 feat(ui): link to alerting history from alerting page 2019-08-27 15:40:19 -07:00
Christopher Henn 2ee871cae8 refactor(ui): remove alerting containers folder
Tomato, tomato.
2019-08-27 15:40:19 -07:00
Michael Desa 7c8988f4f7
Merge pull request #14777 from influxdata/fix/misc-check-flux
fix(checks): generate exact flux for threshold checks and notifications
2019-08-27 17:17:16 -04:00
Lyon Hill f8f8a3cf55
fix(task): fix panic when failing to update on startup (#14825)
* fix(task): fix panic when failing to update on startup

Additionally we have no need to claim tasks that are inactive
2019-08-27 13:16:18 -06:00
Michael Desa b26ed76d6a
fix(notification/check): ensure cloud integration works
fix(notification/check): include tags in check object in generated flux

Closes https://github.com/influxdata/influxdb/issues/14769

fix(notification/check): use selected field in threshold functions

Closes https://github.com/influxdata/influxdb/issues/14776

fix(testing): add selected field for check tests

fix(check): use real flux for threshold check

feat(notification/check): generate flux for deadman checks

chore(endpoint): rename webhook endpoint to http endpoint

fix(notification/rule): fetch url for flux script off of endpoint

fix(notification/rule): clean up slack and http rules

fix(notification/rule): change MessageTemp to MessageTemplate

fix(rules): pass endpoint in to rule during create

fix(ui): rename webhook to http

feat(notification/check): namespace deadman under alerts

fix(notification/check): nest tags under tags key in data object in flux

wip

feat(kv): log error if urm cannot be deleted for notification rule

fix(notification/rule): remove name from notify call in slack rule

chore(ui/cypress/e2e): skip rule create test
2019-08-27 15:02:53 -04:00
Christopher Henn a98642a6d8 feat(ui): add search functionality to alerting history page
Also replaces the fake API for the alerting history page with a (mostly)
real one.
2019-08-27 10:50:03 -07:00
Jonathan A. Sternberg ae780ff468
tests(cmd/influxd/launcher): add a launcher test for the secret service (#14813)
The secret service is tested by creating a secret and then attempting to
use it in a flux query. There is one test where accessing the secret
should work and one where it should return that the action is forbidden.
2019-08-27 10:44:46 -05:00
Russ Savage 65324ad50d
fix(nav): Remove s from Telegrafs subnav (#14807)
* fix(nav): update label telegrafs to telegraf
2019-08-26 17:14:14 -07:00
Lyon Hill ee9e622c6d
feat(task): Add task middleware's for checks and notifications (#14809)
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.
2019-08-26 16:54:52 -06:00
Nathaniel Cook 3e16be7c14 build(flux): update to Flux v0.41.0 2019-08-26 16:46:17 -06:00
Nathaniel Cook dfc28335ea refactor(query/dependencies): update to new Flux dependencies defaults 2019-08-26 16:46:17 -06:00
Jonathan A. Sternberg c7bbfbe293 refactor(notification): rename alerts package to monitor in flux (#14788) 2019-08-26 16:46:17 -06:00
Adam fcfdd2b1ef build(flux): update to latest flux master 2019-08-26 16:46:17 -06:00
Adam f97929614c test(query): roll back some changes to end_to_end_test.go 2019-08-26 16:46:17 -06:00
Adam 945b68b8fd fix(query): finish refactoring the repl and inject the secret service as a dependency 2019-08-26 16:46:17 -06:00
Adam 808ebb9590 fix(query): update usage of interpreter dependencies 2019-08-26 16:46:17 -06:00
Adam a91a8df501 build(flux): get latest flux 2019-08-26 16:46:17 -06:00
Nathaniel Cook 6303e2dcc5 test(query): skip holt_winters_panic test
added executor dependencies where needed
2019-08-26 16:46:17 -06:00
Andrew Watkins 0e4df01ddd
feat(alerts): rule overlay endpoint dropdown (#14787)
* feat(alerts): rule overlay endpoint dropdown

* test: skip tests until ownerID gets sorted out

* chore: change back to using electron

* test(cypress): use chrome again

* test(cypress): downgrade cypress
2019-08-26 14:27:31 -07:00
Deniz Kusefoglu 669b5f9110
Check eo single select (#14808)
* Remove CSV export button from alerting timeMachine

* Single select fields in alerting query builder

* Single select aggregate functions in alerting builder

* EditCheckEO should open in alerting tab

* Remove view type and vis options from CheckEO
2019-08-26 14:07:18 -07:00
Michael Desa e3b354f45c
Merge pull request #14798 from influxdata/fix/create-monitoring-things-with-txn
fix: create check/rule tasks inside kv txn
2019-08-26 15:11:49 -04:00
Deniz Kusefoglu 3249711ee5
feat: Check meta fix (#14794)
* Add colors to thresholds

* Remove cron option in check

* Change status text area placeholder
2019-08-26 11:05:31 -07:00
Michael Desa b4644a39d1
fix(kv): Create/Update/Delete notification rule tasks in transaction 2019-08-26 07:55:43 -04:00
Michael Desa add4bcb873
fix(http): remove non-txn task Create/Update/Delete for nofitication rules 2019-08-26 07:55:43 -04:00
Michael Desa 9cccf32452
fix(kv): Create/Update/Delete check tasks in transaction 2019-08-26 07:55:43 -04:00
Michael Desa df628f21de
fix(http): remove non-txn task Create/Update/Delete for checks 2019-08-26 07:55:43 -04:00
Michael Desa 0e28ee71be
test(task/backend/middleware): skip flaky test TestCoordinatingTaskService_ClaimTaskUpdatesLatestCompleted
Opened https://github.com/influxdata/influxdb/issues/14797
2019-08-26 07:55:40 -04:00
Jakub Bednář 2e746d8179
docs(http): update suggestions swagger definition to reflect reality (#14725) 2019-08-26 08:12:39 +02:00
Jakub Bednář 094d8e3174
docs(http): update swagger for easily use in clients (#14724)
* added missing Permission types: notificationRules, notificationEndpoints, checks
* Authorization links use Link as a type
* Run's logs are readonly
* TaskCreateRequest and TaskUpdateRequest has description property to update Task description
2019-08-26 08:11:52 +02:00
Deniz Kusefoglu cd6a908048
feat: Alerting context menus (#14784)
* Add clone to check card

* add clone and edit to rules

* Add error notifications and clone to endpoint context

* Fix missint incrementCloneName

* Fix cypress tests

* Remove try catch in endpoint add edit
2019-08-23 16:43:43 -07:00
Lyon Hill cce5ed74ea
fix(task): fix failover function for task auth to not fail (#14789)
If a task is created and the auth associated is removed
lookup of tasks currently fail. This is bad behavior.
We should expect to be able to at least see and delete task's that
have old auth.
2019-08-23 16:52:55 -06:00
maxunt b213fb5ff3
Merge pull request #14757 from influxdata/mu-dumptsi-2.x
feat(tsi1): port the dump-tsi tool to 2.x
2019-08-23 14:51:28 -07:00
Max U 36d3a6ea82 refactor(tsi1): address comments to clean up tool 2019-08-23 14:08:00 -07:00
Max U b2b4892918 refactor(inspect): make flags less vague 2019-08-23 14:07:30 -07:00
Max U 9fc99c2724 feat(tsi1): port the dump-tsi tool to 2.x 2019-08-23 14:07:30 -07:00
Adam Perlin 76dbc44e3c
feat(storage): Add influxd inspect dumpwal tool (#14237)
* feat(storage/wal/dump): initial influxd inspect dumptsmwal implementation

* feat(storage/wal/dump): add org bucket formatting to dumpwal tool; improve test cases

* refactor(storage/wal/dump): add long description for dumpstmwal tool

* refactor(storage/wal/dump): rename dumptsmwal flag

* chore(storage/wal/dump): gofmt

* refactor(storage/wal/dump): update error printing in dumptsmwal tool

* refactor(storage/wal/dump): address review comments

* refactor(storage/wal/dump): rename dumpwal command source file

* refactor(storage/wal/dump): clarify print flag comment

* refactor(inspect): remote unnecessary for-loop in influxd inspect command
2019-08-23 13:05:06 -07:00
George 0cc9caa1d4
refactor(tasks): separate coordinator and middleware (#14779) 2019-08-23 19:05:13 +00:00
maxunt 6ffbab89d4
Merge pull request #14316 from influxdata/mu-verify-series-2.x
feat(inspect): add verify-seriesfile tool to 2.x
2019-08-23 11:40:39 -07:00
maxunt 236f44dcdd
Merge pull request #14737 from influxdata/mu-inspect-command
fix(launcher): print inspect as a subcommand when running with --help flag
2019-08-23 11:40:27 -07:00
Nathaniel Cook 4b339dd0cf fix(query/to): make orgID default to the context org
This change makes it so that if an org or orgID are missing on calls to the `to` function
that the orgID is retrieved from the request context.

This is consistent with how `from` works.
2019-08-23 11:03:26 -06:00