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.
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.
* 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
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
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.
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.
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.