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

App Modules - Consolidate SentryApps resources #73857

Open
markstory opened this issue Jul 4, 2024 · 0 comments
Open

App Modules - Consolidate SentryApps resources #73857

markstory opened this issue Jul 4, 2024 · 0 comments

Comments

@markstory
Copy link
Member

SentryApps and its direct relations are control_silo scoped resources. Currently the components that comprise the control silo aspects of sentryapps are spread throughout the repository. Consolidating those classes and functions into sentry.sentry_apps will help clarify the application's design and make running subsets of tests easier and faster.

  • Replace usage of Mediator with dataclasses that implement the same approximate API as the mediators do today. Mediators duplicate the role of serializers and don't have enough adoption to justify continued inclusion in the repository.
  • Move endpoints, serializers, models, and tasks to be co-located.

We'll need to provide import shims for any symbols used in getsentry until those imports can be updated separately.

cc @Christinarlong

Christinarlong added a commit that referenced this issue Sep 17, 2024
We need to rename `apps.py` so django doesn't confuse it for an
`AppConfig` file when we later add `sentry_apps` to `INSTALLED APPS.`
However, `apps.py` is also used in `getsentry` so we'll need to create a
shim so that refs don't break.

ref(#73857)

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Christinarlong added a commit that referenced this issue Sep 19, 2024
migrate SentryAppComponent model to sentry_apps!
[X] model
[] tests - N/A
[] typing - N/A
[] getsentry shim - N/A

issue ref(#73857)
Christinarlong added a commit that referenced this issue Sep 20, 2024
…pps (#77738)

migrate SentryAppInstallationForProvider to sentry_apps!
[X] model
[] tests - N/A
[] typing - N/A
[] getsentry shim - N/A

issue ref(#73857)
Christinarlong added a commit that referenced this issue Sep 20, 2024
migrate ServiceHook model to sentry_apps!
[X] model
[] tests - N/A
[] typing - N/A
[] getsentry shim - N/A

issue ref(#73857)
Christinarlong added a commit that referenced this issue Sep 23, 2024
#77887)

Move the endpoints that weren't in a subdirectory to sentry_apps!
[X] endpoints
[X] tests
[x] typing - turns out we do take in an RpcUser in various places when
creating/updating sentry apps
[] getsentry shim - N/A

issue ref(#73857)

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Co-authored-by: Mark Story <mark@mark-story.com>
harshithadurai pushed a commit that referenced this issue Sep 24, 2024
#77887)

Move the endpoints that weren't in a subdirectory to sentry_apps!
[X] endpoints
[X] tests
[x] typing - turns out we do take in an RpcUser in various places when
creating/updating sentry apps
[] getsentry shim - N/A

issue ref(#73857)

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Co-authored-by: Mark Story <mark@mark-story.com>
0Calories pushed a commit that referenced this issue Sep 25, 2024
#77887)

Move the endpoints that weren't in a subdirectory to sentry_apps!
[X] endpoints
[X] tests
[x] typing - turns out we do take in an RpcUser in various places when
creating/updating sentry apps
[] getsentry shim - N/A

issue ref(#73857)

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Co-authored-by: Mark Story <mark@mark-story.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant