Commit Graph

8147 Commits (de2a15906a3c38bc5f87728e3b7b5df34ffc7015)

Author SHA1 Message Date
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 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 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 0568cac040 fix: allow logging out when using Ouath 2020-01-02 13:43:58 -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
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
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
Andrew Watkins ae7fed3626
fix: drop delete (#5258)
* fix: drop delete

* fix: tsc error
2019-08-20 14:14:01 -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 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
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 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
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 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 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
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
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
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