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] Fix widget maximize operation by checking other condition in addition to linked MiqGroup #2069

Closed

Conversation

yrudman
Copy link
Contributor

@yrudman yrudman commented Aug 31, 2017

This PR is follow-up to #1627, #1827

blocked by:

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

Issue: Full Screen, PDF Download, and Zoom in operations on widget in Dashboard throw error. Reason for error - miq_group_id column which driving access in MiqReportResult.for_user(user) was not set

Solution: Check other access rules in addition to linked group

Before:
before

After:
after

\cc @gtanzillo

@chessbyte chessbyte changed the title WIP] Fix widget maximize operation by checking other condition in addition to linked MiqGroup [WIP] Fix widget maximize operation by checking other condition in addition to linked MiqGroup Aug 31, 2017
@chessbyte chessbyte added the wip label Aug 31, 2017
@yrudman yrudman force-pushed the check-if-report-available-to-user branch from 7d8e9d2 to 672507d Compare September 15, 2017 16:18
…_id, instead group name saved as part of value in miq_report_result.userid column (example: widgets). IN this case we need to parse that column to check if vurrent user has access right to generated data

https://bugzilla.redhat.com/show_bug.cgi?id=1492174
@yrudman yrudman force-pushed the check-if-report-available-to-user branch from 672507d to 6c1d97f Compare September 15, 2017 17:24
@yrudman yrudman changed the title [WIP] Fix widget maximize operation by checking other condition in addition to linked MiqGroup Fix widget maximize operation by checking other condition in addition to linked MiqGroup Sep 15, 2017
@yrudman
Copy link
Contributor Author

yrudman commented Sep 15, 2017

@miq-bot remove-label wip

@miq-bot miq-bot removed the wip label Sep 15, 2017
@miq-bot
Copy link
Member

miq-bot commented Sep 15, 2017

Checked commits yrudman/manageiq-ui-classic@e5d8e1c~...6c1d97f with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 👍

rr = MiqReportResult.for_user(current_user).find(search_id)
rr = MiqReportResult.find(search_id)
unless rr.available_to_user?(current_user)
add_flash(_("Current user does not permission to view report data id: #{search_id}"), :error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yrudman typo missing "have" in the flash message

@h-kataria
Copy link
Contributor

@yrudman do you have a screenshot of screen showing flash message "Current user does not have permission to view report data id: xxx"

@yrudman yrudman changed the title Fix widget maximize operation by checking other condition in addition to linked MiqGroup [WIP] Fix widget maximize operation by checking other condition in addition to linked MiqGroup 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.

6 participants