Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: fix types for create_ticket form #85113

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
ref: fix types for create_ticket form
  • Loading branch information
asottile-sentry committed Feb 12, 2025
commit 1d25143eea6388cc64406b7595fc9320c2f2651c
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ module = [
"sentry.plugins.config",
"sentry.receivers.releases",
"sentry.release_health.metrics_sessions_v2",
"sentry.rules.actions.integrations.create_ticket.form",
"sentry.rules.actions.integrations.create_ticket.utils",
"sentry.rules.history.preview",
"sentry.scim.endpoints.teams",
Expand Down
4 changes: 2 additions & 2 deletions src/sentry/rules/actions/integrations/create_ticket/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from django import forms

from sentry.rules.actions.integrations.base import INTEGRATION_KEY
from sentry.utils.forms import set_field_choices


class IntegrationNotifyServiceForm(forms.Form):
Expand All @@ -14,5 +15,4 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
if integrations:
self.fields[INTEGRATION_KEY].initial = integrations[0][0]

self.fields[INTEGRATION_KEY].choices = integrations
self.fields[INTEGRATION_KEY].widget.choices = self.fields[INTEGRATION_KEY].choices
set_field_choices(self.fields[INTEGRATION_KEY], integrations)
Loading