Commit Graph

66 Commits (6e12d6634dfdddca3573269e7e34d565ea68f0e5)

Author SHA1 Message Date
Stuart Carnie 6e12d6634d fix(query): Utilize improvements storage RPC API
* clarifies grouping behavior in data types, matching RPC
2018-05-24 12:14:47 -07:00
Adam 5705f33f55
feat(cmd/ifqld): enforce fixed ordering on results iterator (#39)
sort hash keys in the partition_lookup.Range() function so that returned results are in a deterministic, though arbitrary, order.
2018-05-24 10:59:37 -04:00
Jonathan A. Sternberg a7d5a89844
Merge pull request #36 from influxdata/js-http-error-handling
feat(http): add a utility function for reading http errors
2018-05-23 13:42:07 -05:00
Jonathan A. Sternberg 48ece5136f feat(http): add a utility function for reading http errors
This also modifies the http error encoder to not include the reference
code in the `X-Influx-Error` message so it only includes the text.
2018-05-23 13:29:48 -05:00
Jonathan A. Sternberg 367793c1bd
Merge pull request #33 from influxdata/js-transpilerd-logger
feat(cmd/transpilerd): follow the logging style guide for transpilerd
2018-05-23 12:28:15 -05:00
Jonathan A. Sternberg eb83898c73 feat(cmd/transpilerd): follow the logging style guide for transpilerd
Introduce logging into the http server implementation for when the
server is shutting down and reporting when we receive a signal for a
hard shutdown.
2018-05-23 12:06:09 -05:00
Jonathan A. Sternberg 0cc2440c1f
Merge pull request #30 from influxdata/js-transpiler-shutdown
feat(cmd/transpilerd): update transpilerd to use http server package
2018-05-23 12:05:54 -05:00
Jorge Landivar 5aaf474ba3
Merge pull request #29 from influxdata/addr2url
addr -> url
2018-05-23 10:30:54 -05:00
Nathaniel Cook 5f7476953a Merged pull request #23 from influxdata/nc-ifql-nightly
Create nightly builds of ifqld
2018-05-23 09:15:22 -06:00
Nathaniel Cook 08eb19805d chore(CI): Create nightly builds of ifqld
The builds are really anytime a commit is made to master not nightly.
Builds use goreleaser with the snapshot setting.
2018-05-23 09:13:46 -06:00
Michael Desa 09b2bf2b71
Merge pull request #18 from influxdata/md-misc-fixes
[WIP] Use correct query param and update authorization tests
2018-05-23 10:47:02 -04:00
Jonathan A. Sternberg d8e4f4f2e0 feat(cmd/transpilerd): update transpilerd to use http server package
The http package now contains a server that handles signals and proper
shutdown procedure. It has now been updated to use it.

The http package has also added a `ListenAndServe` convenience function
that is similar to the `net/http` one, but also takes in a logger and
will automatically use the most common signals when running an http
server.
2018-05-23 09:27:17 -05:00
Jonathan A. Sternberg 0c422a863f
Merge pull request #28 from influxdata/js-http-server
feat(http): add common code for running an http server
2018-05-23 08:56:58 -05:00
Jonathan A. Sternberg 68ee1acd89 feat(http): add common code for running an http server
It handles graceful termination by listening to signals which will be
particularly useful for commands where the sole purpose is to run an
http server.
2018-05-23 08:51:13 -05:00
j. Emrys Landivar (docmerlin) b08e61bb55 addr -> url 2018-05-23 03:27:08 -05:00
Jorge Landivar bdbaac6dd2
Merge pull request #15 from influxdata/toHTTP
toHTTP function moved from github.com/influxdata/ifql
2018-05-23 00:42:45 -05:00
j. Emrys Landivar (docmerlin) e11c351853 make sure we are done processsing block before process exits 2018-05-23 00:41:24 -05:00
j. Emrys Landivar (docmerlin) 593e8f85c0 Update Gopkg.lock 2018-05-23 00:35:19 -05:00
j. Emrys Landivar (docmerlin) 32118f36c7 toHTTP function moved from github.com/influxdata/ifql PR 362 2018-05-23 00:28:44 -05:00
Jorge Landivar 435e38da9d
Merge pull request #25 from influxdata/vet
fix and enable vet
2018-05-23 00:22:42 -05:00
j. Emrys Landivar (docmerlin) 2f33928e1c add make vet 2018-05-23 00:21:26 -05:00
j. Emrys Landivar (docmerlin) 85c13d5f12 enable vet 2018-05-22 17:05:17 -05:00
Adam 19a51426d7
Merge pull request #22 from influxdata/aa_fromcsv_file
feat(cmd/ifqld): fromCSV reads files now
2018-05-22 17:17:57 -04:00
Adam 1495b7291a feat(cmd/ifqld): fromCSV reads files now
extended fromCSV to have an optional file:  parameter so that larger blocks of text can be given by filename instead of a blob of text
2018-05-22 16:56:27 -04:00
Nathaniel Cook 316bd7fb16 Merged pull request #17 from influxdata/nc-makefile
chore: Add Makefile
2018-05-22 14:51:50 -06:00
Nathaniel Cook eb7210b107 fix(ci): fix circleci to use make file 2018-05-22 14:50:10 -06:00
Nathaniel Cook c8ff490338 chore: Add Makefile 2018-05-22 14:45:23 -06:00
Nathaniel Cook ae31810f41 Merged pull request #19 from influxdata/nc-stop-col
fix(query): Add _stop, _start to partition key
2018-05-22 13:47:33 -06:00
Nathaniel Cook 0e2c213517 fix(query): Add _stop, _start to partition key 2018-05-22 12:59:07 -06:00
Michael Desa d907373d03 fix(http): use name query parameter instead of org in org routes 2018-05-22 13:50:34 -04:00
Michael Desa 3a42225dae test(testing): fix find authorization by token test
The previous test wasn't sufficient to detect certain types bad tests.
2018-05-22 13:25:05 -04:00
Jonathan A. Sternberg 4c69fd85e3
Merge pull request #14 from influxdata/js-influxql-transpiler
migrate(cmd/transpilerd): migrate the transpiler and its http handler to platform
2018-05-22 11:42:35 -05:00
Jonathan A. Sternberg 71986589fa migrate(cmd/transpilerd): migrate the transpiler and its http handler to platform 2018-05-22 11:13:30 -05:00
Nathaniel Cook a4f8741229 Merged pull request #12 from influxdata/nc-ifql-move
Move IFQL into repo
2018-05-22 09:53:49 -06:00
Nathaniel Cook affc7e3976 move types around to avoid cyclic imports 2018-05-21 17:02:42 -06:00
Nathaniel Cook 20345b8701 rewrite imports 2018-05-21 15:20:06 -06:00
Nathaniel Cook 51b8aebebf initial copy of ifql repo 2018-05-21 15:18:56 -06:00
Adam 0eb0f1548c
Merge pull request #9 from influxdata/aa_ifqld
ifqld with static organization+bucket
2018-05-21 11:26:19 -04:00
Nathaniel Cook 61400c0ca7 updates to ifqld to get static services working 2018-05-21 09:22:48 -06:00
Adam 5fb8b1a5dd changes to defaults in the static services 2018-05-21 09:22:48 -06:00
Adam acf70b508e Added static organization and bucket services 2018-05-21 09:22:48 -06:00
Adam 239742f042 First pass at ifqld complete, ready for discussion 2018-05-21 09:22:46 -06:00
Michael Desa 4f0e1afa42
Merge pull request #7 from influxdata/feat/bolt-orgs
Add bolt implementation of organzation/user/authorization services
2018-05-21 10:09:28 -04:00
Michael Desa f654b59662 feat(platform): add boltdb implementation of services
feat(platform): add id to authorization

feat(platform): add user arg to CreateAuthorization method on auth svc

migrate(platform): move idp command to platform directory

This comit did not move the ifql command as it depends on the query
service which has yet to be migrated.

feat(platform): add optional user name to authorization struct

feat(platform): add organization name to bucket struct

Additionally allow filtering buckets by organization name.

feat(prom): ensure that prom auth svc implement base interface

feat(prometheus): add user to create authorization method

feat(prom): drop user string from create authorization

feat(zap): ensure that zap auth svc implements base service interface

feat(zap): add user to create authorization method

feat(zap): drop user string from create authorization

feat(http): add ids to authorization service

feat(http): ensure that http authoriztaion service implements auth svc interface

feat(http): use authorization ids in authorization handler

squash(http): add check for http status accepted in authorization service

feat(http): clean up authorization service and handlers

feat(http): drop user string from create authorization

fix(http): normalize the http authorization service

feat(http): normalize bucket service and handler methods

Additonally, we added support for DELETE bucket

feat(http): add delete user handler

Additionally, there was a bit of general cleanup

feat(http): add delete route for organization handler and service

Did a bit of additional cleanup of the http code.

test(testing): add service conformance tests

test(testing): add organization service conformance tests

test(testing): add conformance test for orgs service

Additionally, there was a bit of cleanup in the users service tests

test(testing): add conformance test for authorizations service

test(testing): update auth tests to validate that user exists

test(testing): update authorization conformance tests with user name

test(testing): update bucket conformance tests to include organizations

feat(bolt): add bolt implementation services

feat(bolt): add bolt implementation of organization service

feat(bolt): add bolt implementation of users service

feat(bolt): add bolt implementation of authorization service

feat(bolt): add user to create authorization method

feat(bolt): drop user string from create authorization

fix(bolt): set user name on authorization after put

feat(bolt): update bucket servie to include organizations

feat(bolt): add dependent destroy of resources

feat(cmd/idpd): use bolt services in platform server

feat(cmd/idpd): use bolt organization service in platform server

feat(cmd/idpd): use bolt users service in plaform server

feat(cmd/idpd): use bolt client as authorization service

feat(cmd/idp): show user name in output of auth sub command

feat(cmd/idp): clean up bucket subcommand of idp command

fix(cmd/idp): normalize idp command output for users

fix(cmd/idp): normalize auth subcommand output

feat(cmd/idp): add support for delete organiztion command

migrate(idp): move ifql subcommand of idp to platform
2018-05-21 10:08:22 -04:00
Nathaniel Cook 7e4912048d Merged pull request #10 from influxdata/nc-csv
fix(query/csv): update CSV encoders/decoders for final SPEC
2018-05-19 15:29:34 -06:00
Nathaniel Cook c0b01f16f8 update transpiler and influxql encoders 2018-05-19 15:28:37 -06:00
Nathaniel Cook 1833601dbb fix(query/csv): update CSV encoders/decoders for final SPEC 2018-05-18 16:54:25 -06:00
Adam 16c4b89eab
Merge pull request #4 from influxdata/aa_refactor_ifql
Migrate cmd/ifqld  to platform
2018-05-17 12:15:32 -04:00
Adam 64e3c840ea Relocated several source files from private repo to here. 2018-05-17 11:35:53 -04:00
Jorge Landivar 7f40fe413e
Merge pull request #6 from influxdata/circleci
Circle ci
2018-05-16 12:07:44 -05:00