Skip to content

Commit

Permalink
Show the value of the Entity in Slack snooze dropdown (#4045)
Browse files Browse the repository at this point in the history
  • Loading branch information
wssheldon authored Nov 29, 2023
1 parent 89d5824 commit 651a6f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dispatch/plugins/dispatch_slack/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def entity_select(
):
"""Creates an entity select."""
entity_options = [
{"text": entity.entity_type.name[:75], "value": entity.id}
{"text": entity.value[:75], "value": entity.id}
for entity in entity_service.get_all_desc_by_signal(
db_session=db_session, signal_id=signal_id
)
Expand Down Expand Up @@ -664,7 +664,7 @@ def signal_definition_select(
signals: list[Signal],
action_id: str = DefaultActionIds.signal_definition_select,
block_id: str = DefaultBlockIds.signal_definition_select,
label: str = "Signal Defintions",
label: str = "Signal Definitions",
initial_option: Participant = None,
**kwargs,
):
Expand Down

0 comments on commit 651a6f7

Please sign in to comment.