Commit Graph

31298 Commits (ea9cf13af69755c84efb5ec155d4ffd1b91a44b8)

Author SHA1 Message Date
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
Stuart Carnie 9a89900785
fix(tsm1): Fix duplicate points
All seeks must be added to the c.current slice so the
min and max read values can be updated on each read pass.
2019-09-18 17:44:27 -07:00
Jonathan A. Sternberg ff7d13a10a
docs(http): fix the documentation for the query swagger endpoint (#15181)
The `/query` swagger endpoint now specifies that error messages are
returned as the standard JSON schema. The standard JSON schema has also
been changed slightly so that only `code` and `message` are documented
and the intention is that we will flatten the message from an
`influxdb.Error` before we encode the JSON.
2019-09-18 18:31:12 -05:00
Christopher Wolff eb15b346cc chore: update to Flux v0.47.1 2019-09-18 11:51:46 -07:00
docmerlin (j. Emrys Landivar) baaf93dbbc fix(tasks): fixes duration validation for every and offset, so people will get feedback if they are using durations that tasks doesn't currently support 2019-09-18 09:07:43 -05:00
Stuart Carnie fc7bb9fcaf
Merge pull request #15166 from influxdata/sgc/issue/15161
fix(task): Improve Executor#Execute error consistency
2019-09-17 13:54:49 -07:00
Stuart Carnie 7240d21e20
fix(task): PR feedback to fix docs 2019-09-17 12:02:04 -07:00
alexpaxton 1988f85128
refactor(ui): split check creation flow (#15169)
* 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
2019-09-17 11:24:15 -07:00
Stuart Carnie 57a710bb9c
fix(task): Improve Executor#Execute error consistency
Implementations of the backend.Executor produce errors limited to
querying the KV store. The remainder of the errors will be processed
in the implementation of a `RunPromise`.

Fixes #15161
2019-09-16 17:10:02 -07:00
Alirie Gray aef199bcc1
fix(tasks): use influxdb errors in scheduler (#15145) 2019-09-16 13:55:39 -07:00
Edd Robinson 5040dc7036
Merge pull request #15144 from influxdata/er-nats
fix(tests): ensure NATS server port free
2019-09-13 21:10:40 +01:00
Edd Robinson 080943a9f5 fix(tests): ensure NATS server port free 2019-09-13 19:33:19 +01:00
Iris Scholten 80c3250241
Merge pull request #15141 from influxdata/update-cloud-welcome
chore(ui): Update Cloud welcome header
2019-09-13 11:26:46 -07:00
Iris Scholten b80bfe2999 chore(ui): Update Cloud welcome header 2019-09-13 11:04:27 -07:00
Lorenzo Affetti 95ba072f92
Merge pull request #15137 from influxdata/flux-staging-v0.47.x
build(flux): update Flux to v0.47.0
2019-09-13 19:05:42 +02:00
Jonathan A. Sternberg e99456d9d3
refactor(query/control): update a test to use the arrow allocator interface (#15138)
We are planning to change the allocator interface within flux to use the
arrow allocator. To make the release easier, this updates the test in
advance to use the arrow allocator instead of the to be changed memory
allocator interface from flux.
2019-09-13 11:51:15 -05:00
Lorenzo Affetti 7102febafd fix(testing): skip promql e2e tests 2019-09-13 18:49:00 +02:00
Edd Robinson 65cb8b606e
Merge pull request #15132 from influxdata/er-build-tsi
feat(tools): add build-tsi tool
2019-09-13 17:40:24 +01:00
Lorenzo Affetti 7cca079c5a build(flux): update Flux to v0.47.0 2019-09-13 18:18:48 +02:00
Ben Johnson a7e8eebe15
feat(tsdb): Add SQL export for TSI indexes (#15127)
feat(tsdb): Add SQL export for TSI indexes
2019-09-13 10:17:49 -06:00
Ben Johnson ee3cf79ae7
fix(tsdb): Fix pull request feedback. 2019-09-13 10:00:54 -06:00
Ben Johnson d08403b658
feat(tsdb): Add SQL export for TSI indexes 2019-09-13 10:00:54 -06:00
Edd Robinson 4a2db1ec5f feat(inspect): add build-tsi tool 2019-09-13 16:38:05 +01:00
Edd Robinson d681955a84 refactor: imports 2019-09-13 16:38:05 +01:00