Skip to content

Commit

Permalink
passing new field to replica
Browse files Browse the repository at this point in the history
  • Loading branch information
sentaur-athena committed Nov 25, 2024
1 parent ceaf648 commit 7a791c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/sentry/auth/services/auth/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class RpcApiToken(RpcModel):
expires_at: datetime.datetime | None = None
allowed_origins: list[str] = Field(default_factory=list)
scope_list: list[str] = Field(default_factory=list)
scoping_organization_id: int | None = None


class RpcMemberSsoState(RpcModel):
Expand Down
1 change: 1 addition & 0 deletions src/sentry/hybridcloud/services/replica/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def upsert_replicated_api_token(self, *, api_token: RpcApiToken, region_name: st
"\n".join(api_token.allowed_origins) if api_token.allowed_origins else None
),
user_id=api_token.user_id,
scoping_organization_id=api_token.scoping_organization_id,
)
handle_replication(ApiToken, destination)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
created: '2024-11-21T21:10:04.656611+00:00'
created: '2024-11-25T20:44:29.207064+00:00'
creator: sentry
source: tests/sentry/backup/test_comparators.py
---
Expand Down Expand Up @@ -33,6 +33,7 @@ source: tests/sentry/backup/test_comparators.py
- apitoken_id
- application_id
- organization
- scoping_organization_id
- user_id
model_name: hybridcloud.apitokenreplica
- comparators:
Expand Down

0 comments on commit 7a791c3

Please sign in to comment.