You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Control silo (users, auth, billing, org mappings) |`SiloMode.CONTROL`|`@rpc_method`|`OrganizationMemberMappingService`|
46
46
47
47
**Decision rule**: If the Django models you need to query live in the cell database, use `SiloMode.CELL`. If they live in the control database, use `SiloMode.CONTROL`.
@@ -95,7 +95,7 @@ If your service doesn't fit any of these, add a new entry to the `service_packag
95
95
96
96
## Step 4: Add or Update Methods
97
97
98
-
### For REGION silo services
98
+
### For CELL silo services
99
99
100
100
Load `references/resolvers.md` for resolver details.
101
101
@@ -217,11 +217,11 @@ Every RPC service needs three categories of tests: **silo mode compatibility**,
217
217
218
218
### 7.1 Silo mode compatibility with `@all_silo_test`
219
219
220
-
Every service test class MUST use `@all_silo_test` so tests run in all three modes (MONOLITH, REGION, CONTROL). This ensures the delegation layer works for both local and remote dispatch paths.
220
+
Every service test class MUST use `@all_silo_test` so tests run in all three modes (MONOLITH, CELL, CONTROL). This ensures the delegation layer works for both local and remote dispatch paths.
221
221
222
222
```python
223
223
from sentry.testutils.cases import TestCase, TransactionTestCase
224
-
from sentry.testutils.silo import all_silo_test, assume_test_silo_mode, create_test_regions
224
+
from sentry.testutils.silo import all_silo_test, assume_test_silo_mode, create_test_cells
225
225
226
226
@all_silo_test
227
227
classMyServiceTest(TestCase):
@@ -234,8 +234,8 @@ class MyServiceTest(TestCase):
234
234
For tests that need named cells (e.g., testing cell resolution):
0 commit comments