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
Ben Johnson
01bfcf822b
Merge point parse & explode ( #12377 )
...
Merge point parse & explode
2019-04-24 10:30:16 -06:00
Ben Johnson
272f340c30
Merge point parse & explode.
2019-04-24 10:12:15 -06:00
kelwang
3bc1c49e91
Merge pull request #13557 from influxdata/bucket_desc
...
feat(influxdb): add bucket desc
2019-04-24 11:56:52 -04:00
Kelvin Wang
76cc27751b
feat(influxdb): add bucket desc
2019-04-24 11:20:05 -04:00
kelwang
e23824e32d
Merge pull request #13357 from zhulongcheng/docs-oplog-user
...
docs(http): add oplog user
2019-04-24 11:18:39 -04:00
kelwang
d6001bf8e1
Merge pull request #13356 from zhulongcheng/docs-trace-span
...
docs(http): add missing Zap-Trace-Span header
2019-04-24 11:18:07 -04:00
Jade McGough
0d81a1ebdd
fix(http): don't include nil values when auth responses are skipped
2019-04-23 14:34:04 -07:00
Jade McGough
0124a0c669
fix(http): don't 400 when auth GET decoration fails
2019-04-23 14:12:07 -07:00
Kelvin Wang
4c9f34122c
feat(influxdb): add org desc
2019-04-22 22:40:07 -04:00
Kelvin Wang
7a72c363f2
remove org from bucket
2019-04-22 18:39:05 -04:00
Kelvin Wang
3868149a6c
fix(http): scraper resp org
2019-04-22 18:39:03 -04:00
Kelvin Wang
9d44ac3635
rename bucket organization to org
2019-04-22 18:39:01 -04:00
Jade McGough
b4851d4ecb
fix(http): remove incorrect param from labels post
2019-04-19 14:01:24 -07:00
Kelvin Wang
53d95ecf52
feat(influxdb): add doc description
2019-04-19 12:47:31 -04:00
Kelvin Wang
5d195b63e0
fix(http): fix the swagger for cell update
2019-04-19 11:49:39 -04:00
Nathaniel Cook
4c77e3598b
Merge branch 'master' into flux-staging
2019-04-18 11:01:22 -06:00
Michael Desa
cabb8cbf98
Merge pull request #13490 from influxdata/fix/http-query-metric-org-id
...
fix(http): set org ID on event metric
2019-04-18 09:23:57 -04:00
Lorenzo Fontana
da042eb418
docs(http): default http transport commentary
...
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-04-18 11:27:35 +02:00
Lorenzo Fontana
54a15cfe43
feat(http): Default http transport uses the actual default values
...
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-04-18 11:27:35 +02:00
Jade McGough
1b50785fb6
Merge pull request #13449 from influxdata/error-429
...
chore(http): add 429 response to errors
2019-04-17 22:12:34 -07:00
Mark Rushakoff
f4937f1884
fix(http): set org ID on event metric
...
Looks like this field was just mistakenly overlooked when it was
introduced.
2019-04-17 16:08:32 -07:00
Todd Persen
cd64ec8718
Fix typos in miscellaneous packages
2019-04-17 13:30:22 -07:00
Nathaniel Cook
8b918539db
Merge branch 'master' into flux-staging
2019-04-17 12:26:10 -06:00
Michael Desa
e00c071c2c
feat(influxdb): add query/write http event recorders
...
feat(http): add prometheus counters for tracking write/query usage
feat(http/metric): add metric recoder for recording http metrics
feat(prometheus): implement metric.Recorder for prometheus metrics
fix(prometheus): remove erroneous fmt.Printlns
feat(http): add prometheus registry to API backend
This was done as exposing prometheus metrics to a higher level was quite
difficult. It was much simple to simply pass the registry down to
anything that needs it.
feat(cmd/influxd/launcher): pass prom registry in on api backend
feat(http): collect metrics for write and query endpoints
This was much messier than I would have preferred. Future work is
outlined in TODOs.
review(influxdb): rename metric.Metric to metric.Event
2019-04-17 08:33:31 -04:00
Jade McGough
64ca8b6f08
chore(http): add 429 response to errors
2019-04-16 16:50:35 -07:00
Kelvin Wang
bff7b90829
fix(http): create view
2019-04-16 18:06:39 -04:00
Kelvin Wang
cbe26c04b7
fix(http): make getting labels orgID optional
2019-04-16 14:04:29 -04:00
kelwang
57ae0857de
Merge pull request #13412 from influxdata/doc_meta_type
...
feat(influxdb): add doc meta type
2019-04-16 10:59:36 -04:00
Jade McGough
e4018fad81
Revert "docs(http): remove view id"
...
This reverts commit 78063a747d
.
2019-04-15 15:00:52 -07:00
Jade McGough
5a1ae7c704
Revert "fix(http): remove view ID"
...
This reverts commit 1c6bdb6c3e
.
2019-04-15 15:00:40 -07:00
Kelvin Wang
75b19dc1ec
feat(influxdb): add doc meta type
2019-04-15 15:48:54 -04:00
zhulongcheng
78063a747d
docs(http): remove view id
2019-04-15 23:14:06 +08:00
zhulongcheng
d5917878d0
feat(http): find auths by org
2019-04-14 18:06:19 +08:00
zhulongcheng
1c6bdb6c3e
fix(http): remove view ID
2019-04-14 12:31:35 +08:00
zhulongcheng
4e54bbf21c
docs(http): add oplog user
2019-04-13 00:51:12 +08:00
Kelvin Wang
a5f53e48c4
fix(http): fix go vet issue
2019-04-12 12:46:26 -04:00
zhulongcheng
7c5755556e
docs(http): add missing Zap-Trace-Span header
2019-04-13 00:14:34 +08:00
jlapacik
816bd74af8
refactor(http): change all instances of spec compiler to repl compiler ( #13268 )
2019-04-12 07:15:27 -07:00
jlapacik
fb47b8cd42
fix(http): use lang.Compile
2019-04-12 07:15:27 -07:00
jlapacik
fbd7596aaa
refactor(http): remove /query/spec from swagger file
...
Closes #12882 .
2019-04-12 07:15:27 -07:00
jlapacik
5cf5806880
refactor(http): remove api/v2/query/spec endpoint and handler
2019-04-12 07:15:27 -07:00
Jonathan A. Sternberg
b68b5053db
refactor: replace usages of the spec compiler with the ast compiler ( #13222 )
...
This replaces usages of the spec compiler with the ast compiler and it
removes the error message referencing the spec compiler as an available
input.
It does not remove any of the code using the spec compiler that is
involved for proxying requests and it does not remove it from the API.
2019-04-12 07:15:27 -07:00
Jade McGough
b5f6effda4
Merge pull request #13315 from influxdata/filter-label-org
...
feat(http): filter label response by organization
2019-04-12 02:07:33 -07:00
Jade McGough
cfd521b47a
fix label tests
2019-04-12 01:29:49 -07:00
Jade McGough
7914a04f0b
organizationID -> orgID
2019-04-12 01:29:42 -07:00
Jade McGough
81e6a7116b
feat(http): filter label response by organization
2019-04-12 01:29:32 -07:00
Nathaniel Cook
f37e65f26c
fix(query): change logging bridge to be a service instead
...
It is no longer necessary for the query logging to be a bridge as the
stats are available for consumption from the ProxyQueryService.
This change changes the logging bridge to directly implement the proxy
query service instead of implementing a bridge.
2019-04-11 14:46:45 -06:00
Kelvin Wang
92e82884a6
feat(http): accept label id for template post
2019-04-11 13:16:39 -04:00
kelwang
5958192788
Merge pull request #12795 from influxdata/swagger_scaraper_get_by_id
...
fix(http): swagger add get target by id
2019-04-11 11:24:54 -04:00
kelwang
67bf2f54ac
Merge pull request #13052 from influxdata/auth_update_interface
...
fix(influxdb): updated auth shall return
2019-04-11 11:24:02 -04:00
Jacob Marble
f56c42794b
chore(tracing): Cleanup ( #13296 )
...
* chore(tracing): Cleanup
* broken test
* fix unused var
* fix test
2019-04-10 19:28:21 -07:00
Kelvin Wang
ec6895531d
feat(http): add document labe handler
2019-04-10 15:08:03 -04:00
kelwang
be674622c6
Revert "fix(inmem): remove the old inmem implementation"
2019-04-09 14:24:40 -04:00
kelwang
d0022dfd5c
Merge pull request #13039 from zhulongcheng/rm-inmem-impl
...
fix(inmem): remove the old inmem implementation
2019-04-09 13:06:50 -04:00
kelwang
bfcf82d7b5
Merge pull request #13152 from zhulongcheng/docs-rm-view
...
docs(http): remove unused Views schema
2019-04-08 16:11:55 -04:00
kelwang
c7d043a3b4
Merge pull request #13154 from zhulongcheng/doc-rm-view-link
...
docs(http): remove view link from api links
2019-04-08 16:11:26 -04:00
kelwang
34d631a9fc
Merge pull request #13156 from zhulongcheng/docs-rm-FluxLinks
...
docs(http): remove FluxLinks schema
2019-04-08 16:11:13 -04:00
zhulongcheng
cacd6a8223
fix(inmem): replace inmem.Service with kv.Service
2019-04-08 15:18:38 +08:00
Kelvin Wang
8a825a8f9f
feat(influxdb): get docs by org id
2019-04-04 12:51:30 -04:00
zhulongcheng
53412e3e6a
docs(http): remove FluxLinks schema
2019-04-05 00:16:59 +08:00
zhulongcheng
153ef54d0f
docs(http): remove view link from api links
2019-04-04 23:58:13 +08:00
zhulongcheng
c745a8dfd9
docs(http): remove unused Views schema
2019-04-04 23:38:11 +08:00
Brandon Farmer
8fc86ba17e
Update swagger endpoints to include orgID parameters
2019-04-03 16:44:16 -07:00
kelwang
dd55308b77
Merge pull request #13071 from influxdata/bucket_not_found
...
fix(kv): fix bucket not found by name
2019-04-03 17:16:12 -04:00
Alirie Gray
f04de15144
Merge pull request #13109 from influxdata/chore/add-description-to-variables
...
chore(variables): add description property to Variable struct
2019-04-03 14:00:43 -07:00
Alirie Gray
bdd260c25b
chore(variables): add description property to Variable struct
2019-04-03 13:36:32 -07:00
Kelvin Wang
1cf600aca9
remove proto
2019-04-03 15:42:25 -04:00
Kelvin Wang
054ce89dc5
fix(kv): fix bucket not found by name
2019-04-02 15:10:56 -04:00
Kelvin Wang
bcadefd8cb
fix(http): swagger proto definition
2019-04-02 14:26:04 -04:00
Jade McGough
060f893a93
fix(http): update swagger to include correct label add responses
2019-04-01 13:01:24 -07:00
kelwang
6190ba6af3
Merge pull request #13058 from influxdata/swagger_ready_health
...
fix(http): fix swagger health & ready
2019-04-01 14:43:10 -04:00
kelwang
73e51ef5b5
Merge pull request #13056 from influxdata/swagger_dashboard_links
...
fix(http): swagger dashboard links
2019-04-01 14:22:05 -04:00
kelwang
43d582c484
Merge pull request #13008 from zhulongcheng/fix-proto-404
...
fix(http/proto): return 404 if proto not found
2019-04-01 14:04:36 -04:00
Kelvin Wang
c09182d0cb
fix(http): fix swagger health & ready
2019-04-01 14:02:35 -04:00
Kelvin Wang
4e87f34f96
fix(http): swagger dashboard links
2019-04-01 13:10:33 -04:00
Kelvin Wang
712010d013
if(influxdb): updated auth shall return
2019-04-01 12:56:29 -04:00
Jade McGough
05f26b0236
Merge pull request #13032 from influxdata/secret-key-links
...
fix(http): nest secret key response links in swagger
2019-04-01 09:35:28 -07:00
Jade McGough
f092a5538a
fix(http): start -> started in swagger
2019-04-01 00:46:46 -07:00
Jade McGough
d5e9d10e31
fix(http): nest secret key response links in swagger
2019-04-01 00:39:41 -07:00
Jade McGough
5fbed0b6a5
Merge pull request #12978 from influxdata/varible-labels
...
feat(http): add labels to variables
2019-03-29 17:50:14 -07:00
Jade McGough
079d7f835a
fix tests
2019-03-29 17:19:11 -07:00
kelwang
22dd44c4d1
Merge pull request #12955 from influxdata/auth_description_update
...
feat(kv): add auth description update
2019-03-29 14:08:34 -04:00
kelwang
2f9c0f8ae3
Merge pull request #13017 from influxdata/swagger_variable_map
...
fix(http): addtional property of variable map
2019-03-29 13:33:45 -04:00
kelwang
1cbfc7320a
Merge pull request #13019 from influxdata/swagger_dashboard_date_time
...
fix(http): swagger dashboard meta date-time
2019-03-29 13:33:28 -04:00
Kelvin Wang
cc23caeb92
fix(http): swagger dashboard meta date-time
2019-03-29 12:21:27 -04:00
Kelvin Wang
c5f93a9b9f
fix(http): swagger user password reset to 204
2019-03-29 12:09:47 -04:00
Kelvin Wang
aefe32d70b
fix(http): addtional property of variable map
2019-03-29 12:04:37 -04:00
zhulongcheng
10f79fdb9b
fix(http/proto): return 404 if proto not found
2019-03-29 11:19:56 +08:00
Lyon Hill
c78344c441
update task schedler to use the new task control service ( #12949 )
2019-03-28 16:52:25 -06:00
Jade McGough
945569a29d
fix botched rebase
2019-03-28 15:42:06 -07:00
Jade McGough
d21d96e35b
feat(http): add labels to variables
2019-03-28 15:05:13 -07:00
kelwang
abbfc17fa2
Merge pull request #12964 from zhulongcheng/docs-var-link
...
docs(http): add Variable org link
2019-03-28 12:34:12 -04:00
Kelvin Wang
a2c0bdbe77
feat(kv): add new update
2019-03-28 11:46:41 -04:00
zhulongcheng
e0f2fdbc76
docs(http): add Document links
2019-03-28 15:23:37 +08:00
zhulongcheng
8173087a54
docs(http): add Variable org link
2019-03-28 11:20:59 +08:00
kelwang
a64c4fd138
Merge pull request #12246 from zhulongcheng/rm-view
...
fix(http): remove view service
2019-03-27 20:13:10 -04:00
Jade McGough
7bcff2e973
fix(http): remove newPatchLabelHandler, it should not exist
...
This was removed in the labels 2.0 rewrite, and looks like it was added back as a regression
2019-03-27 14:31:04 -07:00
Nathaniel Cook
ca6f2ad0c6
Merge branch 'master' into flux-staging
2019-03-27 09:42:48 -06:00
Michael Desa
119f113597
Merge pull request #12912 from influxdata/fix/issue#12861
...
Add check for nil document in post document request
2019-03-26 14:42:16 -07:00
Michael Desa
aba40b6131
fix(http): add check for nil document in post document request
2019-03-26 14:11:32 -07:00
kelwang
fadb66d4d1
Merge pull request #12748 from influxdata/org_secret_delete
...
fix(http): fix org secrets delete
2019-03-26 16:12:13 -04:00
Lorenzo Affetti
a49bb73c04
chore: update Flux to v0.23.0
2019-03-26 18:04:18 +01:00
kelwang
949d7bc9de
Merge pull request #12801 from influxdata/swagger_password_reset
...
fix(http): swagger change user pass reset resp
2019-03-26 11:35:06 -04:00
Christopher M. Wolff
eb4df57788
test(http): add unit test for proxy query service ( #12683 )
2019-03-26 06:49:51 -07:00
Christopher M. Wolff
56e688beee
fix(query): add Check method to query service interfaces ( #12866 )
...
Fixes influxdata/idpe#2756 .
2019-03-25 20:05:44 -07:00
kelwang
ffebdf8446
Merge pull request #12796 from influxdata/swagger_write_precison
...
fix(http): swagger write precision
2019-03-25 15:31:31 -04:00
Kelvin Wang
04fd5f76db
fix(http): fix invalid source buckets
2019-03-25 14:03:24 -04:00
kelwang
7ae219ed35
Merge pull request #12794 from influxdata/swagger_label_response
...
fix(http): fix scraper, buckets label swagger resp
2019-03-25 13:09:12 -04:00
Kelvin Wang
b34ce9bfcb
fix(http): swagger change user pass reset resp
2019-03-25 12:46:56 -04:00
Kelvin Wang
7f3c8a7d43
fix(http): swagger add template endpoint
2019-03-25 11:24:24 -04:00
Jonathan A. Sternberg
3bff8acd96
fix(http): ignore an empty trailer inside of the proxy query service client ( #12834 )
2019-03-21 16:30:04 -05:00
Lyon Hill
291319483d
Update task servicetest to move dependency to the new TaskControlService ( #12817 )
...
* Update task servicetest to move dependency to the new TaskControlService
closes #12724
We will now have the capability to write new task services that dont have to implement the backend.Store or LogReader or LogWriters
2019-03-21 15:11:22 -06:00
Kelvin Wang
9685318218
fix(http): swagger define security schemes
2019-03-20 18:37:18 -04:00
Kelvin Wang
33325e3e57
fix(http): swagger write precision
2019-03-20 18:02:33 -04:00
Kelvin Wang
923e79d862
fix(http): swagger add get target by id
2019-03-20 17:44:19 -04:00
Kelvin Wang
b14b5372bf
fix(http): swagger scraper label request
2019-03-20 17:26:40 -04:00
Kelvin Wang
beed8f350b
fix(http): fix scraper, buckets label swagger resp
2019-03-20 17:18:28 -04:00
Kelvin Wang
05575ebcc9
fix(http): fix telegraf get default swagger
2019-03-20 16:41:55 -04:00
Jorge Landivar
e86a7d0a79
Merge pull request #12370 from influxdata/feat/task-delete-options
...
Feat/task delete options
2019-03-19 16:18:39 -05:00
Kelvin Wang
757ea24779
fix(http): fix org secrets delete
2019-03-19 15:03:30 -04:00
Jade McGough
2753d66be9
update swagger
2019-03-19 11:46:10 -07:00
Jade McGough
b49bf9ed09
Merge pull request #12734 from influxdata/scope-labels
...
Scope labels to organizations
2019-03-19 11:37:44 -07:00
kelwang
adfe670099
Merge pull request #12691 from influxdata/swagger_telegraf
...
fix(http): telegraf swagger issues
2019-03-19 13:53:51 -04:00
docmerlin (j. Emrys Landivar)
ea82893abd
feat(tasks): remove removable options
2019-03-19 10:24:42 -05:00
Jade McGough
9306fb3f7c
pass tests
2019-03-19 07:00:43 -07:00
Jade McGough
f488428a32
fix(authorizer): labels can be created if the user has read access to the specified org
2019-03-19 01:56:55 -07:00
Jade McGough
950e496748
fix(label): add organizationID to labels
2019-03-18 23:58:42 -07:00
Mark Rushakoff
92a52e90fa
fix(swagger): synchronize permission enum with code
2019-03-18 20:22:19 -07:00
Deniz Kusefoglu
0167a831c9
Remove required label param from Document types
2019-03-18 17:23:11 -07:00
kelwang
b879d8ae59
Merge pull request #12677 from influxdata/swagger_resource_buckets
...
fix(http): change source buckets from slice to obj
2019-03-18 18:29:23 -04:00
Kelvin Wang
6a64e0818f
fix(http): change source buckets from slice to obj
2019-03-18 17:53:53 -04:00
Kelvin Wang
57e3db9c01
fix(http): telegraf swagger issues
2019-03-18 14:54:04 -04:00
Jade McGough
953d9c66af
Merge pull request #12669 from influxdata/label-auth
...
fix(http): wrap label service with authorizer
2019-03-18 11:20:21 -07:00