Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] added MiqReportResult#available_to_user? (to fix access issue with widgets) #15920

Conversation

yrudman
Copy link
Contributor

@yrudman yrudman commented Aug 31, 2017

Follow-up to ManageIQ/manageiq-ui-classic#1627, ManageIQ/manageiq-ui-classic#1827

blocker for: ManageIQ/manageiq-ui-classic#2069 Fix widget maximize, zoom-in and pdf operation by checking other condition in addition to linked MiqGroup

BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1492174

Issue: MiqReportResult.for_user(user) will skip report results generated for widgets.
Report result records generated for widgets do not have linked user group and miq_report_results.miq_group_id not set.
Also, accessibility of widget can be based on role. Role name (or group name if accessibility of widget based on role) added (with | separator) in the miq_report_results.userid column.
screen shot 2017-09-15 at 10 34 16 am

Solution: check if user can access report based on other condition (in addition to linked group)

Probably, the better way to fix above issues is to make sure that miq_report_results.miq_group_id is set for any report and link `MiqUserRole' to report result, but it looks like bigger task and may take more time.

@miq-bot add-label bug, core

\cc @gtanzillo

@yrudman yrudman force-pushed the aded-available-to-user-method-to-miq-report-result branch from ac634a7 to d1b673f Compare August 31, 2017 18:54
@yrudman yrudman force-pushed the aded-available-to-user-method-to-miq-report-result branch 3 times, most recently from 0360f74 to 3eac216 Compare September 15, 2017 16:15
@yrudman yrudman force-pushed the aded-available-to-user-method-to-miq-report-result branch from 3eac216 to 1917c73 Compare September 15, 2017 17:14
@miq-bot
Copy link
Member

miq-bot commented Sep 15, 2017

Checked commits yrudman/manageiq@0b3ab0d~...1917c73 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 🍰

@yrudman yrudman changed the title [WIP] added MiqReportResult#available_to_user? added MiqReportResult#available_to_user? (to fix access issue with widgets) Sep 15, 2017
@miq-bot miq-bot removed the wip label Sep 15, 2017
@yrudman
Copy link
Contributor Author

yrudman commented Sep 15, 2017

@miq-bot assign @gtanzillo

@yrudman yrudman changed the title added MiqReportResult#available_to_user? (to fix access issue with widgets) [WIP] added MiqReportResult#available_to_user? (to fix access issue with widgets) Oct 11, 2017
@miq-bot miq-bot added the wip label Oct 11, 2017
@yrudman yrudman closed this Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants