#9979 Notifications from bugzilla aren't nicely formatted/summarized
Closed: Duplicate by mohanboddu. Opened by imcinerney.

Describe what you would like us to do:


Sometime in the past few months, the notifications system started sending emails about bugzilla updates/changes that contain the entire notification payload instead of the parsing it into the changed pieces.

For instance, previously an email would look like:

Subject: "updates updated 'bug_status', 'cf_fixed_in', and 'resolution' on RHBZ#1810509 'Audacity AppStream metadata are missing ...'"

Notification time stamped 2020-06-18 13:27:48 UTC
updates updated 'bug_status', 'cf_fixed_in', and 'resolution' on RHBZ#1810509 'Audacity AppStream metadata are missing ...'

while now they look like:

Subject: "fedmsg notification"

Notification time stamped 2021-05-19 12:49:07 UTC
{
    "certificate": "***",
    "crypto": "x509",
    "i": 75230,
    "msg": {
        "bug": {
            "actual_time": null,
            "alias": [],
            "assigned_to": "***@***.org",
            "blocks": null,
            "cc": [],
            "classification": "Fedora",
            "comments": null,
            "component": "audacity",
            "components": null,
            "creation_time": "2020-12-05T17:46:29",
            "creator": null,
            "depends_on": null,
            "description": null,
            "docs_contact": null,
            "estimated_time": null,
            "external_bugs": null,
            "fixed_in": null,
            "flags": [],
            "groups": null,
            "id": 1904702,
            "is_cc_accessible": null,
            "is_confirmed": null,
            "is_creator_accessible": null,
            "is_open": null,
            "keywords": [],
            "last_change_time": "2021-03-20T16:47:11",
            "op_sys": null,
            "platform": "Unspecified",
            "priority": "unspecified",
            "product": {
                "id": 49,
                "name": "Fedora"
            },
            "qa_contact": {
                "id": 171387,
                "login": "extras-qa@fedoraproject.org",
                "real_name": "Fedora Extras Quality Assurance"
            },
            "remaining_time": null,
            "resolution": "",
            "see_also": null,
            "severity": "unspecified",
            "status": {
                "id": 1,
                "name": "NEW"
            },
            "summary": "SIGSEGV when closing the Audacity application",
            "target_milestone": null,
            "target_release": null,
            "url": "",
            "version": {
                "id": 6483,
                "name": "33"
            },
            "versions": null,
            "weburl": null,
            "whiteboard": ""
        },
        "comment": null,
        "event": {
            "action": "modify",
            "bug_id": 1904702,
            "change_set": "33836.1621428517.60951",
            "changes": [
                {
                    "added": "***@***.org",
                    "field": "cc",
                    "field_name": "cc",
                    "removed": ""
                }
            ],
            "routing_key": "bug.modify",
            "target": "bug",
            "time": "2021-05-19T12:48:47",
            "user": {
                "id": 330037,
                "login": "***@***.org",
                "real_name": "***"
            },
            "who": "***@***.org"
        },
        "headers": {
            "JMSXUserID": "umb.api.redhat.com",
            "amq6100_destination": "queue://Consumer.fedora.DO-NOT-COPY.VirtualTopic.eng.bugzilla.>",
            "amq6100_originalDestination": "topic://VirtualTopic.eng.bugzilla.bug.modify",
            "content-length": "1531",
            "correlation-id": "52b92244-f805-4076-a640-9e02320aaf1e",
            "destination": "/topic/VirtualTopic.eng.bugzilla.bug.modify",
            "esbMessageType": "bugzillaNotification",
            "esbSourceSystem": "bugzilla",
            "expires": "1621514947648",
            "message-id": "ID:messaging-devops-broker03.web.prod.ext.phx2.redhat.com-44476-1620330588381-7:424771:-1:1:32836",
            "original-destination": "/topic/VirtualTopic.eng.bugzilla.bug.modify",
            "priority": "4",
            "subscription": "/queue/Consumer.fedora.DO-NOT-COPY.VirtualTopic.eng.bugzilla.>",
            "timestamp": "1621428547648"
        }
    },
    "msg_id": "2021-1f6a2be9-c056-42ce-8938-c58265ad57da",
    "signature": "d5HXZoLE4QWwDwG7zRuZhP8dIn3tBAA+hOjXhJg0P/kw5Rpe8WNPRCYu8OcgnDRZeYqw6OPE/FAD\n8CgWZFy7mpI8fJoRZWPa/wlsSHMGlLAR/AqFUuRiKsIgvFTatFtpg1+bYVhbbk09z19VZVJJIi8Y\nJBhFeh4N5dwwtpAmKxAcYuYsdx6lnCQ8Hxao1XSGEAFPLHDnhEKlHOtGPTQSBwjgnz45mJfVZY0K\nc62nYMtY5s2k6nn4720coTxcykrqydtlVleG4trpFjzlkjy33P5/dNf0/H+B6plIHBYJGFV5bSuE\n0LfzCbusXIcdd/R2Zz/7a4kczWfMEzulBR/few==\n",
    "timestamp": 1621428547,
    "topic": "org.fedoraproject.prod.bugzilla.bug.update",
    "username": "amqp-bridge"
}

(Note that it also contains the full certificate field that I removed in this case. I also redacted the emails to hide them from this post).

This new notification email i very hard to parse, and seems to contain a lot of information that doesn't need to be given to the packager with notifications enabled.

When do you need this to be done by? (YYYY/MM/DD)


Screenshot_at_2021-05-26_12-19-41.png


This is dupe for https://pagure.io/fedora-infrastructure/issue/9820, please follow that ticket.

Closing this ticket.

Metadata Update from @mohanboddu:
- Issue close_status updated to: Duplicate
- Issue status updated to: Closed (was: Open)

Metadata