Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(billing): Add app_service.get_internal_integrations #84335

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

dashed
Copy link
Member

@dashed dashed commented Jan 30, 2025

Closes #84333

We will need this for Vercel billing integration; and to be able to retrieve the SentryApp corresponding to the Vercel native marketplace integration from within the region silo.

@dashed dashed self-assigned this Jan 30, 2025
@dashed dashed requested review from a team as code owners January 30, 2025 20:39
@dashed dashed requested a review from a team January 30, 2025 20:39
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 30, 2025
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

Attention: Patch coverage is 96.15385% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/sentry_apps/services/app/service.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #84335       +/-   ##
===========================================
+ Coverage   46.59%   87.61%   +41.02%     
===========================================
  Files        9578     9594       +16     
  Lines      542304   543084      +780     
  Branches    21275    21275               
===========================================
+ Hits       252661   475844   +223183     
+ Misses     289286    66883   -222403     
  Partials      357      357               

owner_id=organization_id,
status=SentryAppStatus.INTERNAL,
name=integration_name,
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will each organization be getting a distinct sentryapp? Or will there be one sentry app for vercel and each organization has an installation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each organization will have their own Vercel SentryApp. We do this since the access token tied to each organization will be stored in the SentryApp's metadata.

@dashed dashed merged commit f72b1f6 into master Feb 3, 2025
50 checks passed
@dashed dashed deleted the billing/app-service-get_internal_integrations branch February 3, 2025 20:11
andrewshie-sentry pushed a commit that referenced this pull request Feb 5, 2025
Closes #84333

We will need this for Vercel billing integration; and to be able to
retrieve the `SentryApp` corresponding to the Vercel native marketplace
integration from within the region silo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add app_service.get_internal_integrations RPC method
3 participants