Commit Graph

94 Commits (2e694241bedaab7ab17a68b0b17a1ecbb7b80901)

Author SHA1 Message Date
Nathaniel Cook 020a11faa8 chore(flux): update to Flux v0.19.0 2019-02-11 13:53:53 -07:00
Christopher Wolff 698de51e67 refactor(query): update to reflect changes to windows 2019-02-08 08:39:52 -08:00
Christopher Wolff 3e8b0fe807 refactor(query): separate "from" into logical and physical procedures
Fixes influxdata/flux#270.
2019-02-07 12:59:54 -08:00
Jonathan A. Sternberg 31dff58d4d
deps: upgrade to Flux v0.18.0 2019-02-07 10:38:09 -06:00
Jonathan A. Sternberg 204d919a92
refactor(query/influxql): use ast compile function from flux (#11749) 2019-02-07 10:02:23 -06:00
Jonathan A. Sternberg 8b20b52f51
refactor(query/influxql): modify the transpiler interface to produce an AST (#11662)
This refactors everything to generate and use a flux AST when
transpiling an influxql query. This also updates the spectests so they
use flux instead of writing out the AST and compare the resulting
AST's.
2019-02-06 10:18:33 -06:00
Lorenzo Affetti ce00375298 refactor(query/stlib): move from implementation from Flux 2019-02-05 17:46:46 +01:00
Leonardo Di Donato bd3c9cc75c fix(vault): correct testcontainers-go dep
Fixes #11199

Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2019-01-24 14:14:11 +01:00
Nathaniel Cook 4648a7f638 chore: go mod tidy 2019-01-22 14:43:47 -07:00
Nathaniel Cook 5c64332a63 chore(flux): update Flux to v0.17.0 2019-01-22 14:39:16 -07:00
Nathaniel Cook 54d8ab91c2 chore: update to Flux v0.16.1 2019-01-17 12:55:06 -07:00
Nathaniel Cook cf7eb7834b chore: update Flux to v0.16.0 2019-01-17 09:23:53 -07:00
Nathaniel Cook 1f5ac8f2ce chore: update Flux to v0.15.0 2019-01-16 09:46:27 -07:00
AJ Bond 8b167185f6 chore(ci):Update goreleaser version
Update goreleaser to the latest release version which provides support for multiple binaries within a docker image
2019-01-15 20:36:18 -05:00
Nathaniel Cook 2ebf17645e chore: update Flux to v0.14.0 2019-01-15 08:47:31 -07:00
Nathaniel Cook d0603457b7 refactor(flux): make packages mirror Flux namespaces 2019-01-14 18:00:45 -07:00
Nathaniel Cook 622106caaa Merge branch 'master' into flux-staging 2019-01-14 17:03:57 -07:00
Jacob Marble dda9b8468f WIP fix: Docker image 'influx' gets 'influx' binary 2019-01-14 09:25:05 -08:00
Nathaniel Cook 3a2231be98 Merge branch 'master' into flux-staging 2019-01-11 13:47:49 -07:00
Nathaniel Cook aecbc143e4 chore: go mod tidy 2019-01-11 13:45:05 -07:00
Nathaniel Cook 1708a41fa7 refactor: update query functions for Flux builtins 2019-01-11 13:11:57 -07:00
j. Emrys Landivar (docmerlin) a2674fa03d feat(tasks): update task options from api 2019-01-11 11:55:46 -06:00
jlapacik 5266cba346
deps: updates for packages and imports (#10962) 2019-01-10 14:33:25 -08:00
Mark Rushakoff cc389a3b51 chore: use upstream version of kin-openapi
We were using a fork, but the change introduced in that fork has since
been merged upstream.

Closes #10626.
2019-01-10 11:22:03 -08:00
Jonathan A. Sternberg a59e6b8d25 refactor: rename DoArrow to Do (#2372)
See influxdata/flux#783 for details.
2019-01-10 10:30:25 -07: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
Nathaniel Cook 4d4b7e474d chore: go mod tidy 2019-01-07 16:48:55 -07:00
Nathaniel Cook 4d0305574c chore: update Flux to v0.13.0 2019-01-07 16:44:34 -07: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
Nathaniel Cook 4918b15f35 refactor(http/query): update http query logic for new parser API 2019-01-04 11:28:55 -07:00
Nathaniel Cook 2e2867217e chore: update Flux to v0.12.0 2019-01-03 09:49:24 -07:00
Adam e333d9d60f tidy modules 2019-01-02 15:53:08 -05:00
Adam 512788f95e go mod updates 2019-01-02 15:46:37 -05:00
Adam 9a561f8b53 manually merged addition of secrets to launcher 2019-01-02 15:42:55 -05: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
Chris Goller 4f38c8cad9 feat(http): add accept parsing for telegraf 2018-12-26 12:23:59 -06:00
Adam 6777b9676c
refactor(query/functions/outputs): refactor to.go to use arrow data … (#2131)
* refactor(query/functions/outputs): refactor to.go  to use arrow data structures

* update flux to latest master
2018-12-21 11:39:53 -05:00
Nathaniel Cook 5d31665ae8 chore(Makefile): fix broken nightly builds after Makefile updates
There were two issues.First the `chronograf` subdir was not listed.
Second the tmpl generate dependency was not listed in the tools.go list
of dependencies.

Fixes #2044
2018-12-19 13:52:33 -07:00
Nathaniel Cook 92a3ac7788 Merge remote-tracking branch 'origin/master' into flux-staging 2018-12-19 12:10:22 -07:00
Mark Rushakoff f7c1785c23 build: adjust module checksums for go1.11.4
Steps taken:

- go test -short ./... repeatedly, and on each checksum failure:
  - remove line for that repository from go.sum, and re-run go test
- go mod tidy repeatedly, and on each checksum failure:
  - remove line for that repository from go.sum, and re-run go mod tidy

I think this fixes local development, but it is unlikely to succeed on
CI until other images also migrate to go1.11.4. Unfortunately, the
docker image for go1.11.4 has not yet been published.
2018-12-19 13:52:52 -05:00
Nathaniel Cook d6c0a393b0 Merge branch 'master' into flux-staging 2018-12-19 11:30:55 -07:00
Michael Desa 28cea4d957 feat(platform): add generic kv store
Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>

feat(kv): add kv store interface for services

feat(bolt): add boltdb implementation of kv.Store

spike(platform): add kv backed user service

feat(kv): add static cursor

Note here that this operation cannot be transactionally done. This poses
a bit of issues that will need to be worked out.

fix(bolt): use error explicit error message

squash: play with interface a bit

fix(kv): remove commit and rollback from kv interface

feat(inmem): add inmem kv store

chore: add note for inmem transactions

fix(bolt): remove call to tx in kv store tests

feat(kv): add tests for static cursor

doc(kv): add comments to store and associated interfaces

doc(bolt): add comments to key value store

feat(testing): add kv store tests

test(testing): add conformance test for kv.Store

test(inmem): add kv.Store conformance tests

doc(inmem): add comments to key value store

feat(inmem): remove CreateBucketIfNotExists from Tx interface

feat(bolt): remove CreateBucketIfNotExists from Tx

feat(inmem): remove CreateBucketIfNotExists from Tx

doc(kv): add note to bucket interface about conditions methods can be called

feat(kv): add context methods to kv.Tx

feat(bolt): add context methods to bolt.Tx

feat(inmem): add context methods to inmem.Tx

test(kv): add contract tests for view/update transactions

feat(kv): ensure that static cursor is always valid

Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>

fix(kv): remove error from cursor methods

test(kv): remove want errors from cursor test

test(testing): add concurrent update test for kv.Store

feat(kv): make kv user service an example service

fix(testing): add concurrnent update test to the kv.Store contract tests

test(platform): fix example kv service tests

dep(platform): make platform tidy
2018-12-18 16:08:48 -05:00
Nathaniel Cook b0473fb3db build(flux): update to Flux v0.11.0 2018-12-18 12:49:34 -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
Jonathan A. Sternberg cc93531400 fix(storage): convert the storage table interface to use arrow buffers
The table interface was modified to expose the arrow buffers. The
storage table has now been converted to use this interface with the same
fixes so that it exposes arrow buffers.

The influxql package has also been updated to use the `DoArrow` method
from the `flux.Table` interface.
2018-12-18 09:47:53 -07:00
Nathaniel Cook 88425ced00 build(flux): update to Flux v0.10.0 2018-12-17 12:54:51 -07: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 f5801c1aa9 chore: update Flux to v0.9.0 2018-12-12 11:42:35 -07: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