Commit Graph

919 Commits (bfc42c25d55ba151d1bbfb9c7011f85b6eddb3e7)

Author SHA1 Message Date
Jade McGough 4a4bd76e70
Merge pull request #12585 from influxdata/label-names
Label names
2019-03-15 16:29:35 -07:00
Jade McGough b2775ef9da feat(labels): allow label names to be updated 2019-03-15 16:24:23 -07:00
Kelvin Wang 0fe8479e9f fix(http): remove dup tasks definition 2019-03-15 11:46:30 -04:00
kelwang 769a1a8a10
Merge pull request #12597 from influxdata/swagger_task_runs
feat(http): update swagger to use runs
2019-03-15 11:40:20 -04:00
Kelvin Wang 052510f3ee fix(http): fix telegraf delete 2019-03-15 11:31:22 -04:00
Mark Rushakoff 3092faace8 test(task): ensure task can be created over HTTP using org name
Closes #12089.
2019-03-14 21:23:14 -07:00
Deniz Kusefoglu 14688cd5c7 Add required types to swagger 2019-03-14 12:02:33 -07:00
Jonathan A. Sternberg 1d996630b1
fix(http): set the authorizer on the context in proxy query handler (#12605) 2019-03-14 10:19:47 -05:00
kelwang cb7630abd2
Merge pull request #12598 from influxdata/swagger_add_label_task
fix(http): fix task swagger links labels
2019-03-13 14:24:17 -04:00
kelwang e877428c24
Merge pull request #12596 from influxdata/telegraf_swagger
fix(http): fix swagger label response
2019-03-13 14:23:55 -04:00
kelwang bd952e8d6e
Merge pull request #12595 from influxdata/fix_secret_endpoint
fix(http): change secrets to match swagger
2019-03-13 14:23:39 -04:00
kelwang 878e896e3a
Merge pull request #12594 from influxdata/http_source_health
fix(http): fix source health endpoint
2019-03-13 14:23:01 -04:00
kelwang ba52920df1
Merge pull request #12592 from influxdata/ready
fix(http): fix ready swagger
2019-03-13 14:22:44 -04:00
Iris Scholten a4196ce06d fix(ui): Remove name from cell in swagger definition 2019-03-13 10:18:17 -07:00
Kelvin Wang 5c980304c2 fix(http): fix task swagger links labels 2019-03-13 12:00:03 -04:00
Kelvin Wang 54a8e86d2d feat(http): update swagger to use runs 2019-03-13 11:45:08 -04:00
Kelvin Wang f2adba210f fix(http): fix swagger label response 2019-03-13 11:22:16 -04:00
Kelvin Wang 44f5adeae7 fix(http): change secrets to match swagger 2019-03-13 11:06:36 -04:00
Kelvin Wang 229be14d1a fix(http): fix source health endpoint 2019-03-13 11:04:16 -04:00
Kelvin Wang 69c3882225 fix(http): fix ready swagger 2019-03-13 10:44:14 -04:00
zhulongcheng 8b7050d6d3 docs(http): add bucket and org links to ScraperTargetResponse 2019-03-12 22:29:25 +08:00
zhulongcheng 76c0513d09 docs(http): remove duplicated `name` from ScraperTargetResponse 2019-03-12 18:49:02 +08:00
zhulongcheng 8d2f75ecac docs(http): add missing logs links 2019-03-12 11:18:07 +08:00
Chris Goller 96ed02fdae
Merge pull request #12507 from influxdata/fix/bucket-write-links
fix(http): update bucket write links to include org/bucket
2019-03-11 14:12:42 -05:00
Chris Goller a1ad49842f docs(http): specify that label properties keys must be strings 2019-03-11 13:54:38 -05:00
Chris Goller 831d5110f4 fix(http): update bucket write links to include org/bucket 2019-03-11 13:46:16 -05:00
Jade McGough 33e1f51537
Merge pull request #12498 from influxdata/telegraf-labels
fix(swagger): add type to expected telegraf request properties
2019-03-11 11:06:52 -07:00
Jade McGough 2e61590a55 chore(swagger): add example for telegraf name 2019-03-11 11:00:13 -07:00
Jade McGough 7bd89a9021 fix(swagger): add type to expected telegraf request properties 2019-03-11 10:51:16 -07:00
Chris Goller 83c43e7173 fix(http): log endpoint should be logs 2019-03-11 12:45:25 -05:00
Chris Goller 5e62562243 fix(http/telegraf): add missing member/owner test links 2019-03-10 22:56:52 -05:00
Chris Goller 2011ef7252
Merge pull request #12177 from zhulongcheng/rm-owner-schema
docs(http): add members/owners links
2019-03-10 22:39:53 -05:00
Mark Rushakoff 9bbe321d23 chore: serve swagger.json in development builds
In a development build (i.e. does not have the assets build tag), the
first request to GET /api/v2/swagger.json will produce log output like:

INFLUXDB_VALID_SWAGGER_PATH not set; falling back to checking relative paths	{"log_id": "0E4I7Dkl000", "service": "swagger-loader"}
Successfully loaded swagger.yml	{"log_id": "0E4I7Dkl000", "service": "swagger-loader", "path": "/.../influxdb/http/swagger.yml"}

There is no such log line in production builds.

But now both builds correctly serve swagger.json, instead of just
production builds.
2019-03-09 12:42:44 -08:00
Andrew Watkins 8e36f59f33
Feat/tele token (#12436)
* feat: add telegraf configs to the config page

* feat: add tokens to telegraf configs

* feat(perms): display proper permissions to user

* feat: add tokens to redux

* wip: add token to auths

* hack: make server return labels and links

* wip: create a label for telegraf config

* fix(http/telegraf): JSON marshaling using pointer receiver

* chore: add back whitespace

* chore: add back whitespace

* add telegraf token to popup

* feat(token/tele): remove token when config gets deleted

* test: sadness

* change to streaming

* unskip test
2019-03-08 19:09:42 -08:00
Kelvin Wang dcc052b1c2 fix(query): fix same bucket name with different orgs 2019-03-08 20:37:05 -05:00
Andrew Watkins e3a9e60329 chore: add back whitespace 2019-03-08 14:52:19 -08:00
Chris Goller 27e98a3e41 fix(http/telegraf): JSON marshaling using pointer receiver 2019-03-08 15:12:46 -06:00
Andrew Watkins 7725c79c45 hack: make server return labels and links 2019-03-08 10:14:22 -08:00
Chris Goller a2b06c49cd
Merge pull request #12434 from influxdata/feat/session-to-auth
feat(http): convert user sessions to auth for query service
2019-03-07 16:47:47 -06:00
Lyon Hill ad515cbdc5
Update the required fields for task swagger (#12400)
* Update the required fields for task swagger
2019-03-07 15:34:12 -07:00
Chris Goller c1e74f30ad feat(http): convert user sessions to auth for query service
Co-Authored-By: Kelvin Wang <sherkrainwang@gmail.com>
Co-Authored-By: Michael Desa <mjdesa@gmail.com>
Co-Authored-By: Christopher M. Wolff <chris.wolff@influxdata.com>
2019-03-07 16:01:31 -06:00
Jacob Marble 603a1f26e0 use tracing.StartSpanFromContext 2019-03-07 12:12:31 -07:00
Jacob Marble ed4e3e130b return n with error 2019-03-07 12:12:31 -07:00
Jacob Marble 9541e861a3 goimports -w -local github.com/influxdata/influxdb 2019-03-07 12:12:31 -07:00
Jacob Marble 92fa813c45 add spans to multiple services 2019-03-07 12:12:31 -07:00
Christopher M. Wolff e28ecdc0e9
refactor(query): make queryd present ProxyQueryService (#12360)
Fixes influxdata/idpe#2014.
2019-03-07 07:32:13 -08:00
Jorge Landivar 2d0ba57f4b
Merge pull request #12387 from zhulongcheng/task-paging
feat(http): add task paging links
2019-03-07 01:49:29 -06:00
zhulongcheng fac5986396 remove argument index from fmt string in scraper tests 2019-03-07 11:10:09 +08:00
zhulongcheng 111ed7767d docs(http): add members/owners links 2019-03-07 10:56:36 +08:00
zhulongcheng 593ab12e3c docs(http): remove Owners schema 2019-03-07 10:50:00 +08:00
zhulongcheng a136a302f1 remove ViewService interface 2019-03-07 10:22:19 +08:00
zhulongcheng 1a46cc8f80 fix(http): remove view handler 2019-03-07 10:18:55 +08:00
Palak Bhojani ef440615e6 Update response to include event object for LogEvent type
Co-authored-by: Alex Paxton <thealexpaxton@gmail.com>
Co-authored-by: Chris Goller
2019-03-06 16:01:47 -08:00
Palak Bhojani cdce8b1388 Update Logs type in swagger to match the api response 2019-03-06 14:52:12 -08:00
Michael Desa 2687b7fd61
feat(influxdb): add support for templates
feat(influxdb): add generic store for documents

feat(influxdb): support authorizations in document store

feat(influxdb): support orgs in user resource mapping

feat(influxdb): add read-only included field on documents

feat(influxdb): add labels support to documents service

fix(influxdb): rename data field to content on documents

feat(influxdb): add with org id options for document store

feat(http): add templates swagger

feat(influxdb): add documentation to document options

doc(kv): add documentation for kv document store

test(kv): pull document tests in to the testing package

fix(http): fix swagger specification of templates endpoints
2019-03-06 13:18:31 -08:00
zhulongcheng b8a9c9595d feat(http): add task paging links 2019-03-06 15:06:35 +08:00
Nathaniel Cook a190ddb44c fix(http): fix tests for encoding changes 2019-03-05 16:56:35 -07:00
Alirie Gray dcb8c6e9b9
Merge pull request #12373 from influxdata/fix/remove-org-from-tasks
fix(tasks): replace organization on tasks with org name string
2019-03-05 15:07:20 -08:00
Lyon Hill 17026c2053
change task logs from a string to a struct (#12363)
* change task logs from a string to a struct
2019-03-05 15:58:33 -07:00
Alirie Gray e4b3023748 fix(tasks): replace organization on tasks with org name string 2019-03-05 14:43:50 -08:00
Chris Goller 864eb91f7a feat(http): query client fallback uses context auth
Co-authored-by: Mark Rushakoff <mark@influxdata.com>

Tasks instantiates the query service but does not know the token
it will use ahead of time.  This allows the token to be optionally
set on contex.
2019-03-04 17:19:01 -06:00
Jacob Marble b9c7ec439e
feat(influxd): Tracing refactor (#12318)
* feat(launcher): Tracing to log disabled by default

* remove traceLogger and use opentracing directly

* add Jaeger tracing

* go vet && go fmt
2019-03-04 11:48:11 -08:00
Mark Rushakoff e99c505287 refactor(http): only generate bindata asset for swagger.yml
The previous "." argument with "-ignore go" accidentally matched
README.md and Makefile too, neither of which we care to actually include
as assets.

Now we just explicitly include swagger.yml. It's simple enough to add
another file to the go:generate line if and when we need it.
2019-03-04 09:40:00 -08:00
Mark Rushakoff 3307276be1 fix(task): don't error when URM task disappears
In the platform adapter, we ask the URM for a list of tasks the user
owns, and then we look up each task individually.

The task service tests uncovered a legitimate bug where FindTasks would
return a "task not found" error, originating from looking up a task that
was present when we interrogated the URM but was deleted before we could
find it in the task store.

This change also removes duplicated URM logic from the HTTP handler
which has since been pushed down into the platform adapter.
2019-03-04 08:35:04 -08:00
Ben Johnson 12d35f1a50
Revert "Merge point parse & explode."
This reverts commit 1004abc3e1.
2019-03-02 06:23:04 -07:00
Ben Johnson 1004abc3e1
Merge point parse & explode. 2019-03-01 15:55:37 -07:00
Mark Rushakoff 290d06f98f fix(swagger): synchronize enum with defined error constants 2019-03-01 11:58:11 -08:00
Nathaniel Cook 17c3851c83
Merge pull request #12292 from influxdata/flux-staging
update to Flux v0.21.1
2019-03-01 11:02:16 -07:00
Brandon Farmer df70693e22 Fix indention on swagger.yml CreateDashboardRequest 2019-03-01 09:34:31 -08:00
Delmer Reed 268b40da00 update(http/swagger): update Dashboard to extend CreateDashboardRequest
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2019-03-01 09:34:31 -08:00
Delmer Reed dd168e943d fix(http/swagger/dashboard): update the swagger post request requirements 2019-03-01 09:34:31 -08:00
jlapacik d08f5fe835
dep(http): switch Now property to time value on ASTCompiler (#12272)
Closes #12268.
2019-03-01 08:53:24 -08:00
Jorge Landivar 9e6a2247c0
Merge pull request #12134 from zhulongcheng/validate-task-status
fix(http): validate status for creating and updating a task
2019-02-27 13:08:06 -06:00
Lyon Hill b3f450eca9
Allow the CLI to find tasks by org name (#12202)
* Allow the CLI to find tasks by org name
2019-02-27 08:56:32 -07:00
Jonathan A. Sternberg dd50e10d6d
Merge pull request #12165 from influxdata/flux-staging
update to Flux v0.21.0
2019-02-26 13:12:37 -06:00
docmerlin (j. Emrys Landivar) 669c464335 feat(tasks): look up tasks by orgname 2019-02-25 15:57:01 -06:00
Jonathan A. Sternberg 70507670c3
feat(storage/reads): add scanned values and bytes metadata to the query (#12156)
This updates influxdb to use the new arbitrary metadata that can be
attached by a source and adds metadata entries for the cursor
statistics.
2019-02-25 14:44:18 -06:00
Nathaniel Cook 26e7f641b7 Merge branch 'master' into flux-staging 2019-02-25 13:00:28 -07:00
Chris Goller 8a104eba28
Merge pull request #12102 from zhulongcheng/empty-op-log
fix(http): return an empty list of operation logs if not found
2019-02-25 11:49:01 -06:00
Michael Desa 0d3d0d4d78
chore(influxdb): add context to storage.PointsWriter 2019-02-25 11:11:20 -05:00
zhulongcheng efadd43886 fix(http): validate status for creating and updating a task 2019-02-24 15:34:32 +08:00
Mark Rushakoff f79d9cba4f fix(task): pass task's authorization to query system, if using sessions
The query system specifically expects an Authorization. When a request
comes in using a Session, use the target task's Authorization, if we are
allowed to read it, when executing a query against the system bucket.
2019-02-22 12:50:55 -08:00
Nathaniel Cook a75adf6c4b fix(http): separate InfluxQL and Flux services
Previously the APIBackend understood only a ProxyQueryService,
but it needs to understand that there are two implementations of the
ProxyQueryService one for handling InfluxQL queries and one for handling
Flux queries. The names of the fields have been updated to make this
clear. As well as the FluxBackend is now initialized using the
FluxService explicitly.
2019-02-22 10:31:20 -07:00
Mark Rushakoff 12a604172f fix(task): create authorizations for tasks, which can read their task
Also set the generated token's description while we're here.

This enables us to use task's Authorization when we need to query the
system bucket to get run logs, etc. but we only have a Session.
2019-02-22 09:15:25 -08:00
Mark Rushakoff 6fdcaf83b4 fix(swagger): quote keys named "y"
The YAML parser used by the go-openapi libraries treats an unquoted y as
a boolean key, which will lead to a difficult-to-understand parser
error:

types don't match expect map key string or int got: bool

See also https://yaml.org/type/bool.html.
2019-02-22 08:20:07 -08:00
zhulongcheng ad1bab1a3c fix(http): return an empty list of operation logs if not found 2019-02-22 14:18:13 +08:00
Mark Rushakoff ecb37d7cc4 fix(task): restore functionality for creating task with org name
This is a partial rollback of changes #12004. Issue to track adding a
test: #12089.
2019-02-21 16:30:52 -08:00
Iris Scholten ffc88da46a
Merge pull request #12073 from influxdata/swagger-telegraf-labels-post
Update the swagger definition for a telegraf labels post response
2019-02-21 14:44:09 -08:00
Adam 68c25ec381 Merge remote-tracking branch 'origin/master' into flux-staging 2019-02-21 17:20:12 -05:00
Christopher Henn a499a8b0d9 Enable adding a description to a telegraf config 2019-02-21 14:06:04 -08:00
Iris Scholten 561902e5c4 Update the swagger definition for a telegraf labels post response 2019-02-21 14:02:35 -08:00
jlapacik af258e62e7
feat(http): define external preprocessing options via http api (#11939)
Closes #11702.
2019-02-21 13:11:50 -08:00
Chris Goller 1ec7b69d85 fix(kv): error org search if neither name nor id is set 2019-02-21 11:18:08 -08:00
Christopher Henn 953f703ae5 Add description to spec for telegraf config 2019-02-21 08:25:56 -08:00
zhulongcheng 29d49adcfb doc(http): update request body for updating a task 2019-02-21 08:25:45 -08:00
Lyon Hill 3665feef38
Populate organization name on task create action (#12004)
* Populate organization name on task create action

* Move the responsiblity of organization lookup to the platform adaptor
2019-02-20 13:36:35 -07:00
Mark Rushakoff ec1019b930 chore: add .editorconfig and enable in CI 2019-02-19 16:58:07 -08:00
Chris Goller 2e694241be
Merge pull request #11768 from bednar/scraper-backend
NewScraperBackend doesn't have associate UserService, UserResourceMappingService and LabelService
2019-02-19 18:57:09 -06:00
Chris Goller 81c55e8da8
Merge pull request #11962 from zhulongcheng/docs-label
docs(http): fix typos
2019-02-19 18:46:13 -06:00
Chris Goller 813d684aeb
docs(http): add operation log endpoints (#11487)
Closes #11359
2019-02-19 18:36:41 -06:00