Commit Graph

28372 Commits (1aa5c471ee9c4264af520d95ac6e685a2c586a73)

Author SHA1 Message Date
Brandon Farmer 1aa5c471ee Move telegraf configs api to client library 2019-01-31 11:09:36 -08:00
Brandon Farmer d4ce72d33a
Merge pull request #11644 from influxdata/feat/switch-scrapers-client-lib
Move scraper api calls to client library
2019-01-31 11:07:04 -08:00
Brandon Farmer 064e13d13c Move scraper api calls to client library 2019-01-31 10:05:40 -08:00
Brandon Farmer 0692f1b5f8
Merge pull request #11628 from influxdata/feat/switch-write-client-lib
Switch write to client library
2019-01-31 09:34:23 -08:00
Edd Robinson 1188d75a99
Merge pull request #11202 from influxdata/er-tsi-times
Add skeleton TSI design doc
2019-01-28 11:54:59 -08:00
Brandon Farmer ae3139cc65 Switch write to client library 2019-01-25 16:33:30 -08:00
Brandon Farmer 37b189174f
Merge pull request #11623 from influxdata/feat/switch-authorization-client-lib
Switch authorizations to use external client library
2019-01-25 16:28:11 -08:00
Mark Rushakoff 3f0e40812e fix(http): return 404 when task or run is not found
For an operation that looks up a task or a run, when that operation
fails, only set the status to 404 if that operation explicitly returns
ErrTaskNotFound or ErrRunNotFound.

It's possible that the operation could fail for a reason other than the
ID being invalid: for example, if there was an IO error preventing the
lookup from succeeding.

Harden that behavior with tests for the task handler.

