Michael de Sa
255541ee0a
Add name to bolt UsersStore test
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 20:01:35 -04:00
Michael de Sa
71ca669283
Make chronograf user roles explicit vars
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 19:58:45 -04:00
Michael de Sa
250eb9b730
Factor out code in common bolt UsersStore tests
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 19:52:34 -04:00
Michael de Sa
e25ac2045c
Use numberic style ID in UsersStore Get test
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 19:37:51 -04:00
Jared Scheib
7b8e424f03
Regenerate protoc to remove formatting changes
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-12 19:33:46 -04:00
Jared Scheib
ac9984c799
Remove unused concept of RolesStore
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-12 19:33:31 -04:00
Michael de Sa
924c890862
Refactor bolt UsersStore to use ID instead of name
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 19:33:16 -04:00
Michael de Sa
f1a496b449
Add tests for updating user in boltdb
...
Adds tests for updating roles, provider, and scheme
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-12 19:32:54 -04:00
Michael de Sa
4761f4454c
Set ID on retrieved user from boltdb
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 19:32:35 -04:00
Michael de Sa
7f4af358ae
Add roles to boltdb UsersStore
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 19:31:44 -04:00
Jared Scheib
5947427e3f
Update bolt UsersStore for updated chronograf User
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 19:31:26 -04:00
Michael Desa
334a3c5d34
Refactor bolt.RolesStore to use bolt.UsersStore
...
Add definitions for user roles and permissions in chronograf package
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-12 19:31:15 -04:00
Michael de Sa
c4eedd8c47
Remove old bolt implementation of RoleStore
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 19:31:06 -04:00
Jared Scheib
385a534ae2
Refactor Roles & Protobuf to be part of User msg
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-12 19:30:50 -04:00
Michael Desa
b7e7aa9c5d
WIP: Add BoltDB implementation of RolesStore
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 19:30:34 -04:00
Jared Scheib
e1bd08838f
Add Role and Permission messages to protobuf
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-12 19:30:09 -04:00
Jared Scheib
0d2715048d
Rename Role CRUD methods & structs w Source prefix
...
Move server/roles.go and server/roles_test.go into server/sources.go and
server/sources_test.go respectively.
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-12 19:25:33 -04:00
Alex Paxton
d441c4f34c
Merge pull request #2111 from influxdata/query-tabs-polish
...
Style query tabs to utilize available space more effectively
2017-10-11 18:24:00 -07:00
Alex P
b977270b22
Updoot the log change
2017-10-11 17:39:07 -07:00
Alex P
13cf469726
Style query tabs to utilize available space more effectively
...
Maximum width is much larger, which increases utility of tabs when
there are < 5 queries
2017-10-11 17:34:09 -07:00
Nathan Haugo
9911e1f769
Add support for millisecond groupbys
2017-10-11 13:14:44 -07:00
Chris Goller
0d3762e272
WIP supporting integers/floats for influxql arguments
2017-10-11 14:45:01 -05:00
Jared Scheib
5da90aedbc
Merge pull request #2099 from influxdata/multitenancy_users_crud
...
MULTITENANCY: Add CRUDA operations for Chronograf Users
2017-10-11 11:54:13 -07:00
Michael Desa
6b9c1ed127
Add jsonEqual to test helpers file
2017-10-11 14:33:55 -04:00
Michael de Sa
04a9af37f3
Refactor setting writer Location header
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-11 10:14:57 -07:00
Chris Goller
a5d28c3eca
Update queryConfig arguments to be optional in JSON response
2017-10-10 23:32:08 -05:00
Chris Goller
7f3986f982
Refactor query config field arguments to be fields
2017-10-10 18:04:45 -05:00
Jared Scheib
40fac47b28
Rename vestigial receiver 'h' on Service to 's'
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-10 15:27:58 -07:00
Chris Goller
5f4ce64a11
Refactor queryConfig to have field aliases and function arguments
2017-10-10 17:01:50 -05:00
Jared Scheib
e2ce0cda0d
Refactor applying writer location header into helper func
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-10 14:40:45 -07:00
Michael de Sa
5a9772822e
Move source_users & source_users_test code into sources.go & sources_test.go
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-10 14:32:41 -07:00
Michael de Sa
64381c28ba
Remove omitempty for Provider & Scheme in userRequest and userResponse
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-10 14:25:45 -07:00
Michael de Sa
04f4c4b917
Use more idiomatic error message method
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-10 14:21:43 -07:00
Michael de Sa
a122d5537c
Add comments on ValidUpdate for future considerations
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-10 14:19:28 -07:00
Jared Scheib
1b250ebfa9
Make name on userResponse required
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-10 14:15:31 -07:00
Jared Scheib
35d6f0b8c3
Use string IDs in JSON res and req for Users
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-10 12:27:55 -07:00
Michael de Sa
a1782cae64
Update only fields with diff; add test for that
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-10 11:40:33 -07:00
Michael de Sa
9f5f01bb3f
Make User Update test reflect updated changes
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-10 11:36:13 -07:00
Michael de Sa
d62f144e14
Use new-school sort.Slice
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-10 11:30:57 -07:00
Nathan Haugo
490cb31192
Merge pull request #2095 from influxdata/bug/fix-rp-copy
...
Fix copy for rp values
2017-10-10 11:08:22 -07:00
Nathan Haugo
41470d7bbd
Update CHANGELOG.md
...
Fix markdown
2017-10-10 11:07:57 -07:00
Nathan Haugo
5a48394802
Merge branch 'master' into bug/fix-rp-copy
2017-10-10 11:07:06 -07:00
Andrew Watkins
3c9d78bd72
Merge pull request #2080 from influxdata/keep-ceo-toggle-centered
...
Prevent CEO toggle from de-centering when no queries present
2017-10-10 11:04:21 -07:00
Alex P
edbd2e526c
Prevent auto refresh items from wrapping
2017-10-10 10:45:46 -07:00
Alex P
9056345b8f
Show manual refresh button when auto refresh is set to "Pause"
...
Manual refresh button fires a dummy function, to be replaced
2017-10-10 10:38:37 -07:00
Alex Paxton
ad6fd8ee2e
Merge pull request #2078 from influxdata/rule-builder-polish-2
...
UI IMPROVEMENT: Rule Builder Polish
2017-10-10 09:34:07 -07:00
Andrew Watkins
fa6e837ef0
Merge pull request #2083 from influxdata/feature/time-after-time
...
FEATURE: Persist dashboard time ranges per dashboard
2017-10-09 17:51:17 -07:00
Jared Scheib
004b0e20ef
Add comments to exported functions
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-09 15:28:39 -07:00
Michael de Sa
990c4eee4d
Return users in usersResponse in sorted order
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-09 15:19:46 -07:00
deniz kusefoglu
ecc4574b32
Refrain from coercing data to a date if column name is not time
2017-10-09 15:09:27 -07:00