Luke Morris
9daee3d802
Persist new defaultRole to server
2017-11-10 13:01:28 -08:00
Michael Desa
e2ac7f8bf0
Use raw organizations store is user is super admin
2017-11-10 15:33:28 -05:00
Michael Desa
cc6f703f5d
Fix updating default role on organization
2017-11-10 14:55:21 -05:00
Alex Paxton
2a3183188e
Merge pull request #2288 from influxdata/multitenancy_ui_current_org_copy
...
Multitenancy UI Helpful Copy
2017-11-10 10:42:45 -08:00
Michael Desa
7362401936
Merge pull request #2294 from influxdata/multitenancy_expose_some_org_routes
...
Expose some organization routes to admins
2017-11-10 12:55:18 -05:00
Michael Desa
f228e2860d
Expose some organization routes to admins
...
Cleanup tests appropriately
Prevent Admins from patching organizations
2017-11-10 12:48:10 -05:00
Michael Desa
5ee565a4a8
Merge pull request #2317 from influxdata/multitenancy_ensure_unique_user
...
Ensure users name, provider, and scheme are unique
2017-11-10 12:38:12 -05:00
Michael Desa
9920f5e90e
Ensure users name, provider, and scheme are unique
2017-11-10 12:29:17 -05:00
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
Alex P
0d57172835
Clarify helpful copy and show different copy based on role
2017-11-09 18:58:27 -08:00
Alex P
a8f745a873
Fix render logic for "Helpful copy"
2017-11-09 18:57:36 -08:00