Commit Graph

4280 Commits (3897228e30976ff055615e6cb75d0263616fa559)

Author SHA1 Message Date
Alex P 3897228e30 WIP "one or any" component 2017-08-01 19:46:11 -07:00
Andrew Watkins ce02479704 Make linter happy 2017-08-01 16:16:24 -07:00
Alex P c177ee706c Merge remote-tracking branch 'origin/feature/1602-graph-bounds-setting' into feature/1602-graph-bounds-setting 2017-08-01 14:41:02 -07:00
Alex P eb6f437c43 Fine tune UI for axis controls 2017-08-01 14:38:12 -07:00
Andrew Watkins b9754fd5d5 Update CHANGELOG 2017-08-01 14:12:40 -07:00
Andrew Watkins 2270604c68 Comment out undone features 2017-08-01 13:24:52 -07:00
Andrew Watkins 101e5da0e7 Merge branch 'feature/1602-graph-bounds-setting' of github.com:influxdata/chronograf into feature/1602-graph-bounds-setting 2017-08-01 13:14:47 -07:00
Andrew Watkins b9bac12d88 Fix test and user submitted values check 2017-08-01 13:14:31 -07:00
Alex P d83fb97a00 Add UI scaffolding for more axis controls 2017-08-01 11:31:56 -07:00
Andrew Watkins cd9c341663 Tweak styles 2017-08-01 11:02:59 -07:00
Andrew Watkins 21edafce95 Shorten text 2017-08-01 09:42:37 -07:00
Andrew Watkins d0e322ef55 Save y range for user 2017-08-01 09:10:08 -07:00
Andrew Watkins 59141c0125 Merge branch 'feature/1602-graph-bounds-setting' of github.com:influxdata/chronograf into feature/1602-graph-bounds-setting 2017-07-31 14:27:21 -07:00
Tim Raymond e703107644 Copy missing properties from Dashboards
When creating new dashboards to set defaults, not all properties of the
dashboard were being copied. This ensures that they are so that zero
values are not used for things like the ID and Name.
2017-07-31 17:24:43 -04:00
Andrew Watkins 1a1b077a90 Remove axes normalizer
With the `bounds` returning from the backend and the values saved as
strings there's no longer a need to normalize cell state.
2017-07-31 14:00:54 -07:00
Andrew Watkins f7191b1cba Merge pull request #1797 from influxdata/feature/tr-new-axes-format
Change Cell Axes' Bounds to []string
2017-07-31 13:43:14 -07:00
Tim Raymond 7aad733682 Fix data races in dashboard response construction
Dashboard responses had data races because multiple goroutines were
reading and modifying dashboards before sending them out on the wire.
This patch introduces immutability in the construction of the response,
so that each goroutine is working with its own set of dashboardResponse
structs.
2017-07-31 16:36:20 -04:00
Tim Raymond 08bf8aeff5 Ensure cell bounds come back as empty array
The contract with the frontend states that bounds should come back as an
empty array instead of null when there are no bounds present. We must
explicitly specify []string{} for this to happen.
2017-07-31 16:36:16 -04:00
Tim Raymond 4391004e7f Enforce presence of "x", "y", and "y2" axes
Certain aspects of the frontend requires the presence of these three
axes, so part of the contract established is that the backend will
always provide them. Since we centralize creation of
dashboardCellResponses, this is where these axes are added to all cell
responses.

