|
@@ -26,7 +26,7 @@ import sentry_sdk
|
|
|
from django.conf import settings
|
|
|
from django.db.models import Min, prefetch_related_objects
|
|
|
|
|
|
-from sentry import analytics, tagstore
|
|
|
+from sentry import tagstore
|
|
|
from sentry.api.serializers import Serializer, register, serialize
|
|
|
from sentry.api.serializers.models.actor import ActorSerializer
|
|
|
from sentry.api.serializers.models.plugin import is_plugin_deprecated
|
|
@@ -424,18 +424,9 @@ class GroupSerializerBase(Serializer, ABC):
|
|
|
else:
|
|
|
status = GroupStatus.UNRESOLVED
|
|
|
if status == GroupStatus.UNRESOLVED and obj.is_over_resolve_age():
|
|
|
+ # When an issue is over the auto-resolve age but the task has not yet run
|
|
|
status = GroupStatus.RESOLVED
|
|
|
status_details["autoResolved"] = True
|
|
|
- analytics.record(
|
|
|
- "issue.resolved",
|
|
|
- default_user_id=obj.project.organization.get_default_owner().id,
|
|
|
- project_id=obj.project.id,
|
|
|
- organization_id=obj.project.organization_id,
|
|
|
- group_id=obj.id,
|
|
|
- resolution_type="automatic",
|
|
|
- issue_type=obj.issue_type.slug,
|
|
|
- issue_category=obj.issue_category.name.lower(),
|
|
|
- )
|
|
|
if status == GroupStatus.RESOLVED:
|
|
|
status_label = "resolved"
|
|
|
if attrs["resolution_type"] == "release":
|