Commit Graph

357 Commits (7fb015cc7f88391f9e7ffcc3ad492b1b09d0d536)

Author SHA1 Message Date
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 07874d6246 add tests for /tasks endpoint 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
zhulongcheng 631cb9a5f8 update task swagger definition 2018-11-21 10:08:20 -08:00
Christopher Henn 3834744464 Consolidate similar view types to "xy" view type 2018-11-21 08:42:54 -08:00
Jade McGough 096143977a
Merge pull request #1396 from bednar/user-mapping-response
fix GetMembersHandler
2018-11-21 00:47:35 -08:00
Jade McGough c76539d13d
Merge pull request #1397 from bednar/url_missing_member_id
Fixed the organizations members paths
2018-11-21 00:45:41 -08:00
Michael Desa 21e6c7bdce
Merge pull request #1540 from influxdata/fix/md-keep-query-authz
fix(platform): keep authorization struct on proxy query request
2018-11-20 16:50:14 -08:00
Michael Desa 81d1520dc6 fix(platform): keep authorization struct on proxy query request
As a result of pr https://github.com/influxdata/platform/pull/1494, idpe
broke. This PR undoes some of the work done from that PR, but fixes the
underlying issue with #1494.
2018-11-20 15:20:51 -08:00
Brandon Farmer 272ffc44d6 Change swagger to represent nested task 2018-11-20 15:06:30 -08:00
Brandon Farmer 4f8ae2ba5a Switch Task UI get tasks to use generated client 2018-11-20 13:58:02 -08:00
Michael Desa 407c01cb17 fix(platform): use authorizer instead of authorizion for endpoints
feat(platform): add ToPermissions method to user resource mapping

The ToPermissions method returns a set of permissions that is granted
via a user resource mapping.

feat(bolt): resolve sessions permissions on lookup

feat(http): use authorizer instead of authorization service for write api

feat(bolt): create user resource mappings for org users in bucket create

feat(bolt): create user resource mapping for first org/user

fix(platform): use authorizer for query endpoint instead of authorization

test(http): use cmp instead of reflect for decode test
2018-11-20 10:56:58 -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
Kelvin Wang 25eebd0084 fix(http): convert auth errors 2018-11-16 19:33:20 -05:00
Kelvin Wang 8d15d70360 fix(http): convert auth errors 2018-11-16 19:30:34 -05:00
Chris Goller aaf69ffbc9
Merge pull request #1411 from influxdata/feature/grpc-errors
feat(kit/grpc): add translation between gRPC status and platform.Error
2018-11-16 16:16:34 -06:00
Chris Goller 6054288f3e feat(kit/grpc): add translation between gRPC status and platform.Error 2018-11-15 21:16:48 -06:00
Chris Goller ea5d9112b2 feat(http): self sources now return links to /api/v2 2018-11-15 19:01:34 -06: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
Ben Johnson 37be1e9219
Add end-to-end write/query integration testing. 2018-11-15 09:08:36 -07:00
Christopher Henn 81c0e53c4a Add initial source management UI 2018-11-14 16:38:25 -08:00
Jakub Bednar 324f0b9516 Fixed the organizations members paths 2018-11-14 11:54:06 +01:00
Jakub Bednar 0bdc2adec4 Fixed Get Owner Members 2018-11-14 11:19:56 +01:00
Christopher Henn 0b5f7a01ca Update Flux query URL for v1 sources
Previously, a v1 source was configured with a `URL` and `fluxURL`. The
`URL` was used for querying InfluxQL data, while the `fluxURL` pointed
to a `fluxd` instance and was used for querying Flux data.  Since then,
`fluxd` has been subsumed by the InfluxDB 1.7 release, which supports
both InfluxQL and Flux.

This commit updates the source proxy query service to query Flux data
from a V1 source directly.
2018-11-09 09:48:04 -08:00
Brandon Farmer 513bd16523
Merge pull request #1279 from influxdata/fix/me-response
fix(http): user response of me at top-level
2018-11-08 13:58:59 -08:00
Jonathan A. Sternberg fadf4f3e4f
deps: update flux dependency 2018-11-08 14:49:35 -06:00
zhulongcheng 9b817ed0d2 fix(http): add userID parameter 2018-11-09 00:10:44 +08:00
Lyon Hill 8bb6185092
fix a typo in the task service (#1318) 2018-11-07 13:15:53 -07:00
Nathaniel Cook 9fecaa0eb0 chore: Update for Flux renaming 2018-11-05 19:30:22 -07:00
Chris Goller 9fdfdbad5b fix(http): user response of me at top-level 2018-11-05 12:25:37 -05:00
Michael Desa c70c884fb9
Merge pull request #1258 from influxdata/feat/operation-log
WIP: add operation log for resources
2018-11-02 14:34:12 -04:00
Chris Goller 9d507a220a
Merge pull request #1280 from influxdata/feature/query-plan
refactor(http): preallocate query plans
2018-11-02 13:25:42 -05:00
Michael Desa 7227bf8fa2 feat(platform): add operation log for resources
feat(platform): add dashboard operation log interface

feat(bolt): add dashboard operation log to bolt client

feat(platform): add links to dashboard load response

fix(http): update links in json response of dashboards

feat(bolt): add operation logs for each resource

feat(http): add routes for operation logs

feat(cmd/influxd): set operation logs on http api backend
2018-11-02 14:21:14 -04:00
kelwang 3fed14dabc
Merge pull request #943 from influxdata/feat/inmem_onboarding_basic_auth
add inmem service for basic auth, http onboarding testing
2018-11-02 13:22:00 -04:00
Chris Goller 84af710e42 refactor(http): preallocate query plans 2018-11-02 12:03:45 -05:00
Kelvin Wang 63da5d1e9f (feat/testing) add onboarding and basic auth service 2018-11-02 12:20:45 -04:00
Kelvin Wang cb4e095463 fix the error code for 400 2018-11-02 11:28:39 -04:00
Chris Goller 3e54ef9f53
Merge pull request #1275 from influxdata/feature/query-plan
feat(http): add plan endpoint to analyze queries
2018-11-02 09:25:51 -05:00
Chris Goller 0d7b77d3dd feat(http): add query plan validation 2018-11-02 09:11:57 -05:00
kelwang 8f52f9e1dc
Merge pull request #1273 from influxdata/fix/http_error
(fix/http): make error compatible with new and old lib
2018-11-02 10:03:21 -04:00
Chris Goller 7ca5187dc6 feat(http): add plan endpoint to analyze queries 2018-11-01 21:00:37 -05:00
Kelvin Wang 5378fe877a (fix/http): make error compatible with new and old lib 2018-11-01 20:28:40 -04:00
Kelvin Wang 5b7b123d1e fix user response 2018-11-01 20:12:04 -04:00
Jorge Landivar 34ab06634f
Merge pull request #1266 from influxdata/opentracing
open tracing context handling for tasks and for HTTP endpoints for tasks and query
2018-11-01 16:33:19 -05:00
docmerlin (j. Emrys Landivar) bcbd7b5c24 context handling for tasks and for HTTP endpoints for tasks and query 2018-11-01 16:29:52 -05:00
Mark Rushakoff dae3dc8a7e chore(bolt,http,mock,query,testing): fix megacheck errors 2018-11-01 12:54:46 -07:00
kelwang 7709537722
Merge pull request #1254 from influxdata/fix/logger_panic
fix the logger, and get resturns nothing
2018-11-01 11:23:27 -04:00