jlapacik
7333847e2a
refactor(influxdb): remove and/or transfer duplicated tests
2019-05-03 11:02:20 -07:00
jlapacik
0ce05e7ad6
refactor(influxdb): remove old FromProcedureSpec
2019-05-03 11:02:20 -07:00
Lorenzo Affetti
33418aac2c
test(flux/e2e): skip flaky window_generate_empty test
2019-05-02 18:19:07 +02:00
jlapacik
e50508a349
feat(influxdb): enable group pushdown rule
...
Closes #13623 .
2019-05-01 10:35:10 -07:00
jlapacik
95aa194498
feat(storage): ReadGroup RPC definitions and storage reader
2019-05-01 10:35:10 -07:00
jlapacik
5f87134ca8
feat(query): physical group operation and pushdown rule
...
test(query): group pushdown rule
2019-05-01 10:35:10 -07:00
Jonathan A. Sternberg
1a254a3293
feat(stdlib): enable the tag keys optimization for meta queries ( #13705 )
2019-04-30 21:32:47 -05:00
Stuart Carnie
fb39ac39ce
fix(storage): Store.Read behavior changed to return unsorted series keys
...
Closes #13581
2019-04-26 10:38:59 -07:00
Jonathan A. Sternberg
46d2d0012b
fix(storage): translate _measurement and _field to the proper strings ( #13662 )
...
The RPC call should translate `_measurement` and `_field` to their
proper shortened byte strings when requesting the tag values.
This also fixes the planner rewrites to return the root node even when
no rewrite happened as this is required by the planner.
2019-04-26 10:36:51 -07:00
Nathaniel Cook
e651b020b2
refactor(query): enable new planner rules and remove old rules
2019-04-25 11:16:11 -07:00
Ben Johnson
01bfcf822b
Merge point parse & explode ( #12377 )
...
Merge point parse & explode
2019-04-24 10:30:16 -06:00
Ben Johnson
272f340c30
Merge point parse & explode.
2019-04-24 10:12:15 -06:00
Jonathan A. Sternberg
5e77bd1e28
feat(query): implement the read tag values rpc call in the query engine ( #13559 )
...
If a pattern is seen that matches the `v1.tagValues(...)` call, then it
will be replaced with a direct RPC call to read the tag values for the
selected tag key which should be better optimized than reading from the
storage engine tsm1 files.
2019-04-23 12:56:35 -05:00
Nathaniel Cook
bc17af2118
Merge pull request #13569 from influxdata/flux-staging
...
chore(dep): update Flux to v0.27.0
2019-04-22 18:34:39 -06:00
Kelvin Wang
7a72c363f2
remove org from bucket
2019-04-22 18:39:05 -04:00
Kelvin Wang
9d44ac3635
rename bucket organization to org
2019-04-22 18:39:01 -04:00
Nathaniel Cook
a49d1696dc
Merge branch 'master' into flux-staging
2019-04-22 14:25:33 -06:00
Christopher M. Wolff
c9f94d4ee8
refactor(query): add parameters to query controller config ( #13554 )
...
Recently added to controller config:
ConcurrencyQuota
MemoryBytesQuotaPerQuery
QueueSize
2019-04-22 12:11:32 -07:00
Jonathan A. Sternberg
e5657ca62b
feat(query): implement the read tag keys rpc call in the query engine ( #13513 )
...
If a pattern is seen that matches reading the tag keys, it will be
replaced with a direct RPC call to read the tag keys which should be
better optimized than reading from the storage engine tsm1 files.
2019-04-22 14:09:44 -05:00
Jonathan A. Sternberg
c98c29c1d1
feat(query): add push down rule for filters to read range procedure ( #13512 )
...
The read range procedure that uses the new rpc endpoints will now accept
filters using the same rules as the previous physical from procedure
spec.
2019-04-18 18:18:41 -05:00
Nathaniel Cook
4c77e3598b
Merge branch 'master' into flux-staging
2019-04-18 11:01:22 -06:00
Nathaniel Cook
4c1cdd2095
fix(query): add panic stack to logs for query logging recovery
2019-04-18 10:57:43 -06:00
Nathaniel Cook
07f98e31e7
fix(query): fix misc tests with new master Flux
2019-04-18 10:51:35 -06:00
Todd Persen
cd64ec8718
Fix typos in miscellaneous packages
2019-04-17 13:30:22 -07:00
Nathaniel Cook
8b918539db
Merge branch 'master' into flux-staging
2019-04-17 12:26:10 -06:00
Mark Rushakoff
d0517f288a
fix(query): return statistics even in encoder error case
...
The ProxyQueryServiceAsyncBridge was not returning statistics when there
was an encoder error. Because the encoder was just writing to an
io.Writer, it was possible that a remote disconnect could happen and
statistics could not be reported.
2019-04-16 09:51:13 -07:00
jlapacik
89bf535602
test(stdlib): skip flaky range test ( #13405 )
2019-04-15 10:08:50 -07:00
Christopher M. Wolff
77f1b0da4b
fix(query): re-enable some from/to bucket tests ( #13334 )
2019-04-12 07:15:27 -07:00
Adam
29df88127f
refactor(query/preauthorizer): preauthorizer now uses a BucketsAccessed method that accepts AST ( #13302 )
2019-04-12 07:15:27 -07:00
jlapacik
20b492bb13
refactor(influxql): compile with planner options ( #13288 )
2019-04-12 07:15:27 -07:00
Christopher M. Wolff
6c3f1a05b9
refactor(query): allow code to compile despite BucketsAccessed ( #13282 )
...
BucketsAccessed doesn't work currently with a private flux.Spec.
See this issue: https://github.com/influxdata/influxdb/issues/13278
This set of changes just allows code to compile until #13278 is fixed.
Note that preauthorization is not working in the meantime.
Fixes #13275 .
2019-04-12 07:15:27 -07:00
Christopher M. Wolff
5e09aa178b
fix(query): make mock Query close its results channel ( #13242 )
2019-04-12 07:15:27 -07:00
Christopher M. Wolff
16b9158b39
refactor(task): make tasks use new Query interface ( #13219 )
...
Fixes #12883 .
2019-04-12 07:15:27 -07:00
Christopher M. Wolff
dec149d22d
refactor(query): update testing InfluxQL testing compiler to use new interface ( #13107 )
...
Fixes influxdata/flux#1099 .
2019-04-12 07:15:27 -07:00
Nathaniel Cook
f37e65f26c
fix(query): change logging bridge to be a service instead
...
It is no longer necessary for the query logging to be a bridge as the
stats are available for consumption from the ProxyQueryService.
This change changes the logging bridge to directly implement the proxy
query service instead of implementing a bridge.
2019-04-11 14:46:45 -06:00
Jacob Marble
f56c42794b
chore(tracing): Cleanup ( #13296 )
...
* chore(tracing): Cleanup
* broken test
* fix unused var
* fix test
2019-04-10 19:28:21 -07:00
kelwang
be674622c6
Revert "fix(inmem): remove the old inmem implementation"
2019-04-09 14:24:40 -04:00
kelwang
d0022dfd5c
Merge pull request #13039 from zhulongcheng/rm-inmem-impl
...
fix(inmem): remove the old inmem implementation
2019-04-09 13:06:50 -04:00
jlapacik
8078b915fd
refactor(storage): ReadFilter storage operation
2019-04-08 15:59:37 -07:00
zhulongcheng
cacd6a8223
fix(inmem): replace inmem.Service with kv.Service
2019-04-08 15:18:38 +08:00
Jonathan A. Sternberg
72726cbe85
Merge branch 'master' into flux-staging
2019-04-01 10:59:43 -05:00
Lorenzo Affetti
c4ae25ca39
Merge pull request #12812 from influxdata/test/memory-limits
...
test(launcher): test for query memory limits and launcher test helpers
2019-03-28 15:48:16 +01:00
Christopher M. Wolff
f945b84642
refactor(stdlb): Change plan.PlanNode to plan.Node ( #12906 )
2019-03-27 14:19:04 -07:00
Nathaniel Cook
ca6f2ad0c6
Merge branch 'master' into flux-staging
2019-03-27 09:42:48 -06:00
Lorenzo Affetti
90a48c74f6
test(launcher): test for query memory limits and launcher test helpers
2019-03-27 15:50:35 +01:00
Lorenzo Affetti
a49bb73c04
chore: update Flux to v0.23.0
2019-03-26 18:04:18 +01:00
Christopher M. Wolff
56e688beee
fix(query): add Check method to query service interfaces ( #12866 )
...
Fixes influxdata/idpe#2756 .
2019-03-25 20:05:44 -07:00
Lorenzo Affetti
d18c6e5ffe
fix(query/stdlib/influxdb): return error on point explosion ( #12774 )
2019-03-20 15:45:31 +01:00
jlapacik
adbfddb0ef
Flux staging ( #12760 )
...
* deps: update flux-staging to master of both influxdb and flux (#12698 )
* test(stdlib): skip failing window test due to new trigger optimization (#12708 )
* chore: update Flux to v0.22.0
2019-03-19 22:19:24 -07:00
Mark Rushakoff
490499267b
fix(query): allow multiple calls to Release proxy bridge iterator
...
The asyncStatsResultIterator used inside QueryServiceProxyBridge assumed
that Release would only be called once. The godoc for ResultIterator
specifies that it is safe to call Release multiple times. Now, you can
do that without causing Release to block indefinitely.
2019-03-19 16:06:43 -07:00
jlapacik
9324d5c1a1
test(stdlib): skip failing window test due to new trigger optimization ( #12708 )
2019-03-19 09:16:47 -07:00
Jonathan A. Sternberg
862f168967
deps: update flux-staging to master of both influxdb and flux ( #12698 )
2019-03-18 16:13:02 -05:00
jlapacik
124a2c6b6c
test(stdlib): fix mismatched planner node types ( #12695 )
2019-03-18 14:54:48 -05:00
Jonathan A. Sternberg
0d045630c8
fix(query): release the query results before requesting statistics ( #12622 )
...
The statistics are only finalized after release is called. Defer a call
to release to ensure they are released, but explicitly release on
success to ensure that the statistics are finalized from all sources
before returning them.
2019-03-14 11:12:53 -05:00
Jonathan A. Sternberg
e3ac5ffecf
feat(query/mock): create a mock object for the query interface ( #12628 )
2019-03-14 11:08:48 -05:00
Kelvin Wang
dcc052b1c2
fix(query): fix same bucket name with different orgs
2019-03-08 20:37:05 -05:00
Jacob Marble
603a1f26e0
use tracing.StartSpanFromContext
2019-03-07 12:12:31 -07:00
Jacob Marble
ed4e3e130b
return n with error
2019-03-07 12:12:31 -07:00
Jacob Marble
9541e861a3
goimports -w -local github.com/influxdata/influxdb
2019-03-07 12:12:31 -07:00
Jacob Marble
92fa813c45
add spans to multiple services
2019-03-07 12:12:31 -07:00
Christopher M. Wolff
e28ecdc0e9
refactor(query): make queryd present ProxyQueryService ( #12360 )
...
Fixes influxdata/idpe#2014 .
2019-03-07 07:32:13 -08:00
Jonathan A. Sternberg
9549cc4d97
fix(storage/reads): track memory allocations when reading from storage ( #12404 )
2019-03-06 15:29:45 -06:00
Jacob Marble
b9c7ec439e
feat(influxd): Tracing refactor ( #12318 )
...
* feat(launcher): Tracing to log disabled by default
* remove traceLogger and use opentracing directly
* add Jaeger tracing
* go vet && go fmt
2019-03-04 11:48:11 -08:00
Ben Johnson
12d35f1a50
Revert "Merge point parse & explode."
...
This reverts commit 1004abc3e1
.
2019-03-02 06:23:04 -07:00
Ben Johnson
1004abc3e1
Merge point parse & explode.
2019-03-01 15:55:37 -07:00
Jonathan A. Sternberg
70507670c3
feat(storage/reads): add scanned values and bytes metadata to the query ( #12156 )
...
This updates influxdb to use the new arbitrary metadata that can be
attached by a source and adds metadata entries for the cursor
statistics.
2019-02-25 14:44:18 -06:00
Nathaniel Cook
26e7f641b7
Merge branch 'master' into flux-staging
2019-02-25 13:00:28 -07:00
Michael Desa
0d3d0d4d78
chore(influxdb): add context to storage.PointsWriter
2019-02-25 11:11:20 -05:00
Lorenzo Affetti
cf81141689
fix(e2e-tests): make task use default bucket from user fixture ( #12139 )
...
* fix(e2e-tests): make task use default bucket from user fixture
* fix(query_test): update pre-auth test now that from is bucket aware
2019-02-25 12:38:04 +01:00
Lorenzo Affetti
5369c189b0
Merge pull request #11894 from influxdata/fix/buckets-accessed
...
fix(query/stdlib/influxdb): make FromOpSpec a BucketAwareSpec
2019-02-25 09:16:55 +01:00
Adam
4c0262befe
test(stdlib/testing): added new test driver to run builtin tests ( #11916 )
2019-02-21 22:03:29 -05:00
Mark Rushakoff
0977a651df
fix(task): create authorization when using token to create task
2019-02-15 12:11:55 -08:00
Lorenzo Affetti
b68043ae8c
fix(query/stdlib/influxdb): make FromOpSpec a BucketAwareSpec
2019-02-14 17:38:48 +01:00
Jonathan A. Sternberg
f30820cb46
fix(query/influxql): normalize selectors when an interval is present ( #11760 )
...
The selector will be normalized to the start time interval when `GROUP
BY time(X)` is present in the query.
2019-02-11 10:51:59 -06: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
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
c0ba465604
fix: multiple compatibility issues with flux@master
2019-02-05 17:46:54 +01:00
Lorenzo Affetti
ce00375298
refactor(query/stlib): move from implementation from Flux
2019-02-05 17:46:46 +01:00
Nathaniel Cook
d4d8bdd3a0
refactor(query): update import path for CreateSourceFromDecoder
2019-01-22 14:36:31 -07:00
Lyon Hill
c4e71bf412
Use orgID when to function reports its write buckets. ( #11363 )
...
* Use orgID when to function reports its write buckets.
fixes #11231
2019-01-22 14:13:50 -07:00
Mark Rushakoff
10b7e087e7
fix(query): improve preauthorizer errors on unknown buckets
...
When trying to create a task that writes to an unknown bucket,
previously the error message would resemble:
could not find bucket {<nil> 0xc0000dfcc0 <nil> 0xc0000dfce0}: <not found> bucket not found
Now print something human-readable:
could not find write bucket with filter: [Bucket Name: b, Org Name: a]: <not found> bucket not found
2019-01-18 16:22:15 -08:00
Michael Desa
c60031a6b7
fix(influxdb): change resource to resource type
2019-01-15 12:57:57 -05: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
Jorge Landivar
f8f1c1e7b6
Merge pull request #10954 from influxdata/feature/update_task_options
...
feat(tasks): update task options from api
2019-01-11 14:58:10 -06:00
Nathaniel Cook
3a2231be98
Merge branch 'master' into flux-staging
2019-01-11 13:47:49 -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
Michael Desa
944de4157a
fix(influxdb): add org id to permissions
...
filter out resources that have mission IDs
fix(influxdb): simplify auth check in PermissionAllowed
review(platform): update as noted in review
fix(influxdb): ensure permission has valid org id
2019-01-11 12:23:28 -05:00
jlapacik
5266cba346
deps: updates for packages and imports ( #10962 )
2019-01-10 14:33:25 -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
Jonathan A. Sternberg
6ccb8e8c75
refactor: convert usages of ColReader to ArrowColReader
2019-01-10 10:25:10 -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
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
Nathaniel Cook
2a1d76eb2d
chore: Update flux dependency for the type-inference changes
2018-10-31 17:11:11 -06: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
Adam
ea4c08b327
(feat/query): implement a buckets() source function that retrieves all buckets and retention policy information for the active organization. ( #1045 )
2018-10-17 10:21:39 -04:00
Jonathan A. Sternberg
e9600b1f0b
refactor: modify tooling to take advantage of go run
...
The generate commands have been modified to take advantage of the new
functionality in Go 1.11 that allows `go run` to execute a package
instead of individual files.
This functionality combined with Go modules allows us to execute a
package directly out of our pinned dependencies rather than accidentally
picking up another binary outside of the build environment.
This also simplifies the Makefile because they no longer have to be
responsible for installing the correct tooling since the Go command
takes care of that logic. It also makes it so that the Makefiles with
file generation can now be invoked from their appropriate subdirectories
so they are contained within the directory itself rather than relying on
values in the top level Makefile.
It is now possible to generate all files within this project by using:
go generate ./...
Or the Makefile can continue to be used.
This commit also copies over the special copy of `tmpl` that the storage
engine uses within the influxdb repository. It was never copied over so
using `go generate` on these packages did not work.
2018-10-15 11:01:27 -05:00