Commit Graph

3763 Commits (4d22f83da5d55d7a6b2c26d33bac67f983f77294)

Author SHA1 Message Date
Tim Raymond 4d22f83da5 Fix :dashboardTime: by introducing tvar precedence
In order for :autoGroupBy: and :dashboardTime: to co-exist in a query,
it's necessary to introduce template variable precedence to the backend.
This is done by adding a `Precedence()` method to the TemplateVariable
interface that returns an ordinal indicating the precedence level of the
template variable. Precedence starts from 0 (highest) proceeding to the
maximum that a `uint` can represent.

A template variable at a given precedence level can expect that all
template variables with higher precedence will have already been
replaced in the query that is passed to its `Exec` call.

For example, :autoGroupBy: has lower precedence than :dashboardTime:
because it needs to know the selected time range for the query. When the
`Exec` method of `GroupByVar` is invoked, it will see the query after
:dashboardTime: has already been replaced, allowing it to extract the
duration successfully.
2017-06-14 10:54:02 -04:00
Tim Raymond 4f37949427 Add hacks to make AGB work with the frontend 2017-06-14 10:54:02 -04:00
Tim Raymond 62cdf76def Add parsing of Group By Duration from the query
In order for automatic group by to be remotely useful, we need to parse
out the selected duration of time from the query itself. The problem
with doing this is that using the existing machinery for parsing
InfluxQL requires having valid InfluxQL, which InfluxQL+Template
Variables is not. To break this chicken-and-egg problem, the duration is
directly extracted from the query using regular string processing.
2017-06-14 10:52:29 -04:00
Tim Raymond 6a672cfd94 Working dynamic json Unmarshaling 2017-06-14 10:52:29 -04:00
Tim Raymond c5872bba41 correct TemplateVar collection type in Queries 2017-06-14 10:52:29 -04:00
Tim Raymond ca9f93ceff Fetch resolution from dygraphs for autoGroupBy 2017-06-14 10:52:29 -04:00
Tim Raymond 45402f476d Add support for :autoGroupBy: template variable
This adds support for dynamic template variables that compute something
about themselves given some additional context.
2017-06-13 14:59:56 -04:00
Jared Scheib 4282f3e566 Merge pull request #1599 from influxdata/feature/bar-chart-plotters
Introduce Bar Graph as an option for graph types
2017-06-13 10:42:17 -07:00
Jared Scheib 08a24b46d8 Add code reference citation for future debugging 2017-06-13 10:28:41 -07:00
Jared Scheib 21dfb9f5d4 Update 'chart' to 'graph' for consistency 2017-06-13 10:26:04 -07:00
Hunter Trujillo 05302a789c Punctuation. 2017-06-12 16:37:23 -06:00
Hunter Trujillo a4e05ddc46 Solve for sets.length of 1. 2017-06-12 16:26:14 -06:00
Hunter Trujillo 816a8b9226 Update swagger docs. 2017-06-12 15:30:10 -06:00
Hunter Trujillo cb8e2ddaf7 CHANGELOG 2017-06-12 13:51:44 -06:00
Hunter Trujillo ef8f256811 Et voíla. Bar charts. 2017-06-12 12:59:51 -06:00
Nathan Haugo 3e2c1136d8 Merge pull request #1586 from influxdata/feature/sorta-fix-bumpversion
Update bumpversion and documentation for release
2017-06-07 17:06:23 -06:00
Hunter Trujillo d07519559f Merge pull request #1596 from influxdata/update-prettier-1.4
Make everything prettier again
2017-06-07 10:58:51 -06:00
Hunter Trujillo 5f5478bcdc Prettier tests. 2017-06-07 10:23:53 -06:00
Hunter Trujillo 7664808e55 Update prettier formatting and update ESLint rules to match. 2017-06-07 10:12:40 -06:00
Jared Scheib fadc145843 Update changelog for #1512 2017-06-06 17:13:27 -05:00
lukevmorris bdf6ffd73c Restore Line + Single Stat styling (#1594)
* Restore Line + Single Stat styling

* Update CHANGELOG
2017-06-06 15:07:11 -07:00
Jared Scheib 3375810544 Merge pull request #1512 from influxdata/feature/upgrade_and_synchronize_dygraphs
Upgrade and synchronize dygraphs, fix legend fall-off
2017-06-06 16:59:13 -05:00
Jared Scheib f95f2ad8f6 Prevent legend from swooping on-screen when graph is repositioned
Remove legend animation to support prevent of swooping
2017-06-06 16:44:58 -05:00
Jared Scheib 571940f518 Add comments to workaround for legend disappear on redraw 2017-06-06 16:40:18 -05:00
Jared Scheib 8e0a5657cb Move and comment graph synchronizer opt-out logic 2017-06-06 13:37:41 -05:00
Jared Scheib ee6a52e891 Update bool vars to use 'is' convention 2017-06-06 13:37:07 -05:00
Regan Kuchan f906b9ccd9 Merge pull request #1589 from influxdata/chronograf-v1.3.2.0
Update version and changelog for v1.3.2.0
2017-06-02 16:27:25 -06:00
Regan Kuchan 6da83b8629 Update version and changelog for v1.3.2.0 2017-06-02 13:34:23 -06:00
Jared Scheib df9ef1c604 Merge remote-tracking branch 'origin/master' into feature/upgrade_and_synchronize_dygraphs
Signed-off-by: Luke Morris <lukevmorris@gmail.com>
2017-06-01 17:58:10 -07:00
Jared Scheib 6cbec62578 Recombobulate synchronizer to accommodate graphs with different time ranges
Signed-off-by: Luke Morris <lukevmorris@gmail.com>
2017-06-01 17:27:37 -07:00
Chris Goller 91ef6e01e2 Update bumpversion and documentation for release 2017-06-01 18:26:33 -05:00
Jared Scheib be0b2885f7 Merge pull request #1584 from influxdata/1583-fix/submenu_display
Fix hidden submenus when alert notification on screen
2017-06-01 16:07:59 -07:00
Andrew Watkins 5a37e8f57f Merge pull request #1585 from influxdata/revert-auto-func
Revert auto func
2017-06-01 16:07:02 -07:00
Andrew Watkins 946a9ebcca Comment out test 2017-06-01 16:00:05 -07:00
Andrew Watkins 37c27e2670 Update CHANGELOG 2017-06-01 15:50:45 -07:00
Andrew Watkins 44479d05f6 Revert auto-funcs 2017-06-01 15:50:04 -07:00
Jared Scheib b6d308c1b8 Merge branch 'master' into 1583-fix/submenu_display 2017-06-01 15:44:59 -07:00
Jared Scheib 8bb869ab16 Merge pull request #1582 from influxdata/1580-fix/null_localstorage
Fix load localStorage and warning UX on fresh Chronograf install
2017-06-01 15:43:16 -07:00
Jared Scheib 360bc14744 Update changelog 2017-06-01 15:32:18 -07:00
Alex Paxton 63cbd09af0 Fix z-index failure caused by Notifications being below SideNav in DOM
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-06-01 15:28:02 -07:00
Jared Scheib f262e3b5ca Upbate changebog
Signed-off-by: Luke Morris <lukevmorris@gmail.com>
2017-06-01 15:10:53 -07:00
Jared Scheib d3b402615c Fix load localStorage and warning UX on fresh Chronograf install
Signed-off-by: Luke Morris <lukevmorris@gmail.com>
2017-06-01 15:08:52 -07:00
Alex Paxton 5853abc8e7 Merge pull request #1575 from influxdata/improve-function-selector-ux
Improve Function Selector UX
2017-06-01 13:41:34 -07:00
Alex P fc557d4ead improve changelog message 2017-06-01 13:26:40 -07:00
Jared Scheib 14dac0ef06 Toggle correct field funcs in open func selectors when funcs are changed
This applies for when you have one or more open function selectors and
change a field with no funcs selected to have one, or vice versa, such
that the other field funcs are changed to match. Now, the UI will
update accordingly as expected to reflect the selected funcs for all fields.

Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-06-01 13:15:05 -07:00
Alex Paxton 76a221b3e4 Hide function selector when fieldListItem is toggled
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-06-01 13:13:28 -07:00
Alex Paxton 5c21d7aa16 Merge pull request #1567 from influxdata/new-sidenav-user-icon
New Sidenav User Icon
2017-06-01 13:09:31 -07:00
Alex P e34c3ee2ab Change toggle text to "0 Functions" when no functions are applied
Slightly more clear what is going on
2017-06-01 12:40:56 -07:00
Alex P 026fa93bd8 Merge branch 'master' into improve-function-selector-ux 2017-06-01 12:30:37 -07:00
Alex Paxton d07389c7ea Merge branch 'master' into new-sidenav-user-icon 2017-06-01 12:29:13 -07:00