Commit Graph

5581 Commits (70631f3a112b86273fe6994910ed66607bffb67d)

Author SHA1 Message Date
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 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 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
Alex P 8cc9167448 Fix typo in prop 2017-10-24 13:30:51 -07:00
Andrew Watkins d16b5b1fcf Add tern-project to gitignore 2017-10-24 13:00:40 -07:00
Hunter Trujillo 6603e2a5a2 Merge pull request #2156 from influxdata/blocker/group-by-time-de
Fix GroupByTimeDropdown
2017-10-24 12:53:57 -06:00
Hunter Trujillo fad340adfd Remove isInDataExplorer props. Refactor GroupByTimeDropdown to SFC. Fix isInDataExplorer and isInRuleBuilder methods. 2017-10-24 12:41:55 -06:00
Andrew Watkins 7f1c905c41 Merge pull request #2155 from influxdata/blocker/template-vars
Fix broken update of dashboards and TVs
2017-10-24 11:02:11 -07:00
Andrew Watkins dcd2679b52 Fix broken update of dashboards and TVs 2017-10-24 10:55:49 -07:00
Hunter Trujillo 53270c0330 Merge pull request #2153 from influxdata/blocker/field-value-condition
Fix field name not displaying in KapacitorRule builder
2017-10-24 11:35:47 -06:00
Andrew Watkins 41ee608cab Merge pull request #2154 from influxdata/bugfix/field-format-fixes
Fix status page
2017-10-24 10:26:41 -07:00
Andrew Watkins 8fa381c4bf Fix field name not displaying in KapacitorRule builder 2017-10-24 10:13:02 -07:00
Hunter Trujillo 2fedf814a0 Fix status page. 2017-10-24 10:54:07 -06:00
Nathan Haugo da560018c6 Update changelog and version number for 1.3.10.0 2017-10-24 09:34:31 -04:00
Alex Paxton 40de9eb1c5 FOR TESTING - DELETE THIS COMMIT: User Role = Viewer
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-23 17:53:33 -07:00
Alex Paxton e7721166d9 Implement Authorized HOC on DashboardsPage
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-23 17:50:43 -07:00
Jared Scheib 34a91334eb Add 'Authorized' HOC to hide components based on me Role
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
2017-10-23 17:44:08 -07:00
Andrew Watkins 3e7f91f041 Merge pull request #2144 from influxdata/feature/de-tab-titles
Use tag value in TableTag title
2017-10-23 15:20:44 -07:00
Andrew Watkins 47af289a3a Use tag value in TableTag title 2017-10-23 13:54:02 -07:00
Andrew Watkins 4353f8ac86 Merge pull request #2128 from influxdata/feature/qc-v2-alias
FEATURE:  queryConfig v2 && custom field alias persistence
2017-10-20 20:32:33 -07:00
Alex Paxton a23fc8ac50 Merge pull request #2104 from influxdata/redesign-dash-naming
Redesign Dashboard Naming Interaction
2017-10-20 16:56:11 -07:00
Andrew Watkins ee4b009fac Consolidate redundant logic 2017-10-20 15:29:44 -07:00
Andrew Watkins ec73457a2b Remove unused prop: 2017-10-20 14:08:21 -07:00
Andrew Watkins ab630ad170 Add missing prop 2017-10-20 14:05:30 -07:00
Alex P 0469ff105e Make switcher work on hosts page and dashboards page
Also removing requirements for some props that would only show up on
either
2017-10-20 14:03:54 -07:00
Alex P cd617254f1 Sort dashboards alphabetically 2017-10-20 13:56:32 -07:00
Alex P fa9c12e7cc Move display logic into parent of switcher 2017-10-20 13:56:32 -07:00
Alex P d91e5f67e9 Make dashboard switcher into its own component and refactor associated components 2017-10-20 13:56:32 -07:00