Mark Rushakoff
264a420f07
chore: move stray chronograf files to correct directory
2018-08-06 09:37:00 -07:00
Mark Rushakoff
4745f27bef
fix(task/backend): return useful error when validating empty script
...
After we started parsing options inside of the task validation methods,
we accidentally shadowed the "missing script" error when the script was
empty. This restores the behavior of telling the user "missing script"
rather than a cryptic syntax error.
2018-08-03 17:13:15 -07:00
Lyon Hill
ec9bf78a78
Merge pull request #540 from influxdata/refactor/task-meta
...
refactor(task): Move task meta into the backend
2018-08-03 16:08:16 -06:00
Lyon Hill
7f6d51f45d
add in comments
2018-08-03 14:27:07 -06:00
Lyon Hill
80fe53f2b6
refactor(task): Move task meta into the backend
...
Task meta belongs with the rest of the task backend content.
2018-08-03 14:27:07 -06:00
Jade McGough
1896364c7c
owner mapping -> user resource mapping
2018-08-02 11:07:03 -07: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
Lyon Hill
6280b2a5d1
Merge pull request #529 from influxdata/task/refactor-logwriter
...
feat(task): update the scheduler and logwriter interface
2018-08-01 16:15:09 -06:00
Lyon Hill
0661d05b1f
update mock scheduler
2018-08-01 13:36:47 -06:00
Lyon Hill
3ba8784fed
fix bad commit with merge issue
2018-08-01 13:36:47 -06:00
Lyon Hill
6bba50a2a1
minor cleanup
2018-08-01 13:32:54 -06:00
Lyon Hill
69761a98f7
feat(task): update the scheduler and logwriter interface
...
Preperatory change that should enable us to build more complex log writers.
2018-08-01 13:32:54 -06:00
Michael Desa
e598ee45ed
Merge pull request #532 from influxdata/revert/ids
...
Revert #442
2018-08-01 15:21:12 -04:00
Michael Desa
8c87c9d132
revert #442
2018-08-01 14:54:32 -04:00
Nathaniel Cook
f4e94c8655
Merged pull request #525 from influxdata/nc-agg-errors
...
fix: More specific error messages for aggregate errors
2018-08-01 11:37:29 -06:00
Leonardo Di Donato
bdaee706d6
Fixing last changes obtained from master to make them use uint64 IDs
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
c66d72ba57
Reintroducing valid name test again
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
4b557aeee4
Fixing IDs of DBRP mapping platform tests
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
fe4c3199ce
Switch back logic of valid names within DBRP mappings
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
43ebb0251f
Improvements to platform.ID errors
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
5addb88eb5
MustIDFromString no more requires test instance
...
It panics now.
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
c16a855a58
Better naming for the ID length constant
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
02a80a0665
Refactoring bolt usage of IDs (tasks)
...
It should be no more necessary to perform operations directly on ID bytes (pad vs unpad).
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
b67d3123e2
Refactoring executor tests' usage of IDs (tasks)
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
d2e764200e
Refactoring task backend usage of IDs (tasks)
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
14da8b1319
Refactoring storetest package-s usage of IDs (tasks)
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
3651350cc5
Refactoring mock usage of IDs (task package)
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
a688eb84b3
Starting refactoring task package usage of IDs
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
02e4659d42
Fix owner and owner mapping
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
d3c18e58ae
Filter dashboards by valid IDs
2018-08-01 18:20:59 +02: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
bba4e4d69f
Moving ID tests in platform_test package to avoid circular deps
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
109aeb722b
Snowflake ID gen changes
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
c6b8c9d82e
All zeros ID considered invalid
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
4387206181
Other test for 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
Leonardo Di Donato
0b235b38cc
Refinements to delete authorization refactoring and tests
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
0778344cb0
Refactoring query package
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
16f92c41cd
Refactoring bolt package
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
ae9e7c0087
Adapt tests to ID generators returning pointer to platform.ID
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
75da7c636f
Refactoring prometheus package
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
763cd8101a
Refactoring DBRP mapping and platform tests
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
969fe7d69f
Refactoring platform testing package
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
93449fefe7
Introducing name type to represent valid db/rp names
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
de66503de8
ID generator returns a pointer to platform.ID now
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
a5465f6416
Entities IDs are now pointers to platform.ID
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
bcd4e7e675
Fix ID error about exact length
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
26cd66f165
Update ID generator according to platform.ID
2018-08-01 18:20:59 +02:00
Leonardo Di Donato
09b7a4138f
Update tests for DBRP mapping and dashboard
2018-08-01 18:20:59 +02:00