Jeff Wendling
260ed3eb13
chore: don't depend on details of what platform.ID is
...
It may become a uint64 in the future, for example. This does mean
that we have to call Decode on some data that we just Encoded, but
we can fix that later.
2018-10-08 12:31:39 -06:00
Chris Goller
aee35e4cde
fix(http): links updated to match swagger doc
2018-10-06 10:11:20 -05:00
Jared Scheib
20a06bea98
fix(http): correct typo in authentication scheme error
2018-10-05 12:55:53 -07:00
Edd Robinson
81e0fbabeb
Integrate WAL into engine
2018-10-05 12:44:27 +01:00
Mark Rushakoff
955eabd551
refactor(http): prefer Addr over URL in field names
...
The other services all use the field Addr, so consistently use Addr,
instead of sometimes using URL.
2018-10-04 13:59:58 -07:00
Jonathan A. Sternberg
f7b4c4001e
Merge pull request #527 from influxdata/js-remove-error-field-with-no-error
...
fix(http): only log an error and reference code if it exists
2018-10-04 11:51:15 -05:00
Jeff Wendling
5fa10786a2
Fix issue with rebasing
2018-10-03 17:40:01 -06:00
Jeff Wendling
6a0fc9237c
Read/write points with the appropriate measurement
2018-10-03 17:39:30 -06:00
Jeff Wendling
6176671ecb
Change how the write and query handlers look at auth
2018-10-03 15:55:56 -06:00
Andrew Watkins
709310d05e
feat: line plus single stat view type ( #936 )
...
* Introduce LinePLusSingleStat
* Remove v1 view types
- Introduce line + single stat view
2018-10-03 10:17:14 -07:00
Chris Goller
ca9100366b
feat(http/view): add storing LogView config
...
Co-authored-by: Delmer Reed <delmer814@gmail.com>
2018-10-02 19:27:49 -05:00
Jade McGough
bb94d870ce
fix(http): fix server url in swagger
2018-10-02 15:31:18 -07:00
Jade McGough
6bbdbf1ef0
feat(http): update swagger
2018-10-02 15:31:18 -07:00
Jade McGough
71da130e54
feat(http): add dashboard member endpoints to swagger
2018-10-02 15:31:18 -07:00
Jade McGough
5e94d059e5
feat(http): add owner/member endpoints for bucket service
2018-10-02 15:31:18 -07:00
Jade McGough
a1d909b7ff
feat(http): add owner/member endpoints to dashboards
2018-10-02 15:31:18 -07:00
Jade McGough
802cd0080e
feat(http): move member/owner routes to factories
2018-10-02 15:31:18 -07:00
Jared Scheib
4969a91a9b
fix(http): fix typo in /signout links response
2018-10-02 18:27:09 -04:00
Michael Desa
30d97eff23
Merge pull request #933 from influxdata/fix/authentication-service
...
fix(http): add {Authorization,Session}Service to AuthenticationHandler
2018-10-02 16:30:00 -04:00
kelwang
46e0d0f441
Merge pull request #930 from influxdata/feat/onboarding_client
...
add setup service
2018-10-02 16:21:33 -04:00
Michael Desa
3996ecb154
fix(http): add {Authorization,Session}Service to AuthenticationHandler
2018-10-02 16:10:41 -04:00
Kelvin Wang
3addadc12a
add setup service
2018-10-02 15:58:27 -04:00
lukevmorris
40a98028d8
fix(usage): use stop time as upper bound ( #932 )
2018-10-02 12:00:23 -07:00
Michael Desa
bd07426c87
feat(http): mark misc routes as no auth routes
2018-10-02 14:11:44 -04:00
Michael Desa
ce42eabb72
chore(http): update signin route for session test
2018-10-02 14:11:44 -04:00
Michael Desa
0cf834e532
chore(platform): refactor platform http handler to allow for auth
2018-10-02 14:11:44 -04:00
Michael Desa
aa25727979
feat(platform): add /api/v2/sign{in,out} routes to platform handler
2018-10-02 14:11:44 -04:00
Michael Desa
458b44d2e7
fix(http): use correct spelling of of authenication in handler constructor
2018-10-02 14:11:44 -04:00
Michael Desa
b6fc471948
feat(http): add register no auth route to authentication handler
...
Co-authored-by: Chris Goller <goller@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-10-02 14:11:44 -04:00
Michael Desa
3eb6b35478
test(http): test http authentication middleware
...
Co-authored-by: Chris Goller <goller@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-10-02 14:11:44 -04:00
Michael Desa
42ba7ffe11
feat(http): add authentication handler middleware
2018-10-02 14:11:44 -04:00
Michael Desa
1a0c29ad34
feat(platform): add authorizer interface
...
This iterface is supposed to be something that both sessions and
authorizations can share so that other components can authorize requests
as they see fit.
2018-10-02 14:11:44 -04: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
Kelvin Wang
b50b9918ee
fix /setup endpoint
2018-09-28 11:56:49 -04: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
aa8016feca
Convert tests to v2
...
Signed-off-by: Lorenzo Fontana <lo@linux.com>
2018-09-28 14:20:31 +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
Michael Desa
195b025604
doc(http): add documentation for /signin and /signout routes
2018-09-27 15:45:18 -04:00
Michael Desa
1873ad5234
test(http): add signin test
2018-09-27 15:44:47 -04:00
Michael Desa
be90484277
feat(http): add signin and signout handler
2018-09-27 15:44:47 -04:00
Kelvin Wang
3552af6386
feat: add onboarding defaults
2018-09-27 15:02:17 -04:00
lukevmorris
842dbe225c
fix(usage): if stop is blank and start is not ( #902 )
2018-09-27 11:33:23 -07:00
Mark Rushakoff
d910989677
fix(http): assign bucket fields in CreateBucket
2018-09-26 11:11:58 -07:00
Nathaniel Cook
58c994fde0
chore: Remove fluxd
...
Fluxd is no longer necessary as the influxd and InfluxDB OSS both
implement the /v2/query endpoint.
2018-09-26 11:08:37 -06:00
Nathaniel Cook
5f25c77ff6
fix: Add tests for orgID parameter
2018-09-26 10:36:39 -06:00
Chris Goller
a5a95ad213
ci(goreleaser): override goreleaser build flags
2018-09-26 00:32:44 -05:00
Chris Goller
875c5deac2
Merge pull request #864 from influxdata/feature/bucket-duration-strings
...
feat(http): buckets now use influxql duration strings
2018-09-25 16:16:52 -07:00
Chris Goller
f70a8cb3ce
chore(http/duration): mention need for longer duration literals
2018-09-25 18:11:20 -05:00
Nathaniel Cook
c4efddd1d0
wip: Pass org parameter
2018-09-25 16:41:23 -06:00
Chris Goller
916b5f49a5
feat(http) add microsecond and nanosecond durations
2018-09-25 15:15:06 -05:00
Chris Goller
044792c9cb
feat(http): add year and month duration parsing
2018-09-25 14:45:04 -05:00
Chris Goller
e936671c67
feat(http): buckets now use duration strings
2018-09-25 13:22:47 -05:00
Nathaniel Cook
6b9de10f0b
Merged pull request #852 from influxdata/nc-http-paths
...
fix: Update internal HTTP paths for query service
2018-09-24 15:08:03 -06:00
Jade McGough
8e04f5e6e8
add org member endpoints ( #846 )
...
add org member endpoints
2018-09-24 10:17:54 -07:00
Christopher Henn
d8598bd584
feat(http): add MacroService client
...
Co-authored-by: Chris Goller <goller@gmail.com>
Co-authored-by: Chris Henn <chris@chrishenn.net>
2018-09-20 09:32:04 -07:00
Nathaniel Cook
7069a06864
fix: Update internal HTTP paths for query service
...
Since all paths for the various query services were the same even though
the API was different it was confusing to work with and debug.
Now all internal paths have a unique name.
2018-09-20 08:43:48 -07:00
Chris Goller
34fd898d6c
Merge pull request #845 from influxdata/feature/dashboard-client-tests
...
Feature/dashboard client tests
2018-09-17 12:56:03 -07:00
Chris Goller
fbb1cc21b2
fix(http): org response returns empty array
2018-09-16 22:24:48 -05:00
Chris Goller
31af11e3f8
fix(http): user service returns objects rather than array
2018-09-16 22:24:19 -05:00
Chris Goller
a4982e4107
test(http): add dashboard HTTP client tests
2018-09-16 21:39:46 -05:00
kelwang
b7070828d2
Merge pull request #763 from influxdata/feat/scraper
...
Prototype of Scraper
2018-09-14 22:54:22 -04:00
Chris Goller
7748fd61d3
Merge pull request #841 from influxdata/feat/http-client-tests
...
Feat/http client tests
2018-09-14 21:18:19 -05:00
Chris Goller
31a2ed1fbb
feat(testing): add service testing helpers
2018-09-14 21:08:49 -05:00
Chris Goller
e0b1f89423
chore(http): remove unneeded function
2018-09-14 19:34:00 -05:00
Chris Goller
01950e9942
fix(http): update tests to use context.Background()
2018-09-14 19:24:32 -05:00
Chris Goller
e84f979472
test(http): add user client/server tests
2018-09-14 18:47:05 -05:00
Chris Goller
e9695d7caf
fix(http): fix org decoding and add test
2018-09-14 18:34:40 -05:00
Chris Goller
235836f4c4
fix(http): remove org parameter and add client tests
2018-09-14 18:03:38 -05:00
Nathaniel Cook
6a48f13577
Merged pull request #826 from influxdata/nc-repl-http
...
fix: Update REPL to use HTTP API
2018-09-14 16:21:28 -06:00
Kelvin Wang
f636c52fa5
feat(scraper): add scraper lib
2018-09-14 16:59:18 -04:00
Christopher Henn
00b61c948b
Implement macros API
2018-09-14 13:45:42 -07:00
Nathaniel Cook
d65a864ec5
fix: Update REPL to use HTTP API
2018-09-14 14:03:35 -06:00
Chris Goller
29a1eb4714
test(http): add client tests for auth and bucket
2018-09-14 13:18:02 -05:00
Jade McGough
0b70dc99c4
don't store references to internal buckets ( #789 )
...
* add types to bucket service tests
* add type to bucket cmd interface
* bucket type needs to be defined in json for POST creations
* rip out bucket type stuff
* remove type from bucket tests
* add InternalBucketID helper fn
* remove more code
* remove org from internal bucket ID
2018-09-14 09:26:59 -07:00
Chris Goller
9673a425ec
feat(http): add flux AST and Spec endpoints to fluxd
2018-09-13 23:01:07 -05:00
Chris Goller
65fa08abca
test(http): add flux query service test
2018-09-13 15:26:36 -05:00
Chris Goller
052c896fa4
feat(http): add flux query service client
2018-09-13 13:21:19 -05:00
Chris Goller
310a64fc97
feat(http): use proxy request in flux service
2018-09-13 13:00:27 -05:00
Chris Goller
02ac64fc35
test(http): add test for querying flux service
2018-09-13 11:56:49 -05:00
Chris Goller
61d60a3c61
feat(http): update /v2/query client to send query.Request with auth
2018-09-13 10:39:08 -05:00
Nathaniel Cook
1786402d48
Merged pull request #822 from influxdata/nc-remove-platform
...
chore: Updates to be able to remove platform as a dependency of Flux
2018-09-12 10:31:25 -06:00
Nathaniel Cook
672e2d5fe7
chore: Updates to be able to remove platform as a dependency of Flux
2018-09-12 10:18:54 -06:00
Michael Desa
6d083fb8e3
feat(http): add links to auth service response structures
2018-09-12 11:44:44 -04:00
Gianluca Arbezzano
d117803e8c
Merge pull request #812 from influxdata/feature/790
...
Add org as a query param to bucket
2018-09-11 16:59:20 +02:00
Gianluca Arbezzano
12c24080b4
Add org as a query param to bucket
...
Fixed #790
Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
2018-09-11 15:24:23 +02:00
Gianluca Arbezzano
0c862f71a1
Add links to orgs http handler
...
Fixed #795
Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
2018-09-11 14:55:29 +02:00
Michael Desa
50dad74429
Merge pull request #788 from influxdata/doc/api
...
Fill out swagger documentation to be the expected state of the API
2018-09-10 16:08:42 -04:00
Michael Desa
d6098882f9
feat(http): add links to bucket service response structures
2018-09-10 15:26:08 -04:00
Michael Desa
f437888ee2
doc(http): add macro (template variable) swagger documentation
...
Co-authored-by: Chris Goller <goller@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-09-06 18:13:36 -04:00
Michael Desa
2c82b18800
doc(http): add links to resources
...
Co-authored-by: Chris Goller <goller@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-09-06 16:13:53 -04:00
Michael Desa
e2d5ac1637
doc(http): nest users under org and misc. cleanup
...
Co-authored-by: Chris Goller <goller@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-09-06 16:13:53 -04:00
Michael Desa
23b468d948
doc(http): add org query param to required resource routes
...
Co-authored-by: Chris Goller <goller@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-09-06 16:13:53 -04:00
Michael Desa
ec1b4219cb
doc(http): remove ping endpoint from swagger
...
Co-authored-by: Chris Goller <goller@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-09-06 16:13:53 -04:00
Stuart Carnie
ac75af2f58
refactor: Migrate query package to influxdata/flux repository
2018-09-06 11:13:48 -07:00
Chris Goller
b48fad0c4e
Merge pull request #771 from influxdata/feature/query
...
feat(http): add flux endpoint /v2/query influx
2018-09-06 11:27:54 -05:00
Jade McGough
cd30e5a820
add internal system buckets for orgs ( #652 )
...
feat(bolt): add internal system buckets for orgs
2018-09-06 09:19:58 -07:00
Michael Desa
330f76c331
feat(http/influxdb): add csv dialect support to json response
2018-09-06 09:56:16 -04:00
Jade McGough
43e0d143e7
chore(http): return early if a critical error occurs in write path org/bucket lookup ( #767 )
2018-09-05 15:53:57 -07:00
Chris Goller
6307531df0
feat(http): add checks for nil compiler
2018-09-05 09:33:10 -05:00
Chris Goller
cb1de24097
feat(http) add top-level links and health
2018-09-04 17:28:59 -05:00