Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Add oncall display name when sending option to page the oncall#5906

Merged
aaronherman merged 2 commits into
mainfrom
fix/add-oncall-name-for-case-type
Apr 18, 2025
Merged

Add oncall display name when sending option to page the oncall#5906
aaronherman merged 2 commits into
mainfrom
fix/add-oncall-name-for-case-type

Conversation

@aaronherman
Copy link
Copy Markdown
Contributor

This pull request enhances the event paging message functionality by dynamically including the on-call team's name in the notification. The changes ensure better clarity for users by specifying the relevant team to contact for immediate assistance.

Example:
image

@aaronherman aaronherman added the enhancement New feature or request label Apr 18, 2025
@aaronherman aaronherman self-assigned this Apr 18, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the event paging functionality to include the on-call display name in the notification message when paging is triggered. The changes involve modifying the function signature in messaging.py and updating its invocation in flows.py to support dynamic display of the oncall name.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/dispatch/case/messaging.py Updated send_event_paging_message signature and notification text to include oncall_name.
src/dispatch/case/flows.py Modified call to send_event_paging_message to pass in the oncall_name.
Comments suppressed due to low confidence (1)

src/dispatch/case/messaging.py:380

  • Consider updating the docstring for send_event_paging_message to document the new oncall_name parameter for improved clarity.
def send_event_paging_message(case: Case, db_session: Session, oncall_name: str):

Comment thread src/dispatch/case/flows.py Outdated
Comment thread src/dispatch/case/messaging.py Outdated
@aaronherman aaronherman merged commit 2a78d51 into main Apr 18, 2025
9 checks passed
@aaronherman aaronherman deleted the fix/add-oncall-name-for-case-type branch April 18, 2025 18:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants