Commit Graph

238 Commits (12c1b61d00e640194b85de1a13761bd4a18e1bc1)

Author SHA1 Message Date
Christopher Henn 707590283b Upgrade @influxdata/vis to 0.2.3 2019-04-03 09:31:53 -07:00
Deniz Kusefoglu 939d709991 Bump client version 2019-04-02 14:38:59 -07:00
Palak Bhojani 4bb1e54302 Update telegraf and dashboards for multiple labels to be added and removed 2019-04-01 15:22:48 -07:00
Christopher Henn 0e7727543f Consume new @influxdata/vis library 2019-03-29 16:20:03 -07:00
Brandon Farmer 8f9015c9b2 Update client to 0.2.54 and fix breaking changes 2019-03-29 09:46:08 -07:00
alexpaxton 133b131617
Introduce DapperScrollbars (#12961)
* Install new scrollbars library

* First pass at new wrapper for scrollbars

* Replace FancyScrollbars with DapperScrollbars in Page components

* Polish DapperScrollbars

* Update dropdown component to use DapperScrollbars

* Update a couple dropdowns to conform to new constraints

* Update legend to use Dapper Scrollbars

* Fix linting error

* Implement DapperScrollbars in overlays

* Ensure proper functionality in page contents

* Use fixed sizing for overlay scrollbars

* Updoot
2019-03-28 15:05:26 -07:00
Alirie Gray 358b065f0c feat(templates): add ability to update template name inline 2019-03-27 11:20:58 -07:00
Andrew Watkins bb12fe012e
chore(ui/account): remove token link (#12931) 2019-03-27 11:17:05 -07:00
Daniel Campbell 89b38cd212
Clockface 0.0.8 (#12921)
* update clockface version, resolve conflicts

* update snapshots

* remove unused import

* remove unused variables, lint
2019-03-26 16:59:57 -07:00
Palak Bhojani aa79a26a71 Add the ability to clone a template 2019-03-26 15:32:20 -07:00
Andrew Watkins bbe2fe4a9a
refactor(dashboards): sorting
* wip: sort via selectors

* wip: selector sort

* feat: store sort order locally

* chore: remove empty test

* fix: type error

* fix(clockface): have resource body return empty state when children are false

* chore: add type for list
2019-03-26 14:11:14 -07:00
Delmer 36f2de831a
chore(ui/templates/api): add create task from template (#12899) 2019-03-26 15:50:01 -04:00
Palak Bhojani 1e1f57dfdb Add the ability to delete a template
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2019-03-26 09:43:20 -07:00
Deniz Kusefoglu dcc7f93edb Port dashboard from template function to ui from client 2019-03-25 18:22:02 -07:00
Deniz Kusefoglu 43b31307a6 Bump client version 2019-03-21 16:35:52 -07:00
Brandon Farmer f1904071fc Update client for labels orgID changes 2019-03-19 13:49:15 -07:00
Deniz Kusefoglu 3f5beb0612 bump client version 2019-03-19 10:57:50 -07:00
Deniz Kusefoglu 8a39792191 Add templates tab to orgs 2019-03-19 10:57:39 -07:00
Andrew Watkins 2d97cd9b69
feat(labels/ui): update label name (#12702) 2019-03-18 15:46:13 -07:00
Deniz Kusefoglu 1474b6a72e Remove add label defaults to dashboard 2019-03-16 09:53:27 -07:00
Deniz Kusefoglu 28fd243fa2 Bump client version 2019-03-15 17:00:24 -07:00
Christopher Henn 9c1abbf307 Fix typo with linting script 2019-03-14 13:58:29 -07:00
Deniz Kusefoglu 9175fdb1e2 Fix all the sadness in dashboards 2019-03-13 19:18:18 -07:00
Christopher Henn 7642ae5563 Populate and substitute variables on dashboard load 2019-03-12 08:54:18 -07:00
Deniz Kusefoglu bdd7a6616b Update swagger
pick cell and view attributes in templates
Enable creating template from export dashboards
Add notifications to save dashboard as template
Remove comments from resourceToTemplates function
Fix resourceToTemplate test
2019-03-11 16:51:45 -07:00
Iris Scholten 2616ddf728 chore(ui): update client library dependency 2019-03-08 17:21:25 -08:00
Christopher Henn d168360739 Run Prettier through ESLint 2019-03-08 10:55:30 -08:00
Iris Scholten 368292d5d2 fix(ui): Update client library dependency to fix duplicating labels on task import 2019-03-07 16:39:00 -08:00
Palak Bhojani 834f6d0b75 Add the ability to remove a member from org 2019-03-07 14:52:58 -08:00
Iris Scholten d319f88fcf chore(ui/client): Update client dependency to fix dashboard cloning and task import 2019-03-07 10:02:35 -08:00
Delmer fe6ce24c80
chore(ui/client:) update client to 0.2.27 (#12395) 2019-03-06 17:13:51 -05:00
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