Commit Graph

157 Commits (36faf7268eeec8dc316e1aaa58528df7605e4cd5)

Author SHA1 Message Date
Deniz Kusefoglu d2583c9719 bump client version, and use updated client template types to create template 2019-03-05 21:41:37 -08:00
Andrew Watkins 3190869d5e
fix: flux imports in tasks (#12366)
* WIP

* fix: task page create
2019-03-05 13:32:04 -08:00
Delmer cc852fff7b
chore(ui/client): update ui client to 0.2.21 (#12339)
* chore(client/update): update client to 0.2.21
2019-03-04 17:32:23 -05:00
Andrew Watkins 5ea3030878
test(e2e/de): function selection (#12253)
* wip(e2e/de): flux function selector

* test(e2e/de): add custom matcher for strings removed of formatting

* chore(e2e/de): rename custom matcher command

* chore: rename assertion command to fluxEqual

* fix: remove redundant lint step

* chore: change run script

* fix merge
2019-02-28 15:05:13 -08:00
Palak Bhojani 9de809b4ad Update logs to use api call instead of dummy data 2019-02-27 11:25:40 -08:00
Iris Scholten 916d17a273 feat(ui): Clone a task's labels when cloning the task
Move task cloning logic to external client library
2019-02-22 15:47:22 -08:00
Andrew Watkins 08d092dafd chore: change cypress npm run script 2019-02-21 17:33:58 -08:00
Andrew Watkins cb3f2e7644 chore(jest): fix deprecations warning 2019-02-21 17:33:58 -08:00
Christopher Henn a499a8b0d9 Enable adding a description to a telegraf config 2019-02-21 14:06:04 -08:00
Christopher Henn 2e42203f07 Make npm less noisy 2019-02-20 18:15:09 -08:00
Christopher Henn e2fbe8f851 Migrate from TSLint to ESLint
TSLint has been deprecated by its maintainers in favor of eslint.

This commit adds ESLint to our project with a config that is comparable
to our previous TSLint config.

ESLint provides a much more extensive set of linting rules; we may wish
to investigate enabling more of these rules in the future.
2019-02-20 18:15:09 -08:00
Iris Scholten eccee09a20 update client libarary dependency for dashboard cloning 2019-02-20 16:26:56 -08:00
Daniel Campbell 39550002d2
Clockface/spinners (#12025)
* Bump Clockface Version

* Remove Local Components

* Update Imports

* update tests & snapshots
2019-02-20 15:49:23 -08:00
Alirie Gray 9ccb785747 Add ability to update a variable 2019-02-20 12:04:16 -08:00
Iris Scholten f9aab0f2b8 feat(ui): Add custom time range in time range dropdown
Co-authored-by: Daniel Campbell <metalwhirlwind@gmail.com>
2019-02-19 16:43:13 -08:00
Michael Desa 6a8a1fce32 feat(kv): implemented key/value store with end-to-end integration tests
* feat(kv:inmem:bolt): implement user service in a kv

* refactor(kv): use consistent func receiver name

* feat(kv): add initial basic auth service

* refactor(passwords): move auth interface into own file

* refactor(passwords): rename basic auth files to passwords

* refactor(passwords): rename from BasicAuth to Passwords

* refactor(kv): copy bolt user test into kv

Co-authored-by: Michael Desa <mjdesa@gmail.com>

* feat(kv): add inmem testing to kv store

* fix(kv): remove extra user index initialization

* feat(kv): attempt at making errors nice

* fix(http): return not found error if filter is invalid

* fix(http): s/platform/influxdb/ for user service

* fix(http): s/platform/influxdb/ for user service

* feat(kv): initial port of telegraf configs to kv

* feat(kv): first pass at migrating bolt org service to kv

* feat(kv): first pass at bucket service

* feat(kv): first pass at migrating kvlog to kv package

* feat(kv): add resource op logs

* feat(kv): first pass at user resource mapping migration

* feat(kv): add urm usage to bucket and org services

* feat(kv): first pass at kv authz service

* feat(kv): add cascading auth delete for users

* feat(kv): first pass d authorizer.OrganizationService in kv

* feat(cmd/influxd/launcher): user kv services where appropriate

* fix(kv): initialize authorizations

* fix(influxdb): use same buckets while slowly migrating stuff

* fix(kv): make staticcheck pass

* feat(kv): add dashboards to kv

review: make suggestions from pr review

fix: use common bucket names for bolt/kv stores

* test(kv): add complete password test coverage

* chore(kv): fixes for staticcheck

* feat(kv): implement labels generically on kv

* feat(kv): implement macro service

* feat(kv): add source service

* feat(kv): add session service

* feat(kv): add kv secret service

* refactor(kv): update telegraf and urm with error messages

* feat(kv): add lookup service

* feat(kv): add kv onboarding service

* refactor(kv): update telegraf to avoid repetition

* feat(cmd/influxd): use kv lookup service

* feat(kv): add telegraf to lookup service

* feat(cmd/influxd): use kv telegraf service

* feat(kv): initial port of scrapers in bolt to kv

* feat(kv): update scraper error messaging

* feat(cmd/influxd): add kv scraper

* feat(kv): add inmem backend tests

* refactor(kv): copy paste errors

* refactor(kv): add code to password errors

* fix(testing): update error messages for incorrect passwords

* feat(kv:inmem:bolt): implement user service in a kv

* refactor(kv): use consistent func receiver name

* refactor(kv): copy bolt user test into kv

Co-authored-by: Michael Desa <mjdesa@gmail.com>

* feat(kv): add inmem testing to kv store

* fix(kv): remove extra user index initialization

* feat(kv): attempt at making errors nice

* fix(http): return not found error if filter is invalid

* fix(http): s/platform/influxdb/ for user service

* feat(kv): first pass at migrating bolt org service to kv

* feat(kv): first pass at bucket service

* feat(kv): first pass at migrating kvlog to kv package

* feat(kv): add resource op logs

* feat(kv): first pass at user resource mapping migration

* feat(kv): add urm usage to bucket and org services

* feat(kv): first pass at kv authz service

* feat(kv): add cascading auth delete for users

* feat(kv): first pass d authorizer.OrganizationService in kv

* feat(cmd/influxd/launcher): user kv services where appropriate

* feat(kv): add initial basic auth service

* refactor(passwords): move auth interface into own file

* refactor(passwords): rename basic auth files to passwords

* fix(http): s/platform/influxdb/ for user service

* fix(kv): initialize authorizations

* fix(influxdb): use same buckets while slowly migrating stuff

* fix(kv): make staticcheck pass

* feat(kv): add dashboards to kv

review: make suggestions from pr review

fix: use common bucket names for bolt/kv stores

* feat(kv): implement labels generically on kv

* refactor(passwords): rename from BasicAuth to Passwords

* test(kv): add complete password test coverage

* chore(kv): fixes for staticcheck

* feat(kv): implement macro service

* feat(kv): add source service

* feat(kv): add session service

* feat(kv): initial port of telegraf configs to kv

* feat(kv): initial port of scrapers in bolt to kv

* feat(kv): add kv secret service

* refactor(kv): update telegraf and urm with error messages

* feat(kv): add lookup service

* feat(kv): add kv onboarding service

* refactor(kv): update telegraf to avoid repetition

* feat(cmd/influxd): use kv lookup service

* feat(kv): add telegraf to lookup service

* feat(cmd/influxd): use kv telegraf service

* feat(kv): update scraper error messaging

* feat(cmd/influxd): add kv scraper

* feat(kv): add inmem backend tests

* refactor(kv): copy paste errors

* refactor(kv): add code to password errors

* fix(testing): update error messages for incorrect passwords

* feat(http): initial support for flushing all key/values from kv store

* feat(kv): rename macro to variable

* feat(cmd/influxd/launcher): user kv services where appropriate

* refactor(passwords): rename from BasicAuth to Passwords

* feat(kv): implement macro service

* test(ui): introduce cypress

* test(ui): introduce first typescript test

* test(ui/e2e): add ci job

* chore: update gitignore to ignore test outputs

* feat(inmem): in memory influxdb

* test(e2e): adding pinger that checks if influxdb is alive

* hackathon

* hack

* hack

* hack

* hack

* Revert "feat(inmem): in memory influxdb"

This reverts commit 30ddf032003e704643b07ce80df61c3299ea7295.

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* chore: lint ignore node_modules

* hack

* hack

* hack

* add user and flush

* hack

* remove unused vars

* hack

* hack

* ci(circle): prefix e2e artifacts

* change test to testid

* update cypress

* moar testid

* fix npm warnings

* remove absolte path

* chore(ci): remove /home/circleci proto mkdir hack

* wip: crud resources e2e

* fix(inmem): use inmem kv store services

* test(dashboard): add first dashboard crud tests

* hack

* undo hack

* fix: use response from setup for orgID

* chore: wip

* add convenience getByTitle function

* test(e2e): ui can create orgs

* test(e2e): add test for org deletion and update

* test(e2e): introduce task creation test

* test(e2e): create and update of buckets on org view

* chore: move types to declaration file

* chore: use route fixture in dashboard tests

* chore(ci): hack back

* test(ui): update snapshots

* chore: package-lock

* chore: remove macros

* fix: launcher rebase issues

* fix: compile errors

* fix: compile errors

* feat(cmd/influxdb): add explicit testing, asset-path, and store flags

Co-authored-by: Andrew Watkins <watts@influxdb.com>

* fix(cmd/influxd): set default HTTP handler and flags

Co-authored-by: Andrew Watkins <watts@influxdb.com>

* build(Makefile): add run-e2e and PHONY

* feat(kv:inmem:bolt): implement user service in a kv

* refactor(kv): use consistent func receiver name

* feat(kv): add initial basic auth service

* refactor(passwords): move auth interface into own file

* refactor(passwords): rename basic auth files to passwords

* refactor(passwords): rename from BasicAuth to Passwords

* refactor(kv): copy bolt user test into kv

Co-authored-by: Michael Desa <mjdesa@gmail.com>

* feat(kv): add inmem testing to kv store

* fix(kv): remove extra user index initialization

* feat(kv): attempt at making errors nice

* fix(http): return not found error if filter is invalid

* fix(http): s/platform/influxdb/ for user service

* fix(http): s/platform/influxdb/ for user service

* feat(kv): initial port of telegraf configs to kv

* feat(kv): initial port of scrapers in bolt to kv

* feat(kv): first pass at migrating bolt org service to kv

* feat(kv): first pass at bucket service

* feat(kv): first pass at migrating kvlog to kv package

* feat(kv): add resource op logs

* feat(kv): first pass at user resource mapping migration

* feat(kv): add urm usage to bucket and org services

* feat(kv): first pass at kv authz service

* feat(kv): add cascading auth delete for users

* feat(kv): first pass d authorizer.OrganizationService in kv

* feat(cmd/influxd/launcher): user kv services where appropriate

* fix(kv): initialize authorizations

* fix(influxdb): use same buckets while slowly migrating stuff

* fix(kv): make staticcheck pass

* feat(kv): add dashboards to kv

review: make suggestions from pr review

fix: use common bucket names for bolt/kv stores

* test(kv): add complete password test coverage

* chore(kv): fixes for staticcheck

* feat(kv): implement labels generically on kv

* feat(kv): implement macro service

* feat(kv): add source service

* feat(kv): add session service

* feat(kv): add kv secret service

* refactor(kv): update telegraf and urm with error messages

* feat(kv): add lookup service

* feat(kv): add kv onboarding service

* refactor(kv): update telegraf to avoid repetition

* feat(cmd/influxd): use kv lookup service

* feat(kv): add telegraf to lookup service

* feat(cmd/influxd): use kv telegraf service

* feat(kv): update scraper error messaging

* feat(cmd/influxd): add kv scraper

* feat(kv): add inmem backend tests

* refactor(kv): copy paste errors

* refactor(kv): add code to password errors

* fix(testing): update error messages for incorrect passwords

* feat(kv): rename macro to variable

* refactor(kv): auth/bucket/org/user unique checks return errors now

* feat(inmem): add way to get all bucket names from store

* feat(inmem): Buckets to return slice of bytes rather than strings

* feat(inmem): add locks around Buckets to avoid races

* feat(cmd/influx): check for unauthorized error in wrapCheckSetup

* chore(e2e): add video and screenshot artifcats to gitignore

* docs(ci): add build instructions for e2e tests

* feat(kv): add id lookup for authorized resources
2019-02-19 17:47:19 -06:00
Deniz Kusefoglu 9a14e848d3 Update ts-jest to 24.0.0 2019-02-19 12:57:49 -08:00
Deniz Kusefoglu 3177f20aca upgrade npm version to 6.8 2019-02-19 12:51:54 -08:00
Deniz Kusefoglu b8774577a9
Merge pull request #11976 from influxdata/fix/npm-vulnerabilities
Fix package vulnerabilities
2019-02-19 12:35:54 -08:00
Christopher Henn 6a52e2758e Add support for controlled domain mode to Plot
Adds support for controlled `xDomain` and `yDomain` props to the `Plot`
component, which allows a parent component to override the default
domains that a `Plot` uses. This will eventually support a user
specified option for the histogram.

Also does quite a bit of general cleanup:

- Adds comments to many utility methods
- Avoids unnecessary reducer computations on initial `Plot` render
- Extracts layer registration code into a `useLayer` hook
- Renames the `defaults` layer to the more descriptive `baseLayer`
- Uses more explicit types for scales
2019-02-19 10:44:36 -08:00
Deniz Kusefoglu 379cad8687 Perform npm audit 2019-02-19 10:19:02 -08:00
Alirie Gray 298c1adc92 Rename Macro to Variable in generated client imports 2019-02-14 14:54:43 -08:00
Daniel Campbell f738a31436
Clockface/package slide toggle (#11900)
* install new version of clockface

* remove internal copy of component

* update imports

* replace Clockface type imports

* update snapshot

* update ComponentColor imports
2019-02-14 13:45:51 -08:00
Alirie Gray bd1e835238 Add ability to create a new template variable 2019-02-13 20:34:03 -08:00
alexpaxton f7b931205a
Clockface/package buttons (#11805)
* Add Clockface dependency

* Import clockface styles

* Remove existing Button component

* Update references to Old Button with Button from package

* Update snapshot
2019-02-12 10:06:58 -08:00
Christopher Henn 93ccd1d182 Implement histogram visualization type 2019-02-11 17:23:21 -08:00
Iris Scholten e04e721bf5 feat(ui): Add the ability to name a scraper target 2019-02-11 17:04:29 -08:00
Palak Bhojani 8cb22ac3e1 Update client library dependency 2019-02-07 10:10:20 -08:00
Iris Scholten 3b322359a9 Update the client library dependency 2019-02-06 18:31:59 -08:00
Brandon Farmer 139ac34f4d Update client to 0.2.1 2019-02-06 16:24:16 -08:00
Christopher Henn eb91be8090 Upgrade React to 16.8.0 2019-02-06 10:18:42 -08:00
Brandon Farmer 3992fa9d54 Remove typescript client generation
- All api calls are now through the client or raw XMLHTTPRequest
2019-02-05 17:13:57 -08:00
Brandon Farmer cb30f50e14 Update dashboard api calls to use client 2019-02-05 16:20:42 -08:00
Brandon Farmer c8cc898a11 Move ast call to client library 2019-02-05 14:28:19 -08:00
Brandon Farmer 7b27c92a57 Move proto api to client library 2019-02-05 13:41:19 -08:00
Brandon Farmer 4893c5f451 Move cells api calls to client 2019-02-05 13:15:22 -08:00
Brandon Farmer 5da36190d9 Switch sources api calls to client 2019-02-05 11:29:01 -08:00
alexpaxton cb70b8eacb
Make Fancy Scrollbars Fancier (#11661)
* WIP

* Goodbye yarn

* Use latest scrollbar package

* Use default colors

* Expose custom thumb color props

* Use latest package

* Remove unused package

* Update test snapshots

* Organize exernal styles into separate section
2019-02-04 13:01:32 -08:00
Brandon Farmer 06b2d0033d Move setup api calls to client library 2019-02-04 09:24:55 -08:00
Brandon Farmer 1aa5c471ee Move telegraf configs api to client library 2019-01-31 11:09:36 -08:00
Brandon Farmer 2e4f5f431a Switch authorizations to use external client library 2019-01-25 14:24:37 -08:00
Andrew Watkins 854b2a43eb
test(ui): component integration testing w/ mock redux store (#11577)
* wip: introduce connected async component test

* test(query-builder): mock findBuckets

* test(ui): add ability to pass arbitrary state to renderWithRedux

* test(ui/queryBuilder): click bucket and tag

* test(ui/queryBuilder): use regex matchers to query all

* test(ui/queryBuilder): it can click a tag value

* chore: change id to ID

* chore: move QueryBuilderFetcher

* test(ui/queryBuilder): try waiting for dropdown-items

* test(ui/queryBuilder): move initial state out of beforeEach

* test(ui/queryBuilder): get by bucket name

* wip

* test: put back to default

* test: remove await
2019-01-25 14:08:57 -08:00
Brandon Farmer 83b22f5576 Switch tasks to use external client library 2019-01-24 14:27:08 -08:00
Brandon Farmer 2bbee05c37 Move authentication to external client 2019-01-24 12:08:32 -08:00
Christopher Henn 9dcb6ca4d5 Display latest commit hash in UI 2019-01-24 08:55:13 -08:00
Brandon Farmer c798655b6d Set node and npm version requirements for project 2019-01-18 09:51:42 -08:00
Christopher Henn 01a836a995 Replace node-sass dep with sass 2019-01-08 09:42:32 -08:00
Christopher Henn 2770ae5e7b Implement new visual query builder designs 2019-01-07 10:58:18 -08:00
Brandon Farmer f06b258a13 Add verify step for line protocol onboarding 2019-01-03 09:57:39 -08:00
Christopher Henn 89e6851812 Upgrade Parcel to 1.11.0 2019-01-03 09:41:59 -08:00
Deniz Kusefoglu a0893b4ac5 Create different loading, success and error state for line protocol uploads
Co-authored-by: Palak Bhojani <palak@influxdata.com>
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-12-07 17:06:16 -08:00
Andrew Watkins f4500008a3
feat(account-settings): username view (#1752)
* Move Account page to separate dir

* Add account snapshot tests

* Allow console logs in tests

* Add data-test attribute to Input

* Add username to Settings component
2018-12-05 11:23:03 -08:00
Andrew Watkins 5ae5f986ad
feat(account-settings): introduce AccountSettings page
* Package json

* Change UserPage to MePage

* Add an account page

* package json

* Remove package-lock

* Adding back package json

* Update lint command

* Update react
2018-12-03 16:27:22 -08:00
Brandon Farmer f04d420709 Remove yarn in favor of just npm 2018-11-30 17:02:31 -08:00
Christopher Henn 759891e37f Add ability to create notes on a dashboard 2018-11-29 16:41:40 -08:00
Christopher Henn 8cd3ff3c40 Run TSLint in CI 2018-11-07 13:33:02 -08:00
Michael Desa b9f70b7bec chore(ui): move ui from chronograf/ui to ui 2018-10-29 14:00:54 -04:00