Commit Graph

344 Commits (4eab5e5ed2463d51deef40df054080d08a90e09d)

Author SHA1 Message Date
Andrew Watkins aea9d7c9b9 Remove type / lint errors 2018-04-18 16:04:49 -07:00
Andrew Watkins 82e6a733f1 WIP updated walker to return expression source 2018-04-18 14:37:27 -07:00
Alex Paxton b83fbc03f5
Merge pull request #3240 from influxdata/ux/dashboard-empty-state
Improve Dashboard Empty State
2018-04-18 14:24:22 -07:00
Andrew Watkins f54362f10c WIP Introduce expressions 2018-04-18 14:12:56 -07:00
Alex P e8ec841902 Merge branch 'master' into ux/dashboard-empty-state 2018-04-18 13:11:48 -07:00
Jared Scheib a98b23d6af
Merge pull request #3233 from influxdata/bugfix/hostlist-customdb
Allow for use of custom Retention Policy when querying for hosts from Host List page & Host pages
2018-04-18 13:04:26 -07:00
Andrew Watkins efa5e25611 Add test for from component 2018-04-18 12:32:19 -07:00
Alex P a9590805ca Implement cell type constants across app 2018-04-18 12:09:00 -07:00
Andrew Watkins 063f9c9bf7 Add prop for funcArg test 2018-04-18 12:08:43 -07:00
Jared Scheib a34b0fa6cc Move & rename generateTempVarsForHosts from constants to utils
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2018-04-18 11:56:17 -07:00
Brandon Farmer 61facc9321 Fixes now() time parsing when requesting annotations 2018-04-18 11:29:14 -07:00
Jared Scheib 609fd56b9a Merge branch 'master' into bugfix/hostlist-customdb 2018-04-18 10:47:52 -07:00
Brandon Farmer 73e6b791fe Upgrade to react 16 2018-04-18 00:02:00 -07:00
Jared Scheib 7e05835b9c Test HostsPage render all components & hosts
Update Source & SourceLinks types to be current with all fields.
Properly mocked hosts & env mock api fns for spying.
Add note about kapacitors field on Source type differing
between client and server.

