Commit Graph

5058 Commits (254fe95298157bb6bc9fe43a44dd6832b93db86c)

Author SHA1 Message Date
Andrew Watkins 3c9c0e07cc Merge pull request #1928 from influxdata/feature/tr-aw-axis-display-opts
Moar Y-Axis Options
2017-08-24 14:25:01 -07:00
Jared Scheib 2137268516 Remove copy in UI 2017-08-24 14:01:57 -07:00
Jared Scheib 0b85991cb5 Make FillQuery only return a single string value 2017-08-24 14:01:42 -07:00
Jared Scheib c5471455c5 Make 'none' the first value for fill 2017-08-24 14:01:05 -07:00
Andrew Watkins 554c6688fd Add default value prop 2017-08-24 12:59:54 -07:00
Andrew Watkins 94522ff70e Fix spelling 2017-08-24 12:59:54 -07:00
Tim Raymond f8580d907e Refactor set membership validation
The pattern of using a select with a list of options and a default that
returns an error isn't bad for a one-off validation:

select myProp {
  case "validOption1", "validOption2":
    // no-op
  default:
    panic("invalid!")
}

However, we're doing this multiple times in this method, so it makes
sense to pull this out into a new method to make it clearer what's
happening.

This adds a `oneOf` function that takes some property and a variadic
list of valid options and reports whether or not that property is among
that list.
2017-08-24 15:45:51 -04:00
Tim Raymond c24db57385 Add validation around Base and Scale
The Base and Scale options on axes can only be one of two parameters. We
weren't validating that this was the case. This patch ensures that Base
can only ever be "10" or "2", and Scale must be either "linear" or
"log".

Associated test coverage was also added.
2017-08-24 15:37:19 -04:00
Tim Raymond 63087a1bb8 Update Swagger for new axes options
New options were introduced to control things like scale, base, etc. on
axes and these were previously not documented. This adds documentation
of the newly supported parameters by the API.
2017-08-24 14:50:12 -04:00
Tim Raymond 57ee4b8068 Update commenting on new axis options
Existing comments were deemed unclear or inconsistent with convention.
2017-08-24 14:42:14 -04:00
Andrew Watkins 5c9598f553 Update CHANGELOG.md 2017-08-24 10:11:50 -07:00
Andrew Watkins a97afd5a43 Fix equal min max bug 2017-08-24 10:06:09 -07:00
Joxit 30d68061de Use line stacked in mem.json (#1892) 2017-08-24 18:36:21 +02:00
Andrew Watkins 1a472b5ac8 Remove dup script 2017-08-24 09:25:46 -07:00
Andrew Watkins fac768c142 Update tests for scale to default to linear 2017-08-24 09:23:22 -07:00
Tim Raymond 8c1a091f62 Add nanosecond precision to :interval: calc
The UI for selecting time ranges produces nanosecond-precision times
for the template variables in the absolute time range. The regex for
absolute time ranges previously did not account for this precision,
which caused it to break.

This updates the regex to consider the nanosecond parts of an
RFC3339Nano timestamp and updates the associated tests. The Gobular link
has also been updated to a fresh playground used to debug this issue.
2017-08-24 11:37:25 -04:00
Andrew Watkins 7bac8d7655 Merge branch 'master' into feature/tr-aw-axis-display-opts 2017-08-23 21:23:03 -07:00
Andrew Watkins c845f4a8da Update CHANGELOG.md 2017-08-23 21:13:19 -07:00
Andrew Watkins 0149a32355 Fix graphs not resizing properly in cells 2017-08-23 21:08:18 -07:00
Andrew Watkins c20f5cc09a Add a tooltip to value format toggle 2017-08-23 21:08:18 -07:00
Andrew Watkins 31dc547490 Remove magic numbers 2017-08-23 21:08:18 -07:00
Andrew Watkins 52f0c76bb4 Move DisplayOptionsInput into /dashboard dir 2017-08-23 21:08:18 -07:00
Andrew Watkins c7856bdedf Add ability to toggle between linear and logarithmic scale 2017-08-23 21:08:18 -07:00
Andrew Watkins 04f25f6915 Default scale to 'linear' 2017-08-23 21:08:17 -07:00
Andrew Watkins bc9e854f88 Make input SFC 2017-08-23 21:08:17 -07:00
Andrew Watkins 19202e8620 Use defaultProps instead of _.get() 2017-08-23 21:08:17 -07:00
Andrew Watkins 987d353a84 Update dygraph based on user selected base 2017-08-23 21:08:17 -07:00
Andrew Watkins 1f131e273d Allow set base state on cell 2017-08-23 21:08:17 -07:00
Andrew Watkins e17fb15b1f Fix incorrect empty y2 bound 2017-08-23 21:07:36 -07:00
Andrew Watkins ec8668083c Fix incorrect positioning of labels on initial render 2017-08-23 21:07:36 -07:00
Andrew Watkins 3cf39ed80a Actually resize Dygraph on component update 2017-08-23 21:07:36 -07:00
Andrew Watkins 4974f5ace9 Cleanup 2017-08-23 21:07:36 -07:00
Andrew Watkins 304e9933ac WIP Allow user to set prefix and suffix in y-axis 2017-08-23 21:07:36 -07:00
Andrew Watkins 8714ff077e Fix linter errors 2017-08-23 21:06:27 -07:00
Andrew Watkins 4bf792fad9 WIP Import dygraphs number axis formatter 2017-08-23 21:06:27 -07:00
Jared Scheib 7450102424 Fix changelog update for Pull #1886 to be excluded from 1.3.7.0 2017-08-23 16:20:37 -07:00
Alex P 6174995ce9 Remove obsolete changelog entry introduced in merge 2017-08-23 16:15:42 -07:00
Jared Scheib f624d4d3e6 Update changelog 2017-08-23 16:15:42 -07:00
Tim Raymond 6336ff60f9 Update CHANGELOG for layout cell axes 2017-08-23 16:15:42 -07:00
Alex P ab09d41a0c Updoot changelog 2017-08-23 16:15:41 -07:00
Jared Scheib c8123d0499 Clarify data corruption release note, clean up changelog 2017-08-23 16:15:41 -07:00
Andrew Watkins a7a05a0e3b Update changelog 2017-08-23 16:15:41 -07:00
Tim Raymond 0b3690ccbf Update CHANGELOG with data corruption notes 2017-08-23 16:15:40 -07:00
Tim Raymond 34d282e85c Update CHANGELOG and version for v1.3.6.1 2017-08-23 16:15:40 -07:00
Tim Raymond 62aa4d6ee6 Update CHANGELOG w/ fix for single stat 2017-08-23 16:15:40 -07:00
Andrew Watkins f912e07e31 Update CHANGELOG.md 2017-08-23 16:15:39 -07:00
Andrew Watkins dce6e6d7b6 Move active query logic to container 2017-08-23 16:15:01 -07:00
Andrew Watkins 0e26a9e640 Change height of table dynamically according to resizer 2017-08-23 16:09:07 -07:00
Tim Raymond c6bcdcb884 Add Axes to Cells on Layouts
This allows a creator of a layout to specify the visible extents of
graphs for individual cells. For example, a cell displaying a
percentage could be limited to values between 0 and 100.

Existing canned layouts need to updated as a separate step. However,
this adds support for Axes to appear in them as well.
2017-08-23 16:08:32 -07:00
Hunter Trujillo ec1833e287 Add SHOW DATABASES integration test with Nightwatch.js. 2017-08-23 16:06:43 -07:00