Commit Graph

401 Commits (44e5fbae0af1179632e924d3fb5300ab0d17fa5e)

Author SHA1 Message Date
Jade McGough 79bb8af889
fix(http): unswallow json decoder error (#1248)
* fix(http): unswallow json decoder error

* make fmt
2018-10-30 17:31:32 -07:00
Kelvin Wang 5e9c0a9e76 fix telegraf sources 2018-10-30 16:48:14 -04:00
kelwang 3b1660d7d0
Merge pull request #1229 from influxdata/feat/telegraf_http
add http for telegraf
2018-10-30 15:33:51 -04:00
Kelvin Wang 74ef984e53 add http for telegraf 2018-10-30 14:00:10 -04:00
Mark Rushakoff cd80e41220 feat(task): add ability to retry runs
This also adjusts the TaskService interface's RetryRun method to accept
a task ID rather than an org ID. Internally, we still look up runs by
organization, and maybe that will change later, but this is a more
natural way for clients to look it up.
2018-10-30 09:20:40 -07:00
Chris Goller 7756f8dc6a feat(cmd/influxd): add log levels 2018-10-30 02:27:51 -05:00
Jorge Landivar 198793d955
Merge branch 'master' into cancel-task 2018-10-29 17:07:02 -05:00
Chris Goller beb591c50b
Merge pull request #1219 from influxdata/fix/http-delete-status
fix(http): all DELETEs now return 204
2018-10-29 16:51:17 -05:00
docmerlin (j. Emrys Landivar) 6e2620418c Now you can cancel runs 2018-10-29 16:08:50 -05:00
Chris Goller e621ed8e72 fix(http): all DELETEs now return 204 2018-10-29 14:10:33 -05:00
Michael Desa fdbec9303d chore(ui): update misc build files related to moving chronograf/ui to ui 2018-10-29 14:00:45 -04:00
Kelvin Wang 360f8035dd add reset password
fix logger panic, update endpoint, add password reset
2018-10-29 11:56:33 -04:00
Jade McGough a9b9a0b538
Merge pull request #1185 from influxdata/user-mapping-response
fix User mapping response
2018-10-26 10:25:45 -07:00
Gianluca Arbezzano 6dd6a08ea2
fixed inconsistency in links
Hello
As suggested in https://github.com/influxdata/platform/issues/983 I
changed `auths` to `authorizations` to have the key and the link in
line.

I went for this fix in order to avoid BC. I don't know if that's
the fix you had in mind. Or you were speaking more about short and long
terms.

Fixed #983

Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
2018-10-26 17:05:06 +02:00
Chris Goller d2ecf8aad6 http(write): support timestamp precision 2018-10-25 21:23:50 -05:00
Chris Goller d62e2e009a test(http): add tests for write client 2018-10-25 19:13:53 -05:00
Chris Goller 6f4bd54afc feat(http): add http write client 2018-10-25 19:11:12 -05:00
Jade McGough 91dbd48258
feat(http): validate dashboard cell updates (#1199)
* feat(http): validate dashboard cell updates

* run formatter
2018-10-25 16:05:12 -07:00
Andrew Watkins f82eeb8338
feat(orgs): update org bucket name and retention rule (#1181)
* Add error handling to spinner

* Fix broken test

* Update retentionPeriod to retentionRules

* fix(http): bucket retention period now empty

Co-authored-by: Chris Goller <goller@gmail.com>

* fix(bucket): remove bucket key from createBucket API

* feat(bucket): update organization buckets

* fix: coerce Bucket type

* chore: create separate components for bucket create / update
2018-10-25 15:23:05 -07:00
Jade McGough baeea1a6ac fix(http): add links to user resource response 2018-10-25 14:42:26 -07:00
Jade McGough e60412dbaa remove accidentally committed file 2018-10-25 00:47:19 -07:00
Jade McGough 56e45b5cc4 fix(http): make user resource response be an object 2018-10-25 00:45:20 -07:00
Mark Rushakoff 095c2be65f chore(http): add links to tasks and runs responses
Fixes #1155.
2018-10-24 14:04:08 -07:00
Adam 98be8bcd32
moved to_http and to_kafka to flux and update to latest flux (#1175) 2018-10-24 12:33:43 -04:00
Lyon Hill 19b7709bad
Add tasks to the influx cli (#1163) 2018-10-23 11:51:13 -06:00
Michael Desa 3d653521d2 feat(platform): add meta field to dashboards
feat(testing): test for meta field on dashboard conformance tests

feat(http): ensure that dashboard json is encoded correctly

feat(bolt): update dashboard meta appropriately

fix(testing): use equate empty in dashboard test for empty cells list

feat(inmem): add meta to dashboards for conformance tests

feat(http): add support for dashboard conformance tests

feat(platform): add find options to FindDashboards method on dashboard svc

feat(testing): use find options in dashboard conformance tests

feat(mock): add find options to dashboard service

feat(bolt): add find options to dashboard service

feat(inmem): add find options to dashboard service

feat(http): add find options to dashboard service

feat(http): update dashboard swagger specification

fix(platform): fix mistakes after rebase

review(http): use default find options for dashboards
2018-10-23 13:43:06 -04:00
Jade McGough 4309f3d7b8 fix(http): use correct param name for user ids in ur mapping 2018-10-23 10:38:26 -07:00
Chris Goller ba6c33b34e
Merge pull request #1078 from influxdata/test/swagger
test(swagger) add swagger validation test
2018-10-23 09:00:29 -05:00
Chris Goller 3072c0e3a5 test(http): remove spurious byte cast 2018-10-23 08:47:21 -05:00
Chris Goller a6464d5010 test(swagger) add swagger validation test 2018-10-23 08:47:21 -05:00
Chris Goller a6355c5442 feat(http): buckets now have multiple retention rules 2018-10-23 08:18:31 -05:00
Chris Goller a730bafaab docs(http): update dashboard with description 2018-10-22 20:44:25 -05:00
Chris Goller ad82fe9379 feat(dashboard): add description fields to dashboard 2018-10-22 20:25:18 -05:00
Jade McGough a057bc613a
Merge pull request #1103 from influxdata/fix/member-endpoints
fix member endpoints panic
2018-10-22 13:12:45 -07:00
Kelvin Wang c54df3d052 refactor(token): remove context token 2018-10-19 12:39:54 -04:00
Kelvin Wang 60fdf79726 add retention policy 2018-10-18 16:04:21 -04:00
Jade McGough 8b12e90a46 run go fmt 2018-10-16 15:18:22 -07:00
Jade McGough 9180e13093 fix(http): add zero value mock implementation of u/r mapping service 2018-10-16 15:14:16 -07:00
Jade McGough d280b7ea43 fix(http): inject user_resource_mapping_service when creating route handlers 2018-10-16 14:49:35 -07:00
Jade McGough 6268946aef chore(http): genericize references to orgs in user_resource_mapping_service 2018-10-16 14:23:56 -07:00
Jade McGough 1e0ad7a95d chore(http): remove unused handlers in org_service 2018-10-16 14:12:28 -07:00
Kelvin Wang 684b4e19a2 add json telegraf config 2018-10-16 10:21:27 -04:00
Kelvin Wang 020f944d14 draft of telegraf 2018-10-12 17:51:36 -04:00
Kelvin Wang 27b2715264 fix scraper id 2018-10-12 10:03:06 +02:00
Chris Goller b4e1cd4199 tests(http): add tests for creation without IDs 2018-10-12 10:03:06 +02:00
Chris Goller 4eadff4f55
docs(http): tasks fields can now be updated (#1059)
* docs(http): tasks fields can now be updated

* docs(http): update task name description
2018-10-11 17:24:58 -05:00
Jade McGough ce9c06f5c8 update swagger 2018-10-11 11:15:02 -07:00
Jade McGough 4a951cfca8 feat(http): add user/member endpoints to view service 2018-10-11 11:15:02 -07:00
Jade McGough 7e11247384 use constants for view service http routes 2018-10-11 11:15:02 -07:00
Chris Goller 735062c798 chore(http): update user server after rebase 2018-10-11 09:54:19 -05:00
Chris Goller 2bea48f15a refactor(testing): rename MustIDFromString to MustIDBase16 2018-10-11 09:54:19 -05:00
Chris Goller 4ead3308cf chore(http): remove extra blank line 2018-10-11 09:54:19 -05:00
Chris Goller 7a0206b2a5 refactor(http): remove variables named temp 2018-10-11 09:54:19 -05:00
Leonardo Di Donato ad7b756e45 fix(platform): platform test and pointers
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-10-11 09:54:18 -05:00
Leonardo Di Donato 3d732812d4 update(platform/http): partial refactoring for uint64 IDs 2018-10-11 09:54:18 -05:00
Leonardo Di Donato 6725ae6f64 feat(platform/id): method to create an invalid id
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-10-11 09:54:18 -05:00
Leonardo Di Donato 1ca7cd2a86 fix(http): session tests using uint64 IDs now 2018-10-11 09:54:18 -05:00
Leonardo Di Donato 95dfff47c6 fix(http): porting tests to uint64 IDs
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-Authored-By: Lorenzo Fontana <lo@linux.com>
2018-10-11 09:54:18 -05:00
Leonardo Di Donato 3ebc6548e3 fix(bolt/source): insert missing organization IDs
Before was working since 0 ids (eg., organization ID of empty source
istances) were valid ones. Not anymore.
2018-10-11 09:54:18 -05:00
Leonardo Di Donato d54fdd51e0 wip(http): porting to uint64 IDs
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-10-11 09:54:18 -05:00
Leonardo Di Donato 9fa032da28 fix(http): refactoring to support uint64 platform.IDs
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-Authored-By: Lorenzo Fontana <lo@linux.com>
2018-10-11 09:54:18 -05:00
Leonardo Di Donato 8d7f06cf4b feat(platform/id): using uint64 for platform.IDs
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-Authored-by: Lorenzo Fontana <lo@linux.com>
2018-10-11 09:54:18 -05:00
Jonathan A. Sternberg e7e17d6972
refactor: move the logger package from influxdb to platform
We are moving the necessary code for 2.0 from the influxdb 1.X
repository to the platform 2.0 repository. The logger is an unnecessary
dependency on the old influxdb that is making life more complicated.
2018-10-10 15:49:07 -05:00
Brandon Farmer d6c18abfd5
Merge pull request #1030 from influxdata/add-me-endpoint
Add a me endpoint for chronograf
2018-10-10 13:46:11 -07:00
Brandon Farmer 0799765d1b Add me endpoint to links 2018-10-10 13:31:34 -07:00
Lyon Hill 610faf18e7
Update the scheduler to add a few task logs (#1029) 2018-10-10 12:37:11 -06:00
Brandon Farmer 3eae61c202 Add me endpoint to swagger 2018-10-10 10:29:05 -07:00
Brandon Farmer d65008d24b Add a me endpoint for chronograf
Returns the currently signed in user from session or token
2018-10-10 10:07:54 -07:00
Jade McGough bb6d8cf156 fix(http): inject resource type into Post member factory 2018-10-09 13:19:19 -07:00
Jade McGough 4c7f66a1c3 feat(http): add owner/member endpoints for tasks 2018-10-09 13:19:19 -07:00
Jade McGough bf29ff7ca3 convert task service http endpoints into constants 2018-10-09 13:19:19 -07:00
Jade McGough 4a59e877c7
Merge pull request #974 from influxdata/filter-owners
Filter dashboards by owner
2018-10-08 18:57:09 -07:00
Jade McGough bd672f6933 fix(http): support multiple IDs in dashboard GET params 2018-10-08 18:54:40 -07:00
Jade McGough 86266b37c1 feat(http): if owner is specified for dashboards GET, only return their dashboards 2018-10-08 18:51:16 -07:00
Jade McGough ce849bb39e feat(http): add ids param to dashboard endpoint 2018-10-08 18:51:16 -07:00
Chris Goller 90494a5309 chore(fmt): fix and simplify go formatting 2018-10-08 17:23:54 -05:00
Jade McGough 9f83f6b054 add ownerID to bucket GET filter 2018-10-08 15:03:57 -07:00
Lyon Hill f081ce95f0
allow run shows to work with an actual org id. (#981)
* allow run shows to work with an actual org id.
also necessary for using actual run lists
2018-10-08 14:07:08 -06:00
Nathaniel Cook 3f52673332
Merge pull request #887 from influxdata/nc-flux-org-test
fix: Add tests for orgID parameter
2018-10-08 14:04:19 -06:00
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