Commit Graph

5711 Commits (8e9037e0819f840df03c92e994afce56c8f4139a)

Author SHA1 Message Date
Michael Desa e111038816 Add noop implementation of each source type 2017-10-31 18:07:42 -04:00
Michael Desa d7b981987c Remove RawUsers from DataStore 2017-10-31 17:49:35 -04:00
Michael Desa 978da16ecd Add org param to New Organizaiton methods 2017-10-31 17:40:58 -04:00
Michael Desa 5f63e2738a Refactor data stores into a common interface 2017-10-31 16:41:17 -04:00
Michael Desa d7d69730d7 Refactor organizations tests to use mocks 2017-10-30 17:03:53 -04:00
Michael Desa 6e0bfa67df Move organization resouces to their own package 2017-10-30 14:31:19 -04:00
Michael Desa 20c61a76e4 Change OrganizationID to Organization in Roles
Fix formatting of proto file
2017-10-30 12:28:57 -04:00
Michael Desa 0a5da8a750 Use organization stores 2017-10-30 12:05:59 -04:00
Michael Desa ef4c28affa Fix typo and organization dashboards test 2017-10-30 11:08:39 -04:00
Michael Desa 2080fbe9ef Fix incorrectly named file 2017-10-30 11:06:37 -04:00
Michael Desa 834f37ef5c Add OrganizationLayoutsStore 2017-10-30 11:05:20 -04:00
Michael Desa 3c04658b8d Add OrganizationServersStore 2017-10-30 10:57:41 -04:00
Michael Desa d5c02afb9b Add OrganizationsSourcesStore 2017-10-30 10:49:54 -04:00
Michael Desa 11bb189778 Add DashboardOrganization tests 2017-10-30 10:34:18 -04:00
Luke Morris c06e8a8c57 Refactor SideNav & NavBlock to remove unnecessary cloneElement
Remove additionalProps & some cloneElement need from Authorized.
Incidentally fix dispatch error from throwing.
Clean up.

Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 17:37:17 -07:00
Jared Scheib 8acd015131 Refactor Authorized return logic to be in the affirmative
Signed-off-by: Luke Morris <lukevmorris@gmail.com>
2017-10-27 17:24:50 -07:00
Alex Paxton bec27b0fd5 Fix & clean up Authorized render logic
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 17:06:06 -07:00
Jared Scheib 6704e2b6ee Rename source-indicator.scss to info-indicators.scss for role-indicator addition 2017-10-27 16:46:44 -07:00
Jared Scheib 0a4d395747 Simplify return logic if replaceWith is undefined 2017-10-27 16:42:41 -07:00
Jared Scheib 8153f57394 Use lodash to more safely get me role 2017-10-27 16:42:20 -07:00
Michael de Sa 1abc86c82e WIP filter all resources by organization
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 18:14:46 -04:00
Jared Scheib 1a06fefa04 Test authorized User in the context of Organization
Make principal explicit arg in auth tests.

Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-27 13:54:28 -07:00
Michael de Sa 10c63ee00c Add organization field to principal in auth tests
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 13:19:43 -07:00
Jared Scheib e0a535e78a Slightly DRYer code for getting fields off Principal
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-27 12:48:51 -07:00
Michael de Sa 511c3e1957 Test MeOrganization for valid org with invalid user, and invalid org
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-27 10:14:14 -07:00
Jared Scheib a956bacc41 Validate Organization and that User belongs to Org in MeOrganization
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-27 10:02:02 -07:00
Jared Scheib 70a1f60941 Revert "FOR TESTING - DELETE THIS COMMIT: User Role = Viewer"
This reverts commit fc3e4dc898.
2017-10-26 18:13:59 -07:00
Jared Scheib 9fd9ffa4f5 Revert "Render link to Rule Builder based on user authorization"
This reverts commit 31a00ca7f9.
2017-10-26 18:03:45 -07:00
Jared Scheib 3fbc07bf89 Revert "Render Create Rule & Write TICKscript buttons based on user authorization"
This reverts commit 51ab78cc3f.
2017-10-26 18:02:26 -07:00
Jared Scheib 8ff10b58b3 Revert "Render Delete & Edit TICKscript buttons in Rules Table based on user authorization"
This reverts commit 8ffa4cbe5b.
2017-10-26 17:58:58 -07:00
Jared Scheib 396bf3f215 Revert "Render Edit TICKscript and Delete buttons in TaskTable based on user authorization"
This reverts commit 32f4167b9f.
2017-10-26 17:56:34 -07:00
Jared Scheib fddb603d59 Revert "Disable rule Enabled toggle in TaskTable based on user authorization"
This reverts commit 71645a6b11.
2017-10-26 17:55:33 -07:00
Jared Scheib eeb5ad5817 Revert "Render Write Data button based on user authorization"
This reverts commit 4fee049820.
2017-10-26 17:54:00 -07:00
Michael de Sa 093adb97c9 Test MeOrganization for setting and changing current org
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-26 16:03:01 -07:00
Michael de Sa 5c53fbbcc4 Change organization in meOrganizationRequest to currentOrganization
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-26 16:02:29 -07:00
Jared Scheib 7ffbf5dd98 Move Mock Authenticator into mocks package
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-26 15:46:06 -07:00
Michael de Sa 7665fc1e67 Lowercase all Providers, Schemes, & Roles in OrganizationUsers tests
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-26 15:27:44 -07:00
Jared Scheib 5bed2cfc4f Merge remote-tracking branch 'origin/multitenancy' into multitenancy_orgs
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-26 18:21:30 -04:00
Michael Desa bf6c77ee5f Provide route to change current users organization
Add current Organization to JWT.
Use OrganizationUsersStore to retrieve Users that are not me.

Signed-off-by: Michael de Sa <mjdesa@gmail.com>
2017-10-26 18:06:52 -04:00
Jared Scheib 71645a6b11 Disable rule Enabled toggle in TaskTable based on user authorization 2017-10-26 13:31:44 -07:00
Alex P af5847fedf Render Add Graph button in empty cell based on user authorization 2017-10-25 20:13:54 -07:00
Alex P 1ae3b7a743 Render Add Config button in sources table based on user authorization 2017-10-25 18:40:48 -07:00
Alex P 43d06f2e81 Override layout resize and drag functionality based on user authorization 2017-10-25 18:37:45 -07:00
Alex P 6fa91466ec Allow render of Authorized child if propsOverride has been specified
In this case we don’t want to obscure the wrapped component, just
render it with some props modified
2017-10-25 18:31:25 -07:00
Alex P 448c276f20 Guard against empty arrays of dropdown actions 2017-10-25 18:30:35 -07:00
Alex Paxton 8ef461e7fa Remove location required from NavItems propTypes since not always available immediately
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-25 17:00:27 -07:00
Alex Paxton b51429a954 WIP Introduce propsOverride to Authorized HOC to limit props based on authorization
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-25 16:58:47 -07:00
Jared Scheib 6c17c46877 Render Admin NavBlock based on authorization
Require location prop as propType in SideNav to prevent silent fail.
Add guard clause on isUsingAuth to prevent DOM break in Authorized.
Consolidate return on Authorized render.
Clean up Authorized.

Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-25 16:22:00 -07:00
Alex P 07d42b8ea9 Create component to indicate current role to the user 2017-10-25 14:14:35 -07:00
Alex P 12b19cc918 Render Add Source, Delete Source, and Edit Source buttons based on user authorization 2017-10-25 13:41:32 -07:00