Skip to content

Commit 5305acd

Browse files
authored
fix(hc): Change integration search endpoint to control silo (#49589)
1 parent db42621 commit 5305acd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/sentry/integrations/gitlab/search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from rest_framework.request import Request
22
from rest_framework.response import Response
33

4-
from sentry.api.base import region_silo_endpoint
4+
from sentry.api.base import control_silo_endpoint
55
from sentry.api.bases.integration import IntegrationEndpoint
66
from sentry.models import Integration
77
from sentry.shared_integrations.exceptions import ApiError
88

99

10-
@region_silo_endpoint
10+
@control_silo_endpoint
1111
class GitlabIssueSearchEndpoint(IntegrationEndpoint):
1212
def get(self, request: Request, organization, integration_id) -> Response:
1313
try:

tests/sentry/integrations/github/test_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from sentry.testutils.silo import control_silo_test
99

1010

11-
@control_silo_test
11+
@control_silo_test(stable=True)
1212
class GithubSearchTest(APITestCase):
1313
# There is another test case that inherits from this
1414
# one to ensure that github:enterprise behaves as expected.

tests/sentry/integrations/github_enterprise/test_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from ..github.test_search import GithubSearchTest
77

88

9-
@control_silo_test
9+
@control_silo_test(stable=True)
1010
class GithubEnterpriseSearchTest(GithubSearchTest):
1111
# Inherit test methods/scenarios from GithubSearchTest
1212
# and fill out the slots that customize it to use github:enterprise

0 commit comments

Comments
 (0)