Commit Graph

9062 Commits (7f4dde6d3aed7de79caf966ec52d0c00b764625e)

Author SHA1 Message Date
Pavel Zavora 94a18bd073 fix(ui): do not schedule next operations on unmounted LogsPage 2020-12-14 19:48:46 +01:00
dependabot[bot] cd90fce30b
chore(deps): bump ini from 1.3.5 to 1.3.7 in /ui
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-10 20:48:37 +00:00
ivankudibal 4e8c2f20b6 chore: prepare for 1.8.9.1 release 2020-12-10 21:01:42 +01:00
Pavel Zavora ad2eda7483 fix(ui): repair Flux Script Wizard to use Flux also for InfluxDB v1 2020-12-10 15:47:37 +01:00
Pavel Zavora ae1bb41c21 fix(ui): use buckets() in v1 flux to get database list 2020-12-10 15:22:17 +01:00
Pavel Zavora e8aaca1609 fix(ui): avoid infinite loading of suggested protoboards 2020-12-09 14:50:20 +01:00
Pavel Zavora 51382c510f feat(ui/FluxScriptWizard): load data only if the wizard is opened 2020-12-08 05:36:46 +01:00
Pavel Zavora cc81dfd16c feat(ui/flux): improve error handling 2020-12-08 05:21:06 +01:00
Pavel Zavora 9f60157e4d fix(ui/FluxScriptWizard): Do not fetch measurements when database is not known 2020-12-08 04:38:57 +01:00
Pavel Zavora ffa405d738 feat(ui/explorer/flux): use flux to determine InfluxDB v2 schema 2020-12-07 19:24:30 +01:00
Pavel Zavora fb146bf892 chore: improve code 2020-12-07 10:19:00 +01:00
Pavel Zavora 07ef7c4a41 chore: refactor to isV2Auth function 2020-12-07 10:09:55 +01:00
Pavel Zavora 7bf62d22ad feat(ui): reset username and password upon changed authentication scheme 2020-12-07 09:41:12 +01:00
Pavel Zavora b445c511e0 feat(ui): inform about disabled Flux for v2 server 2020-12-07 09:11:50 +01:00
Pavel Zavora 04b0817ec1 feat(ui): allow to control InfluxDB v2 type during configuration of InfluxDB connection 2020-12-07 08:40:29 +01:00
Pavel Zavora 16e2fcdb0d fix(ui): do not load admin data for v2 sources 2020-12-07 04:56:53 +01:00
ivankudibal 3b2ac592e7 chore: prepare for 1.8.9 release 2020-12-04 06:49:43 +01:00
Pavel Zavora 1bd1ab5245 fix(ui): repair visual comparison with time variables 2020-12-03 11:30:07 +01:00
Pavel Zavora 04652f7a8a chore(ui): remove deprecated react SFC type 2020-12-03 07:00:14 +01:00
Pavel Zavora 297c51a810 fix(duration): repair relative computation of multiple ranges 2020-12-02 15:15:59 +01:00
Pavel Závora 98a3b928d3
Merge pull request #5619 from influxdata/feat/v2_flux
feat: support flux against InfluxDB v2 sources
2020-12-02 12:02:00 +01:00
Pavel Závora cdba456808
Merge pull request #5618 from influxdata/5614/influxdb_v2_support
fix(ui): disable InfluxDB admin page if administration is not possible
2020-12-02 12:01:36 +01:00
Pavel Závora be6b9e9216
Merge pull request #5613 from influxdata/5561/alert_rule
fix(alert rule): warn about unsupported data
2020-12-02 12:00:57 +01:00
Pavel Zavora dc77d5505f chore: appease linter 2020-11-30 09:19:15 +01:00
Pavel Zavora 19d3322edb feat(ui): assume source 1.x by default 2020-11-30 07:37:33 +01:00
Pavel Zavora 62e76072b0 feat(ui): add InfluxDB v2 checkbox to source step 2020-11-30 07:35:34 +01:00
Pavel Zavora f4db32d8a1 feat(ui): use organization and token labels during InfluxDB v2 setup 2020-11-24 19:57:27 +01:00
Pavel Zavora de61da74ea fix(v2): disable administration for v2 connections 2020-11-24 18:02:03 +01:00
Pavel Zavora cf70afb7ac fix(alert rule): warn about unsupported data 2020-11-18 17:01:35 +01:00
Pavel Zavora ceabe677fa fix(ui): avoid blinking during dashboard refresh 2020-11-11 09:50:51 +01:00
Pavel Zavora de2a15906a fix(ui): propagate network failure 2020-11-11 09:43:47 +01:00
ivankudibal 5c1aac9ebb chore: prepare for 1.8.8 release 2020-11-04 12:50:25 +01:00
Pavel Zavora 80c7d9fd36 fix(ui): export CSV with a time column formatted according to selected time zone 2020-10-29 20:05:39 +01:00
Pavel Zavora ba5744cb5f fix(ui): respect selected timezone in range picker 2020-10-29 20:04:40 +01:00
Pavel Zavora 17a5f33826 fix(css): use default color for a disturbing (white) CodeMirror-gutter-filler 2020-10-29 20:02:13 +01:00
Pavel Zavora d8d8469b5b fix(tickscript): repair editor scrolling 2020-10-29 20:02:13 +01:00
Pavel Zavora 0d9addb1d3 fix(dashboard): don't truncate dashboard name with lots of room 2020-10-29 19:59:41 +01:00
Pavel Závora 0c4ba74f04
feat(kapacitor/opsgenie2): add recovery action (#5595) 2020-10-29 19:50:04 +01:00
ivankudibal 597f1c2379 chore: prepare for 1.8.7 release 2020-10-06 21:44:36 +02:00
Pavel Zavora 4458bad2cb fix(ui): upgrade papaparse to 5.3.0 2020-10-05 08:12:47 +02:00
Ivan Kudibal 140e69960f
Merge branch 'master' into 5581/alerta_token-prefix 2020-09-29 21:32:51 +02:00
Ivan Kudibal 268d039d95
Merge branch 'master' into 5571/tableGraph_vertical_scroll 2020-09-29 21:30:11 +02:00
Ivan Kudibal d5a27f07cf
Merge pull request #5579 from influxdata/5567/disable_dashboard_auto_refresh
fix(ui): disable default dashboard auto refresh
2020-09-29 21:27:59 +02:00
Pavel Zavora 7993ffcfdb feat(kapacitor): add token-prefix to alerta configuration 2020-09-24 14:46:08 +02:00
Pavel Zavora 2a577dc9d2 fix(ui/TableGraph): make vertical scroll bar visible when rows overflow 2020-09-24 09:17:02 +02:00
Pavel Zavora 7a26fd19f8 fix(ui): disable default dashboard auto refresh 2020-09-22 17:39:25 +02:00
Pavel Zavora da16498bb5 chore(ui): upgrade node to v12 2020-09-22 12:16:12 +02:00
Pavel Závora f2627ee939
Merge pull request #5568 from influxdata/dependabot/npm_and_yarn/ui/static-eval-2.1.0
chore(deps): bump static-eval from 2.0.0 to 2.1.0 in /ui
2020-09-22 11:45:39 +02:00
dependabot[bot] 50354cd5da
chore(deps): bump http-proxy from 1.17.0 to 1.18.1 in /ui
Bumps [http-proxy](https://github.com/http-party/node-http-proxy) from 1.17.0 to 1.18.1.
- [Release notes](https://github.com/http-party/node-http-proxy/releases)
- [Changelog](https://github.com/http-party/node-http-proxy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/http-party/node-http-proxy/compare/1.17.0...1.18.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-09 09:39:49 +00:00
dependabot[bot] 1417e2971d
chore(deps): bump static-eval from 2.0.0 to 2.1.0 in /ui
Bumps [static-eval](https://github.com/browserify/static-eval) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/browserify/static-eval/releases)
- [Changelog](https://github.com/browserify/static-eval/blob/master/CHANGELOG.md)
- [Commits](https://github.com/browserify/static-eval/compare/2.0.0...v2.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-02 16:59:57 +00:00
ivankudibal 98cf421465 chore: prepare for 1.8.6 release 2020-08-26 21:11:00 +02:00
Pavel Závora 33ff2fc46a
Merge branch 'master' into 5481/log_bool_values 2020-08-24 16:04:46 +02:00
Pavel Zavora bda4e6935a chore: update changelog 2020-08-22 08:30:57 +02:00
Pavel Zavora 8a44bd5b23 fix(ui): don''t override existing table data of the same time #5502 2020-08-22 08:30:57 +02:00
Pavel Zavora cd6e2443a1 fix(ui): show also bool tag/field values in tickscript editor logs #5481 2020-08-22 08:30:10 +02:00
Pavel Závora df1be15398
Merge branch 'master' into 5489/escape_tag_value_in_query 2020-08-22 07:53:10 +02:00
Pavel Závora 1603bbadd5
Merge pull request #5551 from influxdata/5374/sortByDBAndRP
fix(ui): sort namespaces by database and retention policy #5374
2020-08-22 07:52:10 +02:00
Pavel Závora 155a56089d
Merge pull request #5549 from influxdata/dependabot/npm_and_yarn/ui/elliptic-6.5.3
chore(deps): bump elliptic from 6.4.1 to 6.5.3 in /ui
2020-08-19 07:23:00 +02:00
Pavel Zavora f9bf588186 chore: appease linter 2020-08-04 11:31:09 +02:00
Pavel Zavora be62cc3342 fix(ui): escape tag values in query builder 2020-08-04 11:11:58 +02:00
Pavel Zavora 1c6e055c3d fix(ui): sort namespaces by database and retention policy #5374 2020-08-03 15:38:14 +02:00
dependabot[bot] fa2526981a
chore(deps): bump elliptic from 6.4.1 to 6.5.3 in /ui
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.4.1 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.4.1...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-30 20:55:31 +00:00
dependabot[bot] aff0e058af
chore(deps): bump lodash from 4.17.15 to 4.17.19 in /ui
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-17 11:12:55 +00:00
ivankudibal 6b7e6cb1a0 chore: prepare for 1.8.5 release 2020-07-08 11:59:54 +02:00
vlastahajek 3aed6126ef chore: fix review comment 2020-07-07 17:33:41 +02:00
Vlasta Hajek 6e5994358c
Merge branch 'master' into fix/zoom_stop_presenting 2020-07-07 13:32:21 +02:00
vlastahajek 7b82ec3c45 fix: making each csv.from unique (#5523) 2020-07-02 17:31:04 +02:00
vlastahajek b9e11edcff Merge branch 'master' into fix/zoom_stop_presenting 2020-06-26 15:52:48 +02:00
vlastahajek fb8f7ad8a9 fix: prevent leaving presentation mode when zooming (#5382) 2020-06-26 15:52:15 +02:00
Pavel Zavora 18747adcc5 chore: apply review comments 2020-06-25 06:03:15 +02:00
Pavel Zavora c1dca1c8d5 fix(worker/timeSeriesToTableGraph): add test 2020-06-25 06:03:15 +02:00
Pavel Zavora 87f40fd9e5 fix(tableGraph): ensure unique column names when merging multiple query responses 2020-06-25 06:03:15 +02:00
Pavel Zavora 763ed3a160 fix(explorer/tableView): make errors visible 2020-06-25 06:03:15 +02:00
Pavel Závora 3fe08e6b71
Merge pull request #5517 from influxdata/5472/logsFallbackToPointTime
fix(logs): fall back to point timestamp
2020-06-22 22:57:41 +02:00
Pavel Zavora 5acc21c2cb chore: apply review comments 2020-06-22 21:15:08 +02:00
Pavel Závora 24a7294284
Merge pull request #5516 from influxdata/5343/rule_validation
fix(kapacitor/alert): accept valid templates
2020-06-22 21:10:22 +02:00
Pavel Zavora 9639fc469b fix(dashboard): avoid undefined error when dashboard is not ready yet 2020-06-21 10:22:14 +02:00
Pavel Zavora 1f9ff096df chore: lint 2020-06-19 08:15:11 +02:00
Pavel Zavora 798e588cc9 fix(logs): fall back to point timestamp #5472 2020-06-19 07:43:55 +02:00
Pavel Zavora de96add671 fix(kapacitor/alert): accept valid templates #5343 2020-06-18 08:58:07 +02:00
Vlasta Hajek b1138fdb43
Merge branch 'master' into fix/reedit-issue 2020-06-17 19:00:58 +02:00
Pavel Zavora c61e25171b fix(kapacitor): change routing paths of kapacitor rules to include kapacitor ID 2020-06-17 05:04:51 +02:00
vlastahajek deca4f8450 fix: Avoiding passing invalid number to Grid (#5476) 2020-06-16 16:22:39 +02:00
Pavel Zavora 6a390479d0 fix(kapacitor/alert): support .Time.Unix message validation #5492 2020-06-16 06:54:22 +02:00
Pavel Závora 0d73bf57f0
fix(ui): report worker errors, better parse flux CSV results (#5506)
* chore(ui): log error in worker to trace errors

* fix(ui): repair parsing of flux results to support influxdb 1.8.0
2020-06-15 08:23:08 -07:00
Pavel Zavora f0cd243f01 fix(ui/kapacitor): repair tickscript editor in FF 2020-06-15 08:22:39 -07:00
Pavel Zavora 7edae1be4d fix(dashboard): keep table sorting on refresh 2020-06-15 08:22:27 -07:00
Bucky Schwarz 86f6051776
chore: prepare for 1.8.4 release 2020-04-30 10:22:13 -07:00
Bucky Schwarz 82ec443eec fix: table graph panels should be aligned when scrolling 2020-04-29 06:28:54 -07:00
Bucky Schwarz baac7cf4ec
chore: prepare for 1.8.3 release 2020-04-23 15:56:51 -07:00
Bucky Schwarz 88836fc062
chore: 1.8.2 release preparation 2020-04-13 15:13:24 -07:00
Ariel Salem c8ba74b441
Fix/table sizing issue (#5442) 2020-04-09 09:16:13 -07:00
Russ Savage 9d61f8fea9
fix(fluxFunctions): updated for flux v65 (#5443) 2020-04-09 08:51:40 -07:00
Bucky Schwarz ae637397b8
chore: prepare for release 2020-04-06 11:56:52 -07:00
odalet 7e533b045b
chore(ui): removed duplicated types + invalid import (#5436) 2020-04-03 10:15:18 -07:00
asalem 2c56ae82f7 fix(ui): updated PR to stylize fix a bit more 2020-03-24 06:26:50 -07:00
asalem db56cd679b chore(ui): fixed lint errors and updated CHANGELOG 2020-03-23 06:03:59 -07:00
asalem d1b0fbb12b fix(ui): fixed table bug that was forcing long values to one line 2020-03-22 06:21:45 -07:00
Russ Savage 8e54ea1f78
feat(fluxFunctions): updates for latest flux lib (#5426)
* feat(fluxFunctions): updates for latest flux lib

* chore(changelog): update for flux functions

* fix(fluxFunctions): updating urls

* fix(fluxFunctions): rename buckets param, tslint

* fix(fluxFunctions): remove v.windowPeriod

* added experimental csv.from function

Co-authored-by: Scott Anderson <scott@influxdata.com>
2020-03-18 14:54:09 -07:00
Greg d046840086
fix: handle change to news feed data structure (#5420) 2020-03-13 17:17:24 -06:00
Bucky Schwarz f629d5848c fix: update logic to work properly with existing template variables 2020-02-18 13:34:25 -08:00
Bucky Schwarz e6ce54b6c7 fix(ui): properly run the query when creating template variables 2020-02-18 13:34:25 -08:00
Bucky Schwarz 5460a90c76 fix: changing source database should rerun query but keep options 2020-02-13 14:41:38 -08:00
Bucky Schwarz 1cc985b952 fix: add optional zIndex property to source dropdown 2020-02-13 14:41:38 -08:00
Greg 80d18ee90d
feat: add flag to redirect login page to specified OAuth IdP (#5380)
Co-Authored-By: Bucky Schwarz <hoorayimhelping@users.noreply.github.com>
2020-02-13 11:37:41 -07:00
Russ Savage 1ce8806b8e feat: add flag to disable host list page 2020-02-10 13:50:28 -08:00
Bucky Schwarz fff7836818 feat(ui): Template variables can now select their source database 2020-02-06 13:10:41 -08:00
greg linton 67776112d1 fix: use influxdata url that happens to have the correct cors headers 2020-02-04 15:44:59 -07:00
dependabot[bot] 749ebf76f2 chore(deps): bump handlebars from 4.0.12 to 4.5.3 in /ui
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.12 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.0.12...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-01-31 13:37:53 -08:00
greg linton 022b845f2c fix: revert objectification of the id 2020-01-31 14:35:39 -07:00
greg linton 6535a58818 chore: run eslint fix 2020-01-31 14:35:39 -07:00
greg linton beac7900c4 fix(tests): update tests to use string ids 2020-01-31 14:35:39 -07:00
greg linton b4e3792984 fix: update api to serve dashboard ids as a string
- state type of dashboard id as string in ui
- remove dangerous idNormalizer (converts numbers to strings and visa versa)

Thanks bucky (hoorayimhelping)
2020-01-31 14:35:39 -07:00
Timmy Luong dab3f8dca7
feat(ui): add query parameter for autofresh option in dashboards (#5348)
* feat(ui): add query parameters for autofresh option in dashboards

* fix(ui): fix tests, lint, and refresh functionality of components; update CHANGELOG

* fix(ui): update handler

* feat(ui): allow url parameter to update dashboard autorefresh rate

* fix(ui): improve reducer performance and other minor issues
2020-01-14 16:14:25 -08:00
Bucky Schwarz a1f6162508 fix: log viewer uses a default if the mapped severity doesn't exist 2020-01-09 14:23:59 -08:00
Bucky Schwarz 5f77cda1c6
Merge branch '1.7.x' 2020-01-08 11:54:43 -08:00
Bucky Schwarz fdab763e39
chore: update changelog and bump minor version to 1.7.17 2020-01-08 11:54:33 -08:00
Bucky Schwarz 47890b6d98
fix: allow logging out when using Ouath 2020-01-08 11:51:19 -08:00
Bucky Schwarz 0568cac040 fix: allow logging out when using Ouath 2020-01-02 13:43:58 -08:00
Bucky Schwarz 74cd98a516 chore: upgrade go and node-sass dependencies 2020-01-02 12:48:40 -08:00
Michael Desa 7689dd7db4
chore: update changelog and bump minor version to 1.7.16 2019-12-19 13:49:14 -08:00
Michael Desa a88e6fb107
Merge branch 'master' into 1.7.x 2019-12-19 13:47:22 -08:00
Michael Desa ca6aaca1df
fix(defaultQueryConfig): if in rule remove upper dashboard time (#5336) 2019-12-19 13:46:19 -08:00
Bucky Schwarz dc03bbec5c fix(ui): use the the available y-axis label 2019-11-26 09:58:18 -08:00
Michael Desa adef73900c
fix(schema-explorer): update the flux schema explorer to use v1 package (#5323)
Closes https://github.com/influxdata/chronograf/issues/5316
2019-11-22 09:01:43 -05:00
Michael Desa acc1a6834f
chore: update changelog and versions for 1.7.15 2019-11-12 18:42:10 -05:00
Russ Savage 0b0e4b8bf0
feat(flux): updated functions list for latest flux (#5310)
* feat(flux): updated functions list and insert

* fix(functions): updating the urls

* feat(changelog): update changelog
2019-11-08 13:13:52 -08:00
Michael Desa 220dbeb538
fix(data-explorer): always include upper dashboard time in query (#5309)
Closes https://github.com/influxdata/chronograf/issues/5297

Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
2019-11-07 14:53:01 -05:00
Andrew Watkins 720782d118
fix: boolean joins for tag key / value pairs (#5307) 2019-11-06 16:17:17 -08:00
Michael Desa 5e1e3d0cae
Merge branch '1.7.x' 2019-08-27 13:58:02 -04:00
Michael Desa 038fb2a1d4
Release 1.7.14 2019-08-27 13:57:33 -04:00
Andrew Watkins 0d694a493b fix: style and runtime errors (#5269)
* fix(explorer): exit filter if no query

* fix: styles
2019-08-26 13:09:59 -07:00
Andrew Watkins 993ac4d75c
fix: style and runtime errors (#5269)
* fix(explorer): exit filter if no query

* fix: styles
2019-08-26 12:18:10 -07:00
Michael Desa 2d3a265706
Merge branch '1.7.x' 2019-08-20 17:39:51 -04:00
Michael Desa da07ed011c
Release 1.7.13 2019-08-20 17:37:16 -04:00
Andrew Watkins ae7fed3626
fix: drop delete (#5258)
* fix: drop delete

* fix: tsc error
2019-08-20 14:14:01 -04:00
Michael Desa dc0f253c6c
security: upgrade axios and lodash to verious without known vulnerabilities
Both `axios` and `lodash` are direct dependenies and therefore were
updated.

See https://github.com/influxdata/chronograf/network/alert/ui/yarn.lock/lodash/open and https://github.com/influxdata/chronograf/network/alert/ui/yarn.lock/axios/open
2019-08-20 14:13:58 -04:00
Christoph Tavan 1030250282
Use v4 UUID instead of v1 for time series UUIDs
This uses a purely random v4 UUID instead of a time-based v1 UUID for
the time series UUIDs (which were introduced in
dba9e28fa0 and
2fba2b9721).

As far as I can tell from
b6f6118b65/server/influx.go (L91-L94)
the server uses
b6f6118b65/id/uuid.go (L15)
to generate the `response.uuid` field where clearly a v4 UUID is being
generated. Mixing this with v1 UUIDs in the client code seems odd.

v1 UUID are based on current time and the hardware MAC address of the
machine where they are being generated (although the implementation in
the npm uuid module uses generates a random fake MAC address). As such
they have much more complex semantics than v4 UUIDs which are simply
randomly generated.

Unless there's a specific requirement for the special semantics of v1
UUIDs it is simpler and less error prone to simply go for v4 UUIDs
whenever just a unique identifier is needed.
2019-08-20 14:13:58 -04:00
Christoph Tavan 1b8b1610c4
Use v4 UUID instead of v1 for worker message IDs
This uses a purely random v4 UUID instead of a time-based v1 UUID for
the worker message IDs (which were introduced in
1a76a29ed2).

v1 UUID are based on current time and the hardware MAC address of the
machine where they are being generated (although the implementation in
the npm uuid module uses generates a random fake MAC address). As such
they have much more complex semantics than v4 UUIDs which are simply
randomly generated.

Unless there's a specific requirement for the special semantics of v1
UUIDs it is simpler and less error prone to simply go for v4 UUIDs
whenever just a unique identifier is needed.
2019-08-20 14:13:58 -04:00
Christopher Henn 5d35d459ac
Fix erroneous query manipulation
When a user creates a cell, they can create an InfluxQL query with the
visual query builder. In this case, the query to execute is derived from
the cell's query config. They can also enter a query manually, in which
case the query config should be ignored.

If a user enters a query manually, we attempt to parse that query into a
query config. If we are successful, then it doesn't matter whether we
execute the query that was entered manually, or the query derived from
the query config.

We can't always parse a query back into a query config, but we
nonetheless have always been executing cell queries derived from a query
config. This created the issue witnessed in #5131.

This commit changes that behavior; if a query has been entered manually,
we will always respect it.

Closes #5131
2019-08-20 14:13:42 -04:00
Christopher Henn 4eff74cc17
Separate ESLint and Prettier configuration
This helps editors like VSCode and Vim find the appropriate Prettier
settings.
2019-08-20 14:13:42 -04:00
Christopher Henn e17e77c702
Redirect to OAuth provider automatically
If a user needs to login and there is only one possible location to log
in, we will direct them automatically to that location rather than
rendering a page with a link to that location.
2019-08-20 14:13:41 -04:00
Andrew Watkins 58b0b891ae
fix: alert rule message text template parsing (#5228)
* feat: add go text template parsing endpoint

* chore: yarn.lock

* chore(routes): change text validation endpoint name

* feat: validate kapacitor rule templates

* test(alerts): remove redundant tests

* chore(routes): update validate endpoint name

* test(routes): add validate endpoint to tests

* test(server): add validation endpoints

* feat(alerts): change template validation to 204

* chore: update react et al
2019-08-20 14:13:41 -04:00
Andrew Watkins cad13969ae
feat(dashboards): add time zone toggle (#5224) 2019-08-20 14:13:41 -04:00
Deniz Kusefoglu a161e08183
Bugfix/code mirror tickscript (#5225)
* Match only uppercase TRUE and FALSE as atoms

* Add AND and OR as operators

* Allow variables to begin with capital letters

* Add optional @ to recognize user defined function calls as variables

* Remove multiline comment state add multiline string states

* Add dbrp keyword

* Update changelog
2019-08-20 14:13:41 -04:00
Andrew Watkins 234592dbe5
feat: add time zone selector to data explorer (#5222)
* feat(de): add time zone toggle

* chore: christmas time

* feat(ui/tables): add time zones to tables

* fix: prop declaration
2019-08-20 14:13:40 -04:00
Deniz Kusefoglu 64960a0f2e
Reapply Configure papaparse to distinguish inline vs delimiter commas (#5220) 2019-08-20 14:13:40 -04:00
Deniz Kusefoglu 22bf2f8ec1
Revert "Configure papaparse to distinguish inline vs delimiter commas"
This reverts commit 524bdda3ea.
2019-08-20 14:13:40 -04:00
Deniz Kusefoglu 104f0a72a6
Configure papaparse to distinguish inline vs delimiter commas 2019-08-20 14:13:40 -04:00
Andrew Watkins b74f110eda
feat(ui/statusPage): add toggle for utc and local time
* feat(appReducer): add time zone

* fix(timeZones): local storage

* chore: upgrade to react 16.8.6

* update react types

* feat(status): introduce TimeSelectorToggle component

* feat(ui/status): add time zone to alerts table

* feat(dygraphs): add time zone option

* fix: time typo
2019-08-20 14:13:40 -04:00
Deniz Kusefoglu 5de5e668c9
Fix scroll to row bug on table graphs (#5217)
* read sortedtimevals from updated props not state

* Update changelog

* Fix linter errors
2019-08-20 14:13:40 -04:00
Andrew Watkins 663f7f2050
fix: drop delete (#5258)
* fix: drop delete

* fix: tsc error
2019-08-13 17:17:46 -05:00
Michael Desa 89068a3461
security: upgrade axios and lodash to verious without known vulnerabilities
Both `axios` and `lodash` are direct dependenies and therefore were
updated.

See https://github.com/influxdata/chronograf/network/alert/ui/yarn.lock/lodash/open and https://github.com/influxdata/chronograf/network/alert/ui/yarn.lock/axios/open
2019-07-31 12:38:32 -04:00
Christoph Tavan 115d3b89a5 Use v4 UUID instead of v1 for time series UUIDs
This uses a purely random v4 UUID instead of a time-based v1 UUID for
the time series UUIDs (which were introduced in
dba9e28fa0 and
2fba2b9721).

As far as I can tell from
b6f6118b65/server/influx.go (L91-L94)
the server uses
b6f6118b65/id/uuid.go (L15)
to generate the `response.uuid` field where clearly a v4 UUID is being
generated. Mixing this with v1 UUIDs in the client code seems odd.

v1 UUID are based on current time and the hardware MAC address of the
machine where they are being generated (although the implementation in
the npm uuid module uses generates a random fake MAC address). As such
they have much more complex semantics than v4 UUIDs which are simply
randomly generated.

Unless there's a specific requirement for the special semantics of v1
UUIDs it is simpler and less error prone to simply go for v4 UUIDs
whenever just a unique identifier is needed.
2019-07-28 08:56:41 -07:00
Christoph Tavan 039b093d18 Use v4 UUID instead of v1 for worker message IDs
This uses a purely random v4 UUID instead of a time-based v1 UUID for
the worker message IDs (which were introduced in
1a76a29ed2).

v1 UUID are based on current time and the hardware MAC address of the
machine where they are being generated (although the implementation in
the npm uuid module uses generates a random fake MAC address). As such
they have much more complex semantics than v4 UUIDs which are simply
randomly generated.

Unless there's a specific requirement for the special semantics of v1
UUIDs it is simpler and less error prone to simply go for v4 UUIDs
whenever just a unique identifier is needed.
2019-07-28 08:56:41 -07:00
Christopher Henn e4a32d36d7 Fix erroneous query manipulation
When a user creates a cell, they can create an InfluxQL query with the
visual query builder. In this case, the query to execute is derived from
the cell's query config. They can also enter a query manually, in which
case the query config should be ignored.

If a user enters a query manually, we attempt to parse that query into a
query config. If we are successful, then it doesn't matter whether we
execute the query that was entered manually, or the query derived from
the query config.

We can't always parse a query back into a query config, but we
nonetheless have always been executing cell queries derived from a query
config. This created the issue witnessed in #5131.

This commit changes that behavior; if a query has been entered manually,
we will always respect it.

Closes #5131
2019-07-11 13:10:51 -07:00
Christopher Henn 5880c61099 Separate ESLint and Prettier configuration
This helps editors like VSCode and Vim find the appropriate Prettier
settings.
2019-07-09 15:02:44 -07:00
Christopher Henn cd345cd05b Redirect to OAuth provider automatically
If a user needs to login and there is only one possible location to log
in, we will direct them automatically to that location rather than
rendering a page with a link to that location.
2019-07-09 15:02:44 -07:00
Andrew Watkins 2dadcaf8dc
fix: alert rule message text template parsing (#5228)
* feat: add go text template parsing endpoint

* chore: yarn.lock

* chore(routes): change text validation endpoint name

* feat: validate kapacitor rule templates

* test(alerts): remove redundant tests

* chore(routes): update validate endpoint name

* test(routes): add validate endpoint to tests

* test(server): add validation endpoints

* feat(alerts): change template validation to 204

* chore: update react et al
2019-07-09 12:31:56 -07:00
Andrew Watkins d016ee3774
feat(dashboards): add time zone toggle (#5224) 2019-07-03 15:03:01 -07:00
Deniz Kusefoglu c173f3f586
Bugfix/code mirror tickscript (#5225)
* Match only uppercase TRUE and FALSE as atoms

* Add AND and OR as operators

* Allow variables to begin with capital letters

* Add optional @ to recognize user defined function calls as variables

* Remove multiline comment state add multiline string states

* Add dbrp keyword

* Update changelog
2019-07-03 15:02:50 -07:00
Andrew Watkins 87081a9c7f
feat: add time zone selector to data explorer (#5222)
* feat(de): add time zone toggle

* chore: christmas time

* feat(ui/tables): add time zones to tables

* fix: prop declaration
2019-07-03 10:54:34 -07:00
Deniz Kusefoglu 407d20e5a5
Reapply Configure papaparse to distinguish inline vs delimiter commas (#5220) 2019-07-02 13:36:28 -07:00
Deniz Kusefoglu a800328601 Revert "Configure papaparse to distinguish inline vs delimiter commas"
This reverts commit 524bdda3ea.
2019-07-02 13:16:18 -07:00
Deniz Kusefoglu 524bdda3ea Configure papaparse to distinguish inline vs delimiter commas 2019-07-02 13:03:57 -07:00
Andrew Watkins cd9e792d16
feat(ui/statusPage): add toggle for utc and local time
* feat(appReducer): add time zone

* fix(timeZones): local storage

* chore: upgrade to react 16.8.6

* update react types

* feat(status): introduce TimeSelectorToggle component

* feat(ui/status): add time zone to alerts table

* feat(dygraphs): add time zone option

* fix: time typo
2019-07-02 09:05:17 -07:00
Deniz Kusefoglu 1c4aa2f37d
Fix scroll to row bug on table graphs (#5217)
* read sortedtimevals from updated props not state

* Update changelog

* Fix linter errors
2019-07-01 16:26:24 -07:00
Scott Anderson 6204265163 Update functions.ts (#5216) 2019-06-28 14:31:33 -07:00
Luke Morris 3783adc117 bump package.json 2019-06-21 08:38:52 -07:00
Luke Morris 8dcf15c7d7 bump package.json 2019-06-20 15:33:56 -07:00
Andrew Watkins 4e52a61cc9 chore: fix PagerDuty deprecation message (#5208) 2019-06-20 15:22:38 -07:00
Andrew Watkins e6c2494d7d
chore: fix PagerDuty deprecation message (#5208) 2019-06-17 13:57:07 -07:00
Brandon Farmer 7f5b9fa73c Allow values for min to be negative
Closes #5168
2019-06-11 13:41:44 -07:00
Brandon Farmer 0b066943d0 Be more defensive where we split text from responses
Closes #5139
Closes #5155
2019-06-11 13:40:47 -07:00
Brandon Farmer 3748f7eb0f Properly handle time selection when zoomed in 2019-06-11 13:40:35 -07:00
Brandon Farmer 5579734b2f Add polyfill for workers
- Addresses issues when workers are running in IE11
2019-06-11 13:40:26 -07:00
Brandon Farmer f6ea901542 Allow values for min to be negative
Closes #5168
2019-05-20 17:14:40 -07:00
Brandon Farmer 4df76c444f Be more defensive where we split text from responses
Closes #5139
Closes #5155
2019-05-20 10:04:34 -07:00
Brandon Farmer 9638ce39ec Properly handle time selection when zoomed in 2019-05-16 17:03:33 -07:00
Brandon Farmer b8e857ee5e Add polyfill for workers
- Addresses issues when workers are running in IE11
2019-05-16 12:49:25 -07:00
Brandon Farmer 6594b2f024 bump version 2019-04-24 09:57:59 -07:00
Brandon Farmer a04ee8c3ca
Merge pull request #5158 from influxdata/update-version
bump version
2019-04-24 09:57:03 -07:00
Brandon Farmer 86c6f3b41e Only add variables to script once 2019-04-24 09:52:34 -07:00
Brandon Farmer f356710ab2 Only add variables to script once 2019-04-23 17:13:42 -07:00
Brandon Farmer 1f8241350d Set dashboard time when not present in preamble 2019-04-23 14:39:39 -07:00
Brandon Farmer c609d929fe Fix dashboard time injection 2019-04-23 14:21:57 -07:00
Brandon Farmer e8663e28cb Don't inject dashboard time if present 2019-04-23 14:05:32 -07:00
Brandon Farmer a67c66e051 bump version 2019-04-23 13:35:47 -07:00
Brandon Farmer e9000f09c9 Remove use of except from meta queries 2019-04-23 13:17:18 -07:00
Brandon Farmer 1088dd1f58 Remove use of except from meta queries 2019-04-19 17:24:27 -07:00
Brandon Farmer 1a9aa0e7d9 bump chronograf version number 2019-04-16 17:41:22 -07:00
Brandon Farmer d823533679 bump chronograf version number 2019-04-16 14:31:22 -07:00
Iris Scholten 35c40a9f2b Fix ceo visualization not using ceo time range for query 2019-04-16 13:54:52 -07:00
Iris Scholten cd8db96a04 Fix ceo visualization not using ceo time range for query 2019-04-16 13:42:37 -07:00
Andrew Watkins 2f8c04fbb4 fix: imports in flux scripts (#5148) 2019-04-16 13:07:57 -07:00
Andrew Watkins 406d8096d0
fix: imports in flux scripts (#5148) 2019-04-16 13:06:08 -07:00
Brandon Farmer 7b260b219e Bump package.json to 1.7.9 2019-03-20 15:34:17 -07:00
Brandon Farmer 376b225d57 Bump package.json to 1.7.9 2019-03-20 15:16:11 -07:00
Iris Scholten 52400ab75d Fix disappearing data in table graphs
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
Co-authored-by: Palak Bhojani <palak@influxdata.com>
2019-03-20 14:38:13 -07:00
Iris Scholten 604ed1125d Fix disappearing data in table graphs
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
Co-authored-by: Palak Bhojani <palak@influxdata.com>
2019-03-20 14:28:40 -07:00
Andrew Watkins 960affb93b fix(alert): message validation (#5107) 2019-03-18 16:00:42 -07:00
Delmer 1dda05bbcc fix(ui/mapVarsToCSV): double quote map template values (#5118) 2019-03-18 15:51:56 -04:00
Delmer d9c46c6d28
fix(ui/mapVarsToCSV): double quote map template values (#5118) 2019-03-18 15:50:31 -04:00
Alirie Gray 2524989618 fix(visualizations): add type checking to AxesOptions 2019-03-18 11:58:59 -07:00
Iris Scholten 5a30204c11 ensure flux function gets added when no cursor 2019-03-15 17:40:17 -07:00
Iris Scholten b712ec765b ensure flux function gets added when no cursor 2019-03-15 17:30:04 -07:00
Iris Scholten b0d63effa4 fix cursor location after adding a function with a new line 2019-03-15 17:21:25 -07:00
Iris Scholten 822cfe5aaa fix cursor location after adding a function with a new line 2019-03-15 17:05:03 -07:00
Iris Scholten 9d7b70a860 Insert flux function at or below cursor line 2019-03-15 16:01:58 -07:00
Andrew Watkins a7843d0451 fix(flux/ui): fix union 2019-03-15 16:01:36 -07:00
Palak Bhojani d00e73c63b Fix dashboard to display for another user 2019-03-15 16:00:54 -07:00
Iris Scholten 82543e1de0 Insert flux function at or below cursor line 2019-03-15 15:46:34 -07:00
Palakp41 87d9f7c724
Merge pull request #5113 from influxdata/fix/dashboard-display-diff-user
Fix dashboard to display for another user
2019-03-15 11:04:59 -07:00
Palak Bhojani 76afd995ce Fix dashboard to display for another user 2019-03-15 10:54:48 -07:00
Iris Scholten 848500cabd Stop scrollbars from covering text in flux editor
Co-authored-by: Daniel Campbell <metalwhirlwind@gmail.com>
2019-03-15 09:49:02 -07:00
Iris Scholten 69eedff378
Merge pull request #5111 from influxdata/fix/scrollbars-hiding-editor
Fix scrollbars from overlaying flux editor text
2019-03-15 09:46:54 -07:00
Andrew Watkins 18950abed4
fix(flux/ui): fix union (#5109) 2019-03-15 09:23:01 -07:00
Iris Scholten d772e1225d Stop scrollbars from covering text in flux editor
Co-authored-by: Daniel Campbell <metalwhirlwind@gmail.com>
2019-03-14 16:15:05 -07:00
Alirie Gray ca0efcac94
Merge pull request #5110 from influxdata/fix/check-type-in-axes-options
fix(explorer): add type checking to AxesOptions
2019-03-14 15:40:14 -07:00
Alirie Gray af42412080 fix(visualizations): add type checking to AxesOptions 2019-03-14 15:31:05 -07:00
Andrew Watkins f0d260e73a
fix(alert): message validation (#5107) 2019-03-13 16:41:44 -07:00
Brandon Farmer 8b0a9deb92 Update chronograf version number 2019-02-13 13:42:31 -08:00
Brandon Farmer c5110f9cf4 Update chronograf version number 2019-02-13 13:31:02 -08:00
Russ Savage d97804adc4 Fixed the fromCSV function 2019-02-13 13:26:42 -08:00
Russ Savage 847397ce0a
Fixed the fromCSV function 2019-02-13 13:23:23 -08:00
Delmer f2f63a6cf2 fix: active kapacitor updating and ui defaults (#5079)
* fix(server): fix active kapacitor settings

Co-authored-by: Michael Desa <mjdesa@gmail.com>
Co-authored-by: Chris Goller <goller@gmail.com>
2019-02-13 16:21:20 -05:00
Delmer fc4c0e024e fix(ui): fix decimalPlaces with wrapper (#5073) 2019-02-13 16:21:09 -05:00
Russ Savage d11c5d595d Fixed the window function (#5083)
* Fixed the window function

* adding 5083 to changelog
2019-02-13 13:12:04 -08:00
Russ Savage 4a3fcba600
Fixed the window function (#5083)
* Fixed the window function

* adding 5083 to changelog
2019-02-13 13:06:24 -08:00
Iris Scholten 976a5c065f Fix error when editing kapacitor info in onboarding 2019-02-12 20:24:41 -08:00
Iris Scholten 38ce5431a7 Fix error when editing kapacitor info in onboarding 2019-02-12 17:40:28 -08:00
Delmer df41635301
fix: active kapacitor updating and ui defaults (#5079)
* fix(server): fix active kapacitor settings

Co-authored-by: Michael Desa <mjdesa@gmail.com>
Co-authored-by: Chris Goller <goller@gmail.com>
2019-02-12 18:50:56 -05:00
Brandon Farmer 29c3a6ab87 Be less aggressive on windowInterval
- backport logic from v2 line
2019-02-12 13:41:46 -08:00
Brandon Farmer bec8c445d0 Escape injected meta query values 2019-02-12 13:32:35 -08:00
Brandon Farmer d8f1b42501 Be less aggressive on windowInterval
- backport logic from v2 line
2019-02-12 13:27:46 -08:00
Iris Scholten 7c25efc09a Stop cells with raw/no format selected from getting changed to base 10 2019-02-12 12:35:52 -08:00
Iris Scholten 54ade11321 Stop cells with raw/no format selected from getting changed to base 10 2019-02-12 11:55:55 -08:00
Delmer ca9f8ace80
fix(ui): fix decimalPlaces with wrapper (#5073) 2019-02-12 11:29:30 -05:00
Brandon Farmer b38c2314a5 Escape injected meta query values 2019-02-08 16:12:03 -08:00
nathan haugo 3416ff36f6 Bump version for 1.7.7 2019-01-16 13:13:40 -08:00
Brandon Farmer 5b3f32cbfd Fix meta query group calls 2019-01-15 11:36:11 -08:00
Brandon Farmer bec9336eb1 Fix meta query group calls 2019-01-15 11:28:18 -08:00
Nathan Haugo 723a11ce73
Prep for 1.7.6 release (#5040)
* Prep for 1.7.6 release

* Update readme
2019-01-14 16:18:51 -08:00
Russ Savage 9b21ebe30d updating functions for flux 0.12 (#5035)
* updating functions for flux 0.12

* updating changelog

* fixing url and lowestmin function
2019-01-11 14:53:33 -08:00
Russ Savage 0dd890e320
updating functions for flux 0.12 (#5035)
* updating functions for flux 0.12

* updating changelog

* fixing url and lowestmin function
2019-01-11 12:17:53 -08:00
Alirie Gray 7d66bc786b Update hostname for meta urls for new sources only 2019-01-10 12:56:39 -08:00
Alirie Gray ed877df57f Update hostname for meta urls for new sources only 2019-01-10 12:45:15 -08:00
Delmer 70c47ecb8b fix(logs): fix log color utils (#4909)
* fix(logs): fix log color utils
2019-01-10 11:22:51 -05:00
Alirie Gray c67a14ea5f Set kapacitor state in ConnectionWizard and call syncHostnames for new kapacitors
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2019-01-07 10:45:28 -08:00
Andrew Watkins 88f2fa03b9 fix: update chronograf version to 1.7.6 2019-01-03 13:27:59 -08:00
Andrew Watkins 308673697b
Bugfix/threshold (#4916)
* fix(veo): background color for single stat and table

* fix(ceo): background selection not saved in ui
2019-01-03 10:43:17 -08:00
Delmer 636f776643
fix(logs): fix log color utils (#4909)
* fix(logs): fix log color utils
2018-12-27 14:02:20 -05:00
Alirie Gray ce7def3113 Set kapacitor state in ConnectionWizard and call syncHostnames for new kapacitors
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-12-20 16:48:24 -08:00
Brandon Farmer e8cf0d6c15 Properly set scroll to row for table graph
- Omit scrollTop to grid properties

Co-authored-by: Palak Bhoojani <palak@influxdata.com>
2018-12-17 16:52:43 -08:00
Brandon Farmer 6439aa3a47 Properly set scroll to row for table graph
- Omit scrollTop to grid properties

Co-authored-by: Palak Bhoojani <palak@influxdata.com>
2018-12-17 16:14:59 -08:00
alexpaxton dd1620eb55 Prevent cell renaming widget from pushing other header elements offscreen (#4872)
* Prevent cell renaming widget from pushing other header elements offscreen

* Updoot changelog
2018-12-12 15:19:13 -08:00
Delmer e13fc0173d
Update version to 1.7.4 (#4883) 2018-12-12 16:21:04 -05:00
Delmer Reed bc37101e76 Update version to 1.7.4 2018-12-12 16:20:04 -05:00
Delmer Reed 4cf7360926 Fix linting error 2018-12-12 16:20:04 -05:00
Andrew Watkins b93620e4d6 fix(db-admin): only handle db state on db create (#4805) 2018-12-12 16:20:04 -05:00
Lorenzo Fontana cc040f270a fix(flux/pivot): specify the right key for columnKey and valueKey
Signed-off-by: Lorenzo Fontana <lo@linux.com>
2018-12-12 16:20:04 -05:00
alexpaxton c224c3896b
Prevent cell renaming widget from pushing other header elements offscreen (#4872)
* Prevent cell renaming widget from pushing other header elements offscreen

* Updoot changelog
2018-12-12 10:35:00 -08:00
Delmer ead30d8094 Fix flux editor scrollbars (#4877) 2018-12-11 20:19:13 -05:00
Delmer ab592b7b68
Fix flux editor scrollbars (#4877) 2018-12-11 19:36:43 -05:00
Brandon Farmer 9ad3b80365 Update the error issue template with questions 2018-12-10 16:52:39 -08:00
Brandon Farmer f1287fd80a Update the error issue template with questions 2018-12-10 16:37:33 -08:00
Delmer 7b436643c7 Fix flux stat graphs (#4856) 2018-12-07 18:42:45 -05:00
Delmer 5e2449ecac Fix logs query error (#4861) 2018-12-07 18:40:23 -05:00
Delmer ef87b41de0 Fix logs histogram bar click (#4863)
* Fix logs table rendering

* Fix histogram bars

* Add test for finding time option row index

* Remove logs table query counting

* Remove histogram chart fixes

Removes the histogram chart axes changes and bar chart changes.

* Update state query count

* Fix histogram centering

* update changelog
2018-12-07 18:34:54 -05:00
Delmer d508deecec
Fix logs histogram bar click (#4863)
* Fix logs table rendering

* Fix histogram bars

* Add test for finding time option row index

* Remove logs table query counting

* Remove histogram chart fixes

Removes the histogram chart axes changes and bar chart changes.

* Update state query count

* Fix histogram centering

* update changelog
2018-12-07 18:31:50 -05:00
Christopher Henn 8f491d3079 Improve display of Flux Wizard on small screens 2018-12-03 14:55:25 -08:00
Christopher Henn 1728f2c5e2 Improve display of Flux Wizard on small screens 2018-12-03 14:54:37 -08:00
Alirie Gray 6dcf960be9 Allow skipping add Kapacitor step 2018-12-03 14:53:53 -08:00
Delmer 9e171f6df1
Fix logs query error (#4861) 2018-12-03 16:34:53 -05:00
Brandon Farmer 776a4ac501 Provide a default for type and data in RefreshingGraph 2018-12-03 11:11:17 -08:00
Brandon Farmer 246a2719fe Remove .npmrc file 2018-12-03 11:11:07 -08:00
Brandon Farmer 0a98f75cec Provide a default for type and data in RefreshingGraph 2018-11-30 09:51:55 -08:00
Brandon Farmer dbd19ec167
Merge pull request #4853 from influxdata/fixes/update-npmrc
Remove .npmrc file
2018-11-30 09:50:59 -08:00
Delmer 3da5583a30
Fix flux stat graphs (#4856) 2018-11-30 10:25:13 -05:00
Alirie Gray bd256762e3
Merge pull request #4845 from influxdata/fix/skip-kapacitor-connection
Allow skipping add Kapacitor step
2018-11-29 12:33:47 -08:00
Nathan Haugo 5fead1ac58
Update flux functions (#4854)
* Update flux functions

* Update changelog

* Fix link
2018-11-29 12:09:26 -08:00
Brandon Farmer 43dc8e992f Remove .npmrc file 2018-11-29 09:52:38 -08:00
Alirie Gray c2c5a6686f Allow skipping add Kapacitor step 2018-11-28 16:36:44 -08:00
Christopher Henn d559ac634d Don't display empty data notes when data is loading
Closes #4804
2018-11-15 13:43:53 -08:00
Christopher Henn 6825d1bb80 Fix UUID rendering in table graphs
Second time is the charm for fixing #4726 :)

Closes #4818
2018-11-15 13:43:53 -08:00
Christopher Henn a5ab75cfb8 Don't display empty data notes when data is loading
Closes #4804
2018-11-15 13:40:17 -08:00
Christopher Henn ab567d292a Fix UUID rendering in table graphs
Second time is the charm for fixing #4726 :)

Closes #4818
2018-11-15 13:40:17 -08:00
Delmer a30c13f6c2 Fix logs loading newer (#4814)
Fix logs loading newer scroll 

* Fix logs loading newer
* Update changelog 1.7.4 bug fixes
2018-11-14 15:03:56 -05:00
Delmer 27f50dcec2
Fix logs loading newer (#4814)
Fix logs loading newer scroll 

* Fix logs loading newer
* Update changelog 1.7.4 bug fixes
2018-11-14 15:01:20 -05:00
nathan haugo b90a8dea0b Update changelog and bump version 2018-11-13 16:37:56 -08:00
Iris Scholten 95203c10b2 Add loading state to protoboards onboarding step 2018-11-13 13:02:41 -08:00
Iris Scholten 7beb915a88 Add loading state to protoboards onboarding step 2018-11-13 12:39:18 -08:00
Deniz Kusefoglu 081b535144 Remove dismiss text from and add x-to-dismiss to wizard overlay steps 2018-11-12 15:56:56 -08:00
Deniz Kusefoglu a42709090c
Merge pull request #4808 from influxdata/bugfix/add-x-to-wizard-overlay
Remove dismiss text from and add x-to-dismiss to wizard overlay steps
2018-11-12 15:55:38 -08:00
Deniz Kusefoglu 83ba0357f5 Remove dismiss text from and add x-to-dismiss to wizard overlay steps 2018-11-12 15:34:52 -08:00
Christopher Henn ef90cffe9b Fix grouping in canned queries
Chronograf includes a number of canned dashboards, whose cells are predefined
and immutable. A cell in a canned dashboard is called a layout cell, and it has
a slightly different schema than a cell in a user-defined dashboard (called
a dashboard cell).

For legacy reasons, Chronograf is able to render a layout cell or dashboard
cell using the same components via a mix of duck-typing and defensive
programming. [#4488][0] attempted to unify the differences between the two
possible cell schemas by converting a layout cell to a dashboard cell upon
read. This schema conversion was error prone and incomplete.

One difference between a layout cell and dashboard cell that was not handled by
the schema conversion involved the `groupbys` and `wheres` fields in a layout
cell. In a dashboard cell, these data are stored in the `queryConfig` object
instead. The schema conversion omitted these data altogether in the converted
cell, which caused the behavior described in [#4789][1]

This commit changes to schema conversion to include all data from the original
layout cell in the converted cell, so that the `groupbys` and `wheres` fields
are present. Downstream, the `Layout` component will check for these fields
when determining how to build a query for a cell.

This is a messy solution that builds upon previous messy solutions. [#4488][0]
discusses some alternatives, which were deemed not worth the effort to
implement.

[0]: https://github.com/influxdata/chronograf/pull/4488
[1]: https://github.com/influxdata/chronograf/issues/4789
2018-11-12 14:04:56 -08:00
Christopher Henn a994ab8e78 Fix grouping in canned queries
Chronograf includes a number of canned dashboards, whose cells are predefined
and immutable. A cell in a canned dashboard is called a layout cell, and it has
a slightly different schema than a cell in a user-defined dashboard (called
a dashboard cell).

For legacy reasons, Chronograf is able to render a layout cell or dashboard
cell using the same components via a mix of duck-typing and defensive
programming. [#4488][0] attempted to unify the differences between the two
possible cell schemas by converting a layout cell to a dashboard cell upon
read. This schema conversion was error prone and incomplete.

One difference between a layout cell and dashboard cell that was not handled by
the schema conversion involved the `groupbys` and `wheres` fields in a layout
cell. In a dashboard cell, these data are stored in the `queryConfig` object
instead. The schema conversion omitted these data altogether in the converted
cell, which caused the behavior described in [#4789][1]

This commit changes to schema conversion to include all data from the original
layout cell in the converted cell, so that the `groupbys` and `wheres` fields
are present. Downstream, the `Layout` component will check for these fields
when determining how to build a query for a cell.

This is a messy solution that builds upon previous messy solutions. [#4488][0]
discusses some alternatives, which were deemed not worth the effort to
implement.

[0]: https://github.com/influxdata/chronograf/pull/4488
[1]: https://github.com/influxdata/chronograf/issues/4789
2018-11-12 13:59:06 -08:00
Alirie Gray 794df96f39
Add fieldOptions when creating new cell from SendToDashboard (#4791) 2018-11-12 11:53:33 -08:00
Andrew Watkins 230e4a3c62
fix(db-admin): only handle db state on db create (#4805) 2018-11-12 11:51:49 -08:00
Brandon Farmer 7bcffde792 Handle basepath issue with missing slash 2018-11-09 16:33:00 -08:00
Brandon Farmer 55ba63a98f Fix linting issues in functions contants 2018-11-09 16:19:34 -08:00
Brandon Farmer c59041ea45 Handle basepath issue with missing slash 2018-11-09 16:03:17 -08:00
nathan haugo 1e33834906 Bumpversion for 1.7.2 2018-11-08 12:27:52 -08:00
Lorenzo Fontana ca22ab48ce
fix(flux/pivot): specify the right key for columnKey and valueKey
Signed-off-by: Lorenzo Fontana <lo@linux.com>
2018-11-08 12:05:21 +01:00
Delmer 0317a51f19
Fix scroll loading indicator (#4767)
Fix hide scroll loading indicator
2018-11-07 15:59:53 -05:00
Delmer 5f1d58564a Reset scrollLeft on search (#4763)
Reset scrollLeft on new search
2018-11-07 15:47:29 -05:00
Andrew Watkins 01fa9c6807
fix(de): show manual refresh if paused (#4769)
* fix(de): show manual refresh if paused

* Add changelog entry
2018-11-07 12:47:29 -08:00
Delmer 9995765354
Reset scrollLeft on search (#4763)
Reset scrollLeft on new search
2018-11-07 15:46:27 -05:00
Delmer 7858d69dae
Fix hide scroll loading indicator (#4770) 2018-11-07 15:37:08 -05:00
Andrew Watkins 407b102af6 fix(de): show manual refresh if paused 2018-11-07 12:19:28 -08:00
nathan haugo 335aa61e46 Bump to version 1.7.1 2018-11-07 11:08:13 -08:00
Christopher Henn 6dec236973
Fix issue with RuleGraph running unrendered query
The `RuleGraph` was attempting to execute queries without first
rendering the `:dashboardTime:` template variable. This commit ensures
that the `:dashboardTime:` template variable is rendered with the
approriate data.
2018-11-07 10:00:34 -08:00
Christopher Henn 6c30091f5d Fix issue with RuleGraph running unrendered query
The `RuleGraph` was attempting to execute queries without first
rendering the `:dashboardTime:` template variable. This commit ensures
that the `:dashboardTime:` template variable is rendered with the
approriate data.
2018-11-07 09:59:10 -08:00
Christopher Henn 0568bf2ac8 Consolidate metaquery template constants 2018-11-06 16:43:03 -08:00
Christopher Henn 0b1446317f Add cardinality estimate metaquery templates 2018-11-06 16:43:03 -08:00
Deniz Kusefoglu 7b9cd088e8 Use protoboard.templates to create tempvars during pb instantiation
Co-authored-by: Deniz Kusefoglu <denizk@gmail.com>
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-11-06 15:37:13 -08:00
Iris Scholten 3bb11ebd7b
Update refreshing graph if inView changes (#4756) 2018-11-06 15:29:22 -08:00
Alirie Gray df5a6cc3e6 Sort dashboard items in SendToDashboardOverlay by name 2018-11-06 13:46:59 -08:00
Brandon Farmer cc6c070988
Merge pull request #4751 from influxdata/fixes/resizable-element-missing
Ensure resizable element has a parent in dygraph component
2018-11-06 13:14:31 -08:00
Brandon Farmer 5b708b2e24 Ensure resizable element has a parent in dygraph component 2018-11-06 13:05:08 -08:00
Iris Scholten df7f3b3b7e
Merge pull request #4750 from influxdata/fix/functions-click
Fix click to add for flux functions
2018-11-06 13:03:35 -08:00
Iris Scholten 861deeb63a
Merge pull request #4748 from influxdata/fix/postfix-lines
Clear old dygraphs before redrawing
2018-11-06 12:46:54 -08:00
Iris Scholten 75afa76c88 Fix click to add for flux functions 2018-11-06 12:44:29 -08:00
Alirie Gray 335248c0fd
Add check for undefined value in single stat component (#4741) 2018-11-06 12:10:30 -08:00
Iris Scholten 5817e48fc4 Clear old dygraphs before redrawing 2018-11-06 11:34:32 -08:00
Brandon Farmer 7b6da09f8f
Merge pull request #4747 from influxdata/fixes/resizing-unmounted-dygraph
Make sure dygraph is available to resize
2018-11-06 11:29:50 -08:00
Delmer 5648e46fbc
Fix switcher links case ordering (#4745)
Fix switcher links ordering

* Update switcher links to sort without casing
* Update changelog 1.7.0 ui improvements
2018-11-06 14:23:30 -05:00
Brandon Farmer bf3adf6ce6 Make sure dygraph is available to resize 2018-11-06 11:14:42 -08:00
Delmer b1d3dcd5c1
Add missing measurement status (#4744)
Add missing syslog status for logs page

* Add missing measurement status
* Update changelog 1.7.0 ui improvements
2018-11-06 13:56:22 -05:00
Brandon Farmer a84079fa97
Merge pull request #4743 from influxdata/fixes/flux-editor-indention
Properly handle update script in code mirror
2018-11-06 09:49:14 -08:00
Andrew Watkins 9537cb3ca0
fix(sources): call to GET /sources hanging (#4731) 2018-11-06 09:17:02 -08:00
Brandon Farmer 22a8e519b2 Properly handle update script in code mirror 2018-11-05 17:04:26 -08:00
Deniz Kusefoglu acd7c07354
Merge pull request #4736 from influxdata/bugfix/prevent-wizard-jumping
Prevent step jumping in the wizard if no source
2018-11-05 16:58:40 -08:00
Christopher Henn dc7a986224 Fix Flux tag keys metaquery
See [0] and [1].

[0]: https://github.com/influxdata/applications-team-issues/issues/233
[1]: https://github.com/influxdata/platform/issues/1304
2018-11-05 16:29:16 -08:00
Christopher Henn 7a12243c51 Handle empty dropdown case in Flux Script Wizard 2018-11-05 16:22:45 -08:00
Daniel Campbell 72807076d7
Fix Slow Threesizer (#4742)
* Update ref to use createRef

* Connect toolbar once instead of each function
2018-11-05 16:16:08 -08:00
Deniz Kusefoglu ab6bab291f Prevent step jumping in the wizard if no source 2018-11-05 15:53:44 -08:00
Christopher Henn b8cd6f4e2e Enable text selection in table cells in Firefox
Previously we would render a semi-transparent rectangle over the
currently hovered entry in a table using a CSS `:after` technique. In
Firefox, this blocked text selection events on the table entry so that a
user could not copy/paste data from a table graph.

This commit changes the background color of hovered table entries
instead overlaying a semi-transparent rectangle, so that text selection
events are not blocked. This results in a slightly different but
comparable aesthetic.

Closes influxdata/applications-team-issues#252
2018-11-05 15:43:33 -08:00
Jared Scheib be8bed17c8 feat: add button to switch to table graph if data invalid
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-11-05 15:06:30 -08:00
Christopher Henn 5076458c31 Fix table formatting of stringy numbers
Fixes an issue in the `TableGraph` component where a string such as
`02dec` would be interpreted as a number. This created visual
inconsistencies when viewing a table of UUIDs, for example.

Closes influxdata/applications-team-issues#250
2018-11-05 14:48:51 -08:00
Deniz Kusefoglu 554ef6c5c0
Merge pull request #4727 from influxdata/feat/switch-kapacitors-on-alert-rules
Feat/switch kapacitors on alert rules
2018-11-05 14:34:02 -08:00
Deniz Kusefoglu 554af5e39a Add ability to switch kapacitors on alertRules page 2018-11-05 14:21:49 -08:00
Daniel Campbell 073ea55916
Flux toolbar search (#4725)
* Add Function only on click of name

* Add ability to search functions

* Add more functions

* Change titlesk

* Add function links

* Fix tooltip positioning

* Replace input with ui kit component input

* replace lifecycle method, use react createRef instead of callback ref
2018-11-05 13:02:57 -08:00
Alirie Gray 898135270f
fix(utils): transform & render different metaQuery response series sh… (#4708)
handle metaQuery responses with multiple series/values/columns

Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-11-05 10:53:02 -08:00
Delmer 1e84e7d859
Fix logs message width (#4723)
feat(logs/message):  expands message and pins to left, center, right, or on message.

* Remove notification for scroll direction
* Improve logs message view
2018-11-05 13:49:21 -05:00
Christopher Henn d7969457c4 Enabled using predefined temp vars in cell names 2018-11-05 10:43:02 -08:00
Delmer 7974ed3bbd
Add logs page spinner (#4715)
feat(logs/ui): Add logs page loading spinner
2018-11-05 11:19:52 -05:00
Brandon Farmer 4b922dc9ec Fetch retention policies individually
- show databases you have rights to
2018-11-02 16:25:45 -07:00
Christopher Henn 7d9c063049 Add option to reset Threesizer 2018-11-02 14:30:27 -07:00
Deniz Kusefoglu 1e304e935c
Merge pull request #4709 from influxdata/bugfix/kapacitor-notifications
Fix kapacitor adding or updating logics
2018-11-02 14:30:14 -07:00