Commit Graph

4567 Commits (1d75235fe1fc81c006a67872c64fe584c8493725)

Author SHA1 Message Date
Tim Raymond 1d75235fe1 Explain magic number, var renaming
This extracts a constant and comments it for clarity. Also renames a
confusing waitgroup
2017-08-23 16:32:00 -04:00
Tim Raymond 8ae3dc35cc Extract option generator and task fetcher
The option generator goroutine and the task fetcher goroutine are more
readable when extracted into another method. Also, added some commenting
documenting what their expectations are
2017-08-23 16:21:13 -04:00
Tim Raymond fe57d1e0c7 Improve benchmark, fix offset bug
This ensures that setup time does not impact the results of the
benchmark since profiling showed that much time was spent setting up the
test array of tasks. This also uses `make` to build that slice instead.

Also, the tests revealed that there was a bug where offsets were
pre-incremented rather than post-incremented, omitting the first 100
results.
2017-08-22 10:23:24 -04:00
Tim Raymond 0d2991d719 Perf: improve performance of ListTasks
This fetches ListTasks results using a few worker goroutines to improve
performance with large numbers of tasks.
2017-08-21 17:10:13 -04:00
Tim Raymond f7291550c0 Fix issue where offset & limit won't work
Because we were testing the mock client, and not the paginating
kapacitor client for the case where limit and offset were provided, an
issue with that code path was not exposed.

The issues exposed were that the condition was incorrect for triggering
this behavior, and no return clause was present to prevent the remainder
of the ListTasks method from running.
2017-08-18 17:07:00 -04:00
Tim Raymond 4bfd982a23 Update comment
Variable name changed. Improved clarity.
2017-08-18 16:44:04 -04:00
Tim Raymond 9b71477509 Switch KapacitorRulesGet to use Pagination
Kapacitor responses are paginated, and sometimes users have more than
the default 100 tasks that are returned from Kapacitor. This replaces
the previous Kapa client with one that automatically follows paginated
responses from Kapacitor's ListTasks endpoint and returns the full
response.

Tests for the KapacitorRulesGet endpoint had to be updated because they
did not account for "limit" and "offset", and so led to an infinite
loop with the paginated client. A correct kapacitor backend will not
have this behavior
2017-08-15 17:30:29 -04:00
Tim Raymond fcf325bbbe Add PaginatingKapacitorClient
The kapacitor client used in the kapacitor endpoints is limited to
fetching whatever limit you provide it. If you provide no limit, it
defaults to a limit of 100. We use this default behavior currently.

Some users have more than 100 tasks, so we need a client that's capable
of continually fetching tasks from Kapacitor until there are none left,
and returning the full response to the frontend.

