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

Don`t queue email sending when notifier is off #16528

Merged
merged 4 commits into from
Nov 28, 2017

Conversation

lpichler
Copy link
Contributor

continuation of #14801

Issue

when is press check compliance (point 11 in BZ) it start lot of queuing, doing work.
first it is starting by raising event https://github.com/ManageIQ/manageiq/blob/master/app/models/compliance.rb#L89
and it is process by automate engine, he will plan other work in MiqQueue,...

one this planning is about putting to MiqQueue item which is saying send an email. So I put guard condition here because previously it was putting this messages to queue and when notifier role have been turned on, that it was doing these messages for send emailing.
so I think we shouldn't queue in this place.

but guard condition here is also ok #14801 because
user can plan events when notifier is on, but after it somebody can turn off role and in this case it should not also send emails.

@miq-bot assign @gtanzillo
@miq-bot add_label bug

Links

https://bugzilla.redhat.com/show_bug.cgi?id=1399157
first part #14801

@miq-bot
Copy link
Member

miq-bot commented Nov 24, 2017

Checked commits lpichler/manageiq@910c2e7~...b202ce9 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🏆

@gtanzillo gtanzillo added this to the Sprint 74 Ending Nov 27, 2017 milestone Nov 28, 2017
@gtanzillo gtanzillo merged commit b8a8b31 into ManageIQ:master Nov 28, 2017
@lpichler lpichler deleted the dont_queqe_email_sending branch November 28, 2017 14:27
@lpichler
Copy link
Contributor Author

lpichler commented Jan 3, 2018

@miq-bot add_label gaprindashvili/yes
@simaishi

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

@simaishi
Copy link
Contributor

simaishi commented Jan 3, 2018

Gaprindashvili backport details:

$ git log -1
commit 9e924d3717ac161539e9177df25bc6286e8f96f3
Author: Gregg Tanzillo <[email protected]>
Date:   Tue Nov 28 09:21:18 2017 -0500

    Merge pull request #16528 from lpichler/dont_queqe_email_sending
    
    Don`t queue email sending when notifier is off
    (cherry picked from commit b8a8b31b1a870225ba0921999a39c799eee1335c)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1530800

simaishi pushed a commit that referenced this pull request Jan 3, 2018
Don`t queue email sending when notifier is off
(cherry picked from commit b8a8b31)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1530800
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