Commit Graph

2142 Commits (6c23fd1aa6fbc1dc2c926cceff729a72137184fb)

Author SHA1 Message Date
Tim Raymond & Jared Scheib 597f080297 Update Group By Dropdown with Auto Option
This adds an "auto" option to the group by dropdown which interpolates
"GROUP BY :autoGroupBy:" to the query.
2017-06-15 17:41:55 -04:00
Tim Raymond d3ac2375b6 Move hardcoded reporting interval to client side
There's some follow-on work to be done here to determine an appropriate
value for the reporting interval, but for now this lets the client
supply it.
2017-06-14 10:54:02 -04:00
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 ca9f93ceff Fetch resolution from dygraphs for autoGroupBy 2017-06-14 10:52:29 -04: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 a4e05ddc46 Solve for sets.length of 1. 2017-06-12 16:26:14 -06:00
Hunter Trujillo ef8f256811 Et voíla. Bar charts. 2017-06-12 12:59:51 -06:00
Hunter Trujillo 7664808e55 Update prettier formatting and update ESLint rules to match. 2017-06-07 10:12:40 -06: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 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
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
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 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
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 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
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 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
Jared Scheib 1987993059 Merge pull request #1564 from influxdata/fix/sourceless_logout
Fix logout menu item functionality & provide logoutLink only when using auth
2017-06-01 12:13:55 -07:00
Andrew Watkins 3c249c2f5f Merge branch 'master' into feature/auto-func 2017-06-01 10:46:07 -07:00
Chris Goller 14e1b93b86 Merge branch 'master' into fix/sourceless_logout 2017-05-31 22:09:32 -05:00
Alex Paxton a394c5b4a5 Merge branch 'master' into new-sidenav-user-icon 2017-05-31 17:57:57 -07:00
Alex P 385dc3b47f Make apply button green as to not blend in with adjacent blue buttons 2017-05-31 17:48:57 -07:00
Alex P 34ce7c4bb0 Change toggle color to indicate whether functions have been applied 2017-05-31 17:48:33 -07:00
Alex P 6a4003afda Make functions toggle display count of applied functions
Doing that grammar thing so it doesn’t read “1 Functions”
2017-05-31 17:47:51 -07:00
Alex P 3d2c1a5ca2 Use .active instead of custom class
Forgot I could do this
2017-05-31 17:46:06 -07:00
Andrew Watkins c15943f3c9 Merge pull request #1561 from influxdata/feature/save-ceo
Save CEO only with fully qualified queries
2017-05-31 14:23:05 -07:00
Andrew Watkins 193a68a4aa Update confirm button props 2017-05-31 14:09:43 -07:00
Andrew Watkins 923275a5bd Apply mean automatically to any field 2017-05-31 10:05:14 -07:00
Andrew Watkins a69052c7f5 Update code to modern patterns 2017-05-31 09:42:58 -07:00
Andrew Watkins 35ddd08e0b Remove isRequired from template prop 2017-05-31 09:33:22 -07:00
Andrew Watkins 0a1c6239e4 Flip disable logic 2017-05-31 09:25:16 -07:00
Jared Scheib 6806f62ac0 Refactor /chronograf/v1 to not return logoutLink if not using auth
Use logoutLink to determine if logout menu item is shown

Signed-off-by: Chris Goller <güllère@gmail.com>
2017-05-30 17:34:55 -07:00
Alex P 4d4110c261 Undo debug mode 2017-05-30 17:01:48 -07:00
Alex P d9ed95cc1e Use solid user icon instead of outline 2017-05-30 16:55:15 -07:00
Alex P 32045b9292 User pointer cursor on hover for all sidenav items 2017-05-30 16:55:02 -07:00
Alex P 2a9c9a79c1 Add new icons to theme 2017-05-30 16:54:28 -07:00
Jared Scheib 36b7c94d17 Add comment to explain useAnchor bool 2017-05-30 15:43:37 -07:00
Jared Scheib dfe631dc7a Fix logout button by allowing NavHeaders to be anchor tags, partially regressed in edce111f6 2017-05-30 15:23:11 -07:00
Jade McGough e8427cc9f9 add missing write file 2017-05-30 14:45:40 -07:00