Co-authored-by Iris Scholten <ischolten.is@gmail.com>
2018-04-17 17:41:41 -07:00
Andrew Watkins 51250ddfd1 Add test 2018-04-17 15:08:05 -07:00
Alex Paxton 3cedef6faa
Merge pull request #3215 from influxdata/polish/sticky-tempvar-controls
Attach Template Controls Bar to top of page
2018-04-17 11:08:31 -07:00
Andrew Watkins 78f581a292 Add FundArgInput test 2018-04-17 09:47:45 -07:00
Andrew Watkins 48e43e56a1 Introduce FuncArg test 2018-04-17 09:30:50 -07:00
ebb-tide 28cea41a6f Constrain TableGraph updating 2018-04-16 19:13:23 -07:00
Iris Scholten 9ab401625b WIP test hostsPage async proxy request calls
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-04-16 18:29:16 -07:00
Alex P e1897a807a Write component test 2018-04-16 18:07:12 -07:00
Andrew Watkins 2f96ecc55a Add initial ability to handle string argument types 2018-04-16 16:56:38 -07:00
Andrew Watkins 7363cc7d5d Add inputs for various argument types 2018-04-16 14:53:54 -07:00
Andrew Watkins 4a9fefa1a2 Fix test 2018-04-16 10:56:53 -07:00
Andrew Watkins 479ec98d6e Add source string to func node object 2018-04-16 10:56:53 -07:00
Andrew Watkins 4a09df65ad Add text editor to builder 2018-04-16 10:56:53 -07:00
Deniz Kusefoglu ea2cff99bc
Merge pull request #3180 from influxdata/table/reorder-columns
Table/reorder columns
2018-04-15 00:43:52 -04:00
ebb-tide 2906a461f3 Implement PR review suggestions 2018-04-14 21:29:17 -07:00
Brandon Farmer 9418b7c6ce Ensure that values are displayed on gauges 2018-04-12 13:29:27 -07:00
Brandon Farmer 7d7319ecf5 Default to zero for gauges 2018-04-12 00:33:34 -07:00
Brandon Farmer fce176be63 Update changelog and add more tests around time range 2018-04-12 00:16:03 -07:00
Brandon Farmer b7d42df182 Show valid time in custom time range when now is selected 2018-04-12 00:06:31 -07:00
Iris Scholten 61914a6431 Add test for defaultRP in the UI on SourceForm
Co-authored-by Iris Scholten <ischolten.is@gmail.com>
2018-04-11 17:12:49 -07:00
ebb-tide 2f2b7737ed Fix failing tests 2018-04-11 16:12:36 -07:00
ebb-tide e8f360a9bf Implement dragging from drag handle rather than whole component 2018-04-10 21:08:33 -07:00
Andrew Watkins 7ba263953e
Merge pull request #3169 from influxdata/bugfix/tickscript-save
Bugfix/tickscript save
2018-04-10 14:40:30 -07:00
Andrew Watkins db98e429a6 Update tests and bugfix 2018-04-10 14:26:21 -07:00
Andrew Watkins c15fa1afe1 Add test for bug 2018-04-10 13:56:53 -07:00
Brandon Farmer e2f7fcfe1a
Merge pull request #3162 from influxdata/fix/graph-threshold-size
Only send threshold value to parent on blur
2018-04-10 11:38:34 -07:00
Brandon Farmer fa5a94eaba Add basic test around threshold 2018-04-10 11:11:22 -07:00
Iris Scholten 1c79374fe2 Fix tests after removing datalabels and making instance methods private 2018-04-09 15:20:07 -07:00
Iris Scholten 94945d5a43 Remove dataLabels and just use queryConfigs 2018-04-09 15:20:06 -07:00
Brandon Farmer 6b2cf7cf3a Make query configs available in table options on visualization tab 2018-04-09 15:16:16 -07:00
Brandon Farmer 3fb826a89a
Merge pull request #3148 from influxdata/polish/toggle-measurement
Allows users to close a measurement they have open
2018-04-09 14:51:42 -07:00
Brandon Farmer 914c1f1e82 Add test around MeasurementListItem behavior 2018-04-09 12:08:25 -07:00
Andrew Watkins a1a755016f Move TickscriptSave button to own file 2018-04-09 11:59:00 -07:00
Andrew Watkins 9f4faf6fb5 Disables saveing tickscript if no databases are selected 2018-04-06 17:56:02 -07:00
Andrew Watkins 09ccd3b152 Add test resources 2018-04-06 17:56:02 -07:00
Andrew Watkins 21754a10f9 Convert TickscriptEditor to TypesScript and add initial test 2018-04-06 17:56:02 -07:00
Jared Scheib 610fc3f799
Merge pull request #3144 from influxdata/bugfix/dataexplorer-prefix
Ensure correct basepath prefix in URL pathname when passing InfluxQL query param to Data Explorer
2018-04-06 15:51:21 -07:00
Jared Scheib 520e3e1bb5 Test that client basepath strips prefix if present
Co-authored-by Brandon Farmer <bthesorceror@gmail.com>
Co-authored-by Jared Scheib <jared.scheib@gmail.com>
2018-04-06 15:01:45 -07:00
Andrew Watkins 8586c835ca
Merge pull request #3142 from influxdata/timemachine
Timemachine
2018-04-06 13:05:39 -07:00
Andrew Watkins 43fca0175c Fix type errors 2018-04-06 12:15:28 -07:00
Alex P f1a49c5501 Fix component test 2018-04-06 11:31:23 -07:00
Alex P 66a838a9dd WIP fix tests 2018-04-05 18:02:43 -07:00
Andrew Watkins c6c8bdaecf Check queryConfig on component mount 2018-04-05 13:53:38 -07:00
Andrew Watkins 432d37be9b Add style
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
Co-authored-by: Alex Paxton <thealexpaxton@gmail.com>
2018-04-05 10:02:42 -07:00
Andrew Watkins 6fcc84947a Convert QueryMaker to TypesScript and add test 2018-04-04 16:06:50 -07:00
Andrew Watkins 8d5f2665ba Update async test 2018-04-04 15:39:46 -07:00
Andrew Watkins 487cdb3105 Move DataExplorer to TypeScript 2018-04-04 15:39:34 -07:00
Andrew Watkins b127d2d96a
Merge pull request #3118 from influxdata/bugfix/flash-notifications
Bugfix/flash notifications
2018-04-04 11:13:17 -07:00
Andrew Watkins 55d8ac86f4 Update tests 2018-04-04 11:00:43 -07:00
Andrew Watkins 0cbb8d9260 Update tests 2018-04-03 22:07:31 -07:00
Andrew Watkins a2a5d9bd14 Add inital tests 2018-04-03 21:10:06 -07:00
ebb-tide be86d85bc2 Merge branch 'bugfix/kapacitor-loading-4ever' of https://github.com/influxdata/chronograf into bugfix/kapacitor-loading-4ever 2018-04-03 13:46:41 -07:00
Deniz Kusefoglu 9400174de6
Merge branch 'master' into bugfix/kapacitor-loading-4ever 2018-04-03 16:46:08 -04:00
ebb-tide d2b70acdb0 Implement suggestions from PR review 2018-04-03 12:00:53 -07:00
ebb-tide fb37c548e2 Add some tests 2018-04-02 17:16:45 -07:00
Alex P 88706be6dc Merge branch 'master' into moar-colors-n-stuff 2018-04-02 11:51:27 -07:00
Alex P ffc2fe255e Merge branch 'master' into feature/clone-dashboards 2018-03-30 16:11:02 -07:00
Alex P 192a63c856 Write test for deleting a dashboard 2018-03-30 15:52:41 -07:00
Andrew Watkins 3ffdae1ee8
Merge pull request #3101 from influxdata/bugfix/tempvar
Fix templateVariables not loading properly.  Other variables were amazed
2018-03-30 15:32:00 -07:00
Andrew Watkins 7f3b991c0b Fix templateVariables not loading properly
Runtime error in the 'EDIT_TEMPLATE_VARIABLE_VALUES' reducer
was causing the list not to populate

Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2018-03-30 13:38:00 -07:00
Alex Paxton 99d32f68fa
Merge pull request #3096 from influxdata/polish/confirmation-buttons
Standardize Confirmation Buttons
2018-03-30 11:21:21 -07:00
ebb-tide de22496613 Merge branch 'master' into feature/table-graph-polish 2018-03-29 18:56:10 -07:00
ebb-tide 3656bee056 Move table graph data transform function tests 2018-03-29 18:47:49 -07:00
Andrew Watkins 152027a639 Fix test warning spam 2018-03-29 16:44:24 -07:00
Alex P 468be2b513 Remove test for button order
This is now handled with CSS
2018-03-29 16:10:17 -07:00
Andrew Watkins 76e0d026ea Fix typing errors 2018-03-29 16:06:10 -07:00
Brandon Farmer ff6a9fcb0a Fix FuncSelectorTest
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2018-03-29 16:06:10 -07:00
Brandon Farmer 178b366191 Func item triggers a handler when it is clicked
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
Co-authored-by: Andrew Watkins<andrew.watkinz@gmail.com>
2018-03-29 16:06:10 -07:00
Andrew Watkins 8b03686af4 Add ast to test props 2018-03-29 16:04:37 -07:00
Andrew Watkins b2e70f396f Introduce Walker class for walking the ifql AST
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
2018-03-29 16:04:37 -07:00
Andrew Watkins 182d4517e7 Introduce filtering to FuncButton 2018-03-29 16:02:32 -07:00
Andrew Watkins e0db988a79 Introduce function list button populated by IFQL 2018-03-29 16:02:32 -07:00
Andrew Watkins 90718ff652 Get suggestions for functions 2018-03-29 16:02:32 -07:00
Andrew Watkins 08d26a7f1e Introduce IFQLPage skeleton 2018-03-29 16:02:31 -07:00
Andrew Watkins b7cf32873a Add getSuggestions AJAX call to chronograf FE 2018-03-29 16:01:01 -07:00
Andrew Watkins 00c7d9a6e2 Introduce IFQLPage container 2018-03-29 16:01:01 -07:00
Alex P 1b6ee466ab Rename ConfirmButtons to "ConfirmOrCancel" 2018-03-29 11:22:13 -07:00
ebb-tide 9f7182416a Improve naming of time series transformer functions 2018-03-29 10:56:27 -07:00
Alex P b35d668a41 Merge branch 'master' into moar-colors-n-stuff 2018-03-29 10:26:27 -07:00
Alex P 3732fbaefd Write reducer test for updating line graph colors 2018-03-26 19:14:06 -07:00
Iris Scholten 1c596e9845 add test for processing TableGraph data 2018-03-26 12:21:33 -07:00
Iris Scholten 54e1bee9fb add tests for timeSeriesToTableGraph function 2018-03-26 11:24:05 -07:00
Iris Scholten f358c0dac3 fix prettier errors 2018-03-26 09:54:02 -07:00
Iris Scholten 8c5ba95f2a update getters in TableOptions.test 2018-03-23 18:39:45 -07:00
Iris Scholten f96358bde8 update GraphOptionsCustomizeFields.test 2018-03-23 17:56:23 -07:00
Iris Scholten 2e98bfe2a1 update GraphOptionsCustomizableField.test 2018-03-23 17:53:34 -07:00
Iris Scholten c22218c89e add tests for GraphOptionsFixFirstColumn 2018-03-23 17:42:39 -07:00
Iris Scholten 51224fa7e7 move tooltip for time format link to constants and update time format tests 2018-03-23 17:28:55 -07:00
Iris Scholten d3f34aeb63 update GraphOptionsSortBy.test 2018-03-23 17:13:21 -07:00
Iris Scholten 42e27aff1a update GraphOptionsTimeFormat.test 2018-03-23 16:10:33 -07:00
Jared Scheib 697d077e94
Merge pull request #3006 from influxdata/bugfix/task_enabled_correct_check
Fix Kapacitor Rules task enabled checkboxes to only toggle exactly as clicked
2018-03-23 10:48:41 -07:00
Alex P 872aebd0a1 Implement FancyScrollbar in Customize Fields list 2018-03-22 18:54:16 -07:00
Jared Scheib 504e6f938e Make tslint happy for tests 2018-03-22 15:51:54 -07:00
Jared Scheib 0fd2083601 Merge branch 'master' into bugfix/task_enabled_correct_check 2018-03-22 15:12:22 -07:00
Jared Scheib 2419890f7d Merge branch 'master' into bugfix/task_enabled_correct_check 2018-03-22 14:08:45 -07:00
Iris Scholten 180d3684e2 fix tslint alphabetizing errors 2018-03-22 13:20:00 -07:00
Jared Scheib a741a3f04c Test that KapacitorRules renders corresponding rule/task rows with same enabled status 2018-03-22 13:09:57 -07:00
Jared Scheib 7f4779b9ba Refactor KapacitorRules test to share common helpers & schema 2018-03-22 13:01:49 -07:00
Iris Scholten d428a19395 remove graph options test wrapping from tableoptions test 2018-03-22 12:47:41 -07:00
Iris Scholten be8ff5903c Merge branch 'master' into feature/table-hide-series 2018-03-21 18:31:39 -07:00
Andrew Watkins 317a22f9a9 Prettier fixes 2018-03-21 16:59:15 -07:00
Jared Scheib 5e7cbede07 Test that 'change' event on TaskRow calls onChangeRuleStatus on that rule 2018-03-21 16:48:57 -07:00
Jared Scheib 04bfbbfa09 Refactor TasksTable test to per-test shallow
Make dedicated describe block props
2018-03-21 16:43:19 -07:00
Jared Scheib dd46e6e43d Test that 'change' event on RuleRow calls onChangeRuleStatus on that rule 2018-03-21 16:42:03 -07:00
Jared Scheib 82910d0a19 Remove improper user interaction work-in-progress
Enzyme is not intended to test toggling a checkbox.
See https://github.com/airbnb/enzyme/issues/952.

