Commit Graph

5913 Commits (71851d142fe3d1a05d6693d4c39f2ee0347361eb)

Author SHA1 Message Date
Jared Scheib fcbaa1cbe1 Add action creator, thunk, reducer, & api for updating Chronograf uesr 2017-11-02 23:58:43 -07:00
Jared Scheib 040ddf4d9d Wire up rename organization 2017-11-02 23:26:33 -07:00
Jared Scheib 19cdea74e7 Hide SuperAdmin table row cells if user is not superadmin 2017-11-02 23:26:33 -07:00
Jared Scheib f21da96bce Clean up console & comment orgs lacking id on optimistic update 2017-11-02 23:26:33 -07:00
Jared Scheib d2e9f588a5 Reorder & comment action groups in Chronograf admin page file
Also create a delete method for a single user and have batch
delegate to that.
2017-11-02 23:26:29 -07:00
Jared Scheib a19d000d2a Disable trash icon if default org to prevent delete 2017-11-02 21:01:58 -07:00
Jared Scheib cc3946ed16 Wire up delete organization 2017-11-02 20:56:39 -07:00
Jared Scheib 2f8e756155 Wire up create organization
Adds action creators & reducers for add, sync, & remove.
2017-11-02 20:44:37 -07:00
Jared Scheib 2152254a80 Wire up delete user for a single user via batch actions bar 2017-11-02 20:28:08 -07:00
Jared Scheib 6d3b0841c5 Fix CHRONOGRAF_REMOVE_USER to match via equal fields, not links
Refactor isSameUser into helper func for use across files
2017-11-02 20:02:50 -07:00
Jared Scheib bd3f87611d Rename deleteUser to removeUser since local state change in redux 2017-11-02 20:00:51 -07:00
Jared Scheib 5f0f353a85 Simplify bind all action creators in Chronograf admin 2017-11-02 19:42:29 -07:00
Jared Scheib 78e8ef4988 Wire up create user in Chronograf admin 2017-11-02 19:08:21 -07:00
Michael Desa 6f72d72fca Fix over-stringification of organization on roles 2017-11-02 21:52:30 -04:00
Jared Scheib 1d05ccbe75 Get organizations from server to populate Chronograf Admin dropdown
Get & use chronograf/v1/organizations from server links
2017-11-02 17:47:14 -07:00
Jared Scheib a6d65b0311 Get & use chronograf/v1/users from server links 2017-11-02 16:48:27 -07:00
Jared Scheib fe6e0682ca Add SuperAdmin to userResponse 2017-11-02 16:24:16 -07:00
Jared Scheib 237efc50f7 Update shape of currentOrganization to org object 2017-11-02 16:22:25 -07:00
Alex P bb13b4f664 Add functional UI skeleton for Create User for admin & superadmin
Plan is to replace with "New Row" pattern soon
2017-11-02 16:05:06 -07:00
Alex P 5fa7260ebd Implement overlay UI to handle CRUD operations for Organizations 2017-11-02 14:57:03 -07:00
Michael Desa 14beabb6fd
Merge pull request #2215 from influxdata/multitenancy_add_orgs_to_me
Add CurrentOrganization & Organizations to me resp
2017-11-02 15:38:49 -04:00
Alex P 1ed28bfa57 Create empty state for chronograf admin table 2017-11-02 11:31:25 -07:00
Alex P 16a5bb99df Create dropdown for SuperAdmin status in super admin table view 2017-11-02 11:11:26 -07:00
Michael Desa 28fb7823be
Merge pull request #2216 from influxdata/multitenancy_unique_org_names
Ensure unique organization names.
2017-11-02 13:41:36 -04:00
Michael Desa ac3a175c75 Ensure uniqueness of organization names in bolt 2017-11-02 13:04:41 -04:00
Michael Desa da1fa2141b Add CurrentOrganization & Organizations to me resp
Remove CurrentOrganization from chronograf.User
2017-11-02 11:59:53 -04:00
Michael Desa 9b9db9282c
Merge pull request #2142 from influxdata/multitenancy_orgs
Implement Organizations
2017-11-02 10:32:26 -04:00
Alex P 66feffad6b Prevent false initial select all users checkbox state 2017-11-01 17:51:20 -07:00
Alex Paxton a391357ce4 Render admin vs superadmin version of table based on authorization
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-11-01 17:45:40 -07:00
Jared Scheib a844e7ac62 Set filteredUsers to users on props update to show all on load
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-11-01 17:03:48 -07:00
Alex P 5a5499ed87 Render SuperAdmin column in Chronograf Admin Table based on Authorization 2017-11-01 16:32:01 -07:00
Alex P 7baa97f7a5 Use separate table row components for viewing all orgs and viewing a single org 2017-11-01 16:16:26 -07:00
Alex P a73531f86f Ensure UsersTable sub-components return a single react element
Previously was returning an array in a couple instances. Unnoticed
mishap from refactor
2017-11-01 15:29:49 -07:00
Alex P 7928f2cb9d Introduce UserNavBlock component to handle authenticated user actions 2017-11-01 14:28:30 -07:00
Alex P bd2bbbf6ab Refactor UsersTable into sub-components 2017-11-01 14:28:23 -07:00
Michael Desa 78754bdbda Add dependent destroy of resources for organization 2017-11-01 17:12:31 -04:00
Michael Desa c161dd3cc1 Fix relevant go-vet/go-lint for server package 2017-11-01 16:43:31 -04:00
Michael Desa 2aadaf3ff6 Add exhaustive test for AuthorizedUser 2017-11-01 16:38:17 -04:00
Jared Scheib 6f20e5b21d Accommodate superadmin and member roles
Add top-level redux key for me.role
2017-11-01 13:16:35 -07:00
Michael Desa 06fa9d0e2a Add comment of how to generate JWT tokens 2017-11-01 16:05:56 -04:00
Michael Desa 929f67c882 Add comments to DataStore interface and implemntn 2017-11-01 14:24:40 -04:00
Michael Desa fd66c8a227 Fix routes tests 2017-11-01 14:09:58 -04:00
Jared Scheib 79b3f173fb Change version on UsersBucket to V2 for clean upgrade path
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-11-01 10:57:49 -07:00
Jared Scheib cd719805ed Add organizations and users routes to allRoutes
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-11-01 12:59:07 -04:00
Michael Desa 3f55da7503 Change nil check to len == 0 check for userRequest 2017-11-01 12:38:26 -04:00
Michael Desa 4ecf215d19 Remove unused code 2017-11-01 12:35:09 -04:00
Michael Desa dc63e8af8f Add parseOrganizationID method 2017-11-01 12:34:00 -04:00
Michael Desa 6fbfde5060 Add comments throughout codebase 2017-11-01 12:30:42 -04:00
Michael Desa 39d3488749 Fix Migrate Organizations to not overwrite name 2017-11-01 10:55:32 -04:00
Michael Desa 7af7d65802 Change function signature of hasSuperAdminContext 2017-11-01 10:39:09 -04:00