Commit Graph

17 Commits (2616ddf7286e806925dcf9078d0eacded597556c)

Author SHA1 Message Date
alexpaxton d2bd4b76d9
Inline Label Editing from Dashboards Index (#12384)
* Use client generated Label in dashboard actions

* Fetch labels when dashboards index loads

* Add styles for "colorless" labels

* Implement inline label editing from dashboard cards

* Fine tune label deletion

* Create createLabelAJAX function

Co-Authored-By: Delmer <ofthedelmer@users.noreply.github.com>

* Make inline label creation work in dashboards index

Co-Authored-By: Delmer <ofthedelmer@users.noreply.github.com>

* WIP use ILabel as the defacto label type

* Ensure a label can be updated without having to change the name

* Ensure all fields in a Label can be changed in the overlay

* WIP write e2e tests for inline labelling

Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>

* wip: dashboard brittle

* wip dashboards

* Position inline labels popover such that it doesn't collide with the navbar

* chore: run all dashboard tests 25 times

* Ensure that there is a dashboard with a name that matches the search test query

* Appease the lint gods with mortal sacrifice

* Remove unit test in favor of e2e test

Everything the unit test is testing is also tested by the e2e test

Co-Authored-By: Delmer <ofthedelmer@users.noreply.github.com>

* Remove for loop and fix search name assertion

Co-Authored-By: Delmer <ofthedelmer@users.noreply.github.com>
Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>

* Fix affected task test

Co-Authored-By: Delmer <ofthedelmer@users.noreply.github.com>
Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>

* Fix incorrectly named reference in e2e test

Co-Authored-By: Delmer <ofthedelmer@users.noreply.github.com>
Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>

* Undo go file change

* Add guard back in

* Undo changes to go file
2019-03-08 09:11:30 -08:00
Palak Bhojani 66102d76e7 tests(collectors): test for updating and creating telegraf configs 2019-02-28 15:45:19 -08: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 3580897f9f test(scrapers): test for deleting a scraper 2019-02-28 11:28:50 -08:00
Palak Bhojani ae2336c8bf test(scrapers): update a scraper name 2019-02-28 10:44:14 -08:00
Palak Bhojani 5451963016 test(buckets): add test for deletion 2019-02-27 14:53:03 -08:00
Delmer 5a63037e76
feat(ui/labels/click): add searchTerm updating for label clicks (#12111) 2019-02-27 14:21:21 -05:00
Andrew Watkins 1471be4a7f
refactor(e2e): remove sources, update commands, flaky test
* refactor(e2e): remove the need to create a source before signing in

* refactor(e2e): move setup user into signin function

* fix(orgs): make assertions after org creation

* chore: package.lock
2019-02-26 14:05:53 -08:00
Alirie Gray 99ad12dc94 test(variables): add test for deletion
Co-authored-by: Palak Bhojani <palak@influxdata.com>
2019-02-26 09:24:25 -08:00
alexpaxton 6e1ee40f45
Introduce ResourceList components and implement on Dashboards index (#12166)
* WIP Introduce Resource List component family

* Shrink padding of resource cards a bit

* Swap positions of meta information and labels in resource cards

* Introduce resource name component

* Polish resource name editing

* Remove child type validation from context component

* Styles for context menus inside resource cards

* Make resource name + meta line responsive

* Polish appearance of responsive resource description

* Replace dashboards list with dashboards cards

* Update e2e tests and add testID props to a bunch of components

Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>

* Make testID props consistent

Make all cypress tests have .test extension
Update E2E tests for dashboards index
Split off test for dashboards view

Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>

* Move cell test to dashboards view test

Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>

* Remove cells test from dashboards index test

Co-Authored-By: Andrew Watkins <121watts@users.noreply.github.com>

* Fix dashboard view - cells e2e test

* Refactor meta1 and meta2 props into a single metadata prop that returns an array of elements

* Cleanup

* Fix and refactor e2e test to be less brittle
2019-02-25 17:41:18 -08:00
Lorenzo Affetti cf81141689
fix(e2e-tests): make task use default bucket from user fixture (#12139)
* fix(e2e-tests): make task use default bucket from user fixture

* fix(query_test): update pre-auth test now that from is bucket aware
2019-02-25 12:38:04 +01:00
Andrew Watkins ee518c5520 chore: lint fix 2019-02-21 17:33:58 -08:00
Alirie Gray e81a7bf5d8 test(tasks): add test for deleting a task 2019-02-21 17:33:58 -08:00
Andrew Watkins df1a5e9450 test(e2e): use alisas instead of variables 2019-02-21 17:33:58 -08:00
Andrew Watkins a5bcc85c04
fix(ui/explorer): empty tag selector (#12019)
* fix(ui/de): disable closing the last tag selector card

* test(ui/explorer): introduce first basic e2e test
2019-02-20 14:57:38 -08:00
Andrew Watkins 626651b3f2
fix(ui): get active source (#12005)
* test(e2e): create source on signin
2019-02-20 09:23:18 -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