Michael Desa
37dc13d2c5
Fix organizations for default organization
2017-11-01 09:17:34 -04:00
Michael Desa
3ad2305c33
Add superAdmin to users CRUD
2017-11-01 09:12:19 -04:00
Alex Paxton
17561bd1d6
Merge pull request #2174 from influxdata/multitenancy_ui_role_authorization
...
Implement Role-based authorization UI for Viewer and Editor roles
2017-10-31 20:03:01 -07:00
Michael Desa
708c37dc67
WIP cleanup
2017-10-31 20:58:40 -04:00
Michael Desa
e7e17537a1
WIP make app usable by frontend
2017-10-31 19:50:03 -04:00
Michael Desa
f863bf2042
Add support for super admin
2017-10-31 18:27:24 -04:00
Michael Desa
2bd2c81bb7
Add noop implementation of each source type
2017-10-31 18:07:42 -04:00
Michael Desa
cf64b2e506
Remove RawUsers from DataStore
2017-10-31 17:49:35 -04:00
Michael Desa
00b79a45eb
Add org param to New Organizaiton methods
2017-10-31 17:40:58 -04:00
Michael Desa
36e14cb111
Refactor data stores into a common interface
2017-10-31 16:41:17 -04:00
Michael Desa
7ae4481178
Refactor organizations tests to use mocks
2017-10-30 17:03:53 -04:00
Michael Desa
bea2caaa7f
Move organization resouces to their own package
2017-10-30 14:31:19 -04:00
Michael Desa
d6a0ab3488
Change OrganizationID to Organization in Roles
...
Fix formatting of proto file
2017-10-30 12:28:57 -04:00
Michael Desa
1082b264fe
Use organization stores
2017-10-30 12:05:59 -04:00
Michael Desa
838d326022
Fix typo and organization dashboards test
2017-10-30 11:08:39 -04:00
Michael Desa
8fbe2ccd44
Fix incorrectly named file
2017-10-30 11:06:37 -04:00
Michael Desa
d000a3e238
Add OrganizationLayoutsStore
2017-10-30 11:05:20 -04:00
Michael Desa
8b3f1abaac
Add OrganizationServersStore
2017-10-30 10:57:41 -04:00
Michael Desa
ef40315104
Add OrganizationsSourcesStore
2017-10-30 10:49:54 -04:00
Michael Desa
8288f97dd6
Add DashboardOrganization tests
2017-10-30 10:34:18 -04:00
Luke Morris
6e405e1651
Refactor SideNav & NavBlock to remove unnecessary cloneElement
...
Remove additionalProps & some cloneElement need from Authorized.
Incidentally fix dispatch error from throwing.
Clean up.
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 17:37:17 -07:00
Jared Scheib
d184b05cc2
Refactor Authorized return logic to be in the affirmative
...
Signed-off-by: Luke Morris <lukevmorris@gmail.com>
2017-10-27 17:24:50 -07:00
Alex Paxton
32cae8935b
Fix & clean up Authorized render logic
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 17:06:06 -07:00
Jared Scheib
e918c013d3
Rename source-indicator.scss to info-indicators.scss for role-indicator addition
2017-10-27 16:46:44 -07:00
Jared Scheib
ee89d49bdb
Simplify return logic if replaceWith is undefined
2017-10-27 16:42:41 -07:00
Jared Scheib
22b53a0199
Use lodash to more safely get me role
2017-10-27 16:42:20 -07:00
Michael de Sa
2b7cdbfe07
WIP filter all resources by organization
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 18:14:46 -04:00
Jared Scheib
cbc22b10d7
Test authorized User in the context of Organization
...
Make principal explicit arg in auth tests.
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-27 13:54:28 -07:00
Michael de Sa
cf58974927
Add organization field to principal in auth tests
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 13:19:43 -07:00
Jared Scheib
32a65aa307
Slightly DRYer code for getting fields off Principal
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-27 12:48:51 -07:00
Michael de Sa
cff3ae798d
Test MeOrganization for valid org with invalid user, and invalid org
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 10:14:14 -07:00
Jared Scheib
4c968b0ff5
Validate Organization and that User belongs to Org in MeOrganization
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-27 10:02:02 -07:00
Jared Scheib
d4f3f6c7ff
Revert "FOR TESTING - DELETE THIS COMMIT: User Role = Viewer"
...
This reverts commit 40de9eb1c5
.
2017-10-26 18:13:59 -07:00
Jared Scheib
f8196db8d7
Revert "Render link to Rule Builder based on user authorization"
...
This reverts commit 90108188d6
.
2017-10-26 18:03:45 -07:00
Jared Scheib
e29e6aba2c
Revert "Render Create Rule & Write TICKscript buttons based on user authorization"
...
This reverts commit 59a987d228
.
2017-10-26 18:02:26 -07:00
Jared Scheib
b67373b9fe
Revert "Render Delete & Edit TICKscript buttons in Rules Table based on user authorization"
...
This reverts commit f1d385a97e
.
2017-10-26 17:58:58 -07:00
Jared Scheib
63bfd4e6c9
Revert "Render Edit TICKscript and Delete buttons in TaskTable based on user authorization"
...
This reverts commit 554db6501a
.
2017-10-26 17:56:34 -07:00
Jared Scheib
508f16ecfe
Revert "Disable rule Enabled toggle in TaskTable based on user authorization"
...
This reverts commit 15abd3e800
.
2017-10-26 17:55:33 -07:00
Jared Scheib
f4a38d8377
Revert "Render Write Data button based on user authorization"
...
This reverts commit 56ad7dc481
.
2017-10-26 17:54:00 -07:00
Michael de Sa
5c4407cbaf
Test MeOrganization for setting and changing current org
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-26 16:03:01 -07:00
Michael de Sa
6dd9f52c47
Change organization in meOrganizationRequest to currentOrganization
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-26 16:02:29 -07:00
Jared Scheib
30d1739e35
Move Mock Authenticator into mocks package
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-26 15:46:06 -07:00
Michael de Sa
0f916d3240
Lowercase all Providers, Schemes, & Roles in OrganizationUsers tests
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-26 15:27:44 -07:00
Jared Scheib
d6d3463208
Merge remote-tracking branch 'origin/multitenancy' into multitenancy_orgs
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-26 18:21:30 -04:00
Michael Desa
5e08464ecf
Provide route to change current users organization
...
Add current Organization to JWT.
Use OrganizationUsersStore to retrieve Users that are not me.
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-26 18:06:52 -04:00
Jared Scheib
15abd3e800
Disable rule Enabled toggle in TaskTable based on user authorization
2017-10-26 13:31:44 -07:00
Alex P
bb3777cc2a
Render Add Graph button in empty cell based on user authorization
2017-10-25 20:13:54 -07:00
Alex P
5b076aea88
Render Add Config button in sources table based on user authorization
2017-10-25 18:40:48 -07:00
Alex P
70631f3a11
Override layout resize and drag functionality based on user authorization
2017-10-25 18:37:45 -07:00
Alex P
61f2e37da7
Allow render of Authorized child if propsOverride has been specified
...
In this case we don’t want to obscure the wrapped component, just
render it with some props modified
2017-10-25 18:31:25 -07:00