Skip to content

Commit

Permalink
Append advisory name to message id
Browse files Browse the repository at this point in the history
Before b76bd0a, freshmaker appends the advisory name to message id when
event is triggered by rpm advisory shipped message, it's still useful
for us to know whether an event was triggered by E2E testing advisories
(which type is RHBA) without opening Errata tool, so adding it back.
  • Loading branch information
qixiang committed Sep 19, 2023
1 parent 964ff56 commit 344b650
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions freshmaker/parsers/errata/state_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def parse(self, topic, msg):
# advisory has been changed to a different state other than the one
# in message, so we override advisory state with the state in message
advisory.state = new_state
# Append advisory name to message id, this makes it easier to check which
# type of advisory triggered the event without opening Errata tool.
msg_id = f"{msg_id}.{str(advisory.name)}"

# If advisory created by BOTAS and it's shipped,
# then return BotasErrataShippedEvent event
Expand Down

0 comments on commit 344b650

Please sign in to comment.