Additionally, because there was previously no coverage over the
dashboard cells endpoints, a test has been added to cover the
DashboardCells method of Service.
2017-07-31 16:36:07 -04:00
Tim Raymond 2ff3e27e1f Convert Axis Bounds to []string
Due to various limitations with the previous implementation of Bounds as
a [2]int64{}, we've decided to change this to a []string{}. This will
allow clients to store arbitrary data specifying a bound and interpret
it as they wish.
2017-07-31 16:35:53 -04:00
Andrew Watkins 6a9bc36395 WIP add range to dashboard cell 2017-07-25 13:13:28 -07:00
Andrew Watkins 99501b3897 WIP encorporate new shape for yRanges => axes 2017-07-24 15:01:23 -07:00
Andrew Watkins 15e41284e3 Handle user submitted zero 2017-07-24 11:31:32 -07:00
Alex P 41d175e980 Uncross the wires 2017-07-24 10:52:59 -07:00
Alex P 131ddd2c91 Style CEO Display Options
Using inline SVGs for visualization type selection, moved the whole
graphTypes object into a different location and file structure
2017-07-24 10:52:59 -07:00
Andrew Watkins 6490a6efbd Prettier 2017-07-24 10:52:59 -07:00
Andrew Watkins a15366febb Wire up ranges to the rest of dashboard 2017-07-24 10:52:58 -07:00
Andrew Watkins 549ad92d9c Mock persistence of ranges 2017-07-24 10:52:58 -07:00
Andrew Watkins edebfa2cbf Save range with entire cell 2017-07-24 10:52:58 -07:00
Andrew Watkins dba8359cd1 Prettier 2017-07-24 10:52:58 -07:00
Andrew Watkins ee7ae66a23 Hook up ranges to CEO 2017-07-24 10:52:58 -07:00
Andrew Watkins 30ee24fe09 Add temporary styles 2017-07-24 10:52:58 -07:00
Andrew Watkins b575e9af85 Add reducer for cell range 2017-07-24 10:52:58 -07:00
Hunter Trujillo 0ba94497e0 Ranger improvements. 2017-07-24 10:52:58 -07:00
Hunter Trujillo 3ffe599400 Add Ranger component. Add yRange prop. Add min / max inputs. 2017-07-24 10:52:57 -07:00
Hunter Trujillo 64ba00804f Fix visualization selection functionality. 2017-07-24 10:52:57 -07:00
Hunter Trujillo f3c1eb1649 Refactor Overlay Controls into a separate component for later. Add Display Options component. Replace Overlay Controls with Display Options. 2017-07-24 10:52:57 -07:00
Tim Raymond ee6a2fa54b Enforce only "x", "y", and "y2" axes
For the forseeable future, we will only be using the "x", "y", and "y2"
axes, even though the underlying serialization can support arbitrary
axes (for the future).

This ensures that only "x", "y", and "y2" axes are present and updates
the Swagger docs to reflect that fact
2017-07-21 12:09:49 -04:00
Tim Raymond d1443b1dbd Add tests for Dashboard protobuf & misc renaming
There were previously no tests around Dashboard serialization to
protobuf, so this patch adds coverage for that. Also, the `go-cmp`
package has been introduced to replace our usage of `reflect.DeepEqual`
going forward because it has better comparison features that make it
more stable across Go versions and produces nice diffs in tests when
they fail, reducing the need for debug lines and manual inspection.
2017-07-21 11:11:30 -04:00
Tim Raymond 617fc38b14 s/DashboardRange/Axis, format protobufs, 64-bit
"Axis" is a more consistent and appropriate name. Also, the formatting
the protobufs was all over the place, so this has been made consistent
using a first-column \t. Furthermore, a vim modeline was added to the
bottom to make it easier for editors to autoconfigure themselves to the
right format, since protobufs are not something that we edit everyday.

Also, 32-bit values have been substituted for 64-bit values in Protobuf
definitions.
2017-07-20 14:42:51 -04:00
Tim Raymond a423a98d36 Update Swagger with Cell Axes
Cells now have axes which represent their visualization's viewport. This
updates the Swagger documentation to reflect this.

Things to be aware of
=====================

The form of "axes" is that of a map<string,object>, which is represented
in Swagger by an "additionalProperties" key (search for "string to model
mapping" here: https://swagger.io/specification/).
2017-07-19 11:18:01 -04:00
Tim Raymond f05c1d0774 Add Axes to Dashboard Cells
The frontend would like to store viewport information for each cell so
that visualizations are zoomed to the proper extents upon rendering.
This adds a property to cells called "axes" which takes the following
shape:

```
{
   "axes" : {
      "y" : {
         "bounds" : [
            0,
            2
         ]
      },
      "y2" : {
         "bounds" : [
            1,
            3
         ]
      }
   }
}
```

Bounds specify the visible range for the axis, and are a 2-tuple of the
form [lower, upper]. Bounds are not implicitly inclusive or
exclusive--that determination is left for clients to make. Also, there
are no restrictions on the naming of axes.
2017-07-19 10:46:32 -04:00
Chris Goller fa9e118686 Merge pull request #1725 from influxdata/feature/update-dep
Update dep and kapacitor
2017-07-17 16:08:03 -05:00
Chris Goller 4432a8227e Update kapacitor alerts and ast to 1.3.1 features. 2017-07-14 21:09:39 -05:00
Chris Goller 8e9d3ee98b Update vendored kapacitor to 1.3.1 2017-07-14 21:07:05 -05:00
Chris Goller e256131c92 Update dep files to stable format 2017-07-14 20:14:35 -05:00
Andrew Watkins 5e7644c4fa Merge pull request #1717 from influxdata/feature/read-only-tickscript
View server generated TICKscripts
2017-07-13 13:15:36 -07:00
Andrew Watkins 47d5272489 Merge branch 'master' into feature/read-only-tickscript 2017-07-13 12:51:54 -07:00
Andrew Watkins 6134b91ec7 Update CHANGELOG 2017-07-13 12:47:32 -07:00
Hunter Trujillo f729a77e78 rockin es6 2017-07-12 19:02:34 -06:00