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
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
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
Adam
a20eda258d
Merge remote-tracking branch 'origin/master' into flux-staging
2018-12-20 16:31:44 -05:00
Adam
ad38ad8c3f
Revert "refactor(cmd/influxd): move driver code for influxd main package to sub-package so it can be reused ( #2077 )"
...
This reverts commit c3c12d1517
.
2018-12-20 16:29:28 -05:00
Adam
c3c12d1517
refactor(cmd/influxd): move driver code for influxd main package to sub-package so it can be reused ( #2077 )
...
* refactor(cmd/influxd): move driver code for influxd main package to sub-package so it can be reused.
* chore(query/influxql): moved query_test.go and requisite files to the influxql dir to be closer to the code it tests. (#2013 )
2018-12-20 16:15:40 -05:00
Christopher M. Wolff
72a0474f0a
fix(query): make databases() function embed plan.DefaultCost ( #2079 )
...
This was causing "unable to create physical plan" errors. With this fix in place there is still an issue with with databases: influxdata/flux#583
2018-12-20 12:34:29 -08:00
Adam
af0cad76ba
chore(query/influxql): moved query_test.go and requisite files to the influxql dir to be closer to the code it tests. ( #2013 )
2018-12-20 11:48:33 -05:00
Nathaniel Cook
d6c0a393b0
Merge branch 'master' into flux-staging
2018-12-19 11:30:55 -07: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
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
Christopher M. Wolff
a28dfe8f79
fix(query): restore error messages in repl ( #1936 )
...
Fixes #1932
2018-12-13 14:11:17 -08:00
Lyon Hill
f7ae8c3524
feat(api/task): Add validation for both tasks and buckets on task create ( #1900 )
...
fixes #1622
2018-12-12 16:07:40 -07:00
Christopher M. Wolff
c9ec2dd07f
fix(query): set error code "invalid" when controller reports error ( #1812 )
...
Fixes flux#268
2018-12-11 07:57:32 -08: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
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
jlapacik
d03035df9b
the final HT tests
2018-11-30 08:16:13 -08:00
Edd Robinson
f7a11525d0
Ignore generated file
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
Ben Johnson
0084d4d824
Remove influxdb dependency.
2018-11-29 11:44:22 -07:00
Ben Johnson
ee1eaaaaae
Merge pull request #1265 from influxdata/track-scanned
...
Add scanned value & bytes statistics.
2018-11-28 15:59:04 -07:00
Ben Johnson
868fdbbe03
megacheck
2018-11-28 15:52:11 -07:00
jlapacik
f382c3b3c7
generate derivative tests from HT
...
skipping these tests for now until the transpiler
adds support for derivative.
2018-11-28 14:34:32 -08:00
Ben Johnson
1862b4421d
Integrate scanned values statistics tracking.
2018-11-28 15:32:06 -07:00
Lorenzo Affetti
987370d1c9
Merge pull request #1565 from influxdata/la-median-transp
...
Support for median in transpiler
2018-11-27 17:38:35 +01:00
Lorenzo Affetti
eda4a59c35
Support for median in transpiler
2018-11-27 17:23:29 +01:00
Mark Rushakoff
a06d4dea16
refactor(query): explicitly shut down query controller
...
The flux query controller was updated to include a Shutdown method a
while ago. Explicitly handle query controller creation and shutdown
where applicable.
In influxd, this ensures that outstanding queries are handled before the
process dies. In tests, this ensures that query controller goroutines
aren't leaked, which drastically simplifies reading full stack traces.
This change also registers query controller metrics with the prometheus
registry in influxd.
2018-11-26 16:13:19 -08:00
jlapacik
d89220fd9a
transpiler test case for grouping by time interval (windowing)
2018-11-26 15:31:07 -08:00
jlapacik
2384927047
compare tables directly for generated end-to-end tests
2018-11-26 15:04:22 -08:00
Christopher M. Wolff
a3ad02288b
Remove use of verbose from control.Config ( #1573 )
2018-11-26 16:02:41 -07:00
jlapacik
2b52224e84
update flux dependency - add missing Statistics() methods
2018-11-26 13:19:14 -08:00
jlapacik
17413276c2
update transpiler result iterators with new Statistics method
2018-11-26 12:17:16 -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
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
jlapacik
f7a55a7606
transpiler test case for multiple fields in project
2018-11-16 15:05:45 -08:00
Adam
41aa5688a0
Add default column to databases and add support for `show retention policies` ( #1423 )
...
* Add default column to databases to support `show retention policies`
* add unit test for show retention policies
* update transpiler readme for show databases, show retention policies
2018-11-16 15:20:49 -05:00
Chris Goller
a8c1155b21
fix(Makefile): remove old clean targets
2018-11-15 20:21:30 -06:00
Christopher M. Wolff
bbd460e7d9
Add method QueryRawJSON to influxql.service (for querytest tool) ( #1402 )
2018-11-15 10:45:38 -08:00
Adam
2321d81291
Feat/transpiler show databases ( #1363 )
...
* feat(query): databases transformation implementation
add show databases to transpiler
2018-11-13 16:07:28 -05:00
jlapacik
a86a37eb02
transpiler test case for basic group by time
2018-11-13 09:03:04 -08:00
Adam
c950a6dc00
fix to transpiler result encoder when there's no _time column ( #1350 )
...
* fix to transpiler result encoder when there's no _time column
* add unit tests
2018-11-12 15:35:16 -05:00
Jonathan A. Sternberg
fadf4f3e4f
deps: update flux dependency
2018-11-08 14:49:35 -06:00
Adam
2d54689eda
skip generated tests in random folder due to known issue in transpiler
2018-11-06 14:04:40 -08:00
jlapacik
3a6810c7ff
generated influxql json tests
2018-11-06 14:04:40 -08:00
Jonathan A. Sternberg
66920f253a
fix: show tag values must specify a range stop
2018-11-06 09:17:37 -06:00
Nathaniel Cook
9fecaa0eb0
chore: Update for Flux renaming
2018-11-05 19:30:22 -07:00
Adam
612005cad1
add output to to function ( #1282 )
...
* added (unused) stats struct, and piped written data to output table
* updated to tests since to returns data now
* changes based on review
2018-11-02 13:40:25 -04:00
Mark Rushakoff
dae3dc8a7e
chore(bolt,http,mock,query,testing): fix megacheck errors
2018-11-01 12:54:46 -07:00
Adam
8a1fecd727
to() for influxdb ( #1194 )
...
* update to latest flux master incl. values interface refactor, type inference, planner.
* add measurementColumn parameter, update function params spec
2018-11-01 14:44:56 -04:00