Michael Desa
f271d0a580
test(http): add tests to ensure labels can be added to resources
...
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2019-02-07 19:08:59 -05:00
Michael Desa
23f6c4b3fe
fix(http): pass resource type through to label handlers
...
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2019-02-07 19:08:56 -05:00
Michael Desa
5a6a6a94ef
fix(http): rename platform to influxdb in package
...
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2019-02-07 19:08:41 -05:00
Iris Scholten
aad4193c3f
fix root labels endpoint
...
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
Co-authored-by: Delmer Reed <del@influxdata.com>
Co-authored-by: Jade McGough <jade@influxdb.com>
2019-02-07 14:21:49 -08:00
Jonathan A. Sternberg
e0e3a17ed9
Merge branch 'master' into flux-staging
2019-02-07 10:26:21 -06:00
Brandon Farmer
0f2b8487ee
Remove validation of cur_swagger
2019-02-06 16:28:49 -08:00
Brandon Farmer
8150ccac61
Remove cur_swagger.yml
2019-02-06 16:24:42 -08:00
Brandon Farmer
7e22ffea5a
Add complete list of links to sources swagger
2019-02-06 15:51:39 -08:00
Brandon Farmer
bb8a724c6e
Fix tasks response in swagger
2019-02-06 15:00:36 -08:00
Brandon Farmer
960f6882b7
Swagger fixes
2019-02-06 14:03:54 -08:00
Michael Desa
81734dcb00
Merge pull request #11722 from influxdata/revert/pr#10947
...
fix(influxdb): revert functionality added in pr#10947
2019-02-06 16:53:01 -05:00
Brandon Farmer
5e64b5ba71
Consolidate swagger documentation
2019-02-06 13:04:15 -08:00
Michael Desa
386c70ea0d
fix(influxdb): revert functionality added in pr#10947
2019-02-06 15:54:09 -05:00
Michael Desa
dbc241b728
fix(http): use urm without authz where appropriate
2019-02-06 14:24:21 -05:00
Leonardo Di Donato
b60ac48f6c
fix(http): task service should use new task backend also when testing user resource mappings
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-02-06 19:18:23 +01:00
Leonardo Di Donato
e6bb9e6b97
feat(http): view backend for view http handler
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-02-06 19:18:23 +01:00
Leonardo Di Donato
24441cd2ad
fix(http): scrapers members and owners
2019-02-06 19:18:23 +01:00
zhulongcheng
2d48b85f0a
feat(http): construct label handler by LabelBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
be37e07bea
feat(http): construct member handler by MemberBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
57dc6664f5
feat(http): construct flux handler by FluxBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
c283b068ed
feat(http): construct write handler by WriteBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
df93adce9a
feat(http): construct telegraf handler by TelegrafBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
18f4825e4f
feat(http): construct task handler by TaskBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
c95e8b14da
feat(http): construct setup handler by SetupBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
2c89ee715b
feat(http): construct source handler by SourceBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
5d8b1507f5
feat(http): construct scraper handler by ScraperBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
385cca43b7
feat(http): construct authorization handler by AuthorizationBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
639753ab45
feat(http): construct macro handler by MacroBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
ac43477d68
feat(http): construct dashboard handler by DashboardBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
ef308ab9bd
feat(http): construct org handler by OrgBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
e29f925679
feat(http): construct bucket handler by BucketBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
4dbfae4628
construct user handler by UserBackend
2019-02-06 19:18:23 +01:00
Brandon Farmer
3992fa9d54
Remove typescript client generation
...
- All api calls are now through the client or raw XMLHTTPRequest
2019-02-05 17:13:57 -08:00
Lorenzo Affetti
ce00375298
refactor(query/stlib): move from implementation from Flux
2019-02-05 17:46:46 +01:00
Lyon Hill
ab2a7265a4
Add user resource management to the task API ( #11664 )
...
* Add user resource management to the task API
step 1 and 2 of #11427
2019-02-05 08:26:26 -08:00
Chris Goller
b8584b72ef
Merge pull request #11651 from zhulongcheng/http-simplify-code
...
chore(http): simplify code
2019-02-04 08:31:03 -06:00
zhulongcheng
e024b13a2e
fix(http): rename desc to descending
2019-02-02 15:11:06 +08:00
zhulongcheng
75d62b5fba
chore(http): simplify code
2019-02-01 14:02:13 +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
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
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