When providing a title and body, the OpsGenie Notification Service concatenates the title and body fields into a title_body variable, here. This is an unexpected behaviour. If the user of the library wanted the body included in the title, they should control that.
A few lines later here, the title, provided by the user, is removed from title_body if it exceeds 130 characters resulting in the desired title not appearing at all but rather a shortened body.
:bulb: Screenshots and Logs
Here we can see that title, MY DESIRED TITLE??? has been concatenated with body to form message in the payload.
Here, a few lines later, we can see that the title has been removed:
:computer: Your System Details:
OS: [Apple Silicon]
Python Version: [Python v3.9]
:crystal_ball: Additional context
In my opinion, title_body should be removed. This will allow the user of the library to decide whether to concatenate the title and body.
:mega: Notification Service(s) Impacted
OpsGenie
:lady_beetle: Describe the bug
When providing a
title
andbody
, the OpsGenie Notification Service concatenates thetitle
andbody
fields into atitle_body
variable, here. This is an unexpected behaviour. If the user of the library wanted the body included in the title, they should control that.A few lines later here, the
title
, provided by the user, is removed fromtitle_body
if it exceeds 130 characters resulting in the desiredtitle
not appearing at all but rather a shortenedbody
.:bulb: Screenshots and Logs
Here we can see that
title
,MY DESIRED TITLE???
has been concatenated withbody
to formmessage
in the payload.Here, a few lines later, we can see that the title has been removed:
:computer: Your System Details:
:crystal_ball: Additional context In my opinion,
title_body
should be removed. This will allow the user of the library to decide whether to concatenate the title and body.