Commit Graph

31271 Commits (ca078d4b916d071ef1f39444e6a53f4516d5423f)

Author SHA1 Message Date
Deniz Kusefoglu ca078d4b91 Remove endpoint test for slack token field 2019-09-25 10:54:07 -07:00
Deniz Kusefoglu 43f3eafa73 Remove slack token option from endpoint 2019-09-25 10:40:35 -07:00
Johnny Steenbergen 4da248ec30
Merge pull request #15275 from influxdata/task/15258_remove_senstive_data_logging
chore(http): remove logging of senstive data
2019-09-25 10:13:10 -07:00
Johnny Steenbergen fc955c5abe chore(http): remove logging of senstive data
after discussion with team, dropping the request logging was decided on.
2019-09-25 09:49:09 -07:00
Jakub Bednář ff2747a728
fix(http/check): fix handler path for a list of all labels for a check (#15216) 2019-09-25 09:07:24 +02:00
Jakub Bednář d23b1f9904
fix(http): add discriminator for Check schema (#15178) 2019-09-25 08:50:09 +02:00
Brandon Farmer fe12b40578
Merge pull request #15267 from influxdata/always-provide-user-status
fix(influxdb): Always return user status
2019-09-24 15:54:19 -07:00
Brandon Farmer f61fe82708 fix(influxdb): Always return user status 2019-09-24 15:19:16 -07:00
Michael Desa 16ffb9013d
Merge pull request #15261 from influxdata/fix/http-checks
fix(http): prevent writing to http request multiple times
2019-09-24 16:10:09 -04:00
Michael Desa d48b28e533
fix(http): prevent writing to http request multiple times
Closes https://github.com/influxdata/influxdb/issues/15260

Additionally, we look up a task before clearing the taskID from the
check.
2019-09-24 15:48:36 -04:00
Michael Desa f2805626c7
Merge pull request #15235 from influxdata/fix/state-changes-be
fix(notification/rule): ensure stateChanges rule has enough data in window
2019-09-24 14:59:27 -04:00
kelwang 14643711f7
Merge pull request #15140 from influxdata/cli_add_user
fix(cmd/influx): org add/remove members
2019-09-24 13:58:39 -04:00
Kelvin Wang 4aa6df1c34 fix(cmd/influx): org add/remove members 2019-09-24 13:26:18 -04:00
Michael Desa 58fbddc123
fix(notification/rule): ensure stateChanges rule has enough data in window
Closes https://github.com/influxdata/influxdb/issues/15154

Previously, we niavely incremented the unit associated with the leading
duration. Now, if the unit is `s` we double it. For every other unit, we
increase the magnitude by 1.

fix(notification/rule): change panic to t.Fatal

chore(notification/rule): add support for durations less than s
2019-09-24 12:48:10 -04:00
Michael Desa 38d2c116fb
Merge pull request #15250 from influxdata/chore/remove-alerting-feature-flag
chore(ui): remove alerting feature flag
2019-09-24 11:56:28 -04:00
Jonathan A. Sternberg 5c3c66969b
Merge pull request #15249 from influxdata/flux-staging/v0.49.x
build(flux): update Flux to v0.49.0
2019-09-24 10:23:12 -05:00
Michael Desa 527aa4f2d5
chore(ui): remove alerting feature flag 2019-09-24 10:59:01 -04:00
Jonathan A. Sternberg 7f5a72539f
build(flux): update Flux to v0.49.0 2019-09-24 09:54:54 -05:00
kelwang c3127c8cdd
Merge pull request #15179 from bednar/check-cron
fix(alerts): remove the cron option from checks/rules
2019-09-23 21:28:02 -04:00
kelwang 236e8c14ee
Merge pull request #15150 from bednar/flux-paren-expression
fix(http): add ParenExpression
2019-09-23 21:26:57 -04:00
Deniz Kusefoglu b3a806df6b
Fix endpoint type conversions (#15240)
* Fix endpoint type conversions

* Update reducer

* Add token to slack endpoint

* Add test for http endpoint
2019-09-23 18:17:56 -07:00
Jakub Bednář 9f0d9f6ecb fix(http): fix NotificationEndpoint: (#15148)
* Add TraceSpan parameter to GetNotificationEndpoints operation
* Fixed handler path for a list of all labels for a notification endpoint
* Fixed filter NotificationEndpoints by limit and offset
2019-09-23 15:55:37 -07:00
Michael Desa 85f0875efb
Merge pull request #15234 from influxdata/revert-15221-chore/upgrade-clockface-0.0.32
chore: Revert "chore(ui): upgrade Clockface to 0.0.32"
2019-09-23 16:08:53 -04:00
Brandon Farmer 2878e5940d
Merge pull request #15212 from influxdata/user-disabling
feat(influxdb): User disabling
2019-09-23 13:00:34 -07:00
Brandon Farmer d83fabeabc feat(influxdb): user disabling 2019-09-23 11:57:16 -07:00
Deniz Kusefoglu ec803e22b6 Revert "chore(ui): upgrade Clockface to 0.0.32 (#15221)"
This reverts commit 0669c22bbd.
2019-09-23 11:56:05 -07:00
alexpaxton 0669c22bbd
chore(ui): upgrade Clockface to 0.0.32 (#15221)
* 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
2019-09-23 10:06:42 -07:00
Edd Robinson db72f57da4 feat(storage): inject function to control when retention enforcer runs (#15136)
* test(storage): ensure multiple engines can run concurrently

* feat(storage): expose control over retention run

Fixes #15134.

This commit adds the ability to inject a functional option into a
storage.Engine for controlling when the retention enforcer can run.

Previously, retention enforcers ran on an interval; if you ran multiple
storage engines (as we do in some environments) then it was not possible
to coordinate when engines ran retention. Often they would synchronise
because they started at the same time.

This change will let you specify a blocking function to control when the
retention enforcer can run.

A simple function for serialising retention enforcement across multiple
storage engines could look like:

```go
var mu sync.Mutex
func f() (done func()) {
    mu.Lock()
    return func() { mu.Unlock() }
}
```
2019-09-23 08:09:04 -07:00
Edd Robinson afcb440d02
Merge pull request #14182 from zhulongcheng/unsigned-type-name
fix(storage): add string representation of the Unsigned FieldType
2019-09-23 14:04:30 +01:00
Jakub Bednar 8089b9c7ea fix(http): fix capitalization 2019-09-23 10:30:20 +02:00
Jakub Bednar 83997a7345 fix(http): add ParenExpression 2019-09-23 10:29:09 +02:00
Jakub Bednar 265bc7bf2a fix(alerts): remove the cron option from checks/rules 2019-09-23 10:20:22 +02:00
Scott Anderson c24710a00d
chore(swagger): general cleanup of swagger.yml (#15223) 2019-09-21 10:15:42 -06:00
Christopher Wolff 26dbd9225c feat(query/stdlib/experimental): add experimental.to() implementation to OSS 2019-09-20 14:31:58 -07:00
alexpaxton bd93845d62
refactor(ui): redesign client libs page (#15204)
* 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
2019-09-20 09:39:43 -07:00
Lyon Hill 9d6b9555ac
feat(task): add functions to the task executor to allow for coordinator control (#15218)
We needed the coordinator to be able to execute manual runs and resume runs.
These two functions have been added, but we also needed to allow for the executor to be
mocked out. To do that we needed to return a Promise interface instead of an actual
struct. Both these changes are to facilitate coordinator work and testing.
2019-09-20 10:36:44 -06:00
Lorenzo Affetti 053836e5a5
Merge pull request #15203 from influxdata/flux-staging-v0.48.x
build(flux): update to Flux v0.48.0
2019-09-20 18:24:02 +02:00
Lorenzo Affetti df9e20eb28 build(flux): update to Flux v0.48.0 2019-09-20 17:43:46 +02:00
Lyon Hill 11b9a6fb28
fix(task): Update task executor to match the expected executor interface. (#15205)
I chose to add a execute function that allow's the task executor to match expectation from
the scheduler but I left in the existing executor method that return's promises. This is
because I like to be able to have the accountablilty and visiblity inside what's happening
with each execution even though the promise isn't required for the scheduler. This function signature
will be used by the coordinator and potentially other's that want to ensure a 'execution' is completed.
2019-09-20 08:20:05 -06:00
Edd Robinson d714be45a4
Merge pull request #15200 from influxdata/er-retention-service
refactor(storage): add more context to traces and logs
2019-09-20 09:00:00 +01:00
alexpaxton 2ef1daae0f
refactor(ui): display dashboard cards in a grid (#15211)
* refactor(ui): display dashboard cards in a grid

* chore(ui): update changelog
2019-09-19 15:56:24 -07:00
Deniz Kusefoglu 778db16b1d
Fix edit check bug (#15210) 2019-09-19 15:07:58 -07:00
Lorenzo Affetti 9532c9d170 fix(testing): skip unbounded e2e test 2019-09-19 17:51:45 +02:00
Lorenzo Affetti 2a6cfe3c78 fix(query): inject dependencies in context for BucketAccessed 2019-09-19 17:31:13 +02:00
Stuart Carnie 3fca263aea
Merge pull request #15197 from influxdata/sgc/ear/1061
fix(tsm1): Fix duplicate points
2019-09-19 08:22:56 -07:00
Lorenzo Affetti 3f50cd2af9 Merge branch 'master' into flux-staging-v0.48.x 2019-09-19 17:20:40 +02:00
Jonathan A. Sternberg cbd04f2884
refactor: http error serialization matches the new error schema (#15196)
The http error schema has been changed to simplify the outward facing
API. The `op` and `error` attributes have been dropped because they
confused people. The `error` attribute will likely be readded in some
form in the future, but only as additional context and will not be
required or even suggested for the UI to use.

Errors are now output differently both when they are serialized to JSON
and when they are output as strings. The `op` is no longer used if it is
present. It will only appear as an optional attribute if at all. The
`message` attribute for an error is always output and it will be the
prefix for any nested error. When this is serialized to JSON, the
message is automatically flattened so a nested error such as:

    influxdb.Error{
        Msg: errors.New("something bad happened"),
        Err: io.EOF,
    }

This would be written to the message as:

    something bad happened: EOF

This matches a developers expectations much more easily as most
programmers assume that wrapping an error will act as a prefix for the
inner error.

This is flattened when written out to HTTP in order to make this logic
immaterial to a frontend developer.

The code is still present and plays an important role in categorizing
the error type. On the other hand, the code will not be output as part
of the message as it commonly plays a redundant and confusing role when
humans read it. The human readable message usually gives more context
and a message like with the code acting as a prefix is generally not
desired. But, the code plays a very important role in helping to
identify categories of errors and so it is very important as part of the
return response.
2019-09-19 10:06:47 -05:00
Lorenzo Affetti ab835c8e0e
refactor(dependencies): use new dependency injection framework (#15174)
refactor(dependencies): use new dependency injection framework
2019-09-19 17:01:17 +02:00
Edd Robinson e2f5b2bd9d refactor(storage): add more context to traces and logs 2019-09-19 13:48:06 +01:00
George ddce5d383a
feat(auth): add new jsonweb package (#15151) 2019-09-19 12:31:40 +01:00