zhulongcheng
8984490ace
unify code style
2018-11-21 10:08:20 -08:00
zhulongcheng
19dd22fcfa
fix typos
2018-11-21 10:08:20 -08:00
zhulongcheng
6a01187dc5
fix POST /tasks param
2018-11-21 10:08:20 -08:00
zhulongcheng
2f6e36c3ca
update GET /tasks response to implement swagger definition
2018-11-21 10:08:20 -08:00
Brandon Farmer
b4aa8ff1d6
Add generated API code and use for task creation
...
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-11-20 09:49:39 -08:00
Brandon Farmer
0bdb3414ae
Add updated swagger docs for Task Creation
2018-11-20 09:43:21 -08:00
Mark Rushakoff
b0b0d965ff
feat(task): integrate task logs with system buckets
...
- Brought over enterprise's QueryLogReader, with small adjustments
- Time filters are for the run's ScheduledFor field, per spec
- Adjusted run log timestamps for consistent formatting:
- ScheduledFor is RFC3339 because it's a whole-second timestamp
- StartedAt, FinishedAt use RFC3339Nano for high precision
- Several test adjustments to use relative time, for easier integration
with storage retention
2018-11-15 08:59:15 -08:00
Lyon Hill
8bb6185092
fix a typo in the task service ( #1318 )
2018-11-07 13:15:53 -07:00
Mark Rushakoff
cd80e41220
feat(task): add ability to retry runs
...
This also adjusts the TaskService interface's RetryRun method to accept
a task ID rather than an org ID. Internally, we still look up runs by
organization, and maybe that will change later, but this is a more
natural way for clients to look it up.
2018-10-30 09:20:40 -07:00
Jorge Landivar
198793d955
Merge branch 'master' into cancel-task
2018-10-29 17:07:02 -05:00
docmerlin (j. Emrys Landivar)
6e2620418c
Now you can cancel runs
2018-10-29 16:08:50 -05:00
Chris Goller
e621ed8e72
fix(http): all DELETEs now return 204
2018-10-29 14:10:33 -05:00
Mark Rushakoff
095c2be65f
chore(http): add links to tasks and runs responses
...
Fixes #1155 .
2018-10-24 14:04:08 -07:00
Lyon Hill
19b7709bad
Add tasks to the influx cli ( #1163 )
2018-10-23 11:51:13 -06:00
Jade McGough
a057bc613a
Merge pull request #1103 from influxdata/fix/member-endpoints
...
fix member endpoints panic
2018-10-22 13:12:45 -07:00
Kelvin Wang
c54df3d052
refactor(token): remove context token
2018-10-19 12:39:54 -04:00
Jade McGough
8b12e90a46
run go fmt
2018-10-16 15:18:22 -07:00
Jade McGough
d280b7ea43
fix(http): inject user_resource_mapping_service when creating route handlers
2018-10-16 14:49:35 -07:00
Chris Goller
7a0206b2a5
refactor(http): remove variables named temp
2018-10-11 09:54:19 -05:00
Leonardo Di Donato
8d7f06cf4b
feat(platform/id): using uint64 for platform.IDs
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-Authored-by: Lorenzo Fontana <lo@linux.com>
2018-10-11 09:54:18 -05:00
Lyon Hill
610faf18e7
Update the scheduler to add a few task logs ( #1029 )
2018-10-10 12:37:11 -06:00
Jade McGough
bb6d8cf156
fix(http): inject resource type into Post member factory
2018-10-09 13:19:19 -07:00
Jade McGough
4c7f66a1c3
feat(http): add owner/member endpoints for tasks
2018-10-09 13:19:19 -07:00
Jade McGough
bf29ff7ca3
convert task service http endpoints into constants
2018-10-09 13:19:19 -07:00
Lyon Hill
f081ce95f0
allow run shows to work with an actual org id. ( #981 )
...
* allow run shows to work with an actual org id.
also necessary for using actual run lists
2018-10-08 14:07:08 -06:00
Mark Rushakoff
94b5cd7d63
feat(task): explicitly handle orgs when finding run logs
...
Per #905 , we will eventually support inferring organization from token.
In the meantime, allow the user to specify the org for their task.
No tests for this change; there is some test coverage in enterprise.
2018-10-01 11:05:56 -07:00
Lorenzo Fontana
1a2f606533
Convert everything to /api/v2
...
Signed-off-by: Lorenzo Fontana <lo@linux.com>
2018-09-28 14:23:21 +02:00
Lorenzo Fontana
30afec36bc
Convert all routes to v2 endpoint
...
Signed-off-by: Lorenzo Fontana <lo@linux.com>
2018-09-28 14:20:31 +02:00
Lyon Hill
f718b9cdca
feat(task): create validation layer for TaskService ( #591 )
...
* feat(task): create validation layer for TaskService
2018-08-20 15:15:04 -06:00
Michael Desa
8c87c9d132
revert #442
2018-08-01 14:54:32 -04:00
Leonardo Di Donato
c59e4e8a50
Refactoring http package
2018-08-01 18:20:59 +02:00
Nathaniel Cook
b63394da0a
fix(errors): Update Fluxd errors
...
This PR also completes some TODOs about kit/errors and http/errors.
2018-06-28 16:56:35 -06:00
Jade McGough
c0018b31f0
feat(http): move run id to path for logs
2018-06-14 17:06:44 -07:00
Jade McGough
44df62891c
fix(http): use task id from path, not params
...
Squashed commit - includes fixes for comments on PR.
2018-06-14 17:05:41 -07:00
Jade McGough
d756083890
feat(http): add endpoints for runs and logs
2018-06-14 17:05:32 -07:00
Jade McGough
e68b635402
feat(http): add single task http handlers
2018-06-14 16:56:27 -07:00
Jade McGough
057161bdc0
feat(http): add http service for tasks
2018-06-14 16:56:27 -07:00