Commit Graph

53 Commits (4bda9aeb41a24fccffbb3d8472a83f4cff8423e5)

Author SHA1 Message Date
Brandon Farmer 5f83bf59ed Add endpoints for ifql function suggestions
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
2018-03-29 16:01:01 -07:00
Andrew Watkins ee09aa5594 Add jslinting to Makefile 2018-03-23 11:08:06 -07:00
Andrew Watkins 956f664fc4 Make js tests run faster in our CI process
https://facebook.github.io/jest/docs/en/cli.html#runinband
2018-03-14 10:00:37 -07:00
Nathan Haugo 258d5e2de0 Merge pull request #2791 from influxdata/feature/user-cli-commands
Add chronoctl to build.py and Dockerfile
2018-02-12 12:14:06 -08:00
Michael Desa 93da5047f5 Add chronoctl to Makefile
All usage information when no commands supplied
2018-02-09 10:30:02 -05:00
Edd Robinson 7c11273755 Switch jteeuwen/go-bindata for kevinburke/go-bindata 2018-02-08 14:55:07 +00:00
Chris Goller fe2e2a865c Update Makefile to require go 1.8 for testing
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-12-19 10:13:46 -08:00
Adam S Levy f0b0aeba7b Fix issue #2404: exported LDFLAGS causes build error in .jsdep 2017-11-30 23:38:06 +00:00
Andrew Watkins da6218a1b0 Put Chrony back 2017-11-27 10:13:02 -05:00
Chris Goller 498c5d9b6c Update Makefile 2017-11-17 15:51:10 -06:00
Chris Goller 1bcf74e547 Add hot module reload to dev builds (make run-hmr) 2017-11-04 14:07:39 -05:00
Nathan L Smith 0e297de362 Change some remaining npm mentions to yarn
While `npm` is still installed as part of the build process, most of the
scripts and documentation should be using yarn.

Change `npm` to `yarn` where appropriate.

