Commit Graph

210 Commits (632b93ac6becfa52bc255e0243533e8ab455831d)

Author SHA1 Message Date
alexpaxton 3b714995cf
chore(ui): upgrade Clockface dependency to 0.0.27 (#14736)
* chore(ui): upgrade Clockface dependency to latest

* chore(ui): address breaking FlexBoxChild changes

* chore(ui): address breaking PanelHeader changes

* chore(ui): update affected snapshots

* refactor(ui): attempt to fix e2e tests
2019-08-21 19:47:37 -07:00
Andrew Watkins d39069f881
feat(alerts): introduce edit endpoint overlay (#14713) 2019-08-20 15:10:30 -07:00
alexpaxton 450b85f80e
refactor(ui): introduce "Load Data" tab (#14709)
* refactor(ui): extend url activator to check on deeper URLs

* refactor(ui): create load data nav and page components

* refactor(ui): update telegrafs, scrapers, and buckets to use load data nav

* refactor(ui): update side nav and router to expose load data tab

* chore(ui): update changelog

* refactor(ui): update link to telegrafs page from status page

* refactor(ui): fix broken routes

* refactor(ui): make settings page tabs consistent with load data tabs

* refactor(ui): appease the linter gods

* refactor(ui): attempt to fix e2e tests
2019-08-20 10:24:49 -07:00
Andrew Watkins 286d57b0ba
feat(notifications): create notification endpoint overlay (#14693)
* chore: update swagger definitions

* feat(endpoints): introducer endpoint overlay

* wip: change endpoint type

* feat(endpoint): add inputs for supported endpoint types

* wip: connect create endpoint to API

* feat: implement create endpoint

* alerts(e2e): add createEndpoint command

* chore: update swagger
2019-08-19 10:57:20 -07:00
alexpaxton 53f6806df1
chore(ui): upgrade Clockface dependency to 0.0.25 (#14677)
* chore(ui): upgrade clockface dependency to latest

* refactor(ui): replace references to "ComponentSpacer" with "FlexBox"

* refactor(ui): update snapshot tests

* refactor(ui): appease the linter

* refactor(ui): appease the linter, again

* refactor(ui): WIP improve flaky e2e test

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

* test(e2e): refactor scraper tests
2019-08-15 17:04:06 -07:00
alexpaxton dc0d663364
chore(ui): replace local ConfirmationButton using Clockface (#14605)
* refactor(ui): replace instances of local confirmation button with clockface

* refactor(ui): delete local confirmation button

* refactor(ui): fix affected e2e tokens test
2019-08-09 16:01:41 -07:00
Andrew Watkins 1d256551f6
feat(alerts): create notification rule overlay (#14520)
* feat(rules): render rule overlay

* feat(ui/rules): add name and schedule to new overlay

* style(alerts): style new rule overlay like veo

* feat(alerts): add rule conditions and period count components

* feat(alerts): introduce StatusLevels component

* feat(alerts): add status change and level dropdowns

* refactor(alerts): use context to pass dispatch

* feat(rules): change check status level

* wip: wip

* test(alters): add cypress tests for create notification rule

* test(e2e): more testing for NewRuleOverlay

* feat(alerts): delete notification status rule

* feat(alerts): add TagRule component

* feat(alerts): remove TagRule

* feat(alerts): add RuleEndpoint dropdown

* feat(alerts): add notification rule message

* wip: upgrade clockface to 0.23

* styles(alerts): notification status rule

* styles(alerts): make new rule overlay pretty

* style(alerts): add DashedButton component

* test(e2e): fix notificationRule tests

* chore: remove feature flag

* style(alerts): LevelsDropdown

* chore: fix dummy data

* chore: capitalize LevelType

* style(alerts): copy css into NewRuleOverlay styles

* chore(alerts): add suffix  to client side interfaces

* chore(alerts): compile time reducer error defaults

* chore: plural to singular enums

* chore: trying new util convention

* chore: add back feature flag

* refactor(alterts): move state manipulation into reducer

* chore: comment feature flag

* refactor: move state changes into reducer
2019-08-07 11:08:10 -07:00
Andrew Watkins 6f14174c32
fix: bucket save (#14582)
* fix(ui/buckets): close edit bucket modal on save

* test(e2e): test that modal closes after save
2019-08-06 14:50:07 -07:00
George b2fe0d1d63
fix(tasks): surface flux errors on pre-auth check (#14492) 2019-07-31 11:46:28 +02:00
Christopher Henn 1250be5f80 refactor(ui): inline API type generation
Part of #14482
2019-07-30 09:35:05 -07:00
alexpaxton 93649a71b5
refactor(clockface): replace local resource list components with Clockface resource list components (#14493)
* refactor(resource-list): replace local labels resource list with Clockface resource list

* refactor(resource-list): replace local variables resource list with Clockface resource list

* refactor(resource-list): replace local collectors resource list with Clockface resource list

* refactor(resource-list): replace local scrapers resource list with Clockface resource list

* refactor(resource-list): replace local templates resource list with Clockface resource list

* refactor(resource-list): replace local static templates resource list with Clockface resource list

* refactor(resource-list): replace local members resource list with Clockface resource list

* refactor(resource-list): replace local buckets resource list with Clockface resource list

* refactor(resource-list): replace local tasks resource list with Clockface resource list

* refactor(resource-list): replace local dashboards resource list with Clockface resource list

* refactor(resource-list): replace local notification rule & check resource lists with Clockface resource lists

* Delete local resource list components

* test: update affected snapshot tests

* test(e2e): fix labels integration tests

* refactor: use router.push() instead of window.location.assign()
2019-07-29 12:52:32 -10:00
Alirie Gray 7b96bd95f0 test(tasks): fix cypress tests for task creation with token 2019-07-26 09:51:33 -07:00
Andrew Watkins b856c31aae
style(clockface): upgrade to 0.0.18 (#14458)
* Update dependency

* Fix appearance of signin form

* Fix appearance of inline label editor

* Update implementation of dropdown

* Remove comment

* Fix appearance of auto refresh dropdown

* Update implementation of time range dropdown

* Update implementation of time zone dropdown

* Update implementation of window selector

* Fix missing button text in window selector

Oooooops

* Update implementation of time format dropdown

* Update implementation of column selector

* Update implementation of geometry dropdown

* Ensure line graphs have a default color palette

* Update implementation of color scheme dropdown

* Update implementation of heat map color selector

* Update dropdown implementations in histogram options

* Update implementation of Variable Builder dropdowns

* Update implementation of buckets dropdown

* Tweak color of slide toggle in token row to be green

* Update implementation of Generate Token dropdown

* Update snapshot tests

* Update bucket dropdown tests

* Fix query builder test

* Update onboarding buttons test

* Fix some e2e tests

* Fix tokens e2e tests

* Fix variables e2e tests

* Update implemenation of view type dropdown

Also removing the empty view type from existence

Co-Authored-By: Christopher Henn <chnn@users.noreply.github.com>

* Fix query builder add card button

Made it less prone to breakage

* Fix appearance of VEO

* Update styles of renamable page title

* Update styles using button or icon or input

* Ensure time range dropdown is not blank initially

* Update implementation of variable tooltip dropdown

* Update implementation of dropdowns in Add Members form

* Update implementation of Color dropdown

* Update implementation of dropdowns in scatter plot options

* Upddate implementation of precision dropdown

* Update implementation of sort by table option dropdown

* Update implementation of dashboards dropdown in save as menu

* Update implementations of dropdowns in task form

* Update Variable control bar dropdowns

* Delete unused component

* Remove unused imports

* Update bucket dropdown implementation in delete data form

* Update searchable dropdown to use new clockface components

* Delete local dropdown components

* Fix failing unit tests

* blerp

* Coerce type in view type dropdown

* Fix onboarding styles

* Fix e2e tests

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

* Fix last e2e test

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

* build(e2e): allow cypress to run with webpack dev server
2019-07-25 12:13:51 -07:00
Andrew Watkins d2933cc184
build(webpack): parcel to webpack (#14410)
* build(ts): add ts webpack dependencies and config

* wip(webpack.dev): css and js compiling

* wip(webpack): building assets with watch

* fix(webpack): fix page reloads not serving assets

* build(webpack): fork typechecking

* chore(webpack): rename dev config

* build(webpack): add production config

* build(webpack): add process vendor in separate build

* build(webpack): change dev source map

* build(webpack): dont lint in prod builds

* build(webpack): move reduce redundancy for GIT_SHA

* docs(ui): update README

* build(webpack): add hash to production build
2019-07-23 14:10:34 -07:00
Andrew Watkins e25a8fa181
fix: sorting label by description (#14148)
* chore: labels test cleanup

* fix: throwing error when value is empty string
2019-06-18 08:47:57 -07:00
Kelvin Wang 7a40d92375 fix(ui): update ui telegraf orgID 2019-06-03 19:40:33 -04:00
karel-rehor f790799981 test(e2e/ui): labels tests and post rebase (#13987)
* # This is a combination of 2 commits.
# The first commit's message is:

added writeData command

# The 2nd commit message will be skipped:

#	delinting

* added writeData command

* better junit reporting

removed chainable .only.

* starting onboarding test

* complete onboarding to quick start

* additional onboarding tests

* adding field requirements test

WIP - updating to new org ctx - stablizing

WIP - linting - stablizing

fixing merge conflicts

* refactor onboarding test to leverage data-testid

fixing jstests with new data-testid attribs

refactor add last data-testid replacements onb test

improving assert

* passing in additional data-testid values

troubleshoot tokens test

WIP tokens test - clean up after troubleshoot

WIP - tokens tests

updating testID in tokens test

* re-enable all current tokens tests

* starting labels test

* labels tests

* minor fix

minor fix

* cy.writeData chunked

* resynching onboarding.test.ts
2019-05-29 10:04:07 -07:00
Alirie Gray 576da8f9d2 fix(swagger): add log property to task runs endpoint docs 2019-05-17 14:08:10 -07:00
karel-rehor e9ccde1d78 test(e2e): Bonitoo cypress tokens (#13895)
* added writeData command

* better junit reporting

* adding package-lock.json as per circle-ci hint

* delinting

* removed chainable .only.

* removed commented line

* starting onboarding test

* onboarding assert

* complete onboarding to quick start

* additional onboarding tests

* delinting

* adding field requirements test

* fixing merge conflicts

* WIP - updating to new org ctx - stablizing

* WIP - linting - stablizing

* fixing merge conflicts

* refactor onboarding test to leverage data-testid

* fixing jstests with new data-testid attribs

* resynch promql.go

* refactor add last data-testid replacements onb test

* replacing lost asserts

* improving assert

* passing in additional data-testid values

* removing bin_gen.go from branch

* starting tokens test

* troubleshoot tokens test

* WIP tokens test - clean up after troubleshoot

* WIP - tokens tests

* synching tokens test with clockface changes

* updating testID in tokens test

* re-enable all current tokens tests

* linted tokens.test.ts

* stablize beforeEach in tokens.test
2019-05-16 10:48:20 -07:00
Palak Bhojani bfad4d6581 Update Variables tab to use ResourceList instead of IndexLits 2019-05-13 15:22:50 -07:00
Iris Scholten 41e578a4c2 chore(ui): Use ResourceList component for Scrapers List 2019-05-13 10:30:56 -07:00
Palak Bhojani 49cfc08d2d Update Buckets list to use ResourceList instead of IndexList 2019-05-10 16:17:20 -07:00
Andrew Watkins 231bb0967a
feat: make buckets a list instead of a dropdown (#13808)
* feat: make buckets a list instead of a dropdown

* test: update query builder test

* test(e2e): update selectors
2019-05-07 10:35:10 -07:00
Deniz Kusefoglu 3ebc2fd453 Add test-ids to create resource dropdown items 2019-05-06 14:11:28 -07:00
alexpaxton 62f8a654a6
Upgrade to Clockface 0.0.13 (#13686)
* Upgrade!

* Replace "customClass" with "className"

* Upgrade to 0.0.12

* Replace square shaped buttons with SquareButton

* Appease linter gods

* Polish panel in org profile

* Update snapshots

* Upgrade to Clockface 0.0.13

* Fix button refs bug

* Fix failing unit test

* Fix onboarding e2e tests
2019-05-02 09:22:25 -07:00
Andrew Watkins f2fd7d6728
feat(ui/explorer): add imports to flux scripts (#13711)
* fix(ui) Update flux function docs and examples

* add package property to FluxToolbarFunction

* added package property to built-in flux functions

* added package propert to the toFloat function

* prettified fluxFunction.ts

* updated columns parameter on derivative function

* added newline after derivative desc for prettier fluxFunction.ts

* chore(e2e): updsate cypress to 2.0

* feat(query-builder): add import statements

* wip

* feat(ui/builder): simplify import addition logic

* test: remove only

* chore: linting

* test: string organization
2019-04-29 21:56:36 -07:00
Palak Bhojani 1e4acb3815 Update telegraf list to use ResourceList 2019-04-23 09:20:34 -07:00
Delmer Reed 4684b9fac0 feat(ui/buckets): add buckets danger zone
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2019-04-19 17:02:45 -04:00
alexpaxton 2b8c17b767
Polish Create From Template Overlay (#13424)
* Move and rename components

* Break overlay into subcomponents

* Create empty state with link when no templates exist

* Break down template overlay components further

* Enable scrolling in overlay

Use custom UI instead of responsive grid

* Updoot changelog

* Fix e2e test

* Improve readability of code

* Import types from src/types instead of directly from client

* Import type from src/types instead of directly from client

* Do not display version of template in details panel

* WIP import types from src/types instead of directly from client

* Fix template types
2019-04-16 13:58:27 -07:00
karel-rehor 8d178ebda1 test(e2e): bonitoo cypress onboarding (#13087)
* added writeData command

* better junit reporting

* adding package-lock.json as per circle-ci hint

* delinting

* removed chainable .only.

* removed commented line

* starting onboarding test

* onboarding assert

* complete onboarding to quick start

* additional onboarding tests

* delinting

* adding field requirements test

* fixing merge conflicts

* WIP - updating to new org ctx - stablizing

* WIP - linting - stablizing

* fixing merge conflicts

* refactor onboarding test to leverage data-testid

* fixing jstests with new data-testid attribs

* resynch promql.go

* refactor add last data-testid replacements onb test

* replacing lost asserts

* improving assert

* passing in additional data-testid values

* removing bin_gen.go from branch
2019-04-16 09:06:16 -07:00
Alirie Gray 0bd62f468f fix(tests): fix flaky dashboards e2e test 2019-04-12 15:05:57 -07:00
Alex P aa57ca363a Fix e2e test 2019-04-08 11:49:52 -07:00
Iris Scholten 05df47d1b0 feat(ui): Add create org to side nav 2019-04-04 17:09:56 -07:00
Deniz Kusefoglu 9808ce2a5f Unskip tasks tests 2019-04-04 11:25:41 -07:00
Iris Scholten 05b9b54e98
feat(ui): make dashboards pages org centric (#13111)
* Update dashboards page to show dashboards from current org

* Remove org info from dashboard cards and table

* Remove unused action

* Update create labels to always create a label in the current org

* Fix closing veo route

* Stop skipping create and add label to dash test
2019-04-03 09:41:59 -07:00
Alirie Gray d10d216a3f test(dashboards): create dashboard from template in dashboard index 2019-04-02 14:33:09 -07:00
alexpaxton d0c31efd72
Improve Navbar (#13093)
* Allow nav menu items to be configurable

* Move highlighting logic outside of navbar component into container

* Refactor nav sub items to follow new pattern

* Update tests

* Fix e2e test

* Add className prop to all nav components

* Make nav menu items into PureComponents

* Make all nav defaultProps required

* Treat className & testID uniformly on both types of nav items

* Move nav activation getter to utils folder
2019-04-02 12:57:09 -07:00
Deniz Kusefoglu a71dbc52fb
Merge pull request #13035 from influxdata/org-reborg
Org reborg
2019-04-01 13:35:53 -07:00
Deniz Kusefoglu e67edba39d Skip label creation on dashboard which will be fixed in next PR 2019-04-01 12:41:36 -07:00
Deniz Kusefoglu 0bc9815fb3 Skip tasks tests for functionality that will be fixed in next PR 2019-04-01 12:08:42 -07:00
Deniz Kusefoglu 14c405f37d Remove orgs test, as the logic here will change 2019-04-01 12:07:56 -07:00
Deniz Kusefoglu 4c6c38889e Fix routes in tests 2019-04-01 12:07:29 -07:00
docmerlin (j. Emrys Landivar) 492d8406aa fix(tasks): make durations visibly show up nicely 2019-03-29 13:50:26 -05:00
Palak Bhojani 49a3adaef1 Update variables to use the same component for create button 2019-03-25 17:19:59 -07:00
Andrew Watkins 47882c8818
chore(e2e): remove test running 100 times (#12777)
* chore(e2e): remove test running 100 times

* fix: add orgID to createLabel
2019-03-20 10:38:17 -07:00
Andrew Watkins 971bb13d40 chore: update e2e labels endpoing to include orgID 2019-03-19 14:13:02 -07:00
Deniz Kusefoglu 46da0c8096 Add styles to empty state dropdown
Add dropdown to Dashboards empty state
Add dropdown to tasks empty state
Add missing import property
Fix e2e tests
2019-03-16 10:26:52 -07:00
Christopher Henn 1e91da7d48 Fix ESLint errors 2019-03-14 13:58:29 -07:00
alexpaxton 4b53d29b63
Fine tune inline label keyboard interactions (#12610)
* Fine tune keyboard shortcuts during inline label flow

* Update changelog

* Update label type in mocks

* WIP Add unit tests for inline label editing components

* WIP Add unit tests for inline interactions

* Write slightly more integrated test

* Just a couple more unit tests

* Add missing key to element in map

* Fix e2e tests
2019-03-14 13:15:21 -07:00
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
Andrew Watkins 2a1813bb13
test: reintroduce org (#12425)
* chore: unskip org test

* chore: org experiment

* test: only run each test once
2019-03-07 10:13:50 -08:00
Chris Goller 0ad1b504ec fix(e2e): skip org tests until we can create orgs 2019-03-06 19:54:19 -06:00
Andrew Watkins 911f533b5b
test(e2e/orgs): strengthen org delete test
* test(e2e/orgs): experimenting with org delete

* test(e2e/task): try delete test 1000 times

* reduce tests to 200

* test(task/e2e): wait for create and /org/delete

* test: visit tasks

* test(e2e/task): wait on task delete and get

* test(orgs/e2e): wait on get all orgs

* test(e2e): increase default command timeout to 10s

* visit tasks after create

* test(e2e/orgs): unskipping create and delete

* unskipping update org

* update org 200 times
2019-03-06 16:35:30 -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 1b5ac814d6
test(de): remove a second query (#12293) 2019-03-04 18:52:32 -05:00
alexpaxton 818c6279a8
Polish/scraper overlay (#12317)
* Condense layout of scraper form

* Introduce overlay component for creating scrapers

* Simplify Bucket selection dropdown

* Relocate create scraper overlay component

* Introduce create scraper form component

* Add missing blank header cell to scrapers table

* Fix URL validation

* WIP cleanup

* Use CreateScraperOverlay in buckets list

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Remove unused components and update tests a little bit

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Update unit tests

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Allow override of initial bucket selection in create scraper overlay

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Disable scraper/collector create button and show warning when no buckets exist

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Introduce alert component in clockface

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Use alert component in no buckets warning

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Update scraper e2e tests

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Update changelog

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>
2019-03-04 15:39:23 -08:00
Christopher Henn 1e33de0892 Fix invalid query submission on Data Explorer load
Fixes an issue where the Data Explorer would issue an empty (invalid)
query upon first load.

Adds a test to catch similar regressions in the future, and refactors
e2e tests to use a `testID` for asserting that empty graph messages
exist.

Closes #12326
2019-03-04 10:12:19 -08:00
Christopher Henn 08da3bc24d Update Cypress test with new variable convention 2019-03-04 09:13:41 -08:00
Alirie Gray 2c3fb1fe5f Test(explorer): add end-to-end test for buckets in dropdown in query builder 2019-03-01 15:57:50 -08:00
Deniz Kusefoglu 182d7e4af6
Merge pull request #12285 from influxdata/import-org-task
Add import overlay to org tasks by way of routes
2019-03-01 15:15:28 -08:00
Deniz Kusefoglu 2108ebb27d Skip flaky delete or rename tests 2019-03-01 15:02:07 -08:00
Alirie Gray ca3d66a7a1
Merge pull request #12307 from influxdata/test(explorer)/end-to-end-tests-empty-state-vis
test(explorer): add end-to-end test for empty state
2019-03-01 14:19:58 -08:00
alexpaxton 558457196b
Use ResourceCards to display Tasks (#12258)
* Remove child type validation from context menu

* Guard against missing optional props

* Increase size of search widget

* Change tasks display to use Resource Cards

* Extend resource card to support optional toggle slot and disabled styles

* Add enabled toggle to task cards

* Ensure task save button returns user to proper location

* Fix broken test

* Update tests

* Make test wait

* Fix task renaming and update tests

* Ensure all e2e tasks tests are able to run

* Ensure disabled styles for nested cards

* Specify default functions for optional render props

* Oops
2019-03-01 14:14:31 -08:00
Alirie Gray 4888741ae7 test(explorer): add end-to-end test for empty state 2019-03-01 14:11:30 -08:00
Andrew Watkins cc33679de7
test(e2e): wait for task delete (#12286) 2019-02-28 19:04:33 -08:00
Palak Bhojani 7a0262dcef test(orgs): skip delete test for org 2019-02-28 16:14:16 -08:00
Palak Bhojani 66102d76e7 tests(collectors): test for updating and creating telegraf configs 2019-02-28 15:45:19 -08:00
Alirie Gray f5aedaeb89
Merge pull request #12273 from influxdata/test/empty-bucket-state
test(explorer): test empty state for tag keys
2019-02-28 15:08:23 -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
Alirie Gray db1ef8c8d3 test(explorer): test empty state for tag keys 2019-02-28 15:02:18 -08:00
Alirie Gray f23370dcd2
Merge pull request #12270 from influxdata/test/filter-funcs
test(explorer): move test for filtering functions
2019-02-28 14:24:31 -08:00
Deniz Kusefoglu 81ccdb3a2c
Merge pull request #12244 from influxdata/org-view-overlays
Eradicate OrganizationView and begin eradicating GetOrgResources
2019-02-28 14:19:45 -08:00
Alirie Gray 47055cd2fc test(explorer): move test for filtering functions 2019-02-28 14:17:45 -08:00
Palakp41 5ad1006ab8
Merge pull request #12269 from influxdata/tests/telegraf-creation
test(collectors) Test telegraf config creation on collectors tab
2019-02-28 14:06:33 -08:00
Deniz Kusefoglu 2a708f3dad Update snapshots and orgs delete test 2019-02-28 14:03:04 -08:00
Deniz Kusefoglu 90dff8cc0e Add testid to page header and fix org cypress tests 2019-02-28 14:03:03 -08:00
Deniz Kusefoglu aafbb9709a Remove unused notify and fix cypress tests 2019-02-28 14:03:03 -08:00
Deniz Kusefoglu ea2eee20d6 Remove OrganizationView and use separate containers instead 2019-02-28 14:03:03 -08:00
Alirie Gray cd992cd644
Merge pull request #12267 from influxdata/tests(explorer)/filter-functions
test(explorer): add end-to-end testing for filtering functions by name
2019-02-28 13:58:21 -08:00
Alirie Gray 2d5db1e778 test(explorer): add end-to-end testing for filtering functions by name 2019-02-28 13:51:47 -08:00
Palak Bhojani 2f9abd0e20 test(collectors) Test telegraf config creation on collectors tab 2019-02-28 13:27:58 -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
Palakp41 9c33541275
Merge pull request #12237 from influxdata/tests/scrapers-creation
test(scrapers): add test for creating scrapers
2019-02-27 16:23:48 -08:00
Palak Bhojani 3ee2599744 test(scrapers): add test for creating scrapers 2019-02-27 15:59:55 -08:00
Palakp41 e99b6112be
Merge pull request #12226 from influxdata/tests/bucket-deletion
test(buckets): add test for deletion
2019-02-27 15:31:53 -08:00
Palak Bhojani 5451963016 test(buckets): add test for deletion 2019-02-27 14:53:03 -08:00
Andrew Watkins 21aec22b5d
test(e2e/de): shows an error syntactically incorrect query is submitted (#12221)
* test(e2e/de): shows an error if a syntactically incorrect query is submitted

* chore(task/e2e): remove .only call in task tests

* test(e2e/de): remove dynamic testid
2019-02-27 14:17:15 -08:00
Delmer 5a63037e76
feat(ui/labels/click): add searchTerm updating for label clicks (#12111) 2019-02-27 14:21:21 -05:00
Delmer c4275fb484
test(ui/de): add test for de deleting query text (#12213) 2019-02-27 12:44:44 -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
Christopher Henn 2f0dd58737 Add e2e test for dis/enabled DE submit button
Closes #12191
2019-02-26 10:45:51 -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
Andrew Watkins 169a798081
chore: remove sources from ui (#12164)
* chore: remove sources from TimeSeries component

* chore: remove sources from ui
2019-02-25 15:35:30 -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
Alirie Gray 874f484ced test(variables): add tests for creation 2019-02-22 15:47:22 -08:00
Andrew Watkins a36df9e54e chore: add test prefix to task test 2019-02-21 17:38:57 -08:00
Andrew Watkins 3ce1078e04 chore(task): unskip task e2e 2019-02-21 17:38:11 -08:00
Andrew Watkins cc60a4df1d test(tasks): skip e2e 2019-02-21 17:33:58 -08: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
Alirie Gray 7fc8ca928d test(tasks): add test for task without valid script 2019-02-21 17:33:58 -08:00
Alirie Gray ef86778bce test(buckets): rename buckets test file 2019-02-21 17:33:58 -08:00
Alirie Gray 771a7969de test(buckets): use aliases for bucket object 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
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
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