Bug 1133364

Summary: [RFE] Send an e-mail when Rules Engine rules are created or updated.
Product: [Community] Bugzilla Reporter: Simon Green <sgreen>
Component: Internal ToolsAssignee: Matt Tyson 🤬 <mtyson>
Internal Tools sub component: Rules Engine QA Contact:
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: medium    
Priority: medium CC: ebaak, jmcdonal, mtyson, qgong, rjoost
Version: 4.4   
Target Milestone: 4.4   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.4.6026 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-27 02:19:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Update rule engine email
none
latest email format from mail file none

Description Simon Green 2014-08-25 03:22:58 UTC
Currently, there is no notification when a Bugzilla Rules Engine rule is created or updated. This would be a good feature to have so we can see badly written rules.

The e-mail should go to the people listed in the bre_maintainer param file.

Comment 3 Matt Tyson 🤬 2014-09-24 01:53:13 UTC
I've applied the remainder of the patch from Bug 1128583, which means that any of the bre maintainers will get an email whenever a rule is modified or created.

Comment 4 Rony Gong 🔥 2014-10-08 10:20:58 UTC
Created attachment 944925 [details]
Update rule engine email

Comment 5 Rony Gong 🔥 2014-10-08 10:23:53 UTC
Reopen this bug since:
The parameter not replaced by the real value in the rule update email. please check the attachment, include email summary, rule name, description and ...

Comment 6 Rony Gong 🔥 2014-10-10 04:35:52 UTC
Verified on QA environment(bzweb01-qe) with version(4.4.6026-4)
Result: Fail
The email subject is still show as:
Subject: Red Hat Bugzilla Rules Engine: [ rule_name %] rule: bug

Comment 7 Rony Gong 🔥 2014-10-10 04:42:07 UTC
Created attachment 945464 [details]
latest email format from mail file

Comment 8 Rony Gong 🔥 2014-10-10 04:43:56 UTC
And the email not contain the new field: run type

Comment 10 Rony Gong 🔥 2014-10-14 02:46:00 UTC
Verified on QA environment(bzweb01-qe) with version(4.4.6026-5)
Result: Fail
Check the create/update rule engine email find 2 issues:
1. The "Status:" field value is always blank
2. The "Run after"field value can't show the newly set value, it always show other value.

Comment 11 Rony Gong 🔥 2014-10-14 06:02:47 UTC
Verified on QA environment(bzweb01-qe) with version(4.4.6026-5)
Result: Pass
Could get the right HTML format email about rule create/update.