Commit Graph

12858 Commits (308a5148cf1432a09708f0f9181b04198dab19eb)

Author SHA1 Message Date
Ben Johnson e22aff46cb
Force create TSS files.
This commit replaces an `os.OpenFile()` call with an `os.Create()`
call which drops `O_EXCL` for `O_TRUNC` since `.tss` files are only
created after `.tsm` files so lingering temporary files are safe to
overwrite.
2018-11-27 08:07:21 -07:00
Brandon Farmer 70f9de4a81 Switch Dashboard UI to use generated client 2018-11-26 16:45:12 -08:00
Mark Rushakoff a06d4dea16 refactor(query): explicitly shut down query controller
The flux query controller was updated to include a Shutdown method a
while ago. Explicitly handle query controller creation and shutdown
where applicable.

In influxd, this ensures that outstanding queries are handled before the
process dies. In tests, this ensures that query controller goroutines
aren't leaked, which drastically simplifies reading full stack traces.

This change also registers query controller metrics with the prometheus
registry in influxd.
2018-11-26 16:13:19 -08:00
Alirie Gray 2a35824421
Merge pull request #1572 from influxdata/tasks/fill-in-options-in-update-task-page
Tasks/fill in options in update task page
2018-11-26 16:08:27 -08:00
jlapacik ce26742796
Merge pull request #1339 from influxdata/jl-group-by-time-interval
transpiler test case for grouping by time interval (windowing)
2018-11-26 15:41:51 -08:00
jlapacik d89220fd9a transpiler test case for grouping by time interval (windowing) 2018-11-26 15:31:07 -08:00
jlapacik a123b7b0dd
Merge pull request #1450 from influxdata/jl-ht-testing
table comparisons for generated end-to-end tests
2018-11-26 15:10:11 -08:00
Alirie Gray 69155e7caa Populate update task options pane with options returned from server
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-11-26 15:08:03 -08:00
jlapacik 2384927047 compare tables directly for generated end-to-end tests 2018-11-26 15:04:22 -08:00
Christopher M. Wolff a3ad02288b
Remove use of verbose from control.Config (#1573) 2018-11-26 16:02:41 -07:00
jlapacik a01391a21b
Merge pull request #1571 from influxdata/jl-update-flux-dep
update flux dependency - add missing Statistics() methods
2018-11-26 14:15:36 -08:00
jlapacik 2b52224e84 update flux dependency - add missing Statistics() methods 2018-11-26 13:19:14 -08:00
alexpaxton 4cb6e8b507
Refactor & Redesign Opt-In Component (#1561)
* WIP

* Add optional "max" prop to inputs

* Improve opt-in component further

* Update YAxisBound to follow latest optin pattern

* WIP refactor decimal places widget

* Use Radio buttons in optin instead of checkbox

* Change layout of optin to vertically stack

* Shrink size of min/max y-axis options

* Give linter a cookie

* Move optin to clockface and rename to "Auto-Input"

* Update existing imports for auto-input
2018-11-26 12:36:08 -08:00
jlapacik 1ec6639d10
Merge pull request #1555 from influxdata/jl-transpiler-result-iterator-statistics
update transpiler result iterators with new Statistics method
2018-11-26 12:27:20 -08:00
jlapacik 17413276c2 update transpiler result iterators with new Statistics method 2018-11-26 12:17:16 -08:00
Christopher Henn e3a9c04495 Fix issue building UI for production env
Building the UI for production (via the `yarn build` script) involves
using [cssnano][0] to compress the UI stylesheets. Previously, cssnano
errored on some [invalid SCSS syntax][1], causing the entire production
build to fail. This also broke the `deploy` workflow in CircleCI.

This commit fixes the invalid SCSS syntax and resulting issues.

Closes #1553

[0]: https://cssnano.co/
[1]: https://github.com/sass/sass/issues/818
2018-11-26 10:20:49 -08:00
Palakp41 2cac5f30dc
Merge pull request #1550 from influxdata/feat/add-import-tasks-page
Import on Tasks Page for flux script
2018-11-21 14:42:00 -08:00
Palak Bhojani 24863c3125 Import on Tasks Page for flux script
Co-authored-by: Palak Bhojani <palak@influxdata.com>
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-11-21 14:40:27 -08:00
Mark Rushakoff 232fb90edb feat(task): add Delay field to platform.Task
This brings Delay in line with Every and Cron.
2018-11-21 14:37:35 -08:00
Mark Rushakoff ed15dd2305 refactor(task): add Executor.Wait method
This is to ensure that Scheduler.Stop blocks until outstanding task runs
finish. There were enterprise tests failing because outstanding runs of
a task were calling (*testing.T).Log after the test finished.
2018-11-21 14:27:56 -08:00
Mark Rushakoff 5b3f51a7b2 test(task): ensure that deleting a task, deletes its meta 2018-11-21 14:11:37 -08:00
Mark Rushakoff 558d10f28b test(task): skip long tests in -short mode
Before, running go test -short -count=1 ./task/... would take about 15
seconds. By skipping these two long tests in short mode, that takes
about 10 seconds instead. In particular, the task package itself went
from 10 seconds to under a second, but there wasn't a realized 10 second
gain due to packages being tested in parallel.
2018-11-21 14:11:11 -08:00
Christopher Henn a30e644c4a Fix null property access bug in ColorSchemeDropdown 2018-11-21 13:32:41 -08:00
Brandon Farmer 169015bd85
Merge pull request #1547 from influxdata/fixes/task-nesting
Fixes tasks request for frontend
2018-11-21 13:11:26 -08:00
Christopher Henn b8536ba325 Implement clockface-based color scheme selector 2018-11-21 13:04:46 -08:00
Christopher Henn 307ca66abc Fix display of custom color schemes in dygraphs 2018-11-21 13:04:46 -08:00
Christopher Henn 3ab0c09580 Fix dygraph suffix and prefix formatting
A hack brought over from Chronograf 1.7. Without this, a screen tearing
bug will be visible near the y axis after updating the y axis' prefix or
suffix.
2018-11-21 13:04:46 -08:00
Christopher Henn 43f5fdca7b Remove unused components 2018-11-21 13:04:46 -08:00
Christopher Henn 67a48551e1 Fix ability to set y label in xy graphs 2018-11-21 13:04:46 -08:00
Stuart Carnie f001c303cd
Merge pull request #1312 from influxdata/sgc-reader
Implement ResultSet and GroupResultSet for protobuf streams
2018-11-21 12:06:58 -07:00
Stuart Carnie 79f06f6b97
feedback: Add nil comparison tests 2018-11-21 12:01:36 -07:00
Stuart Carnie f3d15be61b
chore: Add key order sanity check to StreamReaders 2018-11-21 12:01:36 -07:00
Stuart Carnie 8920dab57a
feedback: Changes per PR feedback 2018-11-21 12:01:36 -07:00
Stuart Carnie 831e2ab943
feat(reads): Implement merge operation for []reads.GroupResultSet
Specifically the currently supported GroupNone and GroupBy operations
2018-11-21 12:01:36 -07:00
Stuart Carnie 268a52148a
feat(reads): Implement merge operation for []reads.ResultSet 2018-11-21 12:01:36 -07:00
Stuart Carnie 7fb015cc7f
chore: Add GroupBy benchmark 2018-11-21 12:01:36 -07:00
Stuart Carnie 26408dc1fa
chore(reads): Document ResultSet and GroupResultSet APIs; add func Err
* add option to Group sort to specify precedence of `nil`
* improve unit tests for GroupResultSet implementation
2018-11-21 12:01:35 -07:00
Stuart Carnie 0237059d05
feat(reads): Implement ResultSet and GroupResultSet for protobuf streams 2018-11-21 12:01:35 -07:00
Brandon Farmer 6ddc0cb370 Fixes tasks request for frontend
- task in no longer nested
2018-11-21 11:00:00 -08:00
Brandon Farmer 1f388f2634
Merge pull request #1543 from influxdata/refactor/api-utils
Move api initialization to util
2018-11-21 10:46:37 -08:00
Christopher Henn 58d8ac8f67 Use EmptyGraphMessage in SingleStatTransform
For consistency.
2018-11-21 10:11:21 -08:00
Christopher Henn 7e98b0b38a Style single stat charts 2018-11-21 10:11:21 -08:00
Christopher Henn 8a848b4ed2 Fix number checking in SingleStatTransform 2018-11-21 10:11:21 -08:00
Brandon Farmer e5c63d23d9 Move api initialization to util 2018-11-21 10:08:31 -08:00
zhulongcheng 8984490ace unify code style 2018-11-21 10:08:20 -08:00
zhulongcheng 19dd22fcfa fix typos 2018-11-21 10:08:20 -08:00
zhulongcheng 07874d6246 add tests for /tasks endpoint 2018-11-21 10:08:20 -08:00
zhulongcheng f206175f79 add mock implementation of task service 2018-11-21 10:08:20 -08:00
zhulongcheng 6a01187dc5 fix POST /tasks param 2018-11-21 10:08:20 -08:00
zhulongcheng 2f6e36c3ca update GET /tasks response to implement swagger definition 2018-11-21 10:08:20 -08:00