Commit Graph

51 Commits (451d4a9885d74f263999abe7763b2e716a2c6a83)

Author SHA1 Message Date
Andrew Watkins ecee66f4e2 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 ab9c63eb1b
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 323c7df5c3 Add chronoctl to Makefile
All usage information when no commands supplied
2018-02-09 10:30:02 -05:00
Edd Robinson d7dc7a4826 Switch jteeuwen/go-bindata for kevinburke/go-bindata 2018-02-08 14:55:07 +00:00
Chris Goller b97a015def 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 1d20169f3a Fix issue #2404: exported LDFLAGS causes build error in .jsdep 2017-11-30 23:38:06 +00:00
Andrew Watkins 498297f21b Put Chrony back 2017-11-27 10:13:02 -05:00
Chris Goller 83e1190976 Update Makefile 2017-11-17 15:51:10 -06:00
Chris Goller 36d9547d9a Add hot module reload to dev builds (make run-hmr) 2017-11-04 14:07:39 -05:00
Nathan L Smith 39ca84d691 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 283f6e7ec7 Update makefile tests to handle vendoring 2017-05-16 17:16:42 -05:00
Chris Goller 9d56d3f2ef Revert go-bindata to go get 2017-05-16 17:16:42 -05:00
Chris Goller ba30cff8d7 Update vendoring and makefile to remove gdm 2017-05-16 17:16:41 -05:00
Jared Scheib a36586c01e Make devs happy again 2017-04-20 16:36:10 -07:00
Jared Scheib 39e745c3e9 Make devs nervous 2017-04-17 13:51:04 -07:00
Jared Scheib 9df1630cf8 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 298a8c47e1.

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

* 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 959b387f61 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 af72d9b0e4ebe95be30e89b160f43eabaf0529ed

* 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 46b1a08aa5 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 6494ddd751 Update Makefile continuous build to restart chronograf 2017-02-19 12:22:16 -06:00
Chris Goller af50e96fe0 Fix Makefile go depends and add continuous build 2017-02-19 12:17:37 -06:00
Chris Goller 3eb7da2f1a Refactor Influx OSS users 2017-02-19 00:54:52 -06:00
Tim Raymond f0e8d0b3e8 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 cb1aadf49c Update Makefile and webpack to make builds incremental 2017-02-08 21:15:56 -06:00
Chris Goller d0c4d21724 Update Makefile to use yarn instead of npm install 2017-02-08 21:15:31 -06:00
gunnaraasen 58a2a82d52 Add X-Chronograf-Version header 2017-01-23 23:29:12 -08:00
Chris Goller b6a0d7c5cc 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 a4a7b4330b Update build to always remove the node_modules 2016-11-08 15:42:56 -06:00
Chris Goller 16c14521df Merge pull request #386 from influxdata/update-cli-options
Update cli options
2016-11-07 11:29:05 -06:00
Chris Goller cf4b6ebf32 Update Makefile to use default chronograf port 2016-11-07 11:10:47 -06:00
Chris Goller 7096e2ee70 Update layouts to not use UUIDs in name and only use filesystem 2016-11-07 10:10:26 -06:00
gunnaraasen 7e94012bf5 WIP 2016-11-03 15:50:34 -05:00
gunnaraasen 39d21014dc Add usage stats reporting 2016-10-28 14:34:55 -07:00
Chris Goller d1359c09b3 Refactor to remove autogenerated code. 2016-10-26 22:10:52 -05:00
Chris Goller 91eec23099 Update name to chronograf 2016-10-20 09:39:40 -05:00
Chris Goller 408f520bbb Update kapacitor endpoint to be scoped to sources 2016-10-04 12:49:12 -05:00
gunnaraasen 27ffaf4fcc Refactor the exploration store 2016-09-29 09:38:35 -04:00
Chris Goller f70bd552e7 Update swagger and mock to have optional URL field for data source 2016-09-23 17:14:53 -07:00
Chris Goller d56513c8fe 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 9683e277f7 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 6386f9a077 Update Makefile bindata to not use dev flag 2016-09-21 10:52:38 -07:00
Will Piers bcb6ec7960 Remove shared propTypes declarations and amend Makefile with dev server 2016-09-20 11:44:22 -07:00
Chris Goller 2304ee76a2 Fix asset serving for development mode
Signed-off-by: Andrew Watkins <watts@influxdb.com>
2016-09-19 13:45:05 -07:00
Chris Goller 4035130b80 Update build system for javascript/go asset packaging 2016-09-19 13:45:05 -07:00
Chris Goller 2d361e4fe8 Update the build instructions with more common practices 2016-09-19 13:45:05 -07:00
Chris Goller b9b0d4db08 Update bindata to be in dist. Use dev and debug for now 2016-09-19 13:45:05 -07:00
Chris Goller 840b00b4d0 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 b8d74706fa Update docker and makefile to use mrfusion 2016-09-16 15:47:38 -05:00
Chris Goller d074894440 Update Makefile to use assets 2016-09-16 13:51:01 -05:00
Chris Goller e24a16fa9f Update static assets to use ui/build 2016-09-16 13:47:58 -05:00
Chris Goller 9f0969751f Add simple static asset packaging.
Closes #5
2016-09-16 12:21:29 -05:00