Michael Desa
9b194168a6
Move user roles and role names to roles package
2017-11-06 11:27:13 -05:00
Michael Desa
4781cb3673
Allow update of sources.Role in server.UpdateSource
2017-11-06 11:25:51 -05:00
Michael Desa
f3f183f685
Add role ctx where appropriate in AuthorizedUser
2017-11-06 11:25:46 -05:00
Michael Desa
9ee3b431db
Add roles implementation of sources store
...
Minimal test coverage of Update/Delete/Add methods was done since they
do not involve any filtering. The filtering for them should have
happened at the API level.
2017-11-06 11:24:13 -05:00
Michael Desa
8ded387a81
Add Role to chronograf.Source
2017-11-06 11:24:10 -05:00
Michael Desa
aa45f265cc
Merge pull request #2243 from influxdata/multitenancy_demote_superadmin
...
Allow SuperAdmins to promoted and demoted
2017-11-06 11:22:38 -05:00
Michael Desa
f0d19277a3
Pull out setting super admin into a single func
2017-11-06 11:15:49 -05:00
Michael Desa
3565eda4a1
Allow SuperAdmins to promoted and demoted
2017-11-06 11:15:48 -05:00
Michael Desa
4de8ef7441
Merge pull request #2219 from influxdata/multitenancy_default_org
...
Remove explicit default org ID use
2017-11-06 11:12:33 -05:00
Michael Desa
49232f009e
Add default org check even when no auth is used
2017-11-06 10:17:17 -05:00
Michael Desa
f75de68607
Remove DefaultOrganization Name in tests mock store
2017-11-06 10:17:17 -05:00
Michael Desa
1c48601792
Add test for deleting default organization
...
Group together constants
2017-11-06 10:17:15 -05:00
Michael Desa
999f6c6a24
Change default organization name to Default
2017-11-06 10:15:50 -05:00
Michael Desa
28211fabec
Prevent deletion of default organization
2017-11-06 10:14:14 -05:00
Michael Desa
7200aaf9f9
Add default org logic to OrganizationsStore
...
Update resource handlers to appropriate consume default organization IDs
2017-11-06 10:14:12 -05:00
Michael Desa
81318f6584
Merge pull request #2220 from influxdata/multitenancy_default_org_role
...
Add default role organization
2017-11-06 10:10:29 -05:00
Michael Desa
292143f01b
Add comment to default role in chronograf.go
2017-11-06 09:46:00 -05:00
Michael Desa
09f79f3a3e
Grant user role in default org if added via API
...
When users are created via the API they are only given roles in orgs
that are explicitly set. Additionally the roles must be roles that
belong to the current organization (unless they are a super admin).
This leads to a situation where a user may not be a part of the default
organization. If this is the case, we detect it when the user hits /me
and add the user to the default org.
2017-11-06 09:46:00 -05:00
Michael Desa
63f7d8205c
Add default role to chronograf.Organization
2017-11-06 09:46:00 -05:00
Michael Desa
1012c92a59
Merge pull request #2242 from influxdata/multitenancy_single_role_per_org
...
Prevent duplicate organization roles in user CRUD
2017-11-06 09:44:31 -05:00
Alex P
f0bea2cd9f
Replace super admin dropdown with slide toggle
2017-11-04 12:36:23 -07:00
Alex P
bf9f0c6b8a
Introduce SlideToggle Component
2017-11-04 12:35:47 -07:00
Alex P
5d491c9935
Make manage orgs overlay scrollable when there are many orgs
2017-11-04 12:34:19 -07:00
Jared Scheib
13750062d6
Multitenancy is reeaaaaaaaalll!!!
...
Go to limbo if you're not authorized!
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-11-03 16:46:16 -07:00
Michael de Sa
e15b435423
Stop console from whining about null initializing propTypes
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-11-03 14:41:48 -07:00
Michael de Sa
841cc71185
Allow diff replaceWith component if not using auth in Authorized HOC
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-11-03 14:31:32 -07:00
Alex P
4e34477bd3
Make separate non-editable component for Default Org
2017-11-03 12:08:27 -07:00
Jared Scheib
49e315f73f
Fix failing Me test by splitting Me actions by whether using auth
2017-11-03 09:40:47 -07:00
Jared Scheib
20d57e4eb8
Import all role name constants in dummy data & fix missing MEMBER_ROLE
2017-11-03 09:38:13 -07:00
Michael Desa
167c0c06a8
Prevent duplicate organization roles in user CRUD
2017-11-03 12:06:18 -04:00
Jared Scheib
71bd6e390b
Set me role in redux based on current organization
2017-11-03 08:17:04 -07:00
Jared Scheib
7252260792
Wire up change current organization
2017-11-03 07:53:07 -07:00
Jared Scheib
f38cdc63f3
Populate UserNavBlock with real user orgs & roles data
2017-11-03 07:08:04 -07:00
Michael Desa
aabefe3ac1
Fix me tests with proper IDs
2017-11-03 09:47:54 -04:00
Jared Scheib
761ca0e1c7
Pass full links response into SideNav & down to UserNavBlock
2017-11-03 06:46:59 -07:00
Michael Desa
4baa65629a
Fix links in me request
2017-11-03 09:39:21 -04:00
Michael Desa
450a965019
Properly pass organization context to handlers
2017-11-03 09:13:03 -04:00
Jared Scheib
b7bfbcf4cc
Fix regression of custom links no longer opening in diff browser tab
2017-11-03 05:28:33 -07:00
Jared Scheib
0e507a4ab9
Remove org change dropdown from OrgTable view - only show org name
...
This clarifies the UX from within an Organization view. It was
confusing to be able to change a user's organization to another
while in a specific one's view.
This also passes organization obj down to OrgTable.
2017-11-03 05:23:25 -07:00
Jared Scheib
1e0eb379ba
Wire up update superadmin status
2017-11-03 04:59:26 -07:00
Jared Scheib
f6f632fb40
Wire up update user role
2017-11-03 04:30:06 -07:00
Jared Scheib
c7425e19f9
Show current organization in CreateUserOverlay
2017-11-03 04:13:16 -07:00
Jared Scheib
fb68223082
Make order of create user options consistent with table
...
Only show Role selector if Organization is selected.
2017-11-03 04:13:16 -07:00
Jared Scheib
7519e0a6e2
Fix disable Create user button if required fields empty
2017-11-03 04:13:16 -07:00
Jared Scheib
8dcb6d7e8f
Ensure in client that created user roles include member of default org
2017-11-03 04:13:06 -07:00
Jared Scheib
a0a46ce715
Fix superAdmin bool display; refactor & clean up copy
2017-11-03 03:34:11 -07:00
Jared Scheib
244eee53ef
Wire up individual add user to org dropdown in Chronograf users table
2017-11-03 03:25:19 -07:00
Jared Scheib
71572d3739
Simplify & fix user org add & remove, and provide server errors
2017-11-03 02:47:02 -07:00
Jared Scheib
47283243a1
Clarify 'Add to organization' copy on dropdown when no roles
2017-11-03 02:40:07 -07:00
Jared Scheib
f2b8d37a3d
Derive num users selected from array length
2017-11-03 02:09:21 -07:00