Alex Paxton
761730a9d3
Implement toggling selection of users
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-30 16:32:35 -07:00
Alex P
58b36c257c
WIP Implement chronograf admin users table
2017-10-30 14:03:03 -07:00
Alex P
b3cfd5e044
Create fixture for chronograf users
2017-10-30 13:54:51 -07:00
Luke Morris
6e405e1651
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
d184b05cc2
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
32cae8935b
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
e918c013d3
Rename source-indicator.scss to info-indicators.scss for role-indicator addition
2017-10-27 16:46:44 -07:00
Jared Scheib
ee89d49bdb
Simplify return logic if replaceWith is undefined
2017-10-27 16:42:41 -07:00
Jared Scheib
22b53a0199
Use lodash to more safely get me role
2017-10-27 16:42:20 -07:00
Jared Scheib
8faca7496c
Bifurcate AdminPage into InfluxDB and initial Chronograf versions
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-26 18:49:15 -07:00
Jared Scheib
d4f3f6c7ff
Revert "FOR TESTING - DELETE THIS COMMIT: User Role = Viewer"
...
This reverts commit 40de9eb1c5
.
2017-10-26 18:13:59 -07:00
Jared Scheib
f8196db8d7
Revert "Render link to Rule Builder based on user authorization"
...
This reverts commit 90108188d6
.
2017-10-26 18:03:45 -07:00
Jared Scheib
e29e6aba2c
Revert "Render Create Rule & Write TICKscript buttons based on user authorization"
...
This reverts commit 59a987d228
.
2017-10-26 18:02:26 -07:00
Jared Scheib
b67373b9fe
Revert "Render Delete & Edit TICKscript buttons in Rules Table based on user authorization"
...
This reverts commit f1d385a97e
.
2017-10-26 17:58:58 -07:00
Jared Scheib
63bfd4e6c9
Revert "Render Edit TICKscript and Delete buttons in TaskTable based on user authorization"
...
This reverts commit 554db6501a
.
2017-10-26 17:56:34 -07:00
Jared Scheib
508f16ecfe
Revert "Disable rule Enabled toggle in TaskTable based on user authorization"
...
This reverts commit 15abd3e800
.
2017-10-26 17:55:33 -07:00
Jared Scheib
f4a38d8377
Revert "Render Write Data button based on user authorization"
...
This reverts commit 56ad7dc481
.
2017-10-26 17:54:00 -07:00
Jared Scheib
15abd3e800
Disable rule Enabled toggle in TaskTable based on user authorization
2017-10-26 13:31:44 -07:00
Alex P
bb3777cc2a
Render Add Graph button in empty cell based on user authorization
2017-10-25 20:13:54 -07:00
Alex P
5b076aea88
Render Add Config button in sources table based on user authorization
2017-10-25 18:40:48 -07:00
Alex P
70631f3a11
Override layout resize and drag functionality based on user authorization
2017-10-25 18:37:45 -07:00
Alex P
61f2e37da7
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
6fcef2ee37
Guard against empty arrays of dropdown actions
2017-10-25 18:30:35 -07:00
Alex Paxton
01b88e23f5
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
c88012c667
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
95917837e3
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
c8163b68aa
Create component to indicate current role to the user
2017-10-25 14:14:35 -07:00
Alex P
c1b2fdc081
Render Add Source, Delete Source, and Edit Source buttons based on user authorization
2017-10-25 13:41:32 -07:00
Alex P
554db6501a
Render Edit TICKscript and Delete buttons in TaskTable based on user authorization
2017-10-25 12:35:24 -07:00
Alex P
90108188d6
Render link to Rule Builder based on user authorization
2017-10-25 10:41:04 -07:00
Alex P
f1d385a97e
Render Delete & Edit TICKscript buttons in Rules Table based on user authorization
2017-10-25 10:37:33 -07:00
Alex P
59a987d228
Render Create Rule & Write TICKscript buttons based on user authorization
2017-10-25 10:33:06 -07:00
Alex P
56ad7dc481
Render Write Data button based on user authorization
2017-10-25 10:29:24 -07:00
Jared Scheib
628d8b83e1
Merge pull request #2160 from influxdata/multitenancy_lowercase_fields
...
Lowercase Scheme, as well as all Role and Provider fields in tests
2017-10-25 10:16:39 -07:00
Jared Scheib
0b004c949d
Refactor Authorized HOC to SFC
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 18:37:01 -07:00
Alex Paxton
a107cf97e3
Export isAuthorized for global use
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 18:36:32 -07:00
Jared Scheib
7feaa1ddcd
Render layout cell menu based on authorization
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 18:28:17 -07:00
Alex Paxton
0970629a39
Render template variables manage button based on authorization
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 18:22:56 -07:00
Jared Scheib
4c40055aff
Render Dashboard rename based on Authorization
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 18:19:18 -07:00
Jared Scheib
bb67361cf1
Merge branch 'multitenancy' into multitenancy_lowercase_fields
2017-10-24 18:01:32 -07:00
Jared Scheib
c4c423ad76
Merge branch 'multitenancy' into multitenancy_dashboards_page_readonly
2017-10-24 18:00:38 -07:00
Jared Scheib
aa8742662f
Merge branch 'master' into multitenancy
2017-10-24 17:58:15 -07:00
Alex Paxton
998c876405
Wrap 'Add Cell' with Authorized HOC
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 17:51:38 -07:00
Jared Scheib
2927d1e1e8
Cleanup
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 17:48:41 -07:00
Jared Scheib
c573346e28
Render original component in Authorized if not using auth
...
Make isUsingAuth a app-wide Redux key. Refactor its usage
in SideNav, and use it in Authorized.
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 17:43:16 -07:00
Alex Paxton
a9c83ed3cd
Add param to Authorized to replace unauthorized component with node
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-24 17:16:11 -07:00
Jared Scheib
a7fab31a21
Export role name consts in client to fix Authorized HOC
...
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-24 17:04:06 -07:00
Jared Scheib
74fdcc1c39
Add scheme to me/AuthorizedUser tests
2017-10-24 16:21:24 -07:00
Jared Scheib
f283702fe0
Lowercase Provider & Scheme & Role values for consistency
...
The client was being sent lowercase values for Role & Provider,
but not Scheme. This change makes all the above lowercase.
2017-10-24 16:17:59 -07:00
Alex P
8cc9167448
Fix typo in prop
2017-10-24 13:30:51 -07:00