Commit Graph

28754 Commits (ed39dc5e4622662d90640995e7f392b358389914)

Author SHA1 Message Date
Iris Scholten ed39dc5e46 feat(ui): Clone a task's labels when cloning the task
Move task cloning logic to external client library
2019-02-22 09:53:36 -08:00
Nathaniel Cook a75adf6c4b fix(http): separate InfluxQL and Flux services
Previously the APIBackend understood only a ProxyQueryService,
but it needs to understand that there are two implementations of the
ProxyQueryService one for handling InfluxQL queries and one for handling
Flux queries. The names of the fields have been updated to make this
clear. As well as the FluxBackend is now initialized using the
FluxService explicitly.
2019-02-22 10:31:20 -07:00
Mark Rushakoff 12a604172f fix(task): create authorizations for tasks, which can read their task
Also set the generated token's description while we're here.

This enables us to use task's Authorization when we need to query the
system bucket to get run logs, etc. but we only have a Session.
2019-02-22 09:15:25 -08:00
Lyon Hill c78477314a
Allow tasks to skip catchup (#12068) 2019-02-22 09:47:04 -07:00
Mark Rushakoff 6fdcaf83b4 fix(swagger): quote keys named "y"
The YAML parser used by the go-openapi libraries treats an unquoted y as
a boolean key, which will lead to a difficult-to-understand parser
error:

types don't match expect map key string or int got: bool

See also https://yaml.org/type/bool.html.
2019-02-22 08:20:07 -08:00
Julius Volz e7a27243be Check error when writing token file during setup
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2019-02-22 09:08:41 -07:00
Russ Savage 8016599605
Updating changelog for alpha 4 2019-02-21 16:43:31 -08:00
Mark Rushakoff ecb37d7cc4 fix(task): restore functionality for creating task with org name
This is a partial rollback of changes #12004. Issue to track adding a
test: #12089.
2019-02-21 16:30:52 -08:00
Delmer bf34b35fb4
fix(ui/changelog): add labels changes to changelog v2.0.0-alpha.4 (#12084) 2019-02-21 18:39:56 -05:00
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 0cc05ee0e7
Merge pull request #12079 from influxdata/fix/org-name-task
update to use org name to create task
2019-02-21 15:03:11 -08:00
Iris Scholten 86147c2808 update to use org name to create task 2019-02-21 14:52:26 -08:00
Iris Scholten ffc88da46a
Merge pull request #12073 from influxdata/swagger-telegraf-labels-post
Update the swagger definition for a telegraf labels post response
2019-02-21 14:44:09 -08:00
Christopher Henn a499a8b0d9 Enable adding a description to a telegraf config 2019-02-21 14:06:04 -08:00
Iris Scholten 561902e5c4 Update the swagger definition for a telegraf labels post response 2019-02-21 14:02:35 -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 13c887a77e
Merge pull request #12069 from influxdata/feature-flag-imports-exports
Place imports and exports behind feature flag
2019-02-21 13:26:39 -08:00
Deniz Kusefoglu 6135498c46 Place imports and exports behind feature flag 2019-02-21 13:00:24 -08:00
Gershon Shif d0694f28b3
ci(litmus): do not run litmus tests on forked PRs (#12063)
* ci(litmus): do not run litmus tests on forked PRs

- add a step to check if PR is from fork. If it is, then stop execution of the step and successfully return.
- Fix for https://github.com/influxdata/influxdb/issues/11965
2019-02-21 12:28:38 -08:00
Chris Goller c0266ba5cf refactor(cmd/influxd): use simple query rather than the flux service 2019-02-21 11:18:08 -08:00
Chris Goller 1ec7b69d85 fix(kv): error org search if neither name nor id is set 2019-02-21 11:18:08 -08:00
Stuart Carnie 2872233252 feedback: Add end-to-end write and read tests for multiple organizations 2019-02-21 11:18:08 -08:00
Stuart Carnie 662887c679 feedback: Simplify reader; use constants from influxdb package 2019-02-21 11:18:08 -08:00
Stuart Carnie 01b5fccfbe feat(storage): Enforce single org for series key reads 2019-02-21 11:18:08 -08:00
Delmer a8bdc9c9ab fix(ui/resourceLabelForm): fix ResourceLabelForm invalid default form state (#12057) 2019-02-21 10:48:16 -08:00
Mark Rushakoff 9ee640766a fix(task): validate permissions on specific tasks
The previous behavior specifically looked for organization-wide task
read/write permissions. Now we allow permissions on specific tasks.
2019-02-21 10:45:28 -08:00
alexpaxton 09b5e24e63
Cleanup (#12061) 2019-02-21 10:38:50 -08:00
Chris Goller df95564c07
Merge pull request #12052 from zhulongcheng/show-auth-in-task-cmd
feat(cmd/influx): show AuthorizationID of tasks
2019-02-21 10:28:25 -06:00
Christopher Henn 953f703ae5 Add description to spec for telegraf config 2019-02-21 08:25:56 -08:00
zhulongcheng 29d49adcfb doc(http): update request body for updating a task 2019-02-21 08:25:45 -08:00
zhulongcheng 126d3edef7 feat(cmd/influx): show AuthorizationID of task 2019-02-22 00:07:45 +08:00
Chris Goller be796b8369
Merge pull request #12049 from influxdata/feat/cli-inf-rp
feat(cmd/influx): allow infinite retention in non-interactive setup
2019-02-21 09:48:34 -06:00
Chris Goller bfcc753836 fix(cmd/influx): remove unsigned for equality check 2019-02-21 09:13:05 -06:00
Chris Goller 79e0a2ae90 feat(cmd/influx): allow infinite retention in non-interactive setup 2019-02-21 08:51:37 -06: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
Palakp41 b821b250fc
Merge pull request #12020 from influxdata/docs/influxdb-steps
Create documentation for updating api client and updating swagger
2019-02-20 15:04:05 -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 16754f2470 Create documentation for updating api client and updating swagger 2019-02-20 14:55:59 -08:00