Commit Graph

749 Commits (bdb108d67e8be93fce0c7d616e7fcb85bd4bf26e)

Author SHA1 Message Date
Michael Desa 944de4157a fix(influxdb): add org id to permissions
filter out resources that have mission IDs

fix(influxdb): simplify auth check in PermissionAllowed

review(platform): update as noted in review

fix(influxdb): ensure permission has valid org id
2019-01-11 12:23:28 -05:00
Kelvin Wang cc3eaf5e75 feat(http): add scraper target swagger 2019-01-11 11:03:42 -05:00
jlapacik 5266cba346
deps: updates for packages and imports (#10962) 2019-01-10 14:33:25 -08:00
Jade McGough 6b99b09e0b fix(http): add labels to view links responses 2019-01-10 11:41:17 -08:00
Deniz Kusefoglu bc46eb5698 trailing slashes and code review 2019-01-10 10:05:58 -08:00
Deniz Kusefoglu deb87aef05 Update curswagger and generate client with views nested under cells 2019-01-10 10:05:58 -08:00
Mark Rushakoff d73d73c0d4 chore: rename imports from platform to influxdb
I did this with a dumb editor macro, so some comments changed too.

Also rename root package from platform to influxdb.

In interest of minimizing risk, anyone importing the root package has
now aliased it to "platform" so that no changes beyond imports were
necessary in those files.

Lastly, replace the old platform module to local path /dev/null so that
nobody can accidentally reintroduce a platform dependency while
migrating platform code to influxdb.
2019-01-09 20:51:47 -08:00
Alex P d12e94bb01 feat(ui/labels): Add the ability to edit labels on a dashboard
Co-authored-by: Alex Paxton <thealexpaxton@gmail.com>
2019-01-09 17:41:19 -08:00
Palakp41 7875051ace
Merge pull request #2391 from influxdata/feat/remove-bucket-org
Add delete column and functionality to buckets list and row
2019-01-09 17:11:37 -08:00
Palak Bhojani beac010471 Add delete column and functionality to buckets list and row
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2019-01-09 16:49:03 -08:00
Christopher Henn ddac3c796f Add support for windowPeriod macro variable
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2019-01-09 15:31:21 -08:00
Michael Desa bcddb83a3c
Merge pull request #2112 from zhulongcheng/doc-rm-org
docs(http): remove unused org param from swagger
2019-01-09 17:06:53 -05:00
Michael Desa 81dcfee03e
Merge pull request #2163 from zhulongcheng/session-backend
initialize session handler by SessionBackend
2019-01-09 17:05:59 -05:00
Leonardo Di Donato 3d0a42cbbc fix(http): filtering telegraf configs only by organization ID
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-01-09 22:17:19 +01:00
Leonardo Di Donato 77574c559d feat(http): decode telegraf config filters and tests 2019-01-09 22:17:19 +01:00
Michael Desa 10429675b9 fix(http): remove fmt.Println from scraper service tests 2019-01-09 15:17:11 -05:00
Michael Desa 857b60150e feat(platform): add proto service for creating templated resources
feat(http): add http handler for proto service

feat(mock): add mock proto service

test(http): add proto handler tests

fix(platform): add view as option when adding a cell

feat(platform): add dashboard to proto struct

feat(fs): add filesystem implementation of proto

feat(http): add protos endpoints to api handler

feat(cmd/influxd/launcher): add protos path to server

doc(http): add protos to swagger

test(cmd/influxd/launcher): add --protos-path to launcher tests

fix(fs): remove unused args from test

fix(http): use platform.Error where appropriate
2019-01-09 09:55:15 -05:00
Michael Desa 7ea1db0079
Merge pull request #2250 from influxdata/fix/issue#2195
Nest views beneath dashboard cells
2019-01-09 09:30:39 -05:00
Iris Scholten 4f96333b52 feat(ui/labels): display labels in task row 2019-01-08 16:07:10 -08:00
Michael Desa 338e0587d0 fix(platform): nest view beneath dashboard cell
feat(platform): add functional options for platform errors

fix(testing): set dashboard ids properly in dashboard tests

feat(bolt): add dashboard specific views

fix(bolt): delete view when cell is removed or dashboard is deleted
2019-01-08 18:11:13 -05:00
alexpaxton 21c996383c
Display Labels in Dashboards Index (#2330)
* Update cur_swagger

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Display labels in dashboards list

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Add # to example label

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Write test for dashboard TableRow component

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Update snapshot and mock data

Co-Authored-By: Iris Scholten <ischolten.is@gmail.com>

* Increase page gutter and max width of centered pages

* Show description in dashboards list

* Update snapshot

* Fix linting error

* Remove snapshot check from unit test
2019-01-08 14:56:48 -08:00
Leonardo Di Donato 43c454e5ea chore(http): cleanup scraper tests
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-01-08 15:57:29 +01:00
Leonardo Di Donato e79be29224 chore(http): test update of scraper targets
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-01-08 15:57:29 +01:00
Leonardo Di Donato 4932f2aadd chore(http): test insertion and deletion of scraper targets
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-01-08 15:57:29 +01:00
Leonardo Di Donato 53cadf9260 chore(http): test scraper targets listing
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-01-08 15:57:29 +01:00
Leonardo Di Donato a79780e074 chore(http): test getting scraper target by id
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-01-08 15:57:29 +01:00
Nathaniel Cook e482c71e03 Merge branch 'master' into flux-staging 2019-01-07 14:25:22 -07:00
kelwang 5de0e2e8d2
Merge pull request #2236 from influxdata/fix_auth_status_update_error
fix(bolt): fix auth status update error
2019-01-07 13:37:02 -05:00
Adam fa35dea009 feat(query/functions/tests): end to end testing is configured to run against a live storage engine.
all tests use a unique bucket based on the test file name.  copied all tests over from flux repo

the tests are currently disabled due to engine consistency issues:  https://github.com/influxdata/flux/issues/613
2019-01-07 13:05:29 -05:00
Jade McGough 4ca3b83813
Merge pull request #2228 from influxdata/more-label-responses
add label responses to telegraf and buckets
2019-01-04 13:32:25 -08:00
Nathaniel Cook 4918b15f35 refactor(http/query): update http query logic for new parser API 2019-01-04 11:28:55 -07:00
Kelvin Wang f392f1bab0 fix(bolt): fix auth status update error 2019-01-04 12:21:34 -05:00
Jade McGough 6a2554d6db test json formatting 2019-01-03 16:46:47 -08:00
Andrew Watkins 6eca18fc4e
fix(ui/org-view): org view polish
* fix(ui/org-view): list actual tasks from api

* fix(ui/org-view): fix dashboard list not rendering

* fix(ui/org-view): fix bucket modal

* feat(dashboards): add updated at column
2019-01-03 16:18:14 -08:00
Jade McGough a80a86c6c2 chore(http): add labels to bucket tests 2019-01-03 16:10:16 -08:00
Palakp41 ac7e9df407
Merge pull request #2219 from influxdata/feat/org-members-role-column
Update MembersList to include role column
2019-01-03 16:09:49 -08:00
Jade McGough 815795261d feat(http): add labels to bucket responses 2019-01-03 16:02:02 -08:00
Jade McGough 910d310c20 feat(http): add labels to telegraf GET responses 2019-01-03 16:02:02 -08:00
Palak Bhojani 21eb3a26d8 Update MembersList to include role column 2019-01-03 14:39:49 -08:00
Jade McGough 7562c9a6d2
chore(http): make test diffs more readable (#2203)
* chore(http): make test diffs more readable

* fixes

* add back telegraf output spacing

* whitespace hell

* jsonEqual2 -> jsonEqual
2019-01-03 14:29:22 -08:00
Brandon Farmer 547a147d6b Make client generation optional via ENV variable 2019-01-03 11:33:23 -08:00
Kelvin Wang 739d12bc00 fix(http): convert source errors 2019-01-03 11:38:01 -05:00
Michael Desa c4c374a0b4
Merge pull request #2180 from influxdata/fix/issue#1918
Add support for get /api/v2/query
2019-01-03 10:43:55 -05:00
Michael Desa cf2ba751db feat(http): add support for get /api/v2/query 2019-01-02 14:36:16 -05:00
Jade McGough 0ddf6b3588
Label responses (#2165)
* add labels to task links

* add labels to task responses

* add failing test

* fix label POST

* make fmt

* fix dashboard tests

* update swagger

* fix task service test labels

* add labels test for dashboards http service

* pull params out of newTaskResponse

* pull params out of newDashboardResponse

* make fmt

* add labels to dashboard response in swagger

* make context first argument

* fix test formatting
2019-01-02 11:17:28 -08:00
Jade McGough e666bef692 chore(http): remove debug statement 2019-01-01 23:38:42 -08:00
zhulongcheng 83529543ac initialize session handler by SessionBackend 2018-12-29 11:41:06 +08:00
Andrew Watkins 3429e8d0c6
feat(auth): rewrite authorization service (#2157)
* feat(view-token-overlay): add view token overlay

* test(tokens): update tests

* chore(auths): rename mock data file

* feat(token-view): clicking on description opens token view modal

* feat(token-view): add ability to close overlay

* feat(token-view): display token permissions with updated permissions shape

* feat(token-view): wip update authorization and permission shapes

* feat(auth): wip refactor auth permissions

* fix(auth): generate permissions via functions

* fix(auth): make Id ID

* chore(types): update generated client

* feat(auth): wip add user and org names to auth

* fix(user): didnt save rebase

* feat(auth): WIP refactor auth

* feat(auth): check for user existence during auth creation

* feat(auth): org must exist during auth creation

* fix(auth): pluralize telegrafs resource type

* docs(http): update swagger definition for the Authorization

* test(auth): fix broken tests

* docs(swagger): update cur_swagger Authrorizations

* fix(api): remove trace from cur_swag

* test(ui/token): update components with new generated type definitions

* feat(http): add lookup service adding names for permissions

* fix(http): remove debugging panics

* chore: go tidy

* fix: unsaved rebase

* test(idpe): add ids to Authorizations for log tests
2018-12-28 15:02:19 -08:00
Michael Desa 4c60eacb58 chore(platform): cleanup, document, and use secret service
fix(http): add members/secrets/labels links on org response

fix(http:cmd/influxd): use secret service in api backend

fix(bolt): return empty list if there are no secrets for an org

chore(vault): add description of vault usage
2018-12-28 11:11:21 -05:00
Delmer efdb373868
Feat/manage labels (#2082)
feat(ui): add labels to org page
2018-12-27 13:19:07 -05:00
Chris Goller 96fb4a6072 fix(http): rename piging_test to paging_test 2018-12-27 09:48:20 -06:00
zhulongcheng f3bf670706 rename msg to message for platform.Error json 2018-12-27 10:34:00 +08:00
kelwang 364b56f4fa
Merge pull request #2130 from influxdata/convert_write_errors
fix(http): convert write endpoint error
2018-12-26 16:43:01 -05:00
Chris Goller eb48eb6317
Merge pull request #2142 from zhulongcheng/custom-404
fix(http): replace default-404 handler with custom-404 handler
2018-12-26 15:17:55 -06:00
Chris Goller 4f38c8cad9 feat(http): add accept parsing for telegraf 2018-12-26 12:23:59 -06:00
zhulongcheng 7ce8237d29 replace default-404 handler with custom-404 handler 2018-12-25 10:35:36 +08:00
zhulongcheng e73d4fc637 add MethodNotAllowed handler 2018-12-23 15:55:45 +08:00
Kelvin Wang ddaa602014 fix(http): convert write endpoint error 2018-12-21 20:19:30 -05:00
kelwang 94b7c3cea0
Merge pull request #2128 from influxdata/move_time_telegraf_service
fix(platform): remove creator and time
2018-12-21 20:13:35 -05:00
AJ Bond 941e7526c0 fix(http): Fix developer mode default
Developer mode is now passed to assets
closes #2050
2018-12-21 16:33:04 -05:00
Mark Rushakoff 0e41f240f2 feat(task): support forcing a run with arbitrary timestamp
Also rename RetryAlreadyQueuedError by running:

gorename -from '"github.com/influxdata/platform/task/backend".RetryAlreadyQueuedError' -to RequestStillQueuedError

and some further manual cleanup for comments.
2018-12-21 14:37:53 -05:00
Leonardo Di Donato e2169abb1f feat(http): swagger update for authorizations post method
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-12-21 19:23:12 +01:00
Leonardo Di Donato 09dca2ff29 fix(http): check for user before creating authorization 2018-12-21 19:23:12 +01:00
Leonardo Di Donato b8153e83d1 feat(http): test an authorization for non-existing user cannot be created 2018-12-21 19:23:12 +01:00
Kelvin Wang 003561148d fix(platform): remove creator and time 2018-12-21 11:05:55 -05:00
Chris Goller d4467949aa
Merge pull request #2109 from influxdata/feat/si-time-units
feat(models): only use common SI time units for timestamp precision
2018-12-21 09:22:14 -06:00
Chris Goller 38a3e94bed
Merge pull request #2108 from influxdata/feat/flux-http-query-parameters
fix(http): change /query to use org/orgID
2018-12-21 09:20:42 -06:00
Chris Goller edfb323472 fix(http): update task test to use :id
Fixes merge issue from #1562
2018-12-21 09:11:57 -06:00
Chris Goller a33f3ff672 fix(http): update test to use platform.Error 2018-12-21 08:58:16 -06:00
Chris Goller 31518b7022
Merge pull request #1562 from bednar/task_service
Fixed the task id path, Added RunController instance to pAdapter
2018-12-21 08:48:01 -06:00
Chris Goller 9c01be5377
Merge pull request #2110 from zhulongcheng/panic-handler
feat(http): add panic handler
2018-12-21 08:43:20 -06:00
Chris Goller 5297d1fee9 fix(http): remove typo in test name 2018-12-21 08:40:37 -06:00
Chris Goller 088cf6e98e
Merge pull request #2111 from zhulongcheng/fix-json-decode-500
fix(http): return http 400 if request data is invalid
2018-12-21 08:38:58 -06:00
Michael Desa 158be4b599
Merge pull request #1993 from zhulongcheng/fix-user-service
fix(http): pass user service to handler New function
2018-12-21 09:37:42 -05:00
Leonardo Di Donato 45febb597c feat(http): single source health endpoint
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-12-21 15:34:24 +01:00
Leonardo Di Donato af16a87f35 fix(http): swagger for sources/<id>/health
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-12-21 15:34:24 +01:00
zhulongcheng 518ea18410 remove unused org param from swagger 2018-12-21 20:11:31 +08:00
zhulongcheng a5ba07ae2c fix(http): return http 400 if request data is invalid 2018-12-21 18:44:18 +08:00
zhulongcheng 73a52bad6c add panic handler 2018-12-21 18:20:14 +08:00
Leonardo Di Donato e66db43f95 chore(http): simplify bucket test
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-12-21 09:56:23 +01:00
Leonardo Di Donato cc075a19d3 feat(http): session service with platform errors 2018-12-21 09:56:23 +01:00
Chris Goller 65bf4bb383 feat(models): only use common SI time units for timestamp precision
Closes #1959
2018-12-20 22:39:24 -06:00
Chris Goller e3a86bbd64 fix(http): change /query to use org/orgID
Fixes: #2106
2018-12-20 22:18:09 -06:00
Chris Goller 3e1294fd8a fix(http): health endpoint now returns pass 2018-12-20 21:53:54 -06:00
Chris Goller 532a3b7294
Merge pull request #2015 from zhulongcheng/trace-span
docs(http): add OpenTracing span
2018-12-20 20:46:10 -06:00
Brandon Farmer ff0d2110ba
Merge pull request #2091 from influxdata/chore/generation-add-typescript-task
Add back typescript client generation task
2018-12-20 15:09:35 -08:00
Brandon Farmer 03598b8397 No longer need to convert yaml to json to generate client 2018-12-20 14:59:24 -08:00
Jade McGough 3ee90eefc2
Merge pull request #2085 from influxdata/label-properties
Label properties
2018-12-20 14:16:51 -08:00
Michael Desa ce88906188 fix(platform): make onboarding token "<user name>'s token" 2018-12-20 16:46:21 -05:00
Jade McGough 0532d0327e update swagger 2018-12-20 13:42:12 -08:00
Michael Desa dc4c2cae35 fix(http): update swagger doc for /api/v2/ response
Alphabetize the links so that additions and verifications are easier.
2018-12-20 16:25:53 -05:00
Jade McGough 39e84260a0 add property update clarification in swagger 2018-12-20 12:56:18 -08:00
Jade McGough 1a10ae701a remove colors from labels 2018-12-20 12:18:03 -08:00
Michael Desa b0f13f2857
Merge pull request #2073 from influxdata/fix/issue#1904
remove multiple calls to w.WriteHeader in http handlers
2018-12-20 14:53:04 -05:00
Nathaniel Cook b99ede0b76 chore(Makefile): fix issue with go run not having modules enabled 2018-12-20 12:47:00 -07:00
Michael Desa 885b65e55c feat(http): add error logger for http server errors 2018-12-20 13:21:28 -05:00
Michael Desa 32bd37de9a fix(http): remove second potention call to w.WriteHeader
Multiple calls to w.WriteHeader were possible if there was an error that
was encountered while encoding the response. To resolve this, we simply
log any error that is encountered instead.
2018-12-20 11:11:09 -05:00
Michael Desa a941e881c6 fix(http): use platform.Error instead of old style error 2018-12-20 11:11:09 -05:00
zhulongcheng 03c4ef1898 add TraceSpan param to swagger 2018-12-20 23:43:51 +08:00
Kelvin Wang f1c562f848 fix(http): view errors endpoint conversion 2018-12-19 16:54:48 -05:00
Nathaniel Cook d6c0a393b0 Merge branch 'master' into flux-staging 2018-12-19 11:30:55 -07:00
Jade McGough 53f27c5566 fix swagger indentation 2018-12-18 16:15:35 -08:00
Jade McGough 121588bf8a chore(http): add missing labels documentation 2018-12-18 14:49:22 -08:00
Christopher M. Wolff 86b10a75c9
fix(http): make query service look for platform.Error in response (#2027) 2018-12-18 13:37:25 -08:00
Nathaniel Cook 61e36cbee6 chore(Makefile): add target to check generated files are accurate
A standard Makefile is used now in all subdirs that run go generate.
Make will only generate the file if its source files changed.
The checkgenerate target runs clean to ensure all targets a generated
fresh.
2018-12-18 12:54:17 -07:00
Nathaniel Cook b40a67efc7 chore(http): remove plan specs from swagger 2018-12-18 12:45:30 -07:00
Nathaniel Cook f4dfda705a fix(http): remove /api/v2/query/plan
BREAKING CHANGE: The API endpoint exposed internal details about the implementation of
the logical and physical plans. Those data structures need to be free to
change without breaking the API. For now since the endpoint is unused it
is being removed. A similar API may be added back in that correctly
abstracts away the internal details of plans.
2018-12-18 12:17:34 -07:00
Nathaniel Cook 98a6a0351d Merge branch 'master' into flux-staging 2018-12-18 11:20:17 -07:00
Alirie Gray d9e9b1fd85
Merge pull request #2007 from influxdata/fix/authorizations-response
Match shape of get/authorizations to backend response
2018-12-18 10:06:28 -08:00
Jade McGough 77ce7d6a4b
Merge pull request #2012 from influxdata/update-labels
add labels update endpoint and label colors
2018-12-18 09:48:16 -08:00
Jade McGough 7eb69049c5 use new errors library in label http handlers 2018-12-18 09:14:59 -08:00
Michael Desa 9501a547f1 feat(http): add /query/analyze endpoint to analyze queries
review(http): add suggestions from pr review

doc(http): update swage description of analyze endpoint

fix(http): remove authorization header from query analyze endpoint
2018-12-18 11:23:59 -05:00
Jade McGough 08abdf59b1 oops 2018-12-18 03:55:28 -08:00
Jade McGough ec40c17fd9 fix label responses 2018-12-18 03:51:10 -08:00
Jade McGough 9e4367176f update swagger 2018-12-18 03:27:27 -08:00
Jade McGough 786af8154e add patch label endpoints 2018-12-18 01:45:49 -08:00
Jade McGough 3bf4db0d5d add http handler for label PATCH 2018-12-18 01:38:49 -08:00
Jade McGough c9b45b4c6d make fmt 2018-12-18 01:09:51 -08:00
Jade McGough e9fba06b3f WIP add colors to labels 2018-12-17 23:00:56 -08:00
Alirie Gray 0f825d4ea3 Match shape of get/authorizations to backend response 2018-12-17 16:17:10 -08:00
jlapacik c27d954016 fix: pass nil importer to Eval 2018-12-17 15:43:48 -08:00
Brandon Farmer a9065c0001 Update swagger to denote endpoints using generated client 2018-12-17 11:14:08 -08:00
Brandon Farmer 1b982ea984 Move misc api calls to generated client 2018-12-17 11:14:08 -08:00
kelwang 48fe377af3
Merge pull request #1926 from influxdata/convert_dashboard_error
fix(http): convert dashboard errors
2018-12-17 13:01:25 -05:00
Michael Desa c33d94f5ec
Merge pull request #1799 from zhulongcheng/paging
feat(http/paging): add paging implementation
2018-12-17 12:43:05 -05:00
Chris Goller 0ea2f7b128
Merge pull request #1986 from zhulongcheng/rename-auth
fix(http): rename auths to authorizations
2018-12-17 11:24:21 -06:00
kelwang 014dda0abe
Merge pull request #1990 from influxdata/convert_scraper_errors
fix(http): convert scraper target error
2018-12-17 12:18:08 -05:00
zhulongcheng 94d86186c7 fix(http): rename auths to authorizations 2018-12-18 00:12:16 +08:00
zhulongcheng 4e964ecb63 add tests for bucket member 2018-12-17 23:59:30 +08:00
zhulongcheng dcac51377e pass user service to handler New function 2018-12-17 23:59:30 +08:00
Chris Goller 0783e94953
Merge pull request #1982 from zhulongcheng/404
add custom-404 handler
2018-12-17 09:55:24 -06:00
Chris Goller d0263a4301
Merge pull request #1950 from zhulongcheng/doc-macro
docs(http): put macros/:id endpoint
2018-12-17 09:50:31 -06:00
Kelvin Wang 4cabda439e fix(http): convert scraper target error 2018-12-17 09:08:19 -05:00
zhulongcheng 5f40883342 add custom-404 handler 2018-12-16 22:55:39 +08:00
zhulongcheng eddbf27329 docs(http): put macros/:id endpoint 2018-12-16 17:14:35 +08:00
Jade McGough 6713d6d12e fix(http): add task labels endpoint documentation 2018-12-14 16:01:46 -08:00
Jade McGough 591de7f145 chore(http): remove authorization header description from swagger 2018-12-14 15:19:04 -08:00
zhulongcheng 5fdb8f7738 add /telegrafs/:id/members path 2018-12-15 00:18:50 +08:00
zhulongcheng bec174676e fix failed rebase 2018-12-15 00:18:50 +08:00
zhulongcheng 6b089708b8 remove unused functions 2018-12-15 00:18:50 +08:00
zhulongcheng c534a43f2f add tests for members/owners endpoints 2018-12-15 00:18:50 +08:00
zhulongcheng 79591aba20 implement get members/owners response definitions 2018-12-15 00:18:50 +08:00
zhulongcheng 7cd1994cd4 add ResourceType param to filter resource members 2018-12-15 00:18:50 +08:00
zhulongcheng a06044279a implement post members/owners response definitions 2018-12-15 00:18:50 +08:00
zhulongcheng 3b43d83da0 add UserService to members/owners endpoint handlers 2018-12-15 00:18:50 +08:00
zhulongcheng 3ecdda8a22 add members/owners response definitions 2018-12-15 00:18:50 +08:00
zhulongcheng 090e16a1e7 update swagger User schema to match endpoint response 2018-12-15 00:14:00 +08:00
zhulongcheng 496dc5f730 fix a typo 2018-12-15 00:13:11 +08:00
Lyon Hill f723192d5c
Add ready checking into swagger and update the doc to match health check (#1925)
* Add ready checking into swagger and update the doc to match health checking

* make a few minor changes to the swagger doc
2018-12-14 08:53:25 -07:00
Brandon Farmer 41757e17e7 Move org resources to use generated client 2018-12-13 16:57:53 -08:00
Brandon Farmer f5a035bffc
Merge pull request #1909 from influxdata/chore/switch-buckets-ui-generated
Switch buckets ui to use generated client
2018-12-13 16:42:18 -08:00
Jade McGough 909fb6e98c
fix(http): remove id param for /buckets and update swagger (#1942) 2018-12-13 16:27:34 -08:00
Brandon Farmer 816e5def43 Switch buckets ui to use generated client 2018-12-13 16:23:48 -08:00
Christopher M. Wolff a28dfe8f79
fix(query): restore error messages in repl (#1936)
Fixes #1932
2018-12-13 14:11:17 -08:00
Jade McGough 7d114afbc4
fix(http): op and error keys no longer required in error responses (#1934) 2018-12-13 12:02:59 -08:00
Kelvin Wang 6ca7c68e2e fix(http): convert dashboard errors 2018-12-13 14:36:46 -05:00
kelwang f32b6f2fea
Merge pull request #1924 from zhulongcheng/conv-macro-err
fix(http): convert macro errors
2018-12-13 12:45:42 -05:00
Chris Goller b7a8361977
Merge pull request #1556 from zhulongcheng/fix-auth-definition
docs(http): update authorization definition
2018-12-13 09:13:51 -06:00
zhulongcheng 8522c93063 fix(http): convert macro errors 2018-12-13 23:11:52 +08:00
Iris Scholten 6a2e507389
Merge pull request #1899 from influxdata/swagger-telegraf-config-schema
Update telegraf config schema to match cur swagger
2018-12-12 15:23:55 -08:00
Iris Scholten 50fbba9227 Update telegraf config schema to match cur swagger
chore(http): updated go validation library and fixed swagger test

Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2018-12-12 15:11:18 -08:00
Nathaniel Cook d65a980f9b
Merge pull request #1839 from influxdata/flux-staging
chore: update Flux to v0.9.0
2018-12-12 15:57:46 -07:00
Iris Scholten 0ed9c1bd6a Fix(ui/onboarding): Fix signin
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2018-12-12 11:40:19 -08:00
Brandon Farmer f67eb65562
Merge pull request #1859 from influxdata/chore/move-user-api-generated
Use generated client for users endpoints
2018-12-12 11:16:51 -08:00
Nathaniel Cook 896837b9e5 Merge branch 'master' into flux-staging 2018-12-12 11:41:35 -07:00
kelwang d13064d6ef
Merge pull request #1787 from influxdata/convert_user_error
fix(http): convert user errors
2018-12-12 13:31:46 -05:00
Jade McGough 78d0fc2b17
fix(testing): compare expected error messages against actual (#1857)
* fix(testing): compare expected error messages against actual

* remove nonsense

* remove nonsense

* add expected error message for bucket not found

* oops
2018-12-12 10:24:33 -08:00
Jade McGough 58ff2c4eec
fix(http): don't panic if an invalid macro id is requested (#1848) 2018-12-12 09:18:56 -08:00
Jonathan A. Sternberg 23e6b59497
fix(http): update the query handler to use valid flux syntax
The test used `AND` instead of `and` which is not valid syntax. It also
did not include packages and imports in the generated JSON from parsing
the flux query.
2018-12-12 11:11:56 -06:00
zhulongcheng 75ce16b633 make prev/next links omitempty 2018-12-13 00:16:24 +08:00
zhulongcheng 6d27a08208 flatten paging links 2018-12-12 23:25:07 +08:00
Edd Robinson 46aed2774f Add uptime to ready endpoint 2018-12-12 11:41:50 +00:00
Kelvin Wang 831fc8697b fix(http): convert user errors 2018-12-11 20:11:26 -05:00
Brandon Farmer 07ae96d4a2 Use generated client for users endpoints 2018-12-11 17:04:26 -08:00
Brandon Farmer 6670ef9892
Merge pull request #1853 from influxdata/chore/update-cur_swagger
Document endpoints used by the front end
2018-12-11 16:15:39 -08:00
Brandon Farmer 079d461d34 Document endpoints used by the front end 2018-12-11 15:17:44 -08:00
Brandon Farmer 39996ea8e5
Merge pull request #1826 from influxdata/chore/switch-sources-generated-client
Move sources to use generated client
2018-12-11 13:39:49 -08:00
Jade McGough d1ef428c9e
chore(http): add org delete endpoint to swagger (#1844) 2018-12-11 12:34:53 -08:00
Jade McGough 1bb276f6bc
feat(http): add labels for views (#1800)
* feat(http): add labels for views

* update swagger

* make fmt
2018-12-11 11:42:13 -08:00
Jade McGough a4363800bd
feat(http): add labels endpoints to organizations (#1827)
* feat(http): add labels endpoints to organizations

* make fmt
2018-12-11 10:15:45 -08:00
Jade McGough e0fc798595
feat(http): add labels endpoints to telegraf config (#1824) 2018-12-11 10:15:34 -08:00
zhulongcheng f4de70d969 docs(http): update bucket definition (#1557) 2018-12-10 22:16:15 -08:00
Alirie Gray 07e178e59c feat(ui/dataLoaders): Create ui for adding a plugin config
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-12-10 16:18:16 -08:00
Brandon Farmer db292b00fc Move sources to use generated client 2018-12-10 15:15:37 -08:00
Palak Bhojani 91bfdf1725 Add line protocol precision dropdown
Co-authored-by: Palak Bhojani <palak@influxdata.com>
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-12-10 12:21:24 -08:00
Delmer 27adc0ff91
feat(ui): add name to dashboard query (#1794) 2018-12-10 13:16:27 -05:00
zhulongcheng ef5aa55f52 docs(http): update authorization definition 2018-12-11 00:32:16 +08:00
zhulongcheng 523a384f16 doc(http): delete a bucket (#1798) 2018-12-09 22:51:21 -08:00
zhulongcheng ae073ce21d add offset/limit for /buckets endpoint in swagger 2018-12-10 00:18:49 +08:00
zhulongcheng cb8f7a1744 add /buckets endpoint paging links 2018-12-09 23:27:18 +08:00
zhulongcheng bce744f08d add DefaultPageSize 2018-12-09 23:21:05 +08:00
zhulongcheng 4216eba683 add tests for paging 2018-12-09 22:49:10 +08:00
zhulongcheng 08c3d0916e add paging implementation 2018-12-09 20:00:32 +08:00
Jade McGough 2a615712a6
Feat/filter view type (#1781)
* update swagger

* WIP filter views on type

* add GetType to view interface
2018-12-07 17:15:24 -08:00
Andrew Watkins 3655947bd1
feat(auth): add description string to Authorization
* feat(auth): add description key to Authorization

* chore(swagger): update Authorization definition to include description
2018-12-07 14:22:23 -08:00
Andrew Watkins 4b5dd2f722
feat(account-settings): list tokens
* WIP tokens index

* Package json

* Update cur_swagger

* feat(account-settings): token list

* fix(token-test): add done callback

* fix(chrono): packaage json
2018-12-07 13:08:17 -08:00
Kelvin Wang ee6b149c79 fix(http): fix the correct response 2018-12-07 10:07:38 -05:00
Lyon Hill 678acd5307
feat(task): Allow the most recent run time to be shown in the api. (#1765)
* feat(task): Allow the most recent run time to be shown in the api.

When showing tasks in the api latest_completed will now show in the api if it has been run.

fixes #1705
2018-12-06 16:46:16 -07:00
Deniz Kusefoglu 83c23c89ef
Merge pull request #1763 from influxdata/feat/line-protocol
Add ability to file upload and call write api
2018-12-06 11:57:30 -08:00
Palak Bhojani f6f7494454 Add ability to file upload and call write api
Co-authored-by: Palak Bhojani <palak@influxdata.com>
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-12-06 10:06:06 -08:00