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

Notify only a group of users when notifying about MiqRequest #13051

Merged
merged 1 commit into from
Dec 8, 2016

Conversation

isimluk
Copy link
Member

@isimluk isimluk commented Dec 8, 2016

The problem

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

Consider tenant with two groups. Each group has a user. Both have a role limiting the vms they see by ownership. When one user orders a vm, the other one does not see it.

The problem was that the notification was created previously to both users.

The Cause

The root cause was that both user can see the given MiqProvisionRequest.

The Fix

We cannot fix the root cause directly. As we cannot tell up-front what users are gonna see the VM, before it is created -> thus we cannot tell what users shall see the given MiqProvisionRequest.

The MiqProvisionRequest are still seen by both users. However only relevant users are notified about it.

@miq-bot add_label blocker, bug, core, euwe/yes
@miq-bot assign @gtanzillo

The problem:
Consider tenant with two groups. Each group has a user. Both have a role
limiting the vms they see by ownership. When one user orders a vm, the
other one does not see it.

The problem was that the notification was created previously to both
users.

The root cause was that both user can see the given MiqProvisionRequest.

We cannot fix the root cause directly. As we cannot tell up-front what
users are gonna see the VM, before it is created -> thus we cannot tell
what users shall see the given MiqProvisionRequest.

The MiqProvisionRequest are still seen by both users. However only
relevant users are notified about it.
@miq-bot
Copy link
Member

miq-bot commented Dec 8, 2016

Checked commit isimluk@9b5af98 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1
2 files checked, 0 offenses detected
Everything looks good. 🍰

Copy link
Member

@gtanzillo gtanzillo left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@gtanzillo gtanzillo added this to the Sprint 51 Ending Jan 2, 2017 milestone Dec 8, 2016
@gtanzillo gtanzillo merged commit 9d5adc4 into ManageIQ:master Dec 8, 2016
chessbyte pushed a commit that referenced this pull request Dec 8, 2016
Notify only a group of users when notifying about MiqRequest
(cherry picked from commit 9d5adc4)

https://bugzilla.redhat.com/show_bug.cgi?id=1397465
@chessbyte
Copy link
Member

Euwe Backport details:

$ git log -1
commit f3db579e4d9c0628774fb6ef9f80c4cc717ed3b7
Author: Gregg Tanzillo <gtanzill@redhat.com>
Date:   Thu Dec 8 14:54:06 2016 -0500

    Merge pull request #13051 from isimluk/rhbz#1397465
    
    Notify only a group of users when notifying about MiqRequest
    (cherry picked from commit 9d5adc4fd63ec30e208fc81fbc8b699bf9e5009b)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1397465

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.

4 participants