Skip to content

Commit

Permalink
Updating field to optional instead of removing
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 committed Sep 21, 2023
1 parent 65ccaba commit 44f65b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dispatch/plugins/dispatch_slack/feedback/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def oncall_shift_feedback_input(
initial_value=initial_value,
multiline=True,
placeholder="How would you describe your experience?",
optional=True,
),
label=label,
**kwargs,
Expand Down Expand Up @@ -325,6 +326,7 @@ def handle_oncall_shift_feedback_direct_message_button_click(
),
oncall_shift_feeback_rating_select(),
oncall_shift_feedback_hours_input(),
oncall_shift_feedback_input(),
oncall_shift_feeback_anonymous_checkbox(),
]

Expand Down Expand Up @@ -380,7 +382,7 @@ def handle_oncall_shift_feedback_submission_event(

ack_oncall_shift_feedback_submission_event(ack=ack)

feedback = ""
feedback = form_data.get(ServiceFeedbackNotificationBlockIds.feedback_input, "")
rating = form_data.get(ServiceFeedbackNotificationBlockIds.rating_select, {}).get("value")

# metadata is organization_slug|project_id|schedule_id|shift_end_at|reminder_id
Expand Down

0 comments on commit 44f65b0

Please sign in to comment.