Commit Graph

5915 Commits (9a0fa10d8af7599ca6438515f644bd035d70082c)

Author SHA1 Message Date
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
Alex P 9328263376 Make default org non-editable in organizations table 2017-11-08 18:07:51 -08:00
Jared Scheib f9beb470f8 Fix replaceWith logic in Authorized HOC & improve API clarity and consistency 2017-11-08 11:50:39 -08:00
Jared Scheib 1d7eb78dee Add back in adding user to org via batch actions bar
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-11-08 11:15:34 -08:00
Jared Scheib b3bb177327 Revert "Remove Batch Add & Remove users from organization functions"
This reverts commit 5e5e67c03c.
2017-11-08 10:54:04 -08:00
Alex P 31446eb9f9 Make organizations table use ConfirmButtons component for consistency 2017-11-08 10:47:34 -08:00
Jared Scheib 3b4362be92 Fix app staying in spinner by fixing where currentOrganization is gotten from 2017-11-08 10:41:01 -08:00
Alex P 0b9bf0a68b Render actual number of organizations above organization table 2017-11-08 09:47:00 -08:00
Alex Paxton 7841f14c8b Merge pull request #2287 from influxdata/multitenancy_purgatory
Purgatory
2017-11-07 23:33:12 -08:00