Commit Graph

30413 Commits (66157c9d44df15259e75e87da7cfd81dd8608e76)

Author SHA1 Message Date
Deniz Kusefoglu 506ddb4f4f Remove builderConfigs from templates 2019-04-30 17:37:20 -07:00
Stuart Carnie 96c2282aab
fix(query): Keys must be union of all keys from all GroupCursors 2019-04-30 15:49:36 -07:00
Lyon Hill 166e50f594
Fix inactive task scheduling (#13721) 2019-04-30 16:30:02 -06:00
Alirie Gray 86e632b429
Merge pull request #13719 from influxdata/fix-tasks-after-paging
test(tasks): added coverage for ListTasks with OrgID
2019-04-30 14:47:30 -07:00
Alirie Gray cf2c9668fc test(tasks): added coverage for ListTasks with OrgID 2019-04-30 14:20:46 -07:00
Russ Savage 90f42df107
Fixing templates to address float != int error (#13718)
Fixing system template to address float != int error in flux
2019-04-30 14:13:23 -07:00
Andrew Watkins c3d823e545
fix: notes covered by adjacent cells (#13717)
* fix(dashboards): notes being hiddent by adjascent cells

* chore(portals): be the change
2019-04-30 12:41:39 -07:00
Russ Savage 3e6ac0cc1e
adding local metrics dashboard for quickstart (#13715)
Adding local metrics dashboard for quickstart
2019-04-30 12:31:39 -07:00
Deniz Kusefoglu 04bc64bb89
Merge pull request #13713 from influxdata/all-buckets-should-be-specific
Create token with select all buckets should not create token with all…
2019-04-30 10:50:47 -07:00
Stuart Carnie 65e4e3c5de
Merge pull request #13701 from influxdata/sgc/bp/2.x/13687
Don't panic when encoding string blocks and length of source slice is too large
2019-04-30 10:02:40 -07:00
Deniz Kusefoglu 3314563439 Create token with select all buckets should not create token with all access permissions 2019-04-30 09:54:37 -07:00
Jeff Wendling 548e22cc5a
Merge pull request #13703 from influxdata/jmw-tsi1-compaction-consistency-logs
tsi1: don't do verbose debug logging unless test fails
2019-04-30 16:06:11 +00:00
Andrew Watkins f2fd7d6728
feat(ui/explorer): add imports to flux scripts (#13711)
* fix(ui) Update flux function docs and examples

* add package property to FluxToolbarFunction

* added package property to built-in flux functions

* added package propert to the toFloat function

* prettified fluxFunction.ts

* updated columns parameter on derivative function

* added newline after derivative desc for prettier fluxFunction.ts

* chore(e2e): updsate cypress to 2.0

* feat(query-builder): add import statements

* wip

* feat(ui/builder): simplify import addition logic

* test: remove only

* chore: linting

* test: string organization
2019-04-29 21:56:36 -07:00
Jonathan A. Sternberg e181edd077
fix(storage/reads): translate measurement and field tag key names (#13707)
Translate the measurement and field tag key names to their non-storage
names and add the `_start` and `_stop` tag keys to the output since
they aren't real tags, but ones that are added by range.
2019-04-29 18:11:20 -05:00
Gunnar 39bfa33442
docs: update issue and PR templates (#13373)
docs: update issue and PR templates
2019-04-29 14:42:54 -07:00
Lyon Hill 8fa86488c3
Newly activated tasks should not attempt to 'catch up' (#13700)
* Newly activated tasks should not attempt to 'catch up'
2019-04-29 15:28:34 -06:00
Stuart Carnie 369a4610e6
fix(storage): Don't panic when length of source slice is too large
StringArrayEncodeAll will panic if the total length of strings
contained in the src slice is > 0xffffffff. This change adds a unit
test to replicate the issue and an associated fix to return an error.

This also raises an issue that compactions will be unable to make
progress under the following condition:

* multiple string blocks are to be merged to a single block and
* the total length of all strings exceeds the maximum block size that
  snappy will encode (0xffffffff)

The observable effect of this is errors in the logs indicating a
compaction failure.

Fixes #13687
2019-04-29 13:29:41 -07:00
Jeff Wendling 9cd7c0f7e3 tsi1: don't do verbose debug logging unless test fails 2019-04-29 14:01:45 -06:00
Jonathan A. Sternberg 96a76aad1d
fix(storage/reads): reserve data for the tags column when building a table (#13691) 2019-04-29 14:28:25 -05:00
Gunnar Aasen f21ece1a5a docs: update issue and PR templates 2019-04-29 10:36:56 -07:00
Jade McGough 7855147241
Merge pull request #13636 from influxdata/delete_invalid_org_id
fix(http): fix delete bad org id
2019-04-29 10:15:36 -07:00
Leo Di Donato 4373392d54
feat(http): Default http transport uses the actual default values (#13437) 2019-04-29 16:57:30 +02:00
Delmer 556e030f7b
fix(ui/var/dropdown): display map key names in dropdown (#13659)
fix(ui/var/dropdown): display map key names in dropdown
2019-04-29 13:53:25 +02:00
Mark Rushakoff d4b5ff29cf fix: encode IDs as JSON map keys properly
The encoding/json docs explain that you need to provide a MarshalText
method to encode integer types as map keys, otherwise they will be
formatted as a string version of the decimal number.

Providing MarshalText and UnmarshalText also uses those methods as a
fallback for MarshalJSON and UnmarshalJSON, so we no longer need
explicit versions of those latter methods.

Apparently Sources were using IDs as map keys and were providing the
,string attribute on the JSON tag on the struct. This was not correct so
that attribute has been removed. Existing sources will no longer be
readable as a result of this change.

Fixes #13277.
2019-04-26 20:41:20 -07:00
Jade McGough e02c859992
Merge pull request #13677 from influxdata/org_name_not_empty
fix(kv): fix empty org name
2019-04-26 15:57:19 -07:00
Palakp41 8adfabab84
Merge pull request #13674 from influxdata/fix/scraper-create-submit
Update scraper create overlay to create scraper on enter
2019-04-26 15:21:31 -07:00
Kelvin Wang ea54e2c2c8 fix(kv): fix empty org name 2019-04-26 18:16:28 -04:00
Deniz Kusefoglu 581a810a87
Merge pull request #13675 from influxdata/cell-errors
Display Limit Errors in cells and wrap error texts.
2019-04-26 15:03:32 -07:00
Palak Bhojani 468b9978c8 Update scraper create overlay to create scraper on enter 2019-04-26 15:02:54 -07:00
Deniz Kusefoglu af02e4db41
Merge pull request #13679 from influxdata/fix-notifications-in-tests
Import NotificationStyle enum directly from notification types
2019-04-26 15:01:21 -07:00
Jonathan A. Sternberg ae55950c93
Merge pull request #13676 from influxdata/flux-staging
deps: update Flux to v0.28.2
2019-04-26 16:29:40 -05:00
Andrew Watkins e9deac45d6
fix(ui): task update (#13663)
* fix(ui): task update

* chore: lock
2019-04-26 14:27:43 -07:00
Christopher Henn 4378456257 Update query builder metaqueries
Currently, slight changes in the form of a Flux metaquery can have
drastic performance implications. To solve this issue, the Flux language
provides helper metaquery functions such as `v1.tagKeys` and
`v1.tagValues` which are guaranteed to be as fast as possible.

In #12791, we switched away from using the `v1.tagKeys` and
`v1.tagValues` functions in the query builder to their underlying Flux
implementations in order to implement a UI feature. While the new
metaqueries used in the query builder were still optimized at the time,
the Flux language has since changed and this is no longer the case.

In addition, the metaqueries in the UI no longer hit the same code-path
in Flux which has exposed a logic bug in the queries. So when executed,
the metaqueries return the following error:

    schema collision detected: column ""_value"" is both of type float and int

This PR updates the metaqueries used in the query builder to their
[currently optimized form][0]. The long term solution is to address
[this][1] issue and then switch back to using the safer `v1.tagKeys` and
`v1.tagValues` functions directly.

[0]: https://github.com/influxdata/flux/blob/master/stdlib/influxdata/influxdb/v1/v1.flux
[1]: https://github.com/influxdata/flux/issues/1071

Closes https://github.com/influxdata/influxdb/issues/13660
2019-04-26 14:26:30 -07:00
Deniz Kusefoglu d72fe46510 Import NotificationStyle enum directly from notification types instead of from src types 2019-04-26 14:16:36 -07:00
Jonathan A. Sternberg 9961969ff8
deps: update Flux to v0.28.2 2019-04-26 16:03:06 -05:00
Deniz Kusefoglu 4707ce26ce Text wrap error messages that appear in cells. 2019-04-26 13:45:58 -07:00
Deniz Kusefoglu 6bd1518fd0 Pass errorMessages directly from TimeSeries, and change if limit error 2019-04-26 13:44:13 -07:00
Deniz Kusefoglu 2551aadd79 move rate limit error constant to cloud constants 2019-04-26 13:41:46 -07:00
Jonathan A. Sternberg 38d9fb8c79
feat(http): pretty stack trace for the http panic recovery handler (#13509)
When printing out a stacktrace with a logged error message, it is better
to set the `Stack` property on the entry than to include it as a string
within the context fields. It is also better than using `zap.Stack()`
too.

This is because certain encoders will perform a pretty print of the
stacktrace. The default zap-logfmt will read this property and include
it as a field so this code is identical when using that encoder, but the
console encoder, which is commonly used in local development because it
is automatically used with a TTY available, will print out a newline and
pretty print the stacktrace if it is included on the entry itself.
2019-04-26 15:06:41 -05:00
Andrew Watkins 707cfc1146
fix(ui): duplicate logout buttons (#13670) 2019-04-26 12:30:44 -07:00
Jade McGough 6438999508
Merge pull request #13656 from zhulongcheng/fix-document-panic
fix document service panic
2019-04-26 12:30:27 -07:00
Stuart Carnie 070e9043a5
Merge pull request #13582 from influxdata/sgc/bug/tags-13581
Remove sort behavior from Store.Read RPC, fix Tags invariant violation
2019-04-26 11:07:03 -07:00
Deniz Kusefoglu 725997aea0
Merge pull request #13652 from influxdata/add-notification-type
Add notification type to notifications and prevent re-publishing same notification
2019-04-26 10:45:09 -07:00
Stuart Carnie fb39ac39ce
fix(storage): Store.Read behavior changed to return unsorted series keys
Closes #13581
2019-04-26 10:38:59 -07:00
Jonathan A. Sternberg 46d2d0012b fix(storage): translate _measurement and _field to the proper strings (#13662)
The RPC call should translate `_measurement` and `_field` to their
proper shortened byte strings when requesting the tag values.

This also fixes the planner rewrites to return the root node even when
no rewrite happened as this is required by the planner.
2019-04-26 10:36:51 -07:00
kelwang 444b571956
Merge pull request #13664 from influxdata/add_bkt_org_scraper
fix(gather): add bkt and org id to scraper writer
2019-04-26 13:02:51 -04:00
Kelvin Wang d7cb7d5ffa fix(gather): add bkt and org id to scraper writer 2019-04-26 12:49:45 -04:00
Kelvin Wang 2021321186 fix(influxdb): invalid filter error 2019-04-26 12:22:42 -04:00
Mark Rushakoff 9a8426c3f0 fix(http): use influxdb.Error in ProxyQueryHandler
In our internal use of this handler, some of these errors weren't
wrapped in the expected influxdb.Error type.
2019-04-26 08:19:00 -07:00
zhulongcheng f7635f0552 fix document service panic 2019-04-26 14:46:37 +08:00