Signed-off-by: Nathan L Smith <smith@nlsmith.com>
2017-08-07 19:28:23 +00:00
Chris Goller f7f8698313 Update makefile tests to handle vendoring 2017-05-16 17:16:42 -05:00
Chris Goller a411b8e1d9 Revert go-bindata to go get 2017-05-16 17:16:42 -05:00
Chris Goller 9542347adf Update vendoring and makefile to remove gdm 2017-05-16 17:16:41 -05:00
Jared Scheib c968c70a27 Make devs happy again 2017-04-20 16:36:10 -07:00
Jared Scheib 8b605ca0e0 Make devs nervous 2017-04-17 13:51:04 -07:00
Jared Scheib ac4423a6fd Add new auth duration CLI option; add client heartbeat; fix logout (#1119)
* User can now set oauth cookie session duration via the CLI to any duration or to expire on browser close

* Refactor GET 'me' into heartbeat at constant interval

* Add ping route to all routes

* Add /chronograf/v1/ping endpoint for server status

* Refactor cookie generation to use an interface

* WIP adding refreshable tokens

* Add reminder to review index.js Login error handling

* Refactor Authenticator interface to accommodate cookie duration and logout delay

* Update make run-dev to be more TICKStack compliant

* Remove heartbeat/logout duration from authentication

* WIP Refactor tests to accommodate cookie and auth refactor

* Update oauth2 tests to newly refactored design

* Update oauth provider tests

* Remove unused oauth2/consts.go

* Move authentication middleware to server package

* Fix authentication comment

* Update authenication documentation to mention AUTH_DURATION

* Update /chronograf/v1/ping to simply return 204

* Fix Makefile run-dev target

* Remove spurious ping route

* Update auth docs to clarify authentication duration

* Revert "Refactor GET 'me' into heartbeat at constant interval"

This reverts commit 298a8c47e1431720d9bd97a9cb853744f04501a3.

Conflicts:
ui/src/index.js

* Add auth test for JWT signing method

* Add comments for why coverage isn't written for some areas of jwt code

* Update auth docs to explicitly mention how to require re-auth for all users on server restart

* Add Duration to Validation interface for Tokens

* Make auth duration of zero yield a everlasting token

* Revert "Revert "Refactor GET 'me' into heartbeat at constant interval""

This reverts commit b4773c15afe4fcd227ad88aa9d5686beb6b0a6cd.

* Rename http status constants and add FORBIDDEN

* Heartbeat only when logged in, notify user if heartbeat fails

* Update changelog

* Fix minor word semantics

* Update oauth2 tests to be in the oauth2_test package

* Add check at compile time that JWT implements Tokenizer

* Rename CookieMux to AuthMux for consistency with earlier refactor

* Fix logout middleware

* Fix logout button not showing due to obsolete data shape expectations

* Update changelog

* Fix proptypes for logout button data shape in SideNav
2017-04-06 11:40:57 -07:00
Jared Scheib b90ff76670 Introduce ability to edit a dashboard cell
* Correct documentation for dashboards

* Exclude .git and use 'make run-dev' in 'make continuous'

* Fix dashboard deletion bug where id serialization was wrong

* Commence creation of overlay technology, add autoRefresh props to DashboardPage

* Enhance overlay magnitude of overlay technology

* Add confirm buttons to overlay technology

* Refactor ResizeContainer to accommodate arbitrary containers

* Refactor ResizeContainer to require explicit ResizeTop and ResizeBottom for clarity

* Add markup and styles for OverlayControls

* CellEditorOverlay needs a larger minimum bottom height to accommodate more things

* Revert Visualization to not use ResizeTop or flex-box

* Remove TODO and move to issue

* Refactor CellEditorOverlay to allow selection of graph type

* Style Overlay controls, move confirm buttons to own stylesheet

* Fix toggle buttons in overlay so active is actually active

* Block user-select on a few UI items

* Update cell query shape to support Visualization and LayoutRenderer

* Code cleanup

* Repair fixture schema; update props for affected components

* Wired up selectedGraphType and activeQueryID in CellEditorOverlay

* Wire up chooseMeasurements in QueryBuilder

Pass queryActions into QueryBuilder so that DataExplorer can provide
actionCreators and CellEditorOverlay can provide functions that
modify its component state

* semicolon cleanup

* Bind all queryModifier actions to component state with a stateReducer

* Overlay Technologies™ can add and delete a query from a cell

* Semicolon cleanup

* Add conversion of InfluxQL to QueryConfig for dashboards

* Update go deps to add influxdb at af72d9b0e4

* Updated docs for dashboard query config

* Update CHANGELOG to mention InfluxQL to QueryConfig

* Make reducer’s name more specific for clarity

* Remove 'table' as graphType

* Make graph renaming prettier

* Remove duplicate DashboardQuery in swagger.json

* Fix swagger to include name and links for Cell

* Refactor CellEditorOverlay to enable graph type selection

* Add link.self to all Dashboard cells; add bolt migrations

* Make dash graph names only hover on contents

* Consolidate timeRange format patterns, clean up

* Add cell endpoints to dashboards

* Include Line + Stat in Visualization Type list

* Add cell link to dashboards

* Enable step plot and stacked graph in Visualization

* Overlay Technologies are summonable and dismissable

* OverlayTechnologies saves changes to a cell

* Convert NameableGraph to createClass for state

This was converted from a pure function to encapsulate the state of the
buttons. An attempt was made previously to store this state in Redux,
but it proved too convoluted with the current state of the reducers for
cells and dashboards. Another effort must take place to separate a cell
reducer to manage the state of an individual cell in Redux in order for
this state to be sanely kept in Redux as well.

For the time being, this state is being kept in the component for the
sake of expeditiousness, since this is needed for Dashboards to be
released. A refactor of this will occur later.

* Cells should contain a links key in server response

* Clean up console logs

* Use live data instead of a cellQuery fixture

* Update docs for dashboard creation

* DB and RP are already present in the Command field

* Fix LayoutRenderer’s understanding of query schema

* Return a new object, rather that mutate in place

* Visualization doesn’t use activeQueryID

* Selected is an object, not a string

* QueryBuilder refactored to use query index instead of query id

* CellEditorOverlay refactored to use query index instead of query id

* ConfirmButtons doesn’t need to act on an item

* Rename functions to follow convention

* Queries are no longer guaranteed to have ids

* Omit WHERE and GROUP BY clauses when saving query

* Select new query on add in OverlayTechnologies

* Add click outside to dash graph menu, style menu also

* Change context menu from ... to a caret

More consistent with the rest of the UI, better affordance

* Hide graph context menu in presentation mode

Don’t want people editing a dashboard from presentation mode

* Move graph refreshing spinner so it does not overlap with context menu

* Wire up Cell Menu to Overlay Technologies

* Correct empty dashboard type

* Refactor dashboard spec fixtures

* Test syncDashboardCell reducer

* Remove Delete button from graph dropdown menu (for now)

* Update changelog
2017-03-23 17:12:33 -07:00
Chris Goller f60a358751 Merge branch 'master' into feature/#54-tr-enterprise-client
Conflicts:
	Makefile
	chronograf.go
	server/routes.go
	server/users.go
2017-02-23 23:26:09 -06:00
Chris Goller c372a393a1 Update Makefile continuous build to restart chronograf 2017-02-19 12:22:16 -06:00
Chris Goller a173275cb3 Fix Makefile go depends and add continuous build 2017-02-19 12:17:37 -06:00
Chris Goller 74522fd030 Refactor Influx OSS users 2017-02-19 00:54:52 -06:00
Tim Raymond 1f44aaa510 Update Makefile for ctags
Adds a `make ctags` command to generate Go ctags for editors
2017-02-14 16:18:41 -05:00
Chris Goller 3414012d7c Update Makefile and webpack to make builds incremental 2017-02-08 21:15:56 -06:00
Chris Goller 84a5397d4e Update Makefile to use yarn instead of npm install 2017-02-08 21:15:31 -06:00
gunnaraasen 4bef66aff7 Add X-Chronograf-Version header 2017-01-23 23:29:12 -08:00
Chris Goller 1f82577610 Add layouts as bindata in case chronograf run as a single-file binary
Using my existing layout chaining, I added layouts wrapped in
go-bindata as the last option for loading layouts.  This means
that the data store is preferred over file system over bindata.

With this functionality, we can simply distribute the single-file
binary.
2016-11-14 19:07:38 -06:00
Chris Goller 10f39ba5dd Update build to always remove the node_modules 2016-11-08 15:42:56 -06:00
Chris Goller 0d1579e4b9 Merge pull request #386 from influxdata/update-cli-options
Update cli options
2016-11-07 11:29:05 -06:00
Chris Goller 93799c289b Update Makefile to use default chronograf port 2016-11-07 11:10:47 -06:00
Chris Goller 6539839113 Update layouts to not use UUIDs in name and only use filesystem 2016-11-07 10:10:26 -06:00
gunnaraasen 95416b6076 WIP 2016-11-03 15:50:34 -05:00
gunnaraasen b85a5be094 Add usage stats reporting 2016-10-28 14:34:55 -07:00
Chris Goller 12348d72cb Refactor to remove autogenerated code. 2016-10-26 22:10:52 -05:00
Chris Goller 8911b0fd78 Update name to chronograf 2016-10-20 09:39:40 -05:00
Chris Goller 5f24c1994e Update kapacitor endpoint to be scoped to sources 2016-10-04 12:49:12 -05:00
gunnaraasen e45dbdc630 Refactor the exploration store 2016-09-29 09:38:35 -04:00
Chris Goller f4a69f137d Update swagger and mock to have optional URL field for data source 2016-09-23 17:14:53 -07:00
Chris Goller c680cf8596 Update test to use channels to prevent race.
Signed-off-by: Nathaniel Cook <nvcook42@gmail.com>
2016-09-22 14:15:46 -07:00
Andrew Watkins 105b800ecb Remove the race flag in the build to unblock the front end team.
Per @goller's instruction
2016-09-22 11:44:20 -07:00
Chris Goller 2bf0651ccb Update Makefile bindata to not use dev flag 2016-09-21 10:52:38 -07:00
Will Piers e5d9b02382 Remove shared propTypes declarations and amend Makefile with dev server 2016-09-20 11:44:22 -07:00
Chris Goller d8c42accc9 Fix asset serving for development mode
Signed-off-by: Andrew Watkins <watts@influxdb.com>
2016-09-19 13:45:05 -07:00
Chris Goller 977c9b6b78 Update build system for javascript/go asset packaging 2016-09-19 13:45:05 -07:00
Chris Goller da7bcec399 Update the build instructions with more common practices 2016-09-19 13:45:05 -07:00
Chris Goller a19a7394e3 Update bindata to be in dist. Use dev and debug for now 2016-09-19 13:45:05 -07:00
Chris Goller 3e56f45b90 Update circle and makefile to build and test everything.
Signed-off-by: Will Piers <wpiers0405@gmail.com>
2016-09-19 13:45:05 -07:00
Chris Goller b5f282271b Update docker and makefile to use mrfusion 2016-09-16 15:47:38 -05:00
Chris Goller 360d6ef577 Update Makefile to use assets 2016-09-16 13:51:01 -05:00