Alex P
12b19cc918
Render Add Source, Delete Source, and Edit Source buttons based on user authorization
2017-10-25 13:41:32 -07:00
Alex P
32f4167b9f
Render Edit TICKscript and Delete buttons in TaskTable based on user authorization
2017-10-25 12:35:24 -07:00
Michael de Sa
d037b3ffa1
Make gen for proto changes in 68e08b987
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-25 11:58:55 -07:00
Jared Scheib
68e08b979f
Update Organization comments on resources
...
Remove `omitempty` on Organization field
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-25 14:56:08 -04:00
Jared Scheib
fb19c4d291
Add Organization guard to server/kapacitors
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-25 14:48:19 -04:00
Michael de Sa
bea78d0c84
Remove Organization from bolt Stores
...
Previously, each store depended on having an organization set on the
implentation of a store. This was used to segment different
organizations into different buckets. This PR undoes that work.
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-25 14:29:14 -04:00
Michael Desa
a6d565fd7c
Add Organizations to Dashboards
2017-10-25 14:00:06 -04:00
Alex P
31a00ca7f9
Render link to Rule Builder based on user authorization
2017-10-25 10:41:04 -07:00
Alex P
8ffa4cbe5b
Render Delete & Edit TICKscript buttons in Rules Table based on user authorization
2017-10-25 10:37:33 -07:00
Alex P
51ab78cc3f
Render Create Rule & Write TICKscript buttons based on user authorization
2017-10-25 10:33:06 -07:00
Alex P
4fee049820
Render Write Data button based on user authorization
2017-10-25 10:29:24 -07:00
Jared Scheib
102ff27712
Merge pull request #2160 from influxdata/multitenancy_lowercase_fields
...
Lowercase Scheme, as well as all Role and Provider fields in tests
2017-10-25 10:16:39 -07:00
Michael Desa
eca0be45e2
Add Organization to layouts
2017-10-25 12:52:56 -04:00
Michael Desa
89fef060b7
Add Organization to chronograf.Server
2017-10-25 12:42:50 -04:00
Michael Desa
7b21a6b970
Add Organization to Sources
2017-10-25 11:51:15 -04:00
Michael Desa
b9219c5cc7
REMOVE ME
...
This commit should be removed and was added so that it when I run make
gen for adding other values it won't polute the other commits
2017-10-25 11:49:56 -04:00
Jared Scheib
c6ed4da5b4
Refactor Authorized HOC to SFC
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 18:37:01 -07:00
Alex Paxton
a9f18aa508
Export isAuthorized for global use
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 18:36:32 -07:00
Jared Scheib
f9d65e59d2
Render layout cell menu based on authorization
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 18:28:17 -07:00
Alex Paxton
b9fbdcf49d
Render template variables manage button based on authorization
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 18:22:56 -07:00
Jared Scheib
756a128033
Render Dashboard rename based on Authorization
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 18:19:18 -07:00
Jared Scheib
c15a41025d
Merge branch 'multitenancy' into multitenancy_lowercase_fields
2017-10-24 18:01:32 -07:00
Jared Scheib
76b665261f
Merge branch 'multitenancy' into multitenancy_dashboards_page_readonly
2017-10-24 18:00:38 -07:00
Jared Scheib
7fce5fe0fc
Merge branch 'master' into multitenancy
2017-10-24 17:58:15 -07:00
Alex Paxton
ecb825643c
Wrap 'Add Cell' with Authorized HOC
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 17:51:38 -07:00
Jared Scheib
c603cfe746
Cleanup
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 17:48:41 -07:00
Jared Scheib
06b54b2155
Render original component in Authorized if not using auth
...
Make isUsingAuth a app-wide Redux key. Refactor its usage
in SideNav, and use it in Authorized.
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 17:43:16 -07:00
Alex Paxton
9519e0b9b1
Add param to Authorized to replace unauthorized component with node
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 17:16:11 -07:00
Jared Scheib
102b98873d
Export role name consts in client to fix Authorized HOC
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 17:04:06 -07:00
Jared Scheib
2f6643ae3c
Add scheme to me/AuthorizedUser tests
2017-10-24 16:21:24 -07:00
Jared Scheib
9a6ab1bf9d
Lowercase Provider & Scheme & Role values for consistency
...
The client was being sent lowercase values for Role & Provider,
but not Scheme. This change makes all the above lowercase.
2017-10-24 16:17:59 -07:00
Jared Scheib
30b8d3cdca
Make all Store names plural for consistency
2017-10-24 15:54:24 -07:00
Jared Scheib
a48fb6cda9
Clean up plurals in func comments
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-24 15:09:37 -07:00
Michael de Sa
c15480d018
Test validOrganizationRoles comprehensively
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 15:08:01 -07:00
Michael de Sa
9b8a2e431a
Add comments to validOrganization
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 15:07:35 -07:00
Jared Scheib
a7558f6ce2
Ensure additional Users aren't created OrganizationUser.Add
...
Performs a Get against the global UsersStore, and if the User
already exists, it appends to that User instead of trying to add
the "new" User blindly.
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-24 14:53:50 -07:00
Michael de Sa
d45335f281
Fix string interpolation data type for uint64 in Users tests
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 14:28:39 -07:00
Michael de Sa
dad08a7389
Modify ValidUpdate to ensure only User Roles can be updated
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 14:28:35 -07:00
Jared Scheib
c120dbe3c5
Rename userHasValidRoles to validOrganizationRoles for clarity
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-24 14:04:48 -07:00
Jared Scheib
ebcf97e2c5
Clarify Update methodology comment
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-24 14:04:05 -07:00
Michael de Sa
a505c6cef2
Test for error on Add Org User without context Org
...
Refactor guards in OrganizationUser bolt methods into comon func
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 13:53:30 -07:00
Jared Scheib
b052efcfa7
Improve test reporting for which user was deleted
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-24 13:45:09 -07:00
Michael de Sa
a34888e0ad
Clean up derletion test name
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 13:43:25 -07:00
Michael de Sa
40da570358
Make vars consistent
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 13:41:47 -07:00
Jared Scheib
7757533d7b
Improve get no users test
...
Change rawWant to wantRaw
Remove fmt.Println
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-24 13:33:17 -07:00
Alex P
b1915ab53c
Fix typo in prop
2017-10-24 13:30:51 -07:00
Andrew Watkins
49678e765e
Add tern-project to gitignore
2017-10-24 13:00:40 -07:00
Hunter Trujillo
bdbf16b1c2
Merge pull request #2156 from influxdata/blocker/group-by-time-de
...
Fix GroupByTimeDropdown
2017-10-24 12:53:57 -06:00
Hunter Trujillo
0249bbbcd6
Remove isInDataExplorer props. Refactor GroupByTimeDropdown to SFC. Fix isInDataExplorer and isInRuleBuilder methods.
2017-10-24 12:41:55 -06:00
Andrew Watkins
9e025756b1
Merge pull request #2155 from influxdata/blocker/template-vars
...
Fix broken update of dashboards and TVs
2017-10-24 11:02:11 -07:00