Commit Graph

83 Commits (e933f37e85f793b9fd2e8d135688f846adbbe73e)

Author SHA1 Message Date
Pavel Zavora 07bb7f8135 chjore: remove bindata installation from makefile 2022-04-05 14:19:58 +02:00
Pavel Zavora 993f4357c4 fix(dist): load UI resources using embed 2022-04-05 12:54:02 +02:00
Pavel Zavora acc867dd25 chore(ci): fix clean target 2022-04-05 10:04:40 +02:00
Pavel Zavora 367c9f1349 fix(protoboards): load resources using embed 2022-04-05 09:59:25 +02:00
Pavel Zavora 774637f872 fix(swagger): load swagger file using embed 2022-04-05 09:46:30 +02:00
Pavel Zavora 5e81fa867c chore(build): remove canned bindata generation 2022-04-05 09:26:35 +02:00
Pavel Zavora 67d3e87405 chore(ci): print go version in mod tidy 2022-04-04 15:40:25 +02:00
Pavel Zavora d2276137dd chore: improve error message 2022-04-04 15:40:25 +02:00
Pavel Zavora 8f60151df1 chore: improve error messages 2022-04-04 15:40:25 +02:00
Pavel Zavora 3266b59dc4 chore(server): check tidy modules and go file format in `make test` 2022-04-04 15:40:25 +02:00
tomklapka 08743e4a19
Cypress tests and e2e github action flow (#5896)
* test: welcome test, dashboard test, explore browser test

* test: snapshot testing

* feat: adding testing snapshots

* chore: update unmet peer dependency

* fix: name of dropdown toggle

* test: connecting to influxdb

* fix: remove unnecessary influxdb-onboarding.sh script.

* chore: updated go 1.17.1 for cypress tests

* refactor: remove unnecessary influxdb-onboarding command from Makefile

* refactor: remove unnecessary influxdb-onboarding command from circleci config

* test: initialising database by using environment properties (in Makefile)

* chore: fixing cypress tests

* test: deleting connection to influxd1

* tests: optimize build, reuse workspace

* tests: optimize build

* test: remove unused code

* fix:  remove unuse dashboard

* chore(e2e-pipeline): add pipeline for chrono cypress tests

* chore: run action on push

* chore: fix e2e pipeline

* chore: add yarn install

* chore: add log upload

* chore: show logs to see what is going on with chronograf

* chore: fix log cats

* chore: add sleep

* fix: chronograf run command

* chore(ui): regenerate yarn.lock after rebase

* test: welcome test, dashboard test, explore browser test

* test: snapshot testing

* feat: adding testing snapshots

* chore(e2e): local script for influxdb enterprise deployment

* chore(e2e): update cert-manager in actions pipeline

* chore: fix coredns issue

* chore: fix certmanager deployment

* test: welcome test, dashboard test, explore browser test

* test: snapshot testing

* feat: adding testing snapshots

* chore: update unmet peer dependency

* test(cypress): add cypress env, and commands

* test(cypress): add basic InfluxDB setup connection test

* fix: temporary commented out the file as it uses non existing functions

* test(cypress): add dashboard create, rename and delelete test

* test(cypress): add routes

* chore: regenerate yarn.lock

* chore: remove unused file

* chore: comment out code

* chore: comment out code

* fix: remove calling non-existent function

* fix: createConnection uses  unsafe SSL

* turns on flux

* test(cypress): rewritten Query Builder tests using _internal.monitor

* chore: yarn prettier

* fix: add missing custom window period

* fix: remove it.only

* Add flux-enable to a workflow file

* fix: github actions workflow file flux-enabled

* fix: force restart by deleing pod

* fix: restart a container to apply a new configmap

* fix: restart container

* chore: flux-enabled is now true by default

* fix: selecting correct elements

* chore: update e2e pipeline

* chore: add scheduled action run once a working day

* chore: remove commented code

* chore:  change file extenction to .ts and adjust code accordingly

* chore: pipeline fixes

* chore: clean up e2e:influxdb2 references

* fix: yarn installation, no risky changes in make clean

* chore: update changelog

Co-authored-by: Iszy-Ami <huyiktran@gmail.com>
Co-authored-by: Iszy-Ami <56554624+Iszy-Ami@users.noreply.github.com>
Co-authored-by: Robert Hajek <robert.hajek@gmail.com>
Co-authored-by: Pavel Zavora <pavel.zavora@bonitoo.io>
Co-authored-by: k3yi0 <definitelynotkeyio@gmail.com>
Co-authored-by: k3yi0 <97002262+k3yi0@users.noreply.github.com>
2022-03-25 09:27:29 +01:00
Pavel Zavora fd3813a332 chore: upgrade golang to 1.17.1 2021-09-28 12:54:19 +02:00
Pavel Zavora 3a112fca39 chore: remove tslint from CI lint 2021-03-09 07:47:10 +01:00
Pavel Zavora 764e55bbcb chore: repair build 2021-03-09 07:30:07 +01:00
xginn8 9664e080df
fix(build): fix up Makefile variable quoting for build (#5397)
Closes https://github.com/influxdata/chronograf/issues/5396

Signed-off-by: Matthew McGinn <mamcgi@gmail.com>
2020-02-21 09:08:41 -07:00
Bucky Schwarz 25152c5a3a fix: update the makefile to force make gen to work 2020-02-18 13:34:25 -08:00
greg linton 463f56a57a fix: don't use 'go list' to determine if a go application is installed 2020-02-12 10:32:39 -07:00
greg linton 69cf16a41d feat: add '/ping' route for simple health checksi
update makefile version
add note about dashboards api compatibility
2020-01-31 14:35:39 -07:00
Bucky Schwarz 46f8d51980 chore: pin go to latest minor version; make docker build process more robust 2019-11-21 15:37:02 -08:00
Brandon Farmer 71e6bd7382 Update chronograf version to 1.7.11 2019-05-20 14:31:04 -07:00
Brandon Farmer 944402e1a3 Use go modules, update flux 2019-04-11 16:14:36 -07:00
Nathan Haugo 6676d7aaaa
Update go and alpine versions (#4886)
* Update go and alpine versions

* Update changelog

* Work around go get issue

* Update the go-bindata path
2018-12-14 15:16:35 -08:00
Delmer e13fc0173d
Update version to 1.7.4 (#4883) 2018-12-12 16:21:04 -05:00
Deniz Kusefoglu 9924d577a5 Get protoboards from multistore if not able to find from ProtoboardsPath 2018-11-08 17:27:27 -08:00
Christopher Henn b85269589a Fix error when running `run-dev` after `clean` target 2018-08-01 11:56:26 -07:00
Christopher Henn af7186f96c Remove unused targets from Makefile 2018-08-01 11:56:26 -07:00
Christopher Henn ca947cfffd Clear cache before building production UI assets 2018-08-01 11:56:26 -07:00
Jared Scheib eb24ca59ca dev: add eslint + tslint + tsc make cmds & fail-fast lint in ci 2018-07-25 12:37:30 -07:00
nathan haugo 8c1862d8ae Update master to 1.7.0 and use bumpversion for makefile config instead of git tags 2018-07-23 15:53:48 -07:00
Brandon Farmer b4bd1a85c6 Increase go test timeout to avoid invalid failures 2018-06-18 01:02:44 -07:00
Brandon Farmer 83c3813d7e 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 421fa6e463 Add jslinting to Makefile 2018-03-23 11:08:06 -07:00
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