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
Jorge Landivar
59dbec0b0e
Merge pull request #1762 from influxdata/chore/delay2offset
...
Change delay to offset in tasks to match the flux spec
2018-12-06 12:02:33 -06:00
j. Emrys Landivar (docmerlin)
0cb888afc0
Change delay to offset in tasks to match the flux spec
2018-12-06 11:00:07 -06:00
Kelvin Wang
2b602bfcfe
fix(http): convert org errors endpoint
2018-12-06 11:05:13 -05:00
Iris Scholten
f306f0e4f6
Update cur_swagger for type safety in generated client
2018-12-05 09:28:34 -08:00
Jade McGough
46257f7ef1
fix(test): pass label service to task handler in tests ( #1706 )
2018-12-04 15:20:46 -08:00
zhulongcheng
851404fb06
fix(http/task): flatten runs response and links
2018-12-04 15:10:03 -08:00
Christopher M. Wolff
f1d21b8132
refactor(query): update transpiler to reflect signature change to `group()` ( #1689 )
...
update other modules that used old syntax as well
2018-12-04 09:32:37 -08:00
Jade McGough
8c961e12bb
Labels ( #1668 )
...
* feat(platform): add label struct
* feat(platform): add label service interface
* WIP label service
* chore(http): simplify URMapping validation
* WIP label service skeleton
* add new GET labels handler
* feat(http): add POST handler for label service
* feat(http): add label delete handler
* fix json tag
* add happy path testing
* feat(http): add label endpoints to dashboard service
* make fmt
* add label delete handler
* make fmt again :(
* feat(bolt): add label implementation
* wire boltdb implementation of labels
* feat(mock): add mock for label service
* fix tests, add delete test
* add remaining tests, flesh out GET params
* unused code
* remove comments
* add labels endpoints
* clean up labels after deleting a dashboard
* fix issues from code review
* WIP remove type from labels
* feat(http): add label cli functions
* fixes
* make fmt
* feat(http): add labels to tasks and buckets
* feat(bolt): remove labels if their resources are deleted
* remove bolt cleanup for now
* make fmt
* type conversion magic
* feat(inmem): implement label service
* prevent race conditions
* remove labels from inmem if their resources are deleted
* fix race condition
* fix formatting
2018-12-03 08:07:08 -08:00
Jade McGough
873aae3fad
Revert "feat(http): add label service" ( #1667 )
...
This reverts commit 70a430c599
.
2018-12-03 04:27:27 -08:00
Jakub Bednar
3d99af0c78
Fixed the task id path, Added RunController instance to pAdapter
2018-12-03 08:23:10 +01:00
Jade McGough
70a430c599
feat(http): add label service ( #1346 )
2018-11-30 21:08:35 -08:00
Michael Desa
56de056085
feat(vault): add vault implementation of secret service
...
test(platform): run testcontainer integration tests for nightly release
Integration tests for the vault secret service using testcontiners
should not run along with unit tests, however, they should run on some
regular schedule. This commit introduces `make test-integration` which
runs integration tests for vault using testcontainers. The command introduced
relies on docker being available on the host it is executed on.
chore(platform): make go modules tidy
chore: try to fix go mod
chore(platform): remove explicit logrus dependency
chore(platform): run go mod tidy
chore(platform): replace github.com/Sirupsen/logrus with github.com/sirupsen/logrus
chore(platform): update docker dependency
feat(vault): add vault implementation of secret service
test(platform): run testcontainer integration tests for nightly release
Integration tests for the vault secret service using testcontiners
should not run along with unit tests, however, they should run on some
regular schedule. This commit introduces `make test-integration` which
runs integration tests for vault using testcontainers. The command introduced
relies on docker being available on the host it is executed on.
chore(platform): make go modules tidy
chore: try to fix go mod
chore(platform): run go mod tidy
feat(vault): add vault implementation of secret service
chore(platform): make go modules tidy
feat(platform): add Put/Patch/Delete methods on secret service
feat(vault): add Put/Patch/Delete methods on vault secret service
feat(http): add http handler methods for secret service
feat(bolt): add Put/Delete/Patch methods to bolt secret service
feat(testing): add tests for Put/Patch/Delete methods in secret service
feat(mock): add mock secret service
feat(http): add tests for secrets endpoints
feat(http): update swagger for secrets endpoints
chore: run go mod tidy
2018-11-30 13:07:32 -08:00
Jorge Landivar
b0fc331c6d
Merge pull request #1589 from influxdata/bug/1235
...
remove requestedAt param from retry call
2018-11-30 13:39:50 -06:00
j. Emrys Landivar (docmerlin)
7ffd18c7b8
remove requestedAt param from retry call and refactor TaskService interface
2018-11-30 13:14:21 -06:00
kelwang
6db9acc951
Revert "Revert "convert /buckets endpoint error to platform error ""
2018-11-30 13:27:40 -05:00
Mark Rushakoff
b1c80c8991
Merge pull request #1627 from zhulongcheng/task-page-size
...
fix(task): add limit field to TaskFilter
2018-11-30 08:17:12 -08:00
Edd Robinson
186e0392ed
Address PR feedback
2018-11-30 10:54:24 +00:00
Edd Robinson
9403c1ec8e
Ensure error strings not capitalised ST1005
2018-11-30 10:54:24 +00:00
zhulongcheng
d8c80fa50c
add limit param to task service
2018-11-30 10:02:41 +08:00
zhulongcheng
97d29e8974
add limit param to swagger
2018-11-30 10:02:41 +08:00
Christopher Henn
759891e37f
Add ability to create notes on a dashboard
2018-11-29 16:41:40 -08:00
Iris Scholten
2bd3031383
Merge pull request #1631 from influxdata/dataLoader/streaming-step
...
feat(ui/DataLoaders): Streaming/Listening step
2018-11-29 16:40:55 -08:00
Delmer
889da9cb71
feat(ui/graph): add gauge view options ( #1570 )
...
Adds gauge view, thresholdlist, and thresholditem
2018-11-29 19:26:29 -05:00
Iris Scholten
6e15d444a1
Add Streaming data step to onboarding wizard
...
Co-authored-by: Palak Bhojani <palak@influxdata.com>
2018-11-29 16:06:20 -08:00
kelwang
2a57dc1970
Revert "convert /buckets endpoint error to platform error "
2018-11-29 12:02:32 -05:00
Kelvin Wang
232d9d71e3
fix(http): fix bucket errors
2018-11-29 09:58:56 -05:00
Mark Rushakoff
45ec2265ac
Fix typo
2018-11-29 06:30:37 -08:00
Mark Rushakoff
5609b7fd93
refactor: prefer time.After
2018-11-29 06:26:11 -08:00
zhulongcheng
0c68d3126f
PR review changes
2018-11-29 14:30:07 +08:00
zhulongcheng
03c0b4c896
add validation for beforeTime/afterTime params
2018-11-29 14:30:07 +08:00
Ben Johnson
868fdbbe03
megacheck
2018-11-28 15:52:11 -07:00
Ben Johnson
1862b4421d
Integrate scanned values statistics tracking.
2018-11-28 15:32:06 -07:00
Lyon Hill
ee94aa46c7
Add ping to the QueryService ( #1597 )
2018-11-28 15:02:59 -07:00
Lyon Hill
4d90d826b3
Add the ability to have readiness probe seperate from liveness probes ( #1581 )
...
* Add the ability to have readiness probe seperate from liveness probes
2018-11-27 15:29:59 -07:00
docmerlin (j. Emrys Landivar)
57fe285e56
add run return to rerun
2018-11-27 11:48:32 -06:00
Brandon Farmer
b2eb20369a
Merge pull request #1576 from influxdata/updates/switch-dashboard-ui-generated
...
Switch Dashboard UI to use generated client
2018-11-27 09:35:33 -08:00
Brandon Farmer
70f9de4a81
Switch Dashboard UI to use generated client
2018-11-26 16:45:12 -08:00
Alirie Gray
2a35824421
Merge pull request #1572 from influxdata/tasks/fill-in-options-in-update-task-page
...
Tasks/fill in options in update task page
2018-11-26 16:08:27 -08:00
Alirie Gray
69155e7caa
Populate update task options pane with options returned from server
...
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-11-26 15:08:03 -08:00
Christopher M. Wolff
a3ad02288b
Remove use of verbose from control.Config ( #1573 )
2018-11-26 16:02:41 -07:00
Mark Rushakoff
232fb90edb
feat(task): add Delay field to platform.Task
...
This brings Delay in line with Every and Cron.
2018-11-21 14:37:35 -08:00
Brandon Farmer
6ddc0cb370
Fixes tasks request for frontend
...
- task in no longer nested
2018-11-21 11:00:00 -08:00
zhulongcheng
8984490ace
unify code style
2018-11-21 10:08:20 -08:00
zhulongcheng
19dd22fcfa
fix typos
2018-11-21 10:08:20 -08:00
zhulongcheng
07874d6246
add tests for /tasks endpoint
2018-11-21 10:08:20 -08:00
zhulongcheng
6a01187dc5
fix POST /tasks param
2018-11-21 10:08:20 -08:00
zhulongcheng
2f6e36c3ca
update GET /tasks response to implement swagger definition
2018-11-21 10:08:20 -08:00
zhulongcheng
631cb9a5f8
update task swagger definition
2018-11-21 10:08:20 -08:00
Christopher Henn
3834744464
Consolidate similar view types to "xy" view type
2018-11-21 08:42:54 -08:00
Jade McGough
096143977a
Merge pull request #1396 from bednar/user-mapping-response
...
fix GetMembersHandler
2018-11-21 00:47:35 -08:00
Jade McGough
c76539d13d
Merge pull request #1397 from bednar/url_missing_member_id
...
Fixed the organizations members paths
2018-11-21 00:45:41 -08:00
Michael Desa
21e6c7bdce
Merge pull request #1540 from influxdata/fix/md-keep-query-authz
...
fix(platform): keep authorization struct on proxy query request
2018-11-20 16:50:14 -08:00
Michael Desa
81d1520dc6
fix(platform): keep authorization struct on proxy query request
...
As a result of pr https://github.com/influxdata/platform/pull/1494 , idpe
broke. This PR undoes some of the work done from that PR, but fixes the
underlying issue with #1494 .
2018-11-20 15:20:51 -08:00
Brandon Farmer
272ffc44d6
Change swagger to represent nested task
2018-11-20 15:06:30 -08:00
Brandon Farmer
4f8ae2ba5a
Switch Task UI get tasks to use generated client
2018-11-20 13:58:02 -08:00
Michael Desa
407c01cb17
fix(platform): use authorizer instead of authorizion for endpoints
...
feat(platform): add ToPermissions method to user resource mapping
The ToPermissions method returns a set of permissions that is granted
via a user resource mapping.
feat(bolt): resolve sessions permissions on lookup
feat(http): use authorizer instead of authorization service for write api
feat(bolt): create user resource mappings for org users in bucket create
feat(bolt): create user resource mapping for first org/user
fix(platform): use authorizer for query endpoint instead of authorization
test(http): use cmp instead of reflect for decode test
2018-11-20 10:56:58 -08:00
Brandon Farmer
b4aa8ff1d6
Add generated API code and use for task creation
...
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-11-20 09:49:39 -08:00
Brandon Farmer
0bdb3414ae
Add updated swagger docs for Task Creation
2018-11-20 09:43:21 -08:00
Kelvin Wang
25eebd0084
fix(http): convert auth errors
2018-11-16 19:33:20 -05:00
Kelvin Wang
8d15d70360
fix(http): convert auth errors
2018-11-16 19:30:34 -05:00
Chris Goller
aaf69ffbc9
Merge pull request #1411 from influxdata/feature/grpc-errors
...
feat(kit/grpc): add translation between gRPC status and platform.Error
2018-11-16 16:16:34 -06:00
Chris Goller
6054288f3e
feat(kit/grpc): add translation between gRPC status and platform.Error
2018-11-15 21:16:48 -06:00
Chris Goller
ea5d9112b2
feat(http): self sources now return links to /api/v2
2018-11-15 19:01:34 -06:00
Mark Rushakoff
b0b0d965ff
feat(task): integrate task logs with system buckets
...
- Brought over enterprise's QueryLogReader, with small adjustments
- Time filters are for the run's ScheduledFor field, per spec
- Adjusted run log timestamps for consistent formatting:
- ScheduledFor is RFC3339 because it's a whole-second timestamp
- StartedAt, FinishedAt use RFC3339Nano for high precision
- Several test adjustments to use relative time, for easier integration
with storage retention
2018-11-15 08:59:15 -08:00
Ben Johnson
37be1e9219
Add end-to-end write/query integration testing.
2018-11-15 09:08:36 -07:00
Christopher Henn
81c0e53c4a
Add initial source management UI
2018-11-14 16:38:25 -08:00
Jakub Bednar
324f0b9516
Fixed the organizations members paths
2018-11-14 11:54:06 +01:00
Jakub Bednar
0bdc2adec4
Fixed Get Owner Members
2018-11-14 11:19:56 +01:00
Christopher Henn
0b5f7a01ca
Update Flux query URL for v1 sources
...
Previously, a v1 source was configured with a `URL` and `fluxURL`. The
`URL` was used for querying InfluxQL data, while the `fluxURL` pointed
to a `fluxd` instance and was used for querying Flux data. Since then,
`fluxd` has been subsumed by the InfluxDB 1.7 release, which supports
both InfluxQL and Flux.
This commit updates the source proxy query service to query Flux data
from a V1 source directly.
2018-11-09 09:48:04 -08:00
Brandon Farmer
513bd16523
Merge pull request #1279 from influxdata/fix/me-response
...
fix(http): user response of me at top-level
2018-11-08 13:58:59 -08:00
Jonathan A. Sternberg
fadf4f3e4f
deps: update flux dependency
2018-11-08 14:49:35 -06:00
zhulongcheng
9b817ed0d2
fix(http): add userID parameter
2018-11-09 00:10:44 +08:00
Lyon Hill
8bb6185092
fix a typo in the task service ( #1318 )
2018-11-07 13:15:53 -07:00
Nathaniel Cook
9fecaa0eb0
chore: Update for Flux renaming
2018-11-05 19:30:22 -07:00
Chris Goller
9fdfdbad5b
fix(http): user response of me at top-level
2018-11-05 12:25:37 -05:00
Michael Desa
c70c884fb9
Merge pull request #1258 from influxdata/feat/operation-log
...
WIP: add operation log for resources
2018-11-02 14:34:12 -04:00
Chris Goller
9d507a220a
Merge pull request #1280 from influxdata/feature/query-plan
...
refactor(http): preallocate query plans
2018-11-02 13:25:42 -05:00
Michael Desa
7227bf8fa2
feat(platform): add operation log for resources
...
feat(platform): add dashboard operation log interface
feat(bolt): add dashboard operation log to bolt client
feat(platform): add links to dashboard load response
fix(http): update links in json response of dashboards
feat(bolt): add operation logs for each resource
feat(http): add routes for operation logs
feat(cmd/influxd): set operation logs on http api backend
2018-11-02 14:21:14 -04:00
kelwang
3fed14dabc
Merge pull request #943 from influxdata/feat/inmem_onboarding_basic_auth
...
add inmem service for basic auth, http onboarding testing
2018-11-02 13:22:00 -04:00
Chris Goller
84af710e42
refactor(http): preallocate query plans
2018-11-02 12:03:45 -05:00
Kelvin Wang
63da5d1e9f
(feat/testing) add onboarding and basic auth service
2018-11-02 12:20:45 -04:00
Kelvin Wang
cb4e095463
fix the error code for 400
2018-11-02 11:28:39 -04:00
Chris Goller
3e54ef9f53
Merge pull request #1275 from influxdata/feature/query-plan
...
feat(http): add plan endpoint to analyze queries
2018-11-02 09:25:51 -05:00
Chris Goller
0d7b77d3dd
feat(http): add query plan validation
2018-11-02 09:11:57 -05:00
kelwang
8f52f9e1dc
Merge pull request #1273 from influxdata/fix/http_error
...
(fix/http): make error compatible with new and old lib
2018-11-02 10:03:21 -04:00
Chris Goller
7ca5187dc6
feat(http): add plan endpoint to analyze queries
2018-11-01 21:00:37 -05:00
Kelvin Wang
5378fe877a
(fix/http): make error compatible with new and old lib
2018-11-01 20:28:40 -04:00
Kelvin Wang
5b7b123d1e
fix user response
2018-11-01 20:12:04 -04:00
Jorge Landivar
34ab06634f
Merge pull request #1266 from influxdata/opentracing
...
open tracing context handling for tasks and for HTTP endpoints for tasks and query
2018-11-01 16:33:19 -05:00
docmerlin (j. Emrys Landivar)
bcbd7b5c24
context handling for tasks and for HTTP endpoints for tasks and query
2018-11-01 16:29:52 -05:00
Mark Rushakoff
dae3dc8a7e
chore(bolt,http,mock,query,testing): fix megacheck errors
2018-11-01 12:54:46 -07:00
kelwang
7709537722
Merge pull request #1254 from influxdata/fix/logger_panic
...
fix the logger, and get resturns nothing
2018-11-01 11:23:27 -04:00
zhulongcheng
03634fd8a9
check Accept header for mime-type
2018-11-01 21:10:17 +08:00
Kelvin Wang
0b41822434
fix the logger, and get resturns nothing
2018-10-31 19:50:04 -04:00
kelwang
47b6604b35
Merge pull request #1257 from influxdata/fix/telegraf_file_name_no_space
...
(fix/http) replace space with _
2018-10-31 19:34:08 -04:00
Nathaniel Cook
2a1d76eb2d
chore: Update flux dependency for the type-inference changes
2018-10-31 17:11:11 -06:00
Kelvin Wang
d218892be0
(fix/http) replace space with _
2018-10-31 14:45:28 -04:00
zhulongcheng
6fa7d8b143
use json decoder to decode request body
2018-10-31 23:32:51 +08:00
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
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
Chris Goller
37bd273acd
feat(http): add flux endpoint /v2/query influx
2018-09-04 16:08:00 -05:00
Mark Rushakoff
d4753e2ed6
chore(platform): remove Last Run field from Task
...
Closes #626 .
2018-08-30 11:02:17 -07:00
Chris Goller
acddea49a8
fix(http): remove swagger typos
2018-08-30 11:24:55 -05:00
Mark Rushakoff
eb24f2d780
fix(http): fix compile error from outdated merge
2018-08-30 09:16:07 -07:00
Jade McGough
b39ba889e4
feat(http): add write path ( #682 )
...
feat(http): Add write path with embedded NATS streaming server
2018-08-29 16:15:39 -07:00
Chris Goller
4c42d40ca9
docs(http): authorization status is now active or inactive
2018-08-29 13:07:39 -05:00
Chris Goller
40e56333e1
refactor(http): update authorization to use active/inactive status
2018-08-29 13:07:39 -05:00
Chris Goller
8fa72fa35b
feat(auth): allow authorizations to be enabled/disabled
2018-08-29 13:07:38 -05:00
Michael Desa
45233d939a
feat(platform): add uniform query endpoint for sources
...
Using query request struct to query resources
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Use query.ProxyRequest instead query.Request
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Proxy request from idpd
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Comments about the desired results
Signed-off-by: Lorenzo Fontana <lo@linux.com>
V1 endpoints working with flux
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Influxql working for v1
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Co-authored-by: Michael De Sa <mjdesa@gmail.com>
V2 influxql query endpoint working
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Co-authored-by: Michael De Sa <mjdesa@gmail.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
V2 Flux compiler support
Co-authored-by: Michael De Sa <mjdesa@gmail.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Improve comments in bolt sources and give error on self
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Co-authored-by: Michael De Sa <mjdesa@gmail.com>
Review tests failing
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Co-authored-by: Michael De Sa <mjdesa@gmail.com>
Avoid type casts for compiler types
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Co-authored-by: Michael De Sa <mjdesa@gmail.com>
Using nil instead of dbrp mapping service for influxql v1
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Check if compiler types are valid for influxql
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Organization as query param in the flux external handler
Signed-off-by: Lorenzo Fontana <lo@linux.com>
feat(http): update swagger documentation for flux query endpoint
feat(http): document query endpoint design
The code documented does not currently work. It is indended that this
will be implemented in follow up PRs.
feat(platform): move source to platform package
The source Query endpoint implements what's in the query swagger docs
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Co-authored-by: Michael De Sa <mjdesa@gmail.com>
feat(platform): allow for encoding and decoding of csv dialects
feat(platform): specify dialect in flux page
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-08-28 15:53:20 -04:00
Chris Goller
bb7d80e7bd
Merge pull request #692 from influxdata/feature/write-swagger
...
docs(http): add write endpoint documentation
2018-08-27 16:25:09 -07:00
Chris Goller
878ca0f95b
docs(http): add further description for 401 on /write
2018-08-27 18:21:31 -05:00
Chris Goller
eb443cad53
docs(http): remove outside of retention duration
2018-08-27 18:01:22 -05:00
Chris Goller
6b6aad3478
docs(http): add org parameter to writes
2018-08-27 11:58:14 -05:00
Chris Goller
42f6b278e4
docs(http): add 422 response for writes where points outside of RP
2018-08-26 12:54:12 -05:00
Chris Goller
957e3f72ae
docs(http): remove minutes and hours from precision on write
2018-08-26 10:23:34 -05:00
Chris Goller
48107600f2
docs(http): fix swagger formatting for /write route
2018-08-26 10:20:58 -05:00
Chris Goller
4fd19c0054
docs(http): add content-type, content-length, and accept to /write
2018-08-26 10:18:05 -05:00
Chris Goller
c85517fcdf
docs(http): fix header in write to be content-encoding
2018-08-26 10:01:30 -05:00
Chris Goller
52e71f9592
docs(http): add identity support in Accept-Encoding for write
2018-08-26 09:54:09 -05:00
Chris Goller
0da3fa9122
docs(http): document write over quota response
2018-08-26 09:49:54 -05:00
Chris Goller
d4c95ccc5f
docs(http): update database to bucket
2018-08-26 09:42:21 -05:00
Chris Goller
54999f3207
docs(http): add disabled boolean for authorization tokens
2018-08-24 14:20:19 -07:00
Chris Goller
2f23bc4045
Merge branch 'master' into feature/write-swagger
2018-08-24 10:33:13 -07:00
Chris Goller
83cf2ace19
docs(http): add write endpoint documentation
2018-08-24 10:26:40 -07:00
Michael Desa
8bc2d33b78
feat(platform): move chronogaf v2 dashboards to platform
...
test(testing): add tests for dashboards and cells
test(bolt): all conformance tests for dashbaords and cells
fix(bolt): rename dashboardV2Bucket to dashboardBucket
feat(chronograf): introduce v2 dashboards
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
chore(chronograf): add tests for v2 dashboard reducer
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
chore(chronograf): create dashboard from dashboard index
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
chore(chronograf): move tests to same level of heirarchy as file tested
chronograf(chore): implement import dashboard with v2 api
chore(chronograf): delete dashboards from v2 api
chore(chronograf): add source health handler
chore(chronograf): move sources reducer to sources dir
chore(chronograf): remove stutter in notify
WIP stop namespacing by sourceID
chore(chronograf): no longer namespace routes under sources/:sourceID
WIP move dashtimeV1 to ranges
WIP remove CEO
chrore(chronograf): WIP Remove CEO and QueryMaker
chore(chronograf): introduce updateDashboard v2
chore(chronograf): Change cell to view
A dashboard's cell object now only contains positional information
for the cell in it's grid and a reference to the cell's view data.
A cell's view contains all necessary information for the cell's
visualization.
Add react-grid-layout types
chore(chronograf): introduce add cell
chore(chronograf): fix type errors
Not on DashboardPage
feat(platform): add cell methods to dashboard service interface
feat(mock): update dashboard service with cell methods
feat(testing): add cell methods to testing package
feat(bolt): add dashboard cell methods to bolt dashbaord service
feat(http): add cell routes to dashbaord handler
feat(platform): add dependent create/destroy of views from cells
chore(chronograf): introduce update dashboard cells endpoint
WIP update cells FE
fix(http): rename Cells to cells on dashboard cells response
chore(chronograf): re-introduce dashboard cell dragging
feat(platform): add copy dashboard cell to dashboard service
chore(platform): rename cell to view across codebase
feat(bolt): add replace dashboard tests
Move Layouts to Cells
Introduce delete cell
Fix broken test
fix(platform): update route for copying a a dashboard cell
UI for delete cell
Introduce copy cell
feat(platform): add copy view options to AddDashboardCell
feat(bolt): delete views when dashboard is removed.
Cleanup
Fix type errors
Fix links not updating
Remove annotations from RefreshingGraph
Sources and types work
fix(platform): add TODO.go files back
fix(view): rename visualizationType to type in view JSON
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
fix(dashboardTime): change dashboardID to string
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
feat(http): add dashboard api to swagger documentation
review(http): fix comments and function naming
feat(http): update sources swagger documentation
review(http): update the swagger to reflect the implementation
feat(platform): add usingView options to POST /dashboard/:id/cells
2018-08-24 13:22:58 -04:00
Jade McGough
a1734f3d35
refactor(http): update task log structure in swagger
2018-08-23 15:58:46 -07:00
Lyon Hill
f718b9cdca
feat(task): create validation layer for TaskService ( #591 )
...
* feat(task): create validation layer for TaskService
2018-08-20 15:15:04 -06:00
Nathaniel Cook
0654b3cc81
Merged pull request #649 from influxdata/nc-log-traces
...
feat: Add zap opentracing.Tracer
2018-08-16 14:37:16 -06:00
Nathaniel Cook
f6923881f7
feat: Add zap opentracing.Tracer
...
Propogate opentracing spans through HTTP requests.
Use zap logger to log each span as it is finished.
2018-08-16 14:32:04 -06:00
docmerlin (j. Emrys Landivar)
c113e70605
task swagger name -> readOnly
2018-08-15 18:13:38 -05:00
Jade McGough
70ccb78c5d
chore(task): update run schema
2018-08-14 13:33:05 -07:00
Michael Desa
7b10d5e844
Merge pull request #536 from influxdata/feature/query-v1-sources
...
Support flux page in platform
2018-08-10 10:24:25 -04:00
Iris Scholten
f1137b9b24
feat(http): support posting queries as a json body
...
Co-authored-by: Chris Goller <goller@gmail.com>
2018-08-09 17:08:25 -07:00
Michael Desa
5aad8ceb9e
review(platform): update PR as suggested in review
2018-08-09 15:37:23 -04:00
Nathaniel Cook
5bde0b5be6
fix: Update query services to use Request type
...
Moves idpe.QueryService into platform/query.ProxyQueryService
Splits the Request into ProxyRequest and Request.
Changes query.QueryService and query.AsyncQueryService to use a Request
type. This means that the Compiler interface is consumed by the service
to abstract out transpilation vs Flux compilation vs raw spec.
The transpiler handler is removed.
There are separate http handlers and service implementations for each of
the three query services.
Query logging types are moved into platform.
The ResultIterator now expects Cancel to always be called.
The fluxd binary exposes the query endpoint specified in the swagger
file.
2018-08-08 15:31:35 -06:00
Andrew Watkins
5568298297
chore(chronograf): fix rebase onto master
2018-08-08 10:48:44 -07:00
Michael Desa
30fc5282f6
feat(http): add status feed to platform links
2018-08-08 09:38:27 -07:00
Michael Desa
3b400952d9
fix(http): get time series data properly
2018-08-08 09:37:37 -07:00
Michael Desa
fc382defb8
add retention policy name to bucket
2018-08-08 09:37:37 -07:00
Michael Desa
ffe645d6e2
feat(platform): support flux queries for 1x sources
2018-08-08 09:37:37 -07:00
Michael Desa
abc20e5e05
feat(platform): add chronograf language server to platform binary
...
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-08-08 09:37:37 -07:00
Michael Desa
e954a8063d
feat(platform): add ability to query sources
...
Currently all that is supported is v1 sources. This code will likely
need revisiting.
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-08-08 09:32:44 -07:00
Lyon Hill
212210eaec
make necessary changes
2018-08-07 16:51:33 -06:00
Lyon Hill
02d1b6507b
feat(task): connect the api to tasks
...
We need a coordination layer to facilitate the communication in the api to the task service.
The api was also not connected in main to the http service.
2018-08-07 15:53:17 -06:00
Michael Desa
707283b478
fix(http/influxdb): use dot as delimiter in dbrp
2018-08-07 10:45:14 -04:00
Michael Desa
0a4196b504
feat(http/influxdb): add http bucket service for oss influxdb
...
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-08-07 10:45:14 -04:00
Michael Desa
840044f58c
feat(http/influxdb): add influxdb client for oss sources
...
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-08-07 10:45:14 -04:00
Michael Desa
1b0ad7128b
feat(http/influxdb): add stubbed out v1 influxdb bucket service
...
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-08-07 10:45:14 -04:00
Michael Desa
af62beb75b
feat(http): add get sources buckets route
...
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-08-07 10:45:13 -04:00
Michael Desa
472154504c
feat(http): allow for v2 paths in serve http
...
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-08-07 10:45:13 -04:00
Michael Desa
add2eafc86
feat(http): add source http handler for source crud
...
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-08-07 10:45:13 -04:00
Mark Rushakoff
faf5408a7b
fix(http): increase errorHeaderMaxLength
...
The limit was introduced in 510325ea5c
but
it didn't specify why 64 was chosen.
According to https://stackoverflow.com/a/6160643 , we should be able to
assume at least 8kb of space for HTTP headers, so I'm assuming 256 bytes
should be sufficient to avoid truncating most error messages, without
being likely to hit the total HTTP header limit.
Fixes #530 .
2018-08-01 16:04:36 -07:00
Michael Desa
8c87c9d132
revert #442
2018-08-01 14:54:32 -04:00
Leonardo Di Donato
3191de776d
Refactoring code using platform.IDs
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
711d4a3f33
Refactoring main package
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
c59e4e8a50
Refactoring http package
2018-08-01 18:20:59 +02:00
Jonathan A. Sternberg
97a636ae8e
fix(http): only log an error and reference code if it exists
...
We should not log fields that don't exist since it clutters up the logs.
2018-08-01 09:47:58 -05:00
Nathaniel Cook
ef9c26391c
feat: add errors to http logging
2018-07-31 14:34:55 -06:00
Nathaniel Cook
1ef9de6aed
feat: Add optional http logging to handler
2018-07-30 16:16:37 -06:00
Iris Scholten
ec920cbc44
Merge pull request #471 from influxdata/feature/ping
...
feat(http): Add /ping endpoint to fluxd
2018-07-25 15:06:51 -07:00
Iris Scholten
f70a4553bf
feat(http): Add /ping endpoint to fluxd
...
Co-authored-by: Chris Goller <goller@gmail.com>
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-07-25 12:21:59 -07:00
Andrew Watkins
93ca5c9f76
chore(chronograf): Get Chronograf to "work" as in 1.6.x (w/o Kapacitor)
...
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-07-24 15:13:08 -07:00
Michael Desa
cfe907e8f5
feat(chronograf): all chronograf api handler to platform
2018-07-24 15:55:49 -04:00
Michael Desa
390a12bf21
fix(http): fix chronograf build asset paths
2018-07-24 14:25:06 -04:00
Michael Desa
7340b60840
feat(http): create asset handler for serving chronograf assets
...
Co-authored-by: Michael Desa <mjdesa@gmail.com>
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
2018-07-24 14:13:47 -04:00
Nathaniel Cook
d568d7fd01
feat: Use DBRPMappings in 1.x read path
2018-07-18 09:46:57 -06:00
Nathaniel Cook
2fe60c3ce2
fix: Defer writing HTTP headers in query service
...
This makes it so we can encode errors in HTTP headers so long as the
encoder did not write anything.
This also changes the behavior to encode the stats trailer even in the
event of an error.
2018-07-17 13:43:20 -06:00
Nathaniel Cook
85b7d36147
feat: Add query statistics
...
Introduces the Statisticser interface which ResultIterators may
implement.
The HTTP implementation uses HTTP trailers to preserve the statistics.
This way we do not need to have all encoders and decoders support
statistics.
2018-07-17 09:16:27 -06:00
Mark Rushakoff
a1bf6856fc
chore(http): integrate with prom.Registry
2018-07-11 16:54:23 -07:00
Nathaniel Cook
b63394da0a
fix(errors): Update Fluxd errors
...
This PR also completes some TODOs about kit/errors and http/errors.
2018-06-28 16:56:35 -06:00
Nathaniel Cook
83282276ae
Merged pull request #183 from influxdata/nc-http-status
...
fix(http): Fix status class when WriteHeader was not called
2018-06-28 16:22:12 -06:00
Nathaniel Cook
541a7561de
fix(http): Fix status class when WriteHeader was not called
2018-06-28 13:13:32 -06:00
Jonathan A. Sternberg
d62b9d3b28
Merge pull request #119 from influxdata/js-transpiler-options
...
feat(query/influxql): expose default database and retention policy for transpiler
2018-06-27 12:29:55 -05:00
Nathaniel Cook
f128074458
feat(query): Change Encode interface to return bytes written
2018-06-27 10:31:04 -06:00
Jonathan A. Sternberg
2388d95949
feat(query/influxql): expose default database and retention policy for transpiler
...
The influxql transpiler can now be configured with a default database
and retention policy.
2018-06-27 10:23:37 -05:00