|
@@ -22,6 +22,7 @@ from sentry.apidocs.examples.team_examples import TeamExamples
|
|
from sentry.apidocs.parameters import CursorQueryParam, GlobalParams
|
|
from sentry.apidocs.parameters import CursorQueryParam, GlobalParams
|
|
from sentry.apidocs.utils import inline_sentry_response_serializer
|
|
from sentry.apidocs.utils import inline_sentry_response_serializer
|
|
from sentry.constants import PROJECT_SLUG_MAX_LENGTH, RESERVED_PROJECT_SLUGS, ObjectStatus
|
|
from sentry.constants import PROJECT_SLUG_MAX_LENGTH, RESERVED_PROJECT_SLUGS, ObjectStatus
|
|
|
|
+from sentry.models.options.project_option import ProjectOption
|
|
from sentry.models.project import Project
|
|
from sentry.models.project import Project
|
|
from sentry.models.team import Team
|
|
from sentry.models.team import Team
|
|
from sentry.seer.similarity.utils import project_is_seer_eligible
|
|
from sentry.seer.similarity.utils import project_is_seer_eligible
|
|
@@ -222,4 +223,12 @@ class TeamProjectsEndpoint(TeamEndpoint, EnvironmentMixin):
|
|
if project_is_seer_eligible(project):
|
|
if project_is_seer_eligible(project):
|
|
project.update_option("sentry:similarity_backfill_completed", int(time.time()))
|
|
project.update_option("sentry:similarity_backfill_completed", int(time.time()))
|
|
|
|
|
|
|
|
+ # Add electron symbol server by default to both electron and javascript-electron projects
|
|
|
|
+ if project.platform and project.platform.endswith("electron"):
|
|
|
|
+ symbol_sources = ProjectOption.objects.get_value(
|
|
|
|
+ project=project, key="sentry:builtin_symbol_sources"
|
|
|
|
+ )
|
|
|
|
+ symbol_sources.append("electron")
|
|
|
|
+ project.update_option("sentry:builtin_symbol_sources", symbol_sources)
|
|
|
|
+
|
|
return Response(serialize(project, request.user), status=201)
|
|
return Response(serialize(project, request.user), status=201)
|