Commit Graph

5971 Commits (3af66d98ab45b804b5c03084a322328bb2abe66a)

Author SHA1 Message Date
Jared Scheib 244eee53ef Wire up individual add user to org dropdown in Chronograf users table 2017-11-03 03:25:19 -07:00
Jared Scheib 71572d3739 Simplify & fix user org add & remove, and provide server errors 2017-11-03 02:47:02 -07:00
Jared Scheib 47283243a1 Clarify 'Add to organization' copy on dropdown when no roles 2017-11-03 02:40:07 -07:00
Jared Scheib f2b8d37a3d Derive num users selected from array length 2017-11-03 02:09:21 -07:00
Jared Scheib 90af5b58fd Wire up remove user from organization 2017-11-03 02:08:19 -07:00
Jared Scheib 229682cdbd Publish notification upon successful Update of Chronograf user 2017-11-03 02:07:25 -07:00
Jared Scheib ae997e94bc Fix org link & filtering by passing whole org object around
Does not fix the double-click bug introduced in c8f1cf1, which
is probably due to an unloaded curry on first click.
2017-11-03 01:19:42 -07:00
Jared Scheib 02337eb259 Wire up updateUser in Chronograf admin via batch action bar
Change function names to more clearly expression that organizations
are being added and removed from users.
2017-11-03 00:24:47 -07:00
Jared Scheib 9ffed2c167 Add action creator, thunk, reducer, & api for updating Chronograf uesr 2017-11-02 23:58:43 -07:00
Jared Scheib eebc363e8e Wire up rename organization 2017-11-02 23:26:33 -07:00
Jared Scheib 87fa3fbbd9 Hide SuperAdmin table row cells if user is not superadmin 2017-11-02 23:26:33 -07:00
Jared Scheib 88909e88bd Clean up console & comment orgs lacking id on optimistic update 2017-11-02 23:26:33 -07:00
Jared Scheib c1c5ac0b27 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 0a68dcebc9 Disable trash icon if default org to prevent delete 2017-11-02 21:01:58 -07:00
Jared Scheib 537997d0aa Wire up delete organization 2017-11-02 20:56:39 -07:00
Jared Scheib 1ab58b59cc Wire up create organization
Adds action creators & reducers for add, sync, & remove.
2017-11-02 20:44:37 -07:00
Jared Scheib d14ea505a5 Wire up delete user for a single user via batch actions bar 2017-11-02 20:28:08 -07:00
Jared Scheib 65b0f6ed2b 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 ac38d4de79 Rename deleteUser to removeUser since local state change in redux 2017-11-02 20:00:51 -07:00
Jared Scheib 1529018d74 Simplify bind all action creators in Chronograf admin 2017-11-02 19:42:29 -07:00
Jared Scheib 06228e6b34 Wire up create user in Chronograf admin 2017-11-02 19:08:21 -07:00
Michael Desa b67b2e8d6e Fix over-stringification of organization on roles 2017-11-02 21:52:30 -04:00
Jared Scheib 254e70af34 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 fe7842387e Get & use chronograf/v1/users from server links 2017-11-02 16:48:27 -07:00
Jared Scheib 500843a867 Add SuperAdmin to userResponse 2017-11-02 16:24:16 -07:00
Jared Scheib 4546811939 Update shape of currentOrganization to org object 2017-11-02 16:22:25 -07:00
Alex P e656bf90e2 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 eca4d9cb3c Implement overlay UI to handle CRUD operations for Organizations 2017-11-02 14:57:03 -07:00
Michael Desa f95a2963db 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 864f331678 Create empty state for chronograf admin table 2017-11-02 11:31:25 -07:00
Alex P b771f9b53e Create dropdown for SuperAdmin status in super admin table view 2017-11-02 11:11:26 -07:00
Michael Desa d0271fecce Merge pull request #2216 from influxdata/multitenancy_unique_org_names
Ensure unique organization names.
2017-11-02 13:41:36 -04:00
Michael Desa bf22d1d57d Ensure uniqueness of organization names in bolt 2017-11-02 13:04:41 -04:00
Michael Desa 311c68f457 Add CurrentOrganization & Organizations to me resp
Remove CurrentOrganization from chronograf.User
2017-11-02 11:59:53 -04:00
Michael Desa 92466975a2 Merge pull request #2142 from influxdata/multitenancy_orgs
Implement Organizations
2017-11-02 10:32:26 -04:00
Alex P 5a082d9357 Prevent false initial select all users checkbox state 2017-11-01 17:51:20 -07:00
Alex Paxton a04d2a86b4 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 6187e8dc3a 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 b432a12edd Render SuperAdmin column in Chronograf Admin Table based on Authorization 2017-11-01 16:32:01 -07:00
Alex P dafaed6531 Use separate table row components for viewing all orgs and viewing a single org 2017-11-01 16:16:26 -07:00
Alex P 4eabe22a93 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 250d5608e5 Introduce UserNavBlock component to handle authenticated user actions 2017-11-01 14:28:30 -07:00
Alex P 719c88c871 Refactor UsersTable into sub-components 2017-11-01 14:28:23 -07:00
Michael Desa b61fad00b0 Add dependent destroy of resources for organization 2017-11-01 17:12:31 -04:00
Michael Desa 986f86d99c Fix relevant go-vet/go-lint for server package 2017-11-01 16:43:31 -04:00
Michael Desa aa2087ec43 Add exhaustive test for AuthorizedUser 2017-11-01 16:38:17 -04:00
Jared Scheib 7637c21cfd Accommodate superadmin and member roles
Add top-level redux key for me.role
2017-11-01 13:16:35 -07:00
Michael Desa 94179f8f34 Add comment of how to generate JWT tokens 2017-11-01 16:05:56 -04:00
Michael Desa 65028027fd Add comments to DataStore interface and implemntn 2017-11-01 14:24:40 -04:00
Michael Desa eb845b1630 Fix routes tests 2017-11-01 14:09:58 -04:00