Chris Goller
837a410bea
feat(http): gzip compress the query CSV response. ( #14495 )
...
If client requests with Accept-Encoding: gzip, then
compress response and return with Content-Encoding: gzip.
This increases the server-side load by about 12%, but saves network bandwidth.
benchmark old ns/op new ns/op delta
Benchmark_Query_no_gzip-4 123609 137885 +11.55%
benchmark old allocs new allocs delta
Benchmark_Query_no_gzip-4 149 150 +0.67%
benchmark old bytes new bytes delta
Benchmark_Query_no_gzip-4 14297 15205 +6.35%
2019-07-29 14:47:55 -05:00
zhulongcheng
ce4d5a9852
feat(http): patch notification rule
2019-07-28 22:08:23 +08:00
zhulongcheng
41a8174dca
docs(http): patch notification rule
...
/notificationRules/{ruleID}
2019-07-28 22:04:04 +08:00
Alirie Gray
7b96bd95f0
test(tasks): fix cypress tests for task creation with token
2019-07-26 09:51:33 -07:00
Alirie Gray
c04f3a2b30
chore(tasks): remove old auth code and allow only token auth
2019-07-26 09:51:32 -07:00
Kelvin Wang
dcda49d1d0
feat(http): add notification rule handler
2019-07-25 15:15:35 -04:00
Kelvin Wang
de7f5dd8e0
fix(http): replace patch n rule to put
2019-07-25 15:15:35 -04:00
Deniz Kusefoglu
613aef698f
Add alerting cards ( #14429 )
...
* bump to client 0.5.3
* export Query type from client and create alerting mock
* Bump client to 0.5.5
* Merge all status enums to one type
* Fix threshold visualization types
* Add extra underscore to notification rules
* Use check view type from client
* Add description field to checks, notificationrules and endpoints
* Add init check cards
* Add check card actions
* Correct component name
* Add check card context and toggle
* Add id to notification rule base
* Add notification rule cards
* add checks reducer tests
* user immer for checks reducer
* add tests and immer to notification rule reducer
2019-07-24 00:34:42 -07:00
Jorge Landivar
47cd6df834
fix(http): task runs and logs no longer use task token ( #14416 )
...
* fix(http): task runs and logs no longer use task token
* test(http): skip session tests
These tests are not using checking authorization correctly.
2019-07-23 10:31:39 -05:00
Jorge Landivar
9dd27067e8
Merge pull request #14009 from influxdata/cancel-runs-schema
...
chore(tasks): add swagger for canceling task runs
2019-07-23 02:55:06 -05:00
Deniz Kusefoglu
e399e656ce
Fix aggregate window: change name parameter to period ( #14407 )
2019-07-22 13:39:31 -07:00
Jonathan A. Sternberg
47b032464f
refactor(query): handle flux errors in the query controller instead of http ( #14368 )
...
If we handle the flux errors in the query controller, it makes it so we
are handling the errors in the location where the happen rather than at
a layer further up the stack.
This should simplify it so the errors are handled in this single
location instead.
2019-07-18 11:43:15 -05:00
Deniz Kusefoglu
6e77b64da9
Fix dashboard query swagger definition to reflect reality ( #14370 )
2019-07-17 19:23:51 -07:00
Deniz Kusefoglu
cd4b048ac7
Fix alert types and discriminators ( #14358 )
...
* Add discriminator and enum to check types
* Add threshold discriminators and type enum
* Add notification rule discriminators and type enum
* Remove description field
* Fix reference to threshold base
* Move types to ViewBase type from each View Property
* Fix view properties
* Add monotonex to swagger options
* Add empty to view types
* remove whitespace
2019-07-17 11:15:01 -07:00
kelwang
99bfd05820
Merge pull request #14339 from influxdata/add_debug_log
...
feat(http): add auth debug log
2019-07-15 17:08:41 -04:00
Deniz Kusefoglu
b03e887c37
Fix alerts swagger ( #14348 )
...
* Convert operators to strings
* Change queries to query
* fix Check types
* fix notification rules
* fix notification endpoints
2019-07-15 14:07:22 -07:00
Alirie Gray
c7f09d6a56
chore(tasks): use pointers for task errors ( #14343 )
2019-07-15 13:57:51 -07:00
kelwang
d45bd1bb83
Merge pull request #14344 from influxdata/auth_create_user_fix
...
fix(http): fixed auth userid overwrite
2019-07-15 14:19:34 -04:00
Kelvin Wang
b4eb32c222
fix(http): fixed auth userid overwrite
2019-07-15 14:06:02 -04:00
Jonathan A. Sternberg
63aeff31b1
feat(http): handle flux errors that are returned from the query service ( #14338 )
...
Flux errors that are returned from the query service will be adapted to
an influxdb.Error and then will be written to HTTP correctly.
2019-07-15 12:50:53 -05:00
Kelvin Wang
f55cf4c8b3
feat(http): add auth debug log
2019-07-15 12:09:59 -04:00
Deniz Kusefoglu
e9081d68a4
WIP Add alerts and notification swagger definitions ( #14324 )
...
* Rename check schema to healthcheck
* add alert schema and endpoints
* Add checkView as a view type
Co-Authored-By: Jade McGough <jademcgough@users.noreply.github.com>
2019-07-12 14:34:36 -07:00
Kelvin Wang
1681e3b801
fix(http): use the original error code
2019-07-05 12:34:00 -04:00
Kelvin Wang
0b03ce0e0b
fix(http): query handler conflict
2019-06-27 19:16:54 -04:00
kelwang
c4fd4d7986
Merge pull request #14213 from influxdata/error_encode_interface
...
Error encode interface
2019-06-27 18:03:59 -04:00
Christopher M. Wolff
cc5afac422
fix(http): add org ID to flux handler ( #14225 )
2019-06-27 14:33:22 -07:00
Kelvin Wang
9ecada4dce
feat(http): convert errorEncode to use interface
2019-06-26 21:41:01 -04:00
Luke Morris
701501d00d
feat(http/me): oauthID could in theory be updated
2019-06-26 14:42:29 -07:00
Palak Bhojani
b67ea62562
Add oauthID to the user interface instead of session
2019-06-26 11:45:34 -07:00
Luke Morris
1c3b92dacb
feat(http/me): name type according to semantics
2019-06-26 11:45:34 -07:00
Luke Morris
03f6d0e521
feat(http/me): name function according to semantics
2019-06-26 11:45:34 -07:00
Luke Morris
225586f83f
feat(me): return oauth id with user object
2019-06-26 11:45:34 -07:00
Chris Goller
14e7daa6e4
fix client tracing propagation from doubly recording ( #14204 )
...
Closes #14203
* chore(vendor): update to opentracing 1.1.0
* fix(http): finish client span
* fix(http): remove extra span injection
2019-06-26 00:48:15 -05:00
lisale0
1d6a0c5a3c
fix pr
2019-06-21 11:55:28 -07:00
lisale0
6206b905a4
set va directly and remove comment
2019-06-20 16:30:25 -07:00
lisale0
63bc965606
fix findvar test
2019-06-20 16:25:38 -07:00
lisale0
8c045ad08a
gofmt
2019-06-20 16:25:38 -07:00
lisale0
3d18984c70
fix tests
2019-06-20 16:25:38 -07:00
lisale0
2187bf345b
fixed bolt and inmem tests
2019-06-20 16:25:38 -07:00
Jade McGough
2cd14c7cdb
fix failures in variable http testing
2019-06-20 16:25:38 -07:00
lisale0
3330d38984
feat(http): adding createdAt variable
2019-06-20 16:25:38 -07:00
Adam
e4fbaa61e3
Merge remote-tracking branch 'origin/master' into flux-staging
2019-06-18 16:14:00 -04:00
Christopher Wolff
67236ea887
refactor(http): make http.Query use FluxCompiler when query is passed as text
2019-06-18 11:45:17 -07:00
Alirie Gray
66157c9d44
chore(tasks): consolidate task errors into task_errors.go
2019-06-17 16:03:18 -07:00
kelwang
869b29da18
Merge pull request #14071 from zhulongcheng/rename-OrgID
...
fix(http): rename OrgID to orgID
2019-06-13 12:16:24 -04:00
Alirie Gray
0ae2d318b1
chore(tasks): update run limits in swagger and FindRuns
2019-06-12 14:48:32 -07:00
Lyon Hill
b7078f5510
fix(task): Ensure tasks clean up user resource maps ( #14109 )
...
* fix(task): Ensure tasks clean up user resource maps
fixes #14108
2019-06-11 10:28:09 -06:00
Christopher Wolff
950d84fee4
chore: skip flaky test
...
https://github.com/influxdata/influxdb/issues/14108
2019-06-11 08:41:13 -07:00
Alirie Gray
04a427e99e
feat(tasks): add runID to Log struct
2019-06-06 11:24:38 -07:00
Lyon Hill
ab79b68840
fix(task): Remove older unused task store code. ( #14068 )
...
* fix(task): Remove older unused task store code.
2019-06-06 10:05:27 -06:00
zhulongcheng
5f1e070a73
fix(http): rename OrgID to orgID
2019-06-06 22:12:32 +08:00
Kelvin Wang
18a0f3f542
fix(influxdb): rename telegraf orgID
2019-06-03 16:20:53 -04:00
docmerlin (j. Emrys Landivar)
15bacd4e60
chore(tasks): add swagger for canceling task runs
2019-05-29 11:28:20 -05:00
kelwang
cccdae2421
Merge pull request #13977 from influxdata/org_audit_log
...
feat(influxdb): add org create and update time
2019-05-28 16:51:18 -07:00
Jade McGough
278da443e6
fix(http): remove accept header from query request swagger ( #13625 )
2019-05-28 14:44:27 -07:00
Jorge Landivar
e6ae9f6231
Fix path:
2019-05-28 16:26:49 -05:00
Jorge Landivar
ecd9200302
chore(swagger): fix a few swagger typos
2019-05-28 16:12:44 -05:00
docmerlin (j. Emrys Landivar)
935640cf99
chore(swagger): update swagger to include operationId
2019-05-28 09:24:04 -05:00
Jade McGough
062c02ff8d
chore(swagger): split view properties by type
2019-05-24 16:27:56 -07:00
Kelvin Wang
b8c2cd6c05
feat(influxdb): add org create and update time
2019-05-20 17:36:29 -07:00
Brandon Farmer
ba148f3461
Fix Task schema error, currently preventing client generation
2019-05-20 10:19:11 -07:00
kelwang
b4a55d500a
Merge pull request #13889 from zhulongcheng/id-decode-err
...
fix(influxdb): use influxdb.Error in ID.Decode
2019-05-19 13:55:21 -04:00
Alirie Gray
576da8f9d2
fix(swagger): add log property to task runs endpoint docs
2019-05-17 14:08:10 -07:00
Kelvin Wang
57ceb9e275
feat(influxdb): bucket created and updated time
2019-05-17 11:49:10 -04:00
kelwang
4bbfa8c6f4
Merge pull request #13552 from influxdata/kv_log_time
...
feat(http): add audit log
2019-05-16 11:10:56 -04:00
Kelvin Wang
f75f27c0bd
feat(http): add audit log
2019-05-16 10:57:28 -04:00
Iris Scholten
2e26f23f9e
feat(authentication): Add cli args for specifying session length and renewal ( #13924 )
...
Co-authored-by: Jade McGough <jade@influxdata.com>
* Add session renew option to launcher and use in middlewhere
* pass session options to services
* Update SessionAutoRenew to SessionRenewDisabled
* Add test for service constructor defaults
* Update changelog
2019-05-15 10:16:47 -07:00
zhulongcheng
3c1e9ee5f3
fix(influxdb): use influxdb.Error in ID.Decode
2019-05-15 22:53:31 +08:00
Robert-André Mauchin
5079314ab5
chore(dep): update kin-openapi to v0.2.0
...
The API slightly changed: LoadSwaggerFromYAMLData is now replaced
by LoadSwaggerFromData.
See: https://github.com/getkin/kin-openapi/pull/67
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
2019-05-15 00:23:32 +02:00
Jade McGough
29d2387752
chore(http): update error handling example in readme ( #13874 )
2019-05-13 12:50:25 -07:00
kelwang
8687cb8039
Merge pull request #13448 from influxdata/create_view_issue
...
fix(http): create view
2019-05-13 13:33:34 -04:00
Jonathan A. Sternberg
01e3317b02
fix(http): do not discard non-json encoded errors when using `CheckError` ( #13844 )
...
If the error returned was normal text instead of JSON, the JSON parsing
would fail and the JSON error would be returned instead of the actual
error.
This has been modified so that when it fails to parse the text as JSON,
it will construct an error with the actual text and then wrap it using
the JSON error.
2019-05-13 12:02:05 -05:00
Jade McGough
c6a0bf93a7
Merge pull request #13661 from influxdata/no_filter_parameters_provided
...
fix(influxdb): invalid filter error
2019-05-09 15:14:54 -07:00
Adam
ae25f0c448
Merge remote-tracking branch 'origin/master' into flux-staging
2019-05-09 15:29:00 -04:00
Christopher M. Wolff
c35c15f54d
refactor(http): move queryd http interface to idpe ( #13862 )
2019-05-09 10:41:14 -07:00
Alirie Gray
77934b01c6
feat(tasks): add description field to tasks
2019-05-08 13:39:09 -07:00
Jade McGough
c27a96da9a
chore(http): surface unmarshaling failures in tests ( #13855 )
2019-05-08 12:51:03 -07:00
Jade McGough
291ac06372
fix(http): return correct response code when dashboard creation fails ( #13803 )
2019-05-06 16:19:42 -07:00
Mark Rushakoff
46a0a8160b
fix(http): use influxdb.Error in FluxHandler
2019-05-05 11:05:00 -07:00
Alirie Gray
6a562757ad
test(http): add test coverage for handler.go
2019-05-02 14:04:40 -07:00
Alirie Gray
763fe0a6e5
feat(http): add user-agent metrics to all http endpoints
2019-05-02 11:58:13 -07:00
Jade McGough
7855147241
Merge pull request #13636 from influxdata/delete_invalid_org_id
...
fix(http): fix delete bad org id
2019-04-29 10:15:36 -07:00
Leo Di Donato
4373392d54
feat(http): Default http transport uses the actual default values ( #13437 )
2019-04-29 16:57:30 +02:00
Jade McGough
e02c859992
Merge pull request #13677 from influxdata/org_name_not_empty
...
fix(kv): fix empty org name
2019-04-26 15:57:19 -07:00
Kelvin Wang
ea54e2c2c8
fix(kv): fix empty org name
2019-04-26 18:16:28 -04:00
Jonathan A. Sternberg
38d9fb8c79
feat(http): pretty stack trace for the http panic recovery handler ( #13509 )
...
When printing out a stacktrace with a logged error message, it is better
to set the `Stack` property on the entry than to include it as a string
within the context fields. It is also better than using `zap.Stack()`
too.
This is because certain encoders will perform a pretty print of the
stacktrace. The default zap-logfmt will read this property and include
it as a field so this code is identical when using that encoder, but the
console encoder, which is commonly used in local development because it
is automatically used with a TTY available, will print out a newline and
pretty print the stacktrace if it is included on the entry itself.
2019-04-26 15:06:41 -05:00
Jade McGough
6438999508
Merge pull request #13656 from zhulongcheng/fix-document-panic
...
fix document service panic
2019-04-26 12:30:27 -07:00
Kelvin Wang
2021321186
fix(influxdb): invalid filter error
2019-04-26 12:22:42 -04:00
Mark Rushakoff
9a8426c3f0
fix(http): use influxdb.Error in ProxyQueryHandler
...
In our internal use of this handler, some of these errors weren't
wrapped in the expected influxdb.Error type.
2019-04-26 08:19:00 -07:00
zhulongcheng
f7635f0552
fix document service panic
2019-04-26 14:46:37 +08:00
Jade McGough
e2cac953f5
fix(http): make org param optional in document get request
2019-04-25 14:45:01 -07:00
Kelvin Wang
9fa35961fd
fix(http): fix delete bad org id
2019-04-25 15:20:28 -04:00
Kelvin Wang
717fcc44b3
feat(influxdb): add scraper filter
2019-04-25 11:33:34 -04:00
zhulongcheng
382e49b59b
fix(http): make org & orgID optional
2019-04-25 11:13:49 +08:00
Jade McGough
8428c3630c
fix(http): update bucket swagger to reflect recent changes
2019-04-24 14:11:38 -07:00
kelwang
49230619e6
Merge pull request #12754 from influxdata/swagger_telegraf_default_get
...
fix(http): fix telegraf get default swagger
2019-04-24 14:12:00 -04:00
kelwang
54fd1f81ce
Merge pull request #12802 from influxdata/swagger_basic_auth
...
fix(http): swagger define security schemes
2019-04-24 14:11:45 -04:00
kelwang
6261c274aa
Merge pull request #13444 from influxdata/swagger_orgID_not_required
...
fix(http): make getting labels orgID optional
2019-04-24 14:11:22 -04:00
kelwang
4acad08ea5
Merge pull request #13519 from influxdata/doc_desc
...
feat(influxdb): add doc description
2019-04-24 14:11:03 -04:00
kelwang
6ef624142b
Merge pull request #13556 from influxdata/org_desc
...
feat(influxdb): add org desc
2019-04-24 14:10:20 -04:00