from __future__ import absolute_import

import logging
import six
from collections import defaultdict

from sentry import features
from sentry.models.useroption import UserOption
from sentry.shared_integrations.exceptions import ApiError, IntegrationError
from sentry.models import Activity, ExternalIssue, Group, GroupLink, GroupStatus, Organization
from sentry.utils.http import absolute_uri
from sentry.utils.safe import safe_execute
from sentry.utils.compat import filter

logger = logging.getLogger("sentry.integrations.issues")


class IssueBasicMixin(object):
    def should_sync(self, attribute):
        return False

    def get_group_title(self, group, event, **kwargs):
        return event.title

    def get_issue_url(self, key):
        """