Closes #11589.
2019-01-25 15:44:09 -08:00
Delmer f0371e6716
fix(ui): fix overlay transition focusing (#11619)
Co-authored-by: Chris Henn <chris@chrishenn.net>
2019-01-25 15:28:52 -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
Gershon Shif c72363c7ec
Add litmus test runs to nightly build (#11620) 2019-01-25 12:18:56 -08:00
Jorge Landivar 86a0040d84
Merge pull request #11361 from influxdata/feat/end-to-end-tests
feat(tasks):end-to-end tests for the task system
2019-01-25 14:09:28 -06:00
docmerlin (j. Emrys Landivar) 0fec7aa6c4 feat(tasks): end-to-end tests for the task system 2019-01-25 13:28:25 -06:00
Iris Scholten 2250f08c09
Merge pull request #11580 from influxdata/chore/move-dataloader-components
chore(ui/dataLoaders): Move the dataLoaders sidebar, utils, and constants to dataLoaders dir
2019-01-25 11:19:58 -08:00
kelwang d90e635958
Merge pull request #11540 from influxdata/http_error_cleanup
Http error cleanup
2019-01-25 10:47:44 -08:00
Kelvin Wang 4e7785d92c update(http): changes based on review 2019-01-25 10:31:25 -08:00
Kelvin Wang f99f4759fa fix(http): fix task errors 2019-01-25 10:31:24 -08:00
Kelvin Wang 875162abd3 update(http): remove check error true 2019-01-25 10:29:27 -08:00
Kelvin Wang 79ce30691e update(http): remove kerrors, change the default to be influxdb error 2019-01-25 10:29:26 -08:00
Jacob Marble 296e119783
feat: Add influx ping subcommand (#11603)
* feat: Add influx ping subcommand
2019-01-25 10:01:55 -08:00
Edd Robinson 904cc1325a
Merge pull request #11602 from influxdata/er-cow-off
Remove copy-on-write when caching bitmaps
2019-01-25 17:43:27 +00:00
Mark Rushakoff 4df856c229 chore(task): add messages to all HTTP errors from tasks
Closes #11544.
2019-01-25 09:22:34 -08:00
Mark Rushakoff 1d38d18d79 chore: remove pkg/deep
Looks like the last reference to it was deleted in March 2018
(df7a660fb3).

Prior to that the last use was switched to go-cmp, which we've more
or-less standardized on, at this point.
2019-01-25 08:19:40 -08:00
Edd Robinson 19a36e0dc7 Remove copy-on-write when caching bitmaps
In the case of caching TSI bitmaps belonging to immutable .tsi files,
the underlying bitset data can be mmapped. It is possible, though rare,
for this data to be unmapped (e.g., via a TSI compaction) but for the
cached bitmap to be subsequently read. This leads to a segfault.

This only happens when copy-on-write is set to true on the roaring
bitmap, because in that case only the internal pointers are cloned.

This change will reduce the TSI cache performance by around 10%, which I
have deemed to account for only a few microseconds typically.
2019-01-25 13:38:22 +00:00
Leonardo Di Donato 4d5f39334e fix: json tags for label mappings
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-01-25 11:17:36 +01:00
Leonardo Di Donato bd8bb5cb52 feat(authorizer): authorize the look up of labels by resource 2019-01-25 11:17:36 +01:00
Leonardo Di Donato bcabc0a085 fix: we need resource type to filter labels by resources 2019-01-25 11:17:36 +01:00
Leonardo Di Donato ddac968127 feat(authorizer): authorization for deletion of label mappings
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-01-25 11:17:36 +01:00
Leonardo Di Donato d8d23a0f77 feat(authorizer): test the authorization of label mappings creation 2019-01-25 11:17:36 +01:00
Leonardo Di Donato 605fa99ba8 feat(authorizer): authorization of label mappings creation 2019-01-25 11:17:36 +01:00
Leonardo Di Donato 1849f29f14 chore: refactor according to label mappings improvements
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-01-25 11:17:36 +01:00
Leonardo Di Donato 72679393b9 fix(influxdb): label mappings reference label ID, resource ID, and resource type now 2019-01-25 11:17:36 +01:00
Leonardo Di Donato ead0cb3dcf feat(authorizer): test labels permissions on create, find, delete, and update operations
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-01-25 11:17:36 +01:00
Leonardo Di Donato a2a1f8641f feat(authorizer): initial (incomplete) auth for labels v2 2019-01-25 11:17:36 +01:00
Leonardo Di Donato 5d85bff7ce feat: add labels resource type 2019-01-25 11:17:36 +01:00
Leonardo Di Donato f57f6ae4d4 chore: test specific error for labels not found 2019-01-25 11:17:36 +01:00
Leonardo Di Donato df1fa88cb3 chore: use specific error for labels not found 2019-01-25 11:17:36 +01:00
Iris Scholten 7838e3478e chore(ui/dataLoaders): Move the dataLoaders sidebar, utils, and constants to dataLoaders dir 2019-01-24 17:03:39 -08:00
Iris Scholten 5570e5ef44
Merge pull request #11574 from influxdata/chore/move-dataloaders-configure-verify
chore(ui/dataLoaders): Move the verify and configure components to dataLoaders dir
2019-01-24 16:48:12 -08:00
Brandon Farmer 5e35e7f1ef
Merge pull request #11569 from influxdata/feat/move-organizations-external-client
Move organizations to external client library
2019-01-24 16:36:39 -08:00
Iris Scholten f772e0d630 chore(ui/dataLoaders): Move the verify and configure components to dataLoaders dir 2019-01-24 16:36:07 -08:00
Iris Scholten 30a0ee8475
Merge pull request #11562 from influxdata/chore/move-dataloaders-selection
chore(ui/dataLoaders): Move selection step components to dataloaders dir
2019-01-24 16:34:33 -08:00
Brandon Farmer 5cf5d98c11 Move organizations to external client library 2019-01-24 16:21:54 -08:00
Brandon Farmer 32c32eff0f
Merge pull request #11563 from influxdata/feat/move-buckets-external-client
Move buckets to use external client library
2019-01-24 16:06:15 -08:00
Mark Rushakoff a0ff60c075 fix(task): respect limit when finding runs 2019-01-24 15:32:16 -08:00
Brandon Farmer 82295be8ff Move buckets to use external client library 2019-01-24 15:16:27 -08:00
Iris Scholten 678ab37225 chore(ui/dataLoaders): Move selection step components to dataloaders dir 2019-01-24 15:14:12 -08:00
Lyon Hill bdf65f5dfe
Remove owner from task json responses (#11504)
* Remove owner from task json responses

* allow for crud to run in parallel with other tests

To be parallel we just cant assume we only have 1 task.
2019-01-24 16:05:24 -07:00
Iris Scholten c91f2be31d
Merge pull request #11553 from influxdata/chore/move-dataloader-actions
chore(ui/dataLoaders): Move dataloaders actions and reducers to dataLoaders dir
2019-01-24 15:03:32 -08:00