Mark Rushakoff
4df856c229
chore(task): add messages to all HTTP errors from tasks
...
Closes #11544 .
2019-01-25 09:22:34 -08: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
df1fa88cb3
chore: use specific error for labels not found
2019-01-25 11:17:36 +01:00
Mark Rushakoff
a0ff60c075
fix(task): respect limit when finding runs
2019-01-24 15:32:16 -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
kelwang
27b4d45e9e
Merge pull request #11309 from influxdata/add_urm_scraper
...
Add urm scraper
2019-01-24 14:21:09 -08:00
Mark Rushakoff
04a86c92af
fix(http): consistently use influxdb errors in task handlers
...
And ensure that the task HTTP client consistently expects influxdb
errors, so that they're properly extracted and returned to the caller.
Closes #11426 .
2019-01-24 11:25:02 -08:00
Kelvin Wang
74b5dccfb4
updates based on review
2019-01-23 09:29:50 -08:00
Kelvin Wang
0e4c55a82c
feat(http): add urm endpoints
2019-01-23 08:46:33 -08:00
Kelvin Wang
6e3e4503c2
feat(influxdb): add urm for scraper
2019-01-23 08:46:32 -08:00
Iris Scholten
1aa238fcba
Refactor search logic to include scrapers with no bucket
...
Co-authored-by: Chris Goller <goller@gmail.com>
2019-01-22 18:29:08 -08:00
Chris Goller
e5f8ee0d76
fix(http): add default org/bucket id of zero when it doesn't exist
2019-01-22 19:35:23 -06:00
Chris Goller
799375d4a8
fix(http): if bucket or org do not exist, do not report
2019-01-22 19:21:23 -06:00
Delmer
f074315881
fix(ui): wiring for labels ( #11404 )
...
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2019-01-22 14:22:11 -08:00
Chris Goller
204b2b4d7d
Merge pull request #11366 from influxdata/feature/hosted-docs
...
feat(http): host swagger docs at /docs and /api/v2/swagger.json
2019-01-22 15:49:44 -06:00
Michael Desa
d9473182d2
fix(cmd/influx): make setup, write, query a solid experience
...
fix(cmd/influx): format error for bare influx command
feat(cmd/influx): add org flag to query command
fix(cmd/influx): check correct error in wrapCheckSetup
fix(influx/cmd): use correct shorthand flag for org flag
feat(cmd/influx): wrapCheckSetup with wrapErrorFmt
feat(cmd/influx): cleanup language and errors during setup command
fix(http): use id query param in get buckets request
feat(cmd/influx): add helpful error messages for write command
feat(cmd/influx): add context to query command
2019-01-22 13:25:17 -08:00
Mark Rushakoff
6bda17c673
fix(task): use formal errors during task creation
...
The client expects influxdb.Error, so use them on the server.
Also clarify the message when the task option is missing.
2019-01-22 09:40:51 -08:00
Chris Goller
a11773838f
feat(http): host swagger docs at /docs and /api/v2/swagger.json
2019-01-22 11:16:27 -06:00
zhulongcheng
acbb47781e
pr review changes
2019-01-22 21:24:05 +08:00
zhulongcheng
edf8dfad52
fix(http): convert write error
2019-01-22 11:28:15 +08:00
Chris Goller
5c73b12887
Merge pull request #11336 from influxdata/feat/prom-api-request-hist
...
feat(http): use default prom histogram buckets
2019-01-21 11:16:26 -06:00
Michael Desa
e2bc8afc04
Merge pull request #11301 from influxdata/feat/authorize-urm
...
authorize user resource mapping operations
2019-01-21 08:33:25 -08:00
Chris Goller
e2bbf2495e
Merge pull request #11083 from zhulongcheng/panic-stack
...
fix(http): log api panic with a stack trace
2019-01-21 10:06:05 -06:00
zhulongcheng
bb7df1fb4d
add test for logging http panics
2019-01-21 23:29:28 +08:00
Chris Goller
a28494ad76
feat(http): use default prom histogram buckets
2019-01-19 19:19:18 -06:00
Brandon Farmer
b42cf30062
Pass task options on update
2019-01-18 16:39:12 -08:00
Chris Goller
49782c3be4
feat(bolt): add metrics for resources stored in boltdb
2019-01-18 17:45:45 -06:00
Mark Rushakoff
3e1551334f
fix(http): ensure response body always closed
...
This avoids leaking resources.
Found by manually inspecting results of `git grep -A5 -F '= hc.Do'`.
2019-01-18 14:55:48 -08:00
Delmer
e2ffc17b21
fix(ui): add session timeout notification ( #11281 )
...
Co-authored-by: Chris Goller <goller@gmail.com>
2019-01-18 17:43:00 -05:00
Iris Scholten
02c02f9b40
fix(ui/dataLoaders): Update scraper targets to scraper
2019-01-18 14:08:23 -08:00
Michael Desa
cdc9146b78
feat(influxdb): add authorized user resource mappings
...
feat(bolt): add function to find a resources organization id
rename platform to influxdb
Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
fix(bolt): rename FindResoureOrganization to FindResoureOrganizationID
feat(authorizer): add authorized user resource mapping service
Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
feat(influxdb): wire up authorized user resource mapping
Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
fix(authorizer): remove unused field from tests
Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2019-01-18 14:22:08 -05:00
Jade McGough
8a1d7ba1ba
Labels v2 ( #11198 )
...
* WIP first-class endpoint for labels
* WIP
* WIP
* add all the boilerplate
* fix boltdb
* fix http label test
* fix test
* WIP
* fix test failures
* reenable all tests
* add failing test for label mappings
* add label mapping bolt bucket
* implement resource -> label mapping fn
* add inmem label mapping
* delete label mappings
* remove unused stuff
* add missing functions
* add POST endpoint for labels
* add GET route for label
* delete label endpoint
* add label patch endpoint
* remove commented code
* add label service to api handler
* update comment
* add FindLabelByID test
* use platform.Error
* change path name
* formatting
* remove label patch from swagger
* avoid potential orphaned mapping bug
* guard against creating label mappings from nonexistent labels
* update swagger
* update swagger
* update swagger
* fix swagger indentation
* update swagger
2019-01-18 11:03:36 -08:00
Mark Rushakoff
27d854d771
fix(http): display platform error from task client
2019-01-18 10:25:06 -08:00
kelwang
ecf63c7935
Merge pull request #11285 from influxdata/update_scraper_endpoint
...
fix(http): update scrapers endpoint
2019-01-18 11:59:09 -05:00
Lyon Hill
523e52d662
Show organization names in task api actions ( #11223 )
...
* Show organization names on task actions.
closes #10876
2019-01-18 09:10:14 -07:00
Kelvin Wang
63ae68b9eb
fix(http): update scrapers endpoint
2019-01-18 10:38:28 -05:00
Kelvin Wang
f0838e4c71
feat(authorizer): add scraper authorizer
2019-01-18 10:01:51 -05:00
Leonardo Di Donato
4706339a9a
feat(http): hook handler's source svc to authorizer
2019-01-18 14:05:36 +01:00
Michael Desa
24e10a4594
Merge pull request #11261 from influxdata/feat/authorize-auths
...
add authorized authorization service
2019-01-18 07:55:28 -05:00
Michael Desa
c9f2a597a4
Merge pull request #11207 from influxdata/feat/authorize-dashboards
...
add dashboard authorization
2019-01-18 07:55:15 -05:00
Michael Desa
58a555a619
Merge pull request #11221 from influxdata/feat/authorize-users
...
feat(influxdb): add authorization for user actions
2019-01-18 07:55:03 -05:00
Michael Desa
3f6b5a27e8
feat(http): wire up authorized authorization service
2019-01-17 19:03:36 -05:00
Iris Scholten
40e75ced16
Merge pull request #11183 from influxdata/feat/plugin-links
...
Add additional info links to plugin forms
2019-01-17 14:35:00 -08:00
Mark Rushakoff
3f2a5578a5
fix(http): fix typo in owner/member links
...
There was an extra s in owner links, for example:
{"links":{"self":"/api/v2/taskss/034356818538f000/owners"},"users":[]}
All of the ResourceType values in authz.go already are plural, so I am
fairly certain that the extra s was just a typo all along.
2019-01-17 14:09:03 -08:00
Iris Scholten
022b19358c
Add additional info links to plugin forms
2019-01-17 14:07:53 -08:00
Michael Desa
01983553c4
feat(influxdb): add authorization for user actions
2019-01-17 16:05:24 -05:00
Michael Desa
78249fdb89
feat(http): wire up dashboard authorizer
2019-01-17 16:04:16 -05:00
Nathaniel Cook
b031e22003
feat(http): add vnd.flux content-type support
...
Fixes #10745
2019-01-17 14:01:56 -07:00
Deniz Kusefoglu
15547eda0d
Merge pull request #11197 from influxdata/feat/add-protoboard-creation-to-onboarding
...
Add protos state in redux and create protos API infrastructure
2019-01-17 11:51:55 -08:00
Kelvin Wang
2f97711703
feat(authorizer): add telegraf authorizer
2019-01-17 11:37:01 -05:00