Commit Graph

12588 Commits (78d3a0ba2d3adbd8a81a3beec89298817875f5d7)

Author SHA1 Message Date
Christopher Henn 78d3a0ba2d Streamline signin page
1. The username field is now autofocused.
2. Pressing enter in an input will submit the signin form.

Long term, we should switch the reusable UI `Form` element to use an
actual HTML `form` element, rather than a `div`. That way we get these
sorts of interactions for free.

Closes #1354
Closes #1355
2018-11-12 15:29:02 -08:00
Adam c950a6dc00
fix to transpiler result encoder when there's no _time column (#1350)
* fix to transpiler result encoder when there's no _time column
* add unit tests
2018-11-12 15:35:16 -05:00
kelwang f643405ee6
Merge pull request #1335 from influxdata/default_credential
(feat/cmd): store token in default location
2018-11-12 13:07:58 -05:00
Delmer 53085c20b9
fix(ui/logs): update flux col to column in query (#1348)
Updates the ui/logs flux query builder to use the full word for column
in the flux query.
2018-11-12 13:01:14 -05:00
Mark Rushakoff a7fdd17815 ci: re-enable race builds in circle config
I looked through the past few days of Circle Go failures, and they all
appeared to be real test errors, indicating that the -p=8 flag most
likely fixed the linker OOMs we were seeing.

If the race-enabled tests continue to OOM, we can try setting -p=2 to
match the number of CPUs actually available on our Circle container.
2018-11-12 08:24:43 -08:00
Mark Rushakoff 6874607796 test(bolt): fix data race
Multiple goroutines were concurrently setting bolt.HashCost. Move the
assignment to an init function to avoid the data race.
2018-11-12 08:24:43 -08:00
Mark Rushakoff ed4bba83f5 test(models): don't reassign package variable
Prior to this change, `go test -count=2 ./models` would fail like:

--- FAIL: TestMarshal (0.00s)
    points_test.go:37: got:  ,A\ FOO=bar,APPLE=orange,host=serverA,region=uswest
    points_test.go:38: exp:  ,apple=orange,foo=bar,host=serverA,region=uswest
    points_test.go:39: invalid match

because a later test reassigned the package-level variable that
TestMarshal depends on. Don't reassign that variable anymore.

Also cleaned up some whitespace, and moved an init function to the top
of the file for visibility.
2018-11-12 08:24:14 -08:00
Christopher Henn 2f8893f5d5 Port 1.x Dygraph component
This ports the `Dygraph` component from Chronograf 1.7, which contains
many bug fixes and enhancements. Notably, it does not quadruple render
on every mouse move event.

The component has been adapter for platform. All code relating to
annotations and the static legend has been removed.
2018-11-09 16:57:48 -08:00
Christopher Henn 76637da6aa Flatten views state 2018-11-09 16:57:48 -08:00
Christopher Henn df636fb84d Move hoverTime and related state out of Redux
The `hoverTime` state updates very rapidly (on every mousemove event for
any graph in a dashboard). This makes storing the `hoverTime` in Redux
expensive, since _every_ Redux-connected component in the render tree
must rerender when any piece of state in the Redux store is updated.

This commit moves `hoverTime` (and `activeViewID`, and related setters)
out of the Redux store in favor of a context based solution. Now, when
the `hoverTime` updates, only components that actually use that state
will rerender.
2018-11-09 16:57:48 -08:00
Kelvin Wang a783c213c3 (feat/cmd): add default token 2018-11-09 19:43:29 -05:00
Christopher Henn 886aa130ea Load/persist draft script when opening/closing VEO 2018-11-09 10:27:41 -08:00
Christopher Henn 62d1b1d2c2 Add basic Flux editor to TimeMachine 2018-11-09 10:27:41 -08:00
Jeff Wendling 6d70b5fc78
Merge pull request #1334 from influxdata/jmw-disabled-wal
fix(storage): allow disabling the WAL
2018-11-09 11:02:02 -07:00
Christopher Henn 0b5f7a01ca Update Flux query URL for v1 sources
Previously, a v1 source was configured with a `URL` and `fluxURL`. The
`URL` was used for querying InfluxQL data, while the `fluxURL` pointed
to a `fluxd` instance and was used for querying Flux data.  Since then,
`fluxd` has been subsumed by the InfluxDB 1.7 release, which supports
both InfluxQL and Flux.

This commit updates the source proxy query service to query Flux data
from a V1 source directly.
2018-11-09 09:48:04 -08:00
Jeff Wendling 39f4908946 fix(storage): allow disabling the WAL
We were passing a non-nil tsm1.Log containing a nil *tsm1.WAL which
would cause a panic when it was attempted to be used. Instead, always
pass a non-nil WAL.

We change the storage engine code to not pass in a nil WAL, and
additionally add a defensive check to change any nil WALs into a
NopWAL.
2018-11-09 10:45:24 -07:00
Jeff Wendling a935aced36
Merge pull request #1331 from influxdata/jmw-max-compactions
fix(tsm1): fix max concurrent compaction logic
2018-11-09 10:27:22 -07:00
Jeff Wendling 25532778df fix(tsm1): fix max concurrent compaction logic 2018-11-09 10:14:32 -07:00
Jeff Wendling 6b57c7ded0
Merge pull request #1321 from influxdata/jmw-config-cleanup
Storage engine config cleanup
2018-11-08 16:54:53 -07:00
Andrew Watkins 06f468bdcb
chore(refreshing-view): tweaks
* Rename AutoRefresh to AutoRefresher, rename global

* Remove presentational states from TimeSeries component

* Simplify TimeSeries reload logic

* Remove unused props from RefreshingView

* Display loading errors in RefreshingView

* chore(views): extract non-visualization state and switching logic into components
2018-11-08 14:24:23 -08:00
Brandon Farmer 513bd16523
Merge pull request #1279 from influxdata/fix/me-response
fix(http): user response of me at top-level
2018-11-08 13:58:59 -08:00
Jonathan A. Sternberg e83abe3dea
Merge pull request #1326 from influxdata/js-flux-update
deps: update flux dependency
2018-11-08 14:56:15 -06:00
Jonathan A. Sternberg fadf4f3e4f
deps: update flux dependency 2018-11-08 14:49:35 -06:00
Christopher Henn 95f6984ef2 Eliminate race condition in TimeSeries component 2018-11-08 10:44:54 -08:00
Jeff Wendling 4b504b84df respond to review feedback
- Add some documentation.
- Move compaction planner to an option instead of config.

The latter fits with the general theme of having config be things
that can be specified in a toml, and everything else being an
option.
2018-11-08 11:39:36 -07:00
Jeff Wendling a1b5b322bb some more refactoring
- add helpers to get directories out
- change FileStoreObserver to be an option rather than config.
2018-11-08 11:39:36 -07:00
Jeff Wendling 22e23d6e31 final touches
- move default directories to the storage package
- make the directory layout match before
- clean up some dead missed functions
2018-11-08 11:39:36 -07:00
Jeff Wendling 2cbc2ee896 refactor wal out, paths, and options 2018-11-08 11:39:36 -07:00
Jeff Wendling c2a4b1ea7a clean up compat documentation some 2018-11-08 11:39:36 -07:00
Jessica Obermark 932b0bf01a compat: Package to convert old to new config 2018-11-08 11:39:36 -07:00
Jeff Wendling 0d411023f2 config: clean up
- Breaks the weird cycle that existed with the EngineOptions
- Removes a bunch of useless parameters
- Moves around a bunch of defaults
2018-11-08 11:39:36 -07:00
Jeff Wendling b9a4046ba6
Merge pull request #1289 from zhulongcheng/rm-index-register
remove RegisteredIndexes method
2018-11-08 11:35:34 -07:00
Chris Goller 49ce84df53
Merge pull request #1324 from zhulongcheng/add-uid-param
fix(http): add userID parameter
2018-11-08 08:19:32 -08:00
zhulongcheng 9b817ed0d2 fix(http): add userID parameter 2018-11-09 00:10:44 +08:00
Christopher Henn cc1070fc1c Differentiate between new and persisted view types 2018-11-07 17:42:35 -08:00
Christopher Henn 5475fcdf1b Enable saving a new cell to a dashboard 2018-11-07 15:05:42 -08:00
Christopher Henn b2330ba513 Fix DataExplorer styles 2018-11-07 15:05:42 -08:00
Christopher Henn 09ef4354ed Fix TSLint/Prettier errors
Ran the `tslint:fix` Yarn script.
2018-11-07 13:33:02 -08:00
Christopher Henn 8cd3ff3c40 Run TSLint in CI 2018-11-07 13:33:02 -08:00
Lyon Hill 8bb6185092
fix a typo in the task service (#1318) 2018-11-07 13:15:53 -07:00
Christopher Henn 9b529771eb Rename InfluxLanguages to InfluxLanguage
To stay consistent with TypeScript enum conventions.
2018-11-06 16:36:02 -08:00
Christopher Henn 5230d267f1 Replace query query util and remove template props
Replaces the utility function used to execute a Flux query with the
version from the 1.7 release of Chronograf, which supports limiting the
response size of a query to a predefined row limit.

Also removes the existing minimal support for template variables in
queries. Our implementation of template variables will need to change
significantly, since the backend API has been rewritten in an
imcompatible manner. Additionally, our support for template variables in
Flux queries has evolved significantly in the 1.7 release of Chronograf,
but none of those changes have been ported to platform yet.

As a consequence, the drilling of a `templates` prop through a certain
path in the render tree has also been removed.
2018-11-06 16:36:02 -08:00
Christopher Henn 7991dcfd55 Delete unused code and reorganize modules
Deletes unused and outdated code, including and AST walker for Flux
queries and various Flux metaquery utilites.

Also moves the remaining modules in `src/flux` to somewhere under
`src/shared`. The `src/flux` directory was a vestige of a time when the
Flux related portions of Chronograf were contained to a single page, but
now these modules are used everywhere.
2018-11-06 16:36:02 -08:00
jlapacik 0af1f44357
Merge pull request #1268 from influxdata/jl-generate-test-cases
generate initial influxQL test cases
2018-11-06 14:13:48 -08:00
Adam 2d54689eda skip generated tests in random folder due to known issue in transpiler 2018-11-06 14:04:40 -08:00
jlapacik 3a6810c7ff generated influxql json tests 2018-11-06 14:04:40 -08:00
Jonathan A. Sternberg 362d4c6b34
Merge pull request #1315 from influxdata/js-flux-update
deps: update flux dependency
2018-11-06 14:17:28 -06:00
Jonathan A. Sternberg 6dbc1d90a9
deps: update flux dependency 2018-11-06 14:07:22 -06:00
Jonathan A. Sternberg 8d8bd39bcb
Merge pull request #1314 from influxdata/js-specify-range-stop
fix: show tag values must specify a range stop
2018-11-06 09:46:58 -06:00
Jonathan A. Sternberg 66920f253a
fix: show tag values must specify a range stop 2018-11-06 09:17:37 -06:00