Test initial render RuleRow.
Make query an optional property in AlertRule definition.
2018-03-21 16:14:20 -07:00
Andrew Watkins 16dfa23477 Add tslint to test runner / watcher 2018-03-21 16:12:42 -07:00
Andrew Watkins 9c1799c50d Fix linting errors 2018-03-21 16:12:42 -07:00
Jared Scheib 366cf0c7c4 Get rows & props for testing of KapacitorRulesTable & TasksTable 2018-03-21 13:14:52 -07:00
Jared Scheib 8e0ad0432b Test that KapacitorRules renders one corresponding task row for each rule row 2018-03-21 12:29:26 -07:00
Jared Scheib 317bfd5bfe WIP Test user interaction toggle of checkboxes 2018-03-20 20:47:49 -07:00
Jared Scheib b9c7f16cc4 Refactor KapacitorRules.test to use explicit shallow setup 2018-03-20 20:37:05 -07:00
Jared Scheib 2a77a3b776 Prettier 2018-03-20 18:41:45 -07:00
Jared Scheib 5e4a60f96d Add kapacitor rule test resource that has no query 2018-03-20 18:40:44 -07:00
Iris Scholten eca5394edc merge master and fix minor bugs
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-03-20 18:30:08 -07:00
Iris Scholten beff578eb2 update tableoptions.test with visible 2018-03-20 17:24:34 -07:00
Iris Scholten bcc87a682a add renamed files from columnNames to fieldName changes 2018-03-20 17:24:34 -07:00
Iris Scholten e049b53cd9 update columnNames to fieldNames and columns to fields in front end for tablegraphs 2018-03-20 17:24:34 -07:00
Iris Scholten 2614da86e5 update GraphOptionsCustomizableColumn.test with visible prop and toggling it 2018-03-20 17:08:56 -07:00
Iris Scholten e7f89b6322 connect tableOptions field visibility toggle to tableGraph 2018-03-20 17:08:56 -07:00
Alex P 1c164179d3 update FFC test
Co-authored-by: Iris Scholten <iris@influxdata.com>
2018-03-20 16:28:23 -07:00
Iris Scholten bb57e6cca6 update and add tests for fixfirstcolumn logic 2018-03-19 18:20:17 -07:00
Jared Scheib 5fa6c7cd6a Remove unused UUID string validator & test 2018-03-19 17:04:43 -07:00
Jared Scheib 2358cce513 Find by component rather than component name in enzyme tests 2018-03-19 16:52:06 -07:00
Brandon Farmer 4618cb9559 Fixes typescript compile type error 2018-03-18 19:31:35 -07:00
Brandon Farmer 9d4162c60b Add test from display value of selected 2018-03-18 18:17:33 -07:00
Jared Scheib 6feb258c64 Merge branch 'master' into bugfix/task_enabled_correct_check 2018-03-16 21:05:01 -07:00
Brandon Farmer 1c08717148 Sort table graphs in cell editor overlay 2018-03-16 17:46:45 -07:00
Jared Scheib a1a40ddc01 Add failing test for KapacitorRules renders both tables rows with unique label FORs 2018-03-16 16:04:04 -07:00
Jared Scheib 4080c31e93 Add failing test for KapacitorRules renders both tables with unique checkbox IDs 2018-03-16 16:03:20 -07:00
Jared Scheib 68a0716bfc Add more kapacitor rules test data 2018-03-16 14:37:03 -07:00
Jared Scheib 60897b8bc2 Revert "Test KapacitorRulesTable tr keys to be UUIDv4"
This reverts commit 841ae1e60c.
2018-03-16 14:18:57 -07:00
Alex Paxton 0587c94345
Merge pull request #2993 from influxdata/feature/table-thresholds
Add Color Thresholds to Table Graphs
2018-03-16 12:44:20 -07:00
Andrew Watkins 458475243e
Merge pull request #3001 from influxdata/chore/chronograf-admin-ts
Conversion of AllUsersPage to TypeScript add initial test
2018-03-16 10:52:02 -07:00
Alex P 91950f2ef7 Merge branch 'master' into feature/table-thresholds 2018-03-16 10:51:14 -07:00
Andrew Watkins 37f3043dee Introduce AllUsersPage test 2018-03-15 16:44:18 -07:00
Iris Scholten a0f53f5b23
Merge pull request #2996 from influxdata/feature/table-graph-series-renaming
Table Graph Series/Column renaming
2018-03-15 16:27:47 -07:00
Alex P 111f2c5fc9 Add new prop to test 2018-03-14 22:26:23 -07:00