Commit Graph

5913 Commits (71851d142fe3d1a05d6693d4c39f2ee0347361eb)

Author SHA1 Message Date
Michael Desa 71851d142f Put entire user on context 2017-11-10 11:09:16 -05:00
Michael Desa 4e46b4b2c7 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 214525a257
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 0aef5316e1 Revert position of user nav item back to bottom 2017-11-10 03:34:45 -08:00
Jared Scheib e02e1cab65 Restyle Chronograf UsersTable & OrganizationsTable to fit unified page tabbed style 2017-11-10 03:16:27 -08:00
Jared Scheib 490c6da332 Refactor AdminChronografPage to show Users & Organizations tabs 2017-11-10 03:16:01 -08:00
Jared Scheib 77db326b95 Revert user nav block to exclude Manage Users & Manage Organizations 2017-11-10 02:26:38 -08:00
Jared Scheib 74cf89c053 Revert side nav to include Chronograf under Admin 2017-11-10 02:20:31 -08:00
Jared Scheib d9cdf49b63 Change 'Delete' copy to 'Remove' for Chronograf User button & notification 2017-11-10 01:59:24 -08:00
Jared Scheib 56fb85dbc9 Add text prop to DeleteConfirmButtons for configurable text copy 2017-11-10 01:50:18 -08:00
Jared Scheib 35011da7d1 Add individual Delete & Confirm Buttons for Chronograf User + wire up 2017-11-10 01:49:38 -08:00
Jared Scheib 20e42026f8 Remove unnecessary constructor method in UserNavBlock 2017-11-10 01:19:23 -08:00
Jared Scheib e6bedbca2a Remove obsolete Default org Create User logic 2017-11-10 01:09:57 -08:00
Jared Scheib d1cb885558 Fix plural vs singular for 1 organization in OrganizationsTable 2017-11-10 00:58:29 -08:00
Jared Scheib 040e717c41 Remove unnecessary delete state logic in OrganizationsTableRow 2017-11-10 00:58:29 -08:00
Jared Scheib e31dc293c7 Switch confirm buttons render display order for Organizations delete to protect errant delete 2017-11-10 00:58:29 -08:00
Jared Scheib 764abcae1e Add confirmLeft option to ConfirmButtons to switch render display order 2017-11-10 00:58:29 -08:00
Jared Scheib 2fa84799c8 Clean up Organizations rename logic to use state instead of imperative 2017-11-10 00:58:29 -08:00
Jared Scheib 3266795888 Rename UsersTable & OrganizationsTable components for consistency 2017-11-10 00:58:29 -08:00
Jared Scheib 4fce566d43 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 b5ad32106a Define dropdown items as const above JSX & rename for consistency 2017-11-10 00:58:29 -08:00
Jared Scheib 8fba2a2bd2 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 7fa2d57c55 Remove unnecessary imperative blur invocations on NewOrganization inputs 2017-11-10 00:58:29 -08:00
Jared Scheib 396dbfd8c6 Disable Create User button on Chronograf UsersTable when creating user 2017-11-10 00:58:29 -08:00
Jared Scheib cd9afe7908 Rename isAddingOrganization to isCreatingOrganization for consistency 2017-11-10 00:58:29 -08:00
Jared Scheib 1686f63daa Rename NewOrganization component to match filename 2017-11-10 00:58:29 -08:00
Jared Scheib a54fa56ee6 Rename button click & confirm handlers for clarity 2017-11-10 00:58:29 -08:00
Jared Scheib e5857336d3 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 cb450e3a00 Rename renameOrganization to updateOrganization for thunk & AJAX 2017-11-09 22:23:39 -08:00
Jared Scheib 331c6656c2 Pass whole user & organization to AJAX calls & get url link there 2017-11-09 22:10:51 -08:00
Jared Scheib 1d48b05ed5 Reduce & update user fixture data for tests 2017-11-09 18:32:45 -08:00
Alex P 60c25aabfb Render roles in users table without text transformation 2017-11-08 22:12:44 -08:00
Alex P d6f687bb5a Move Chronograf Users Admin styles to own sheet 2017-11-08 22:11:55 -08:00
Alex P b4fdb2d51c Remove Chronograf from Admin nav item and rename InfluxDB Admin 2017-11-08 21:51:31 -08:00
Alex P 0e0b3367ec Render correct role in current organization in UserNavBlock 2017-11-08 21:42:25 -08:00
Alex P 99e847df48 WIP Implement ability to set default role per organization 2017-11-08 19:35:14 -08:00
Alex P 169dcfd168 Dismiss organization row delete/confirm buttons on click outside 2017-11-08 19:34:29 -08:00
Alex P a31388ca22 Extend functionality of ConfirmButtons to have optional click outside behavior 2017-11-08 19:31:06 -08:00
Alex P 69449ddda6 Update styles namespace for organizations table 2017-11-08 18:14:44 -08:00
Alex P 2441eb713b Remove obsolete component 2017-11-08 18:08:49 -08:00
Alex P 6d19e2df95 Make default org non-editable in organizations table 2017-11-08 18:07:51 -08:00
Jared Scheib 513cbcdc1b Fix replaceWith logic in Authorized HOC & improve API clarity and consistency 2017-11-08 11:50:39 -08:00
Jared Scheib c3653f5d11 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 6508c46484 Revert "Remove Batch Add & Remove users from organization functions"
This reverts commit 5a4799e577.
2017-11-08 10:54:04 -08:00
Alex P 92a2f75895 Make organizations table use ConfirmButtons component for consistency 2017-11-08 10:47:34 -08:00
Jared Scheib d0fd6265b1 Fix app staying in spinner by fixing where currentOrganization is gotten from 2017-11-08 10:41:01 -08:00
Alex P 32e7c19aa5 Render actual number of organizations above organization table 2017-11-08 09:47:00 -08:00
Alex Paxton 639a0637fa
Merge pull request #2287 from influxdata/multitenancy_purgatory
Purgatory
2017-11-07 23:33:12 -08:00
Alex Paxton 4b51b114cd Render username, provider, and scheme in Purgatory to assist user
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-11-07 23:14:28 -08:00
Jared Scheib c2ac903d1d Improve copy in Purgatory page
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-11-07 23:05:46 -08:00