Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
chore(hybridcloud) Update hybridcloud examples to use new paths
Browse files Browse the repository at this point in the history
Paths have changed and docs need to be updated.
  • Loading branch information
markstory committed Jul 3, 2024
1 parent efadb27 commit 65ab094
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/docs/backend/cross-region-rpc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ The cross-region RPC framework is composed of several RPC services, and RPC mode
Each RPC service is composed of a service interface and local implementation.

```python
from sentry.services.hybrid_cloud.region import ByOrganizationSlug
from sentry.services.hybrid_cloud.rpc import RpcService, regional_rpc_method
from sentry.hybridcloud.rpc.resolvers import ByOrganizationSlug
from sentry.hybridcloud.rpc import RpcService, regional_rpc_method
from sentry.silo.base import SiloMode

class OrganizationService(RpcService):
Expand All @@ -32,7 +32,7 @@ class OrganizationService(RpcService):

@classmethod
def get_local_implementation(cls) -> RpcService:
from sentry.services.hybrid_cloud.organization.impl import (
from sentry.organizations.services.organization.impl import (
DatabaseBackedOrganizationService
)

Expand Down Expand Up @@ -68,8 +68,8 @@ RPC methods like `get_org_by_slug` must be defined as `abstractmethod` and must
The implementation for `get_org_by_slug` looks like:

```python
from sentry.services.hybrid_cloud.organization.service import OrganizationService
from sentry.services.hybrid_cloud.organization.model import RpcOrganizationSummary
from sentry.organizations.services.organization.service import OrganizationService
from sentry.organizations.services.organization.model import RpcOrganizationSummary
from sentry.models.organization import Organization, OrganizationStatus

class DatabaseBackedOrganizationService(OrganizationService):
Expand Down

0 comments on commit 65ab094

Please sign in to comment.