Michael Desa
7ef6078c98
Merge pull request #2304 from influxdata/multitenancy_expose_source_for_superadmin
...
Fix ValidSourceRequest to modify pointer when needed
2017-11-10 12:28:07 -05:00
Michael Desa
81017173d7
Fix ValidSourceRequestComment
2017-11-10 12:20:58 -05:00
Michael Desa
04b9294c4d
Fix ValidSourceRequest to modify pointer when needed
...
Add tests for Store.SourcesAll
2017-11-10 12:15:04 -05:00
Michael Desa
40479a2e4a
Merge pull request #2316 from influxdata/multitenancy_context_refactor
...
Put entire user on context and Prevent user from deleting themselves
2017-11-10 12:10:43 -05:00
Michael Desa
04042cf520
Merge pull request #2325 from influxdata/multitenancy_add_user_to_org
...
Add user that made the request to organization
2017-11-10 11:44:20 -05:00
Michael Desa
722d96f495
Change UserKey to UserContextKey
2017-11-10 11:28:19 -05:00
Michael Desa
3ce6e46b75
Add user that made the request to organization
...
Previously, when an org was created it had no users. Now when an
organization is created, the user that made the request is added to the
organization with the admin role.
If there are any errors when adding the user the organization, we make a
best effort attempt to delete the organization. However it is still
possilbe that an organization would be created, but have no users if our
best effort fails.
2017-11-10 11:20:56 -05:00
Michael Desa
590b1857d5
Change UserKey to UserContextKey
...
Fix name of arguments in tests
2017-11-10 11:18:06 -05:00
Michael Desa
9a0fa10d8a
Sort users organizations on me response by org ID
2017-11-10 11:09:16 -05:00
Michael Desa
94d9d5345e
Prevent user from deleteing themselves
2017-11-10 11:09:16 -05:00
Michael Desa
f25c22444c
Put entire user on context
2017-11-10 11:09:16 -05:00
Michael Desa
35be59a71a
Differentiate between SuperAdminContext and ServerContext
...
Previously, the server just hijacked the super admin context in order to
get raw access to the underlying data stores, this introduces a way to
specify the it is explicitly the server making the request and no longer
hijack the super admin context.
This also adds test coverage to ensure that the correct values are being
set on context in the AuthorizedUser method.
2017-11-10 11:09:16 -05:00
Jared Scheib
e26e80ca87
Merge pull request #2180 from influxdata/multitenancy_ui_superadmin_admin_panel
...
Implement Admin & Superadmin UI with Org switching
2017-11-10 03:41:36 -08:00
Jared Scheib
01aa7f38ac
Revert position of user nav item back to bottom
2017-11-10 03:34:45 -08:00
Jared Scheib
08982ad730
Restyle Chronograf UsersTable & OrganizationsTable to fit unified page tabbed style
2017-11-10 03:16:27 -08:00
Jared Scheib
e97bb38776
Refactor AdminChronografPage to show Users & Organizations tabs
2017-11-10 03:16:01 -08:00
Jared Scheib
9cbeaa18af
Revert user nav block to exclude Manage Users & Manage Organizations
2017-11-10 02:26:38 -08:00
Jared Scheib
4d66055fd8
Revert side nav to include Chronograf under Admin
2017-11-10 02:20:31 -08:00
Jared Scheib
3832f60a4c
Change 'Delete' copy to 'Remove' for Chronograf User button & notification
2017-11-10 01:59:24 -08:00
Jared Scheib
48565343b7
Add text prop to DeleteConfirmButtons for configurable text copy
2017-11-10 01:50:18 -08:00
Jared Scheib
8b2282993f
Add individual Delete & Confirm Buttons for Chronograf User + wire up
2017-11-10 01:49:38 -08:00
Jared Scheib
d3e20dc61a
Remove unnecessary constructor method in UserNavBlock
2017-11-10 01:19:23 -08:00
Jared Scheib
07ca811ab3
Remove obsolete Default org Create User logic
2017-11-10 01:09:57 -08:00
Jared Scheib
172672c44e
Fix plural vs singular for 1 organization in OrganizationsTable
2017-11-10 00:58:29 -08:00
Jared Scheib
f471e3960e
Remove unnecessary delete state logic in OrganizationsTableRow
2017-11-10 00:58:29 -08:00
Jared Scheib
efc025403f
Switch confirm buttons render display order for Organizations delete to protect errant delete
2017-11-10 00:58:29 -08:00
Jared Scheib
b8d5e42831
Add confirmLeft option to ConfirmButtons to switch render display order
2017-11-10 00:58:29 -08:00
Jared Scheib
d2071caef8
Clean up Organizations rename logic to use state instead of imperative
2017-11-10 00:58:29 -08:00
Jared Scheib
e8764c0ce3
Rename UsersTable & OrganizationsTable components for consistency
2017-11-10 00:58:29 -08:00
Jared Scheib
909cffa6b3
Use UUID for Organization & User table row keys to prevent console error from matching keys
2017-11-10 00:58:29 -08:00
Jared Scheib
4971aba341
Define dropdown items as const above JSX & rename for consistency
2017-11-10 00:58:29 -08:00
Jared Scheib
33f1ab32c1
Remove NewOrganization from DOM via state change directly on successful create, instead of via cancel method
2017-11-10 00:58:29 -08:00
Jared Scheib
b12f8c841f
Remove unnecessary imperative blur invocations on NewOrganization inputs
2017-11-10 00:58:29 -08:00
Jared Scheib
9d0abda116
Disable Create User button on Chronograf UsersTable when creating user
2017-11-10 00:58:29 -08:00
Jared Scheib
8a163505ff
Rename isAddingOrganization to isCreatingOrganization for consistency
2017-11-10 00:58:29 -08:00
Jared Scheib
040a4e5e86
Rename NewOrganization component to match filename
2017-11-10 00:58:29 -08:00
Jared Scheib
50d34bc4f3
Rename button click & confirm handlers for clarity
2017-11-10 00:58:29 -08:00
Jared Scheib
676c079d62
Remove batch actions, user add/remove to/from org, & user selectability from Chronograf Admin Table
2017-11-10 00:58:17 -08:00
Jared Scheib
cdbec69280
Rename renameOrganization to updateOrganization for thunk & AJAX
2017-11-09 22:23:39 -08:00
Jared Scheib
e4f67c71af
Pass whole user & organization to AJAX calls & get url link there
2017-11-09 22:10:51 -08:00
Jared Scheib
eda5d949bc
Reduce & update user fixture data for tests
2017-11-09 18:32:45 -08:00
Alex P
1ce63b15f6
Render roles in users table without text transformation
2017-11-08 22:12:44 -08:00
Alex P
3c2c63f2d2
Move Chronograf Users Admin styles to own sheet
2017-11-08 22:11:55 -08:00
Alex P
d60abb4be6
Remove Chronograf from Admin nav item and rename InfluxDB Admin
2017-11-08 21:51:31 -08:00
Alex P
81570d6ee3
Render correct role in current organization in UserNavBlock
2017-11-08 21:42:25 -08:00
Alex P
34b852888d
WIP Implement ability to set default role per organization
2017-11-08 19:35:14 -08:00
Alex P
e4674ac20e
Dismiss organization row delete/confirm buttons on click outside
2017-11-08 19:34:29 -08:00
Alex P
2c845d678a
Extend functionality of ConfirmButtons to have optional click outside behavior
2017-11-08 19:31:06 -08:00
Alex P
ea4cf58dc5
Update styles namespace for organizations table
2017-11-08 18:14:44 -08:00
Alex P
c82db6b5ae
Remove obsolete component
2017-11-08 18:08:49 -08:00