Commit Graph

6934 Commits (7571bfe9f68e7dd05067ba5b53a4a55b5749b650)

Author SHA1 Message Date
Iris Scholten 091d59a4dc Move the script above the explorer
Co-authored-by: Delmer Reed <delmer814+1@gmail.com>
2018-06-11 10:47:17 -07:00
Iris Scholten 5c4d2aa9ad Fix error when declaration has no funcs
Co-authored-by: Delmer Reed <delmer814+1@gmail.com>
2018-06-11 10:47:17 -07:00
Del 1db5de72d1 Move time machine visualization from bottom division to yield func node
component

Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
Co-authored-by: Delmer Reed <delmer814+1@gmail.com>
2018-06-11 10:47:17 -07:00
Del 8edd0b3ff6 Add unique name to yield func nodes
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2018-06-11 10:47:17 -07:00
Iris Scholten 2ee002eedd Stop propagation when clicking on the dropdown in funcNodes
Co-authored-by: Delmer Reed <delmer814+1@gmail.com>
2018-06-11 10:47:17 -07:00
Iris Scholten d6a5b018dd Remove yield if clicking on FuncNode with a yield func node after it
Co-authored-by: Delmer Reed <delmer814+1@gmail.com>
2018-06-11 10:47:17 -07:00
Iris Scholten fe505ed00f Add a yield node immediately after a clicked funcNode
Co-authored-by: Delmer Reed <delmer814+1@gmail.com>
2018-06-11 10:47:17 -07:00
Jared Scheib b3af9ace01 Type new dashboard actions 2018-06-08 19:51:40 -07:00
Jared Scheib 62d269e97b Add DefinitelyTyped for react-router-redux v4 2018-06-08 19:51:04 -07:00
Jared Scheib 3db24b982b Type new synchronous dashboard action creators 2018-06-08 19:01:17 -07:00
Jared Scheib c66c8dff2f Collapse spaces between dashboard types & actions for readability 2018-06-08 18:56:11 -07:00
Jared Scheib 2080c32185 Type remaining new fns in dashboard/utils/tempVars.ts 2018-06-08 18:48:58 -07:00
Jared Scheib dc912ab974 Create file for tempVars types, move tempVar types there, and update imports 2018-06-08 18:38:22 -07:00
Jared Scheib c15e137cb2 Type stripTempVar 2018-06-08 18:37:30 -07:00
lukevmorris 94980fa0e3
Provide a builder UI for a Flux Filter Node (#3615)
* Introduce FilterArgs as a seam

* Selecting a value adds to Script and Preview

* Hydrate FilterArgs dropdown from function body

* Functional operator selector

* Style polish

* Rename Filter/FilterPreview components

* Pull types into flux type file

* Derive Flux Filter UI state directly from AST

* Default func body

* Remove flicker when updating conditions

* Render a div when filter body isn't supported

* Base condition (true) is parseable

* Remove a test file if it doesn't have any tests

* Enable tslint and resolve errors

* Address other PR feedback

* Tests and improved parsing logic

* Add helper text when filter ui falls back to a textarea
2018-06-08 18:36:50 -07:00
Jared Scheib 0c00da2249 Rename & type generateURLQueriesFromTempVars 2018-06-08 18:30:47 -07:00
Jared Scheib 05129e8371 Move viewer unauthorized notification to tempvars section 2018-06-08 18:22:07 -07:00
Jared Scheib afc221e607 Delete obsolete DashboardsPage.js file left by merge 2018-06-08 18:20:41 -07:00
Jared Scheib 53a0f07d42 Remove obsolete comment 2018-06-08 18:20:25 -07:00
Deniz Kusefoglu c4bad5b0d1
Merge pull request #3604 from influxdata/bugfix/table-graph-series-name
Bugfix/table graph series name
2018-06-08 17:55:10 -07:00
ebb-tide d4b95675e5 Fix prettier error 2018-06-08 17:52:47 -07:00
nathan haugo d885ae27cf Update the name to fqi 2018-06-08 17:37:22 -07:00
Jared Scheib b122f43348 Prevent Viewer role from overriding temp vars from URL query 2018-06-08 17:31:21 -07:00
Jared Scheib ff1b758091 Fix dashboard switching & loading dashboard upon switching 2018-06-08 15:42:18 -07:00
Jared Scheib bab5a1e7bc Fix merge bug where temp vars selected action needed changed prop key 2018-06-08 15:40:59 -07:00
Andrew Watkins b7a199be4d Add test for SET_ACTIVE_CELL 2018-06-08 15:34:59 -07:00
Christopher Henn 260f8add4b
Ensure schema explorer copy button visible 2018-06-08 15:22:54 -07:00
Andrew Watkins 4287c573e4 Type dashboard test 2018-06-08 15:11:16 -07:00
Alex P 011351789c Use solid dashboard icon in dashboard switcher
Might have a minute usability boost
2018-06-08 14:41:50 -07:00
Alex P 7f84b3e2f5 Change source indicator to look more "databasey" 2018-06-08 14:41:32 -07:00
Alex P e5f53239b7 Move Time Machine into its own nav tab with "Flux Capacitor" icon 2018-06-08 14:41:16 -07:00
Alex P a5996f4190 Update icon font 2018-06-08 14:40:25 -07:00
Chris Henn 886da96d44
Merge pull request #3609 from influxdata/flux/cache-metaqueries
Preserve schema tree children open state
2018-06-08 14:30:34 -07:00
Chris Henn 0649fc8ab9
Merge pull request #3599 from influxdata/bugfix/kapacitor-form-alignment
Fix misaligned kapacitor form
2018-06-08 14:16:48 -07:00
Christopher Henn 093183890b
Preserve open state of schema tree children 2018-06-08 13:59:06 -07:00
Andrew Watkins 85a4dfa1c8 Remove linter comment 2018-06-08 13:51:33 -07:00
Andrew Watkins b9a22a14ab Convert dashboard test to ts 2018-06-08 13:51:11 -07:00
Christopher Henn df5efbc9f9
Group schema tree children in div 2018-06-08 13:28:29 -07:00
Brandon Farmer 5616ff9ec3
Merge pull request #3593 from influxdata/log-viewer/dynamic-message-width
Message column width changes with window size
2018-06-08 11:07:44 -07:00
Alex Paxton 5e5d49d6cc
Merge pull request #3598 from influxdata/flux/vertical-builder
Make Flux Builder Stack Vertically
2018-06-08 11:05:21 -07:00
Brandon Farmer 6987b660e5 Handle failing queries for log viewer 2018-06-08 10:49:42 -07:00
ebb-tide 057b062381 Remove unnecessary comment in TableGraph 2018-06-08 10:48:44 -07:00
Andrew Watkins 47327459fd Remove FeatureFlag from Flux Page 2018-06-08 10:44:06 -07:00
ebb-tide e1a105757e Add isGroupBy field to series that have groupby 2018-06-08 10:13:37 -07:00
Alex P 6fdc610f69 Refactor func args to use getters instead of ternary
Cleaning up the render function
2018-06-08 10:10:37 -07:00
Jared Scheib 969c21d776 Merge remote-tracking branch 'origin/master' into fix/tempvars_url_query 2018-06-07 18:05:13 -07:00
Brandon Farmer 5c56a9f82d Add indication if query is running 2018-06-07 16:38:13 -07:00
Christopher Henn 5bda9c4150
Fix misaligned kapacitor form 2018-06-07 16:36:48 -07:00
Alex P c71ddb3e6f Align func node tooltip contents horizontally 2018-06-07 16:22:12 -07:00
Chris Henn 0e9552f495
Merge pull request #3596 from influxdata/flux/limit-responses
Improved handling of large Flux query responses
2018-06-07 16:13:20 -07:00
Jared Scheib f2dbf20715 Make browser Back button work as expected in the context of url queries syncing
Replace rather than push browser history when syncing url queries.
2018-06-07 16:02:07 -07:00
Brandon Farmer 4eab5e5ed2 Selecting source is reflected in the dropdown 2018-06-07 15:43:41 -07:00
Jared Scheib 4526655b9b Clear and hydrate temp vars on switch dashboards
componentDidMount was the only place that hydrating and syncing was happening,
but the component did not re-mount when you use the dashboard switcher. So
the new React 16 componentDidUpdate life cycle method was an appropriate place
to detect if the dashboard had switched, rather than creating an event handler
for dashboard switching.
2018-06-07 15:40:34 -07:00
Jared Scheib f841932ea3 Get dashboards names for DashboardSwitcher
Refactor dashboards names into DashboardPage component state and
refresh names upon dashboard rename.
2018-06-07 15:35:05 -07:00
Jared Scheib 13c371eecf Remove obsolete comment 2018-06-07 15:29:04 -07:00
Alex P 419eb07b90 Position node tooltips to the right of the node 2018-06-07 15:08:39 -07:00
Alex P d77263011c Add connector line from unassigned FROM to following node 2018-06-07 14:54:37 -07:00
Andrew Watkins 34916b7f99
Merge pull request #3595 from influxdata/flux/char-error
Flux Page Error Robustness
2018-06-07 14:39:16 -07:00
Alex P 3a66f92114 Add connector dot to variables when they are assigned to queries 2018-06-07 14:37:42 -07:00
Christopher Henn c1d7333807
Increase max response limit 2018-06-07 14:32:54 -07:00
Christopher Henn 8f74d1f4b4
Improve scrolling performance in TimeMachineTable 2018-06-07 14:32:54 -07:00
Christopher Henn 0739c2f2ce
Only parse first 2MB of Flux query responses 2018-06-07 14:32:54 -07:00
Andrew Watkins 2ca649ab47 Fix updating twice 2018-06-07 14:19:43 -07:00
Andrew Watkins cf0c4579b0 Fix typing 2018-06-07 13:36:07 -07:00
Andrew Watkins 2914069ee5 Update AST debounce script typing change 2018-06-07 13:30:05 -07:00
Alex P d6059a63d8 Redesign flux builder to stack nodes vertically 2018-06-07 11:57:48 -07:00
Alex P 75ba68e22e Wrap body builder in fancy scrollbars 2018-06-07 11:57:25 -07:00
Andrew Watkins cd1b77eecc Add clickable gutter error 2018-06-07 11:18:37 -07:00
Brandon Farmer f69198cef3 Message column width changes with window size 2018-06-07 11:05:45 -07:00
Alex Paxton e2351e3b25
Merge pull request #3589 from influxdata/flux/explorer-polish
Flux Explorer Polish
2018-06-07 10:38:56 -07:00
Alex P 95fce636c2 Refactor to remove ternary 2018-06-07 10:03:01 -07:00
Alex P a0d1dca7e6 Replace icons in navbar with redesigned "outline" style icons 2018-06-06 17:27:22 -07:00
Iris Scholten 90180754fa Rebase onto changeset from #3527 to fix time ranges for unparseable queries
Convert ui/src/shared/data/timeRanges to typescript

Update type in timeRanges.ts to extend TimeRange type from src/types/query

Fix typo in buildCannedDashboardQuery

Update addTimeBoundsToRawText to use regex in its string matching checks instead of strings
2018-06-06 17:17:33 -07:00
Alex P 90a87e9356 Fix linter bug 2018-06-06 16:41:22 -07:00
Alex P ace4a047a2 Polish loading dots 2018-06-06 16:00:54 -07:00
Alex P b87d726d9a Merge branch 'master' into flux/explorer-polish 2018-06-06 15:51:44 -07:00
Alex P 5f806cb60d Randomize widths of skeleton loader blocks 2018-06-06 15:35:09 -07:00
Brandon Farmer 8ca0a6f1e4
Merge pull request #3588 from influxdata/log-viewer/filtering
Log viewer/filtering
2018-06-06 15:33:11 -07:00
Brandon Farmer 55b58a8e39 Allow tags to be filtered with regex 2018-06-06 15:10:58 -07:00
Alex P a578ffae29 Update styles 2018-06-06 14:43:37 -07:00
Alex P 2513453743 Change classnames to be more BEM 2018-06-06 14:43:31 -07:00
Alex P ce7f9c52ad Wrap tag values count in div 2018-06-06 14:43:03 -07:00
Alex P a50e9e9b3e Make search inputs smaller 2018-06-06 14:42:40 -07:00
Jared Scheib 929ceb3b97 Fix source maps to exactly reflect code instead of es5 transpilation 2018-06-06 14:15:59 -07:00
Iris Scholten 4cc0c93fd2
Merge pull request #3575 from influxdata/ifql/copy-paste-schema
flux/Copy to clipboard in schema explorer
2018-06-06 14:14:43 -07:00
Brandon Farmer 9abafe1dc2 Basic == and != filtering for logs
Co-authored-by: Delmer Reed<delmer814+1@gmail.com>
2018-06-06 13:35:39 -07:00
Iris Scholten 68b9edec8a Rename copy functions for clarity 2018-06-06 13:31:45 -07:00
Iris Scholten 23bed0cb1b Create a notificationAction type to be used as notify's type 2018-06-06 13:28:22 -07:00
Chris Henn 694ecd2971
Merge pull request #3583 from influxdata/flux/autocomplete
Function / Param specific autocomplete
2018-06-06 13:20:03 -07:00
Alex Paxton 5c4ab41ff4
Merge pull request #3580 from influxdata/polish/log-icon
Replace log viewer icon with "log" icon
2018-06-06 13:06:01 -07:00
Christopher Henn 8aeba97319
Fix autocomplete typo 2018-06-06 13:04:25 -07:00
Christopher Henn 11e2ebcdda
Don't insert newlines with default Flux script
Co-authored-by: Chris Henn <chris.henn@influxdata.com>
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
2018-06-06 13:04:25 -07:00
Christopher Henn 815597c069
Improve function specific autocomplete
Co-authored-by: Chris Henn <chris.henn@influxdata.com>
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
2018-06-06 13:04:24 -07:00
Christopher Henn 0efda40a47
Remove unnecessary CodeMirror addon code
Co-authored-by: Chris Henn <chris.henn@influxdata.com>
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
2018-06-06 13:04:24 -07:00
Christopher Henn 7187f64d4c
Use server-provided completion suggestions
Co-authored-by: Chris Henn <chris.henn@influxdata.com>
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
2018-06-06 13:04:24 -07:00
Christopher Henn 1bcd89151a
Display autocomplete hints on Ctrl-Space only
...as opposed to on every key up.

Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Chris Henn <chris.henn@influxdata.com>
2018-06-06 13:04:24 -07:00
Alex P 1791e4ec53 Merge branch 'master' into logs-viewer/filter-bar 2018-06-06 11:34:27 -07:00
Alex P 68c670c979 Complete editable filter interaction 2018-06-06 11:28:56 -07:00
Alex P c40385dc5d Replace log viewer icon with "log" icon 2018-06-06 10:50:42 -07:00
Jared Scheib dd8dfc56c9
Merge pull request #3574 from influxdata/fix/webpack_sourcemaps
Fix source maps to exactly reflect code instead of es5 transpilation
2018-06-05 16:53:34 -07:00
Iris Scholten 9b4af1a23e Add copy to clipboard to Tag value list items 2018-06-05 16:31:25 -07:00
Iris Scholten 99cc5e4135 Add copy to clipboard to tag list items 2018-06-05 16:19:41 -07:00
Iris Scholten 08388af19b Update styles for copy to clipboard
Co-authored-by: Alex Paxton <thealexpaxton@gmail.com>
2018-06-05 15:16:31 -07:00
Jared Scheib 04ef3ca5c3 Fix source maps to exactly reflect code instead of es5 transpilation 2018-06-05 14:37:12 -07:00
Iris Scholten f06c2e25c0 Send notification when copying to clipbaord 2018-06-05 14:24:56 -07:00
Alex P 46a2978483 Remove excess closure 2018-06-05 14:14:31 -07:00
Alex P b02bf2fc4d WIP Make filter blocks editable 2018-06-05 13:59:13 -07:00
Iris Scholten 809da1ab4d Refactor the filter logic into getter 2018-06-05 13:37:09 -07:00
Iris Scholten 245228b847 Create styles for copy in schema and stop click propagation 2018-06-05 13:31:26 -07:00
Iris Scholten cba5a9a4f8 Add copy and paste functionality to DatabaseListItem in IFQL schema 2018-06-05 11:15:48 -07:00
Chris Henn 9ac2ef09f0
Merge pull request #3571 from influxdata/flux/rename-everything
Rename all usage of "IFQL" to "Flux"
2018-06-05 11:11:44 -07:00
Christopher Henn 7a30b6fab8
Reorganize Flux apis and parsing 2018-06-05 10:57:20 -07:00
Andrew Watkins ed4a6f24e5
Change IFQL to Flux 2018-06-05 10:57:19 -07:00
Iris Scholten 6a85b87713 Fix error from clicking on an imported dashboard due to redux not being loaded with new dashboard 2018-06-05 10:41:24 -07:00
Iris Scholten 0f6c60329e Fix error when dashboard import does not contain template variables 2018-06-05 10:41:24 -07:00
Iris Scholten 2eea86707b Add notifications for exports 2018-06-05 10:41:24 -07:00
Iris Scholten 9b57919c90 Convert dashboard ui/src/dashboards/actions/index.js and ui/src/dashboards/utils/templateVariableQueryGenerator.js to typescript 2018-06-05 10:41:24 -07:00
Alex P 3aa08aa3ab Implement DragAndDrop in ImportDashboardOverlay
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
Co-authored-by: Alex Paxton <thealexpaxton@gmail.com>
2018-06-05 10:41:24 -07:00
Alex P b010e70d3a Revert commit 7338312 2018-06-05 10:41:24 -07:00
Alex P f23c7bf156 Remove unused state 2018-06-05 10:41:24 -07:00
Alex P f1cc1d85ce Polish styles of drag and drop component 2018-06-05 10:41:24 -07:00
Iris Scholten 3b6c973ee8 WIP Create DragAndDrop component
Co-authored-by: Alex Paxton <thealexpaxton@gmail.com>
2018-06-05 10:41:24 -07:00
Iris Scholten 44cef03127 Add meta section to the expored file for chronografVersion and any other future metadata 2018-06-05 10:41:24 -07:00
Iris Scholten 69762e8c6a Prevent the user from being able to import a file with invalid JSON or before a file is added 2018-06-05 10:41:24 -07:00
Iris Scholten b2aeacdd1a PrettyPrint dashboard export 2018-06-05 10:41:24 -07:00
Iris Scholten 337bdcc9c3 Send notifications for dashboard imports 2018-06-05 10:41:24 -07:00
Iris Scholten 701c30c356 Ensure only users with editor role or higher can import dashboard 2018-06-05 10:41:24 -07:00
Iris Scholten d126a85451 Add begining styles for dashboard imports 2018-06-05 10:41:24 -07:00
Iris Scholten 9bd84275eb Allow users to import Dashboard from file 2018-06-05 10:41:24 -07:00
Iris Scholten df4f174b47 Convert DashboardsHeader to typescript 2018-06-05 10:41:24 -07:00
Iris Scholten 2b6c7ed5d4 Convert DashboadsPage to typescript 2018-06-05 10:41:24 -07:00
Iris Scholten fa514945f0 Fix type errors 2018-06-05 10:41:24 -07:00
Alex P 3acd1a6dbc Remove bindActionCreators 2018-06-05 10:41:24 -07:00
Alex P ce22c25ab2 Fix type error with show overlay 2018-06-05 10:41:24 -07:00
Alex P a32f27ea75 Introduce ImportDashboardOverlay component 2018-06-05 10:41:24 -07:00
Alex P dfd153bb1a Introduce styles for overlay sub-components 2018-06-05 10:41:24 -07:00
Alex P 5e96f6424e Introduce generic overlay components 2018-06-05 10:41:24 -07:00
Alex P 53a610b247 Update styles of import dashboard button 2018-06-05 10:41:24 -07:00
Alex P 04eea50c24 Fix bug 2018-06-05 10:41:24 -07:00
Alex P 82eba200d3 Introduce styles for "Panel controls"
These are groups of controls that exist as a child of `.panel-heading`
Serves as a generic replacement for `.dashboards-page—actions`
2018-06-05 10:41:24 -07:00
Alex P 8e75ab6760 Convert component to TypeScript 2018-06-05 10:41:24 -07:00
Brandon Farmer aa4515daf3 Show histogram for log counts in log viewer 2018-06-05 10:41:24 -07:00
Iris Scholten 05ae1a5dc0 Allow viwer roles or higher to Export a dashboard 2018-06-05 10:40:44 -07:00
Iris Scholten 03528ffa3c Add ability to export a dashboard as a json file with chronografVersion 2018-06-05 10:40:44 -07:00
Iris Scholten 394e2b5569 Convert DashboardsTable to typescript 2018-06-05 10:40:44 -07:00
Alex Paxton 1952a485f6
Merge pull request #3570 from influxdata/logs-viewer/polish
Logs Viewer Polish
2018-06-05 10:39:43 -07:00
Alex P 4dfddd03e2 Add newline in stylesheet 2018-06-05 10:08:03 -07:00
Alex P 93c068797a Add clickable style and div 2018-06-05 09:59:58 -07:00
Alex P 2ae0029b43 Style hover state and cells 2018-06-05 09:59:44 -07:00
Alex P 0eaf5ccc09 Add return types 2018-06-05 09:58:35 -07:00