Skip to content

Commit 234021b

Browse files
remove a bit more
1 parent 4470ea0 commit 234021b

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/sentry/receivers/onboarding.py

-19
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
)
1919
from sentry.models.project import Project
2020
from sentry.onboarding_tasks import try_mark_onboarding_complete
21-
from sentry.plugins.bases.issue import IssueTrackingPlugin
22-
from sentry.plugins.bases.issue2 import IssueTrackingPlugin2
2321
from sentry.signals import (
2422
alert_rule_created,
2523
cron_monitor_created,
@@ -585,23 +583,6 @@ def record_sourcemaps_received_for_project(project, event, **kwargs):
585583

586584
@plugin_enabled.connect(weak=False)
587585
def record_plugin_enabled(plugin, project, user, **kwargs):
588-
if isinstance(plugin, IssueTrackingPlugin) or isinstance(plugin, IssueTrackingPlugin2):
589-
task = OnboardingTask.ISSUE_TRACKER
590-
status = OnboardingTaskStatus.PENDING
591-
else:
592-
return
593-
594-
success = OrganizationOnboardingTask.objects.record(
595-
organization_id=project.organization_id,
596-
task=task,
597-
status=status,
598-
user_id=user.id if user else None,
599-
project_id=project.id,
600-
data={"plugin": plugin.slug},
601-
)
602-
if success:
603-
try_mark_onboarding_complete(project.organization_id, user)
604-
605586
analytics.record(
606587
"plugin.enabled",
607588
user_id=user.id if user else None,

0 commit comments

Comments
 (0)