Commit Graph

6085 Commits (ca7ef7d0a28240bfe235a4b4283d861276da87c3)

Author SHA1 Message Date
Chris Goller 1bcf74e547 Add hot module reload to dev builds (make run-hmr) 2017-11-04 14:07:39 -05:00
Chris Goller 39096e6c3d Add cleanup step to js dev builds to remove unused files 2017-11-03 19:33:16 -05:00
Jared Scheib 13750062d6 Multitenancy is reeaaaaaaaalll!!!
Go to limbo if you're not authorized!

Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-11-03 16:46:16 -07:00
Michael de Sa e15b435423 Stop console from whining about null initializing propTypes
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-11-03 14:41:48 -07:00
Michael de Sa 841cc71185 Allow diff replaceWith component if not using auth in Authorized HOC
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-11-03 14:31:32 -07:00
Alex P 4e34477bd3 Make separate non-editable component for Default Org 2017-11-03 12:08:27 -07:00
Jared Scheib 49e315f73f Fix failing Me test by splitting Me actions by whether using auth 2017-11-03 09:40:47 -07:00
Jared Scheib 20d57e4eb8 Import all role name constants in dummy data & fix missing MEMBER_ROLE 2017-11-03 09:38:13 -07:00
Michael Desa 167c0c06a8 Prevent duplicate organization roles in user CRUD 2017-11-03 12:06:18 -04:00
Jared Scheib 71bd6e390b Set me role in redux based on current organization 2017-11-03 08:17:04 -07:00
Jared Scheib 7252260792 Wire up change current organization 2017-11-03 07:53:07 -07:00
Jared Scheib f38cdc63f3 Populate UserNavBlock with real user orgs & roles data 2017-11-03 07:08:04 -07:00
Michael Desa aabefe3ac1 Fix me tests with proper IDs 2017-11-03 09:47:54 -04:00
Jared Scheib 761ca0e1c7 Pass full links response into SideNav & down to UserNavBlock 2017-11-03 06:46:59 -07:00
Michael Desa 4baa65629a Fix links in me request 2017-11-03 09:39:21 -04:00
Michael Desa 450a965019 Properly pass organization context to handlers 2017-11-03 09:13:03 -04:00
Jared Scheib b7bfbcf4cc Fix regression of custom links no longer opening in diff browser tab 2017-11-03 05:28:33 -07:00
Jared Scheib 0e507a4ab9 Remove org change dropdown from OrgTable view - only show org name
This clarifies the UX from within an Organization view. It was
confusing to be able to change a user's organization to another
while in a specific one's view.

This also passes organization obj down to OrgTable.
2017-11-03 05:23:25 -07:00
Jared Scheib 1e0eb379ba Wire up update superadmin status 2017-11-03 04:59:26 -07:00
Jared Scheib f6f632fb40 Wire up update user role 2017-11-03 04:30:06 -07:00
Jared Scheib c7425e19f9 Show current organization in CreateUserOverlay 2017-11-03 04:13:16 -07:00
Jared Scheib fb68223082 Make order of create user options consistent with table
Only show Role selector if Organization is selected.
2017-11-03 04:13:16 -07:00
Jared Scheib 7519e0a6e2 Fix disable Create user button if required fields empty 2017-11-03 04:13:16 -07:00
Jared Scheib 8dcb6d7e8f Ensure in client that created user roles include member of default org 2017-11-03 04:13:06 -07:00
Jared Scheib a0a46ce715 Fix superAdmin bool display; refactor & clean up copy 2017-11-03 03:34:11 -07:00
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