Commit Graph

847 Commits (c78477314abf6fbb5620ccbaf43986785962da96)

Author SHA1 Message Date
alexpaxton 80ebf933aa
Polish Inline Label Creation (#12070)
* Condense appearance of inline create label form

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

* Fine tune copy and click outside behavior

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

* Show label color error color when invalid hex

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

* Shrink width of random label color button

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

* Add full color palette to list of random label colors

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

* fix(ui/prettier-errors): fix ui prettier errors

Co-authored-by: Alex Paxton <thealexpaxton@gmail.com>
2019-02-21 15:29:06 -08:00
Christopher Henn c664e8e0d8 Fix query bug resulting from missing org ID
The `/api/v2/query` endpoint requires an organization or organizationID
query parameter.

Previously, there existed a bug in the API where if the organization
parameters were left off, the API would use the first organization
created in the backend, rather than returning a 400 error.

We built the entire UI on top of this bug, but it has now been fixed. So
in every location where we use the `/api/v2/query` endpoint, we need to
supply an organization.

This commit updates all such locations to use the first organization
present in our Redux store as the organization parameter, thus roughly
reproducing the behavior of the load bearing bug.

This is just a quick fix. Long term, we will want to think about what
organization queries should run under and build an appropriate UI around
that design.
2019-02-21 15:22:24 -08:00
Iris Scholten 86147c2808 update to use org name to create task 2019-02-21 14:52:26 -08:00
Christopher Henn a499a8b0d9 Enable adding a description to a telegraf config 2019-02-21 14:06:04 -08:00
Palakp41 4407be10a6
Merge pull request #12072 from influxdata/fix/admin-step-notify
Update admin to show error if password is not 8 characters
2019-02-21 13:40:42 -08:00
Palak Bhojani a893e7fe1b Update admin to show error if password is not 8 characters 2019-02-21 13:30:54 -08:00
Deniz Kusefoglu 6135498c46 Place imports and exports behind feature flag 2019-02-21 13:00:24 -08:00
Delmer a8bdc9c9ab fix(ui/resourceLabelForm): fix ResourceLabelForm invalid default form state (#12057) 2019-02-21 10:48:16 -08:00
alexpaxton 09b5e24e63
Cleanup (#12061) 2019-02-21 10:38:50 -08:00
Delmer 50e9ca6a54
fix(ui/FilterList): add filtering on labels (#12018)
fix(ui/FilterList): add tests for FilterList and support for inexact searchKeys

Co-authored-by: Andrew Watkins <watts@influxdb.com>
2019-02-21 08:12:43 -05:00
Delmer 263170dc45
fix(ui): add label from resource labels editor (#11973)
Add ResourceLabelForm to EditLabelsOverlay and RandomLabelColorButton

Co-authored-by: Daniel Campbell <metalwhirlwind@gmail.com>
2019-02-21 08:09:21 -05:00
Christopher Henn 2e42203f07 Make npm less noisy 2019-02-20 18:15:09 -08:00
Christopher Henn 9f23a88ff6 Fix type errors from upgrading past TypeScript 3.2 2019-02-20 18:15:09 -08:00
Christopher Henn eed3f8d3fa Format all source files with Prettier
The acceptable syntax formatting has changed after upgrading Prettier to
a newer version.
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 0e6e87f374
Merge pull request #12026 from influxdata/fix/clone-dashboard-labels
update client libarary dependency for dashboard cloning
2019-02-20 16:52:09 -08:00
Iris Scholten eccee09a20 update client libarary dependency for dashboard cloning 2019-02-20 16:26:56 -08:00
Palakp41 09d084750c
Merge pull request #12023 from influxdata/feat/bucket-notifications
Add notifications for success/failed when creating/deleting/updating …
2019-02-20 16:02:32 -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
Palak Bhojani 69815230a8 Add notifications for success/failed when creating/deleting/updating buckets 2019-02-20 15:19:21 -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
Palak Bhojani fb7a3aa93b Add notifications for success/failed when creating/updating/deleting scrapers 2019-02-20 14:12:57 -08:00
Iris Scholten 9e6c1b925d fix(ui): Update the label preview to be shorter 2019-02-20 13:47:35 -08:00
Alirie Gray 9ccb785747 Add ability to update a variable 2019-02-20 12:04:16 -08:00
Iris Scholten 3c933d49e1
Merge pull request #12009 from influxdata/feat/login-version
feat(ui): Display version on login page
2019-02-20 11:51:16 -08:00
Iris Scholten 988dda2398 feat(ui): Display version on login page 2019-02-20 11:30:07 -08:00
Brandon Farmer dd26d46eff
Merge pull request #12007 from influxdata/feat/create-telegraf-config
Extract telegrafs org view to use react router
2019-02-20 10:57:37 -08:00
Brandon Farmer 9d71670717 Extract telegrafs org view to use react router 2019-02-20 10:48:44 -08:00
Deniz Kusefoglu c66f2e5e3b
Merge pull request #11995 from influxdata/generic-import-to-tasks
Add generic import dropdown to tasks
2019-02-20 10:48:33 -08:00
Palakp41 5c5c4047b0
Merge pull request #12006 from influxdata/update-members-org-filter
Update filter text for members to 'filter members'
2019-02-20 10:38:36 -08:00
Palak Bhojani 5c19707bf9 Update filter text for members to 'filter members' 2019-02-20 10:17:57 -08:00
Palak Bhojani 55bf3d1679 Update retention policy for bucket if time changes 2019-02-20 10:16:05 -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
Deniz Kusefoglu 4720945eea Add generic import dropdown to tasks 2019-02-19 16:43:50 -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
Delmer 451354f8f8
fix(ui): add guard for hasKey check (#11994)
* fix(ui): add guard for hasKey check

Fixes checking key in primitive or null types

* fix(ui): add lodash helpers to check hasKey
2019-02-19 18:52:19 -05: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 a76a2afbf8
Merge pull request #11988 from influxdata/upgrade-npm-version-6.8
Upgrade npm version 6.8 and ts-jest to 24.0.0
2019-02-19 15:13:31 -08:00
Christopher Henn f265dd3d33 Avoid unnecessary Histogram rerenders 2019-02-19 14:18:08 -08:00
Brandon Farmer e026a302bc Remove fancy scrollbars element when not needed 2019-02-19 13:50:16 -08: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
Alirie Gray f2c450447e
Merge pull request #11945 from influxdata/feat/add-resource-dropdown
Create a generic dropdown for creating/importing a resource
2019-02-19 11:35:10 -08:00
Alirie Gray 6171aceafe Create a generic dropdown for creating/importing a resource 2019-02-19 10:51:23 -08:00
Christopher Henn cc5afed1b6 Fix type errors from @types/react-dom upgrade 2019-02-19 10:44:36 -08:00
Christopher Henn 931d06fac5 Do not group histogram data by default 2019-02-19 10:44:36 -08:00
Christopher Henn 3f9495c811 Fix awkward histogram tooltip wrapping 2019-02-19 10:44:36 -08:00
Christopher Henn 50eedfd14e Add domain option to HistogramOptions 2019-02-19 10:44:36 -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