Browse Source

add electron symbol server in RPC impl as well

Simon Hellmayr 17 hours ago
parent
commit
5b8e6bb9e1
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/sentry/projects/services/project/impl.py

+ 7 - 0
src/sentry/projects/services/project/impl.py

@@ -132,6 +132,13 @@ class DatabaseBackedProjectService(ProjectService):
                 sender=self.create_project_for_organization,
                 user_id=user_id,
             )
+            # Add electron symbol server by default to both electron and javascript-electron projects
+            if platform and 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 serialize_project(project)