This introduces a PaginatingKapacitorClient which does exactly that.
Also, test coverage was added around the KapacitorRulesGet endpoint,
since it was previously untested.
2017-08-15 16:55:47 -04:00
Andrew Watkins c068a109bb Merge pull request #1870 from influxdata/chore/prop-on-div-error
Fix console spam about prop being placed on div
2017-08-14 15:53:54 -07:00
Andrew Watkins 65d0480f9d Prettier 2017-08-14 15:46:23 -07:00
Andrew Watkins f0f4982059 Merge branch 'master' into chore/prop-on-div-error 2017-08-14 15:33:29 -07:00
Andrew Watkins dc87246e76 Merge pull request #1862 from influxdata/add-add-graph-to-cell-button
Add button to cell for improved user experience
2017-08-14 15:32:32 -07:00
Andrew Watkins 97e130c353 Merge pull request #1864 from smith/nls/drag-fixes
Fixes for file upload
2017-08-14 15:31:50 -07:00
Andrew Watkins a5e8c5ba2e Merge branch 'master' into nls/drag-fixes 2017-08-14 15:30:57 -07:00
Andrew Watkins 21548485a9 Merge branch 'master' into chore/prop-on-div-error 2017-08-14 15:26:56 -07:00
Andrew Watkins 5cfab25b35 Update changelog 2017-08-14 15:26:22 -07:00
Andrew Watkins 5dc3f49b32 Fix console spam about prop being placed on div 2017-08-14 15:20:21 -07:00
Hunter Trujillo 09b15f7c49 Merge pull request #1860 from smith/nls/npm-script-fixes
Improvements to npm scripts
2017-08-14 16:16:00 -06:00
Andrew Watkins 3162a2c31e Fix auto refresh not rendering No Results when appropriate 2017-08-14 15:12:21 -07:00
Andrew Watkins bfb124b196 Merge pull request #1855 from influxdata/experiment/separate-data-explorer
REFACTOR:  Visualization / QueryBuilder components
2017-08-14 14:49:49 -07:00
Andrew Watkins bacf991d5f Merge branch 'experiment/separate-data-explorer' of github.com:influxdata/chronograf into experiment/separate-data-explorer 2017-08-14 14:30:35 -07:00
Andrew Watkins 42f1f68f40 Move SchemaExplorer to shared dir 2017-08-14 14:29:11 -07:00
Andrew Watkins 934e474cd2 Move DB, Meas, and Field List components to /shared 2017-08-14 14:27:10 -07:00
Andrew Watkins 4e80460dff Implicitly return from sfc 2017-08-14 14:23:07 -07:00
Andrew Watkins 361a1cb3f9 Use spread instead of concat 2017-08-14 14:20:46 -07:00
Andrew Watkins d38d12c666 Rename component 2017-08-14 14:17:34 -07:00
Andrew Watkins c02edbb85e Add templates back to query text editor 2017-08-14 14:15:48 -07:00
Andrew Watkins 730be0434c Remove unused props 2017-08-14 14:02:21 -07:00
Timothy J. Raymond 783a1b81fc Merge pull request #1843 from influxdata/feature/tr-abs-time
Add absolute time range support to :interval:
2017-08-14 13:38:07 -07:00
Hunter Trujillo 036ebf4d3c Merge pull request #1795 from influxdata/fix/1633-windows-uptime-status
Fix telegraf windows uptime status
2017-08-14 14:24:23 -06:00
Andrew Watkins a09fa07d3b Merge branch 'master' into fix/1633-windows-uptime-status 2017-08-14 13:24:04 -07:00
Andrew Watkins 2b4f4aee77 Merge branch 'master' into fix/1633-windows-uptime-status 2017-08-14 13:23:38 -07:00
Hunter Trujillo 6001b65b44 Merge pull request #1715 from influxdata/fix/ie11-support
Initial IE 11 rendering support
2017-08-14 14:22:29 -06:00
Hunter Trujillo eb0ab9523b Merge branch 'master' into fix/ie11-support 2017-08-14 12:47:58 -06:00
Timothy J. Raymond 246cf75ce7 Merge pull request #1866 from influxdata/bugfix/tr-missing-cell-type
Fix missing cell type
2017-08-14 14:04:36 -04:00
Tim Raymond f89d95eb02 Update CHANGELOG w/ fix for single stat 2017-08-14 14:03:49 -04:00
Jared Scheib 2353a7e242 Merge pull request #1863 from influxdata/update/type_new_sources-1861
Add 'type' to new-sources server flag example
2017-08-14 10:56:10 -07:00
Andrew Watkins 8573b99ed0 Update CHANGELOG.md 2017-08-14 10:43:24 -07:00
Tim Raymond 74f464800d Fix missing cell type
Because we are now creating new instances of dashboards when we create a
response, it's critical to copy every element of Dashboards from the
previous to the new instance.

We were not previously copying the Type field of cells, so this was
defaulting to the empty string zero value. This patch adds "Type" to the
tests and ensures that it's properly copied
2017-08-14 13:41:31 -04:00
Andrew Watkins dd543bd271 Merge branch 'master' into experiment/separate-data-explorer 2017-08-11 15:04:17 -07:00
Andrew Watkins 686f1d79b1 Remove unused props and proptypes 2017-08-11 14:45:31 -07:00
Andrew Watkins 380b4bbea9 Rename handler 2017-08-11 14:42:03 -07:00
Andrew Watkins 5b79db1f90 Remove template variable logic from DataExplorer 2017-08-11 14:38:55 -07:00
Andrew Watkins 6a536b4a10 Move QueryStatus component to shared dir 2017-08-11 14:31:25 -07:00
Andrew Watkins d8941fffd6 Use QueryStatus component 2017-08-11 14:29:17 -07:00
Andrew Watkins 251cf72e2e Remove QueryBuilder component
Dont worry!  It's been replaced by smaller more
reusable components.
2017-08-11 14:19:04 -07:00
Andrew Watkins 3b8417897c Break QueryBuilder into smaller components 2017-08-11 14:18:24 -07:00
Andrew Watkins a2a360d1dc Make DataExplorer's QueryMaker an SFC 2017-08-11 14:05:58 -07:00
Andrew Watkins 492618500d Move QueryTabList to shared dir 2017-08-11 13:57:50 -07:00
Andrew Watkins 86e5dc217b Use QueryTabList component 2017-08-11 13:53:13 -07:00