-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ref: Make eventstore.processing use LazyServiceWrapper #51870
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LazyServiceWrapper is a horrible old beast but it has a few sanity checks that a simple `import_string` lacks. For starters, whether the imported string even implements the relevant service baseclass. Also LazyServiceWrapper supports typing now, while import_string would require one additional type hint. That's easy to add but I don't particularly care for having N ways to do services in Sentry.
github-actions
bot
added
the
Scope: Backend
Automatically applied to PRs that change backend components
label
Jun 29, 2023
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #51870 +/- ##
=======================================
Coverage 81.32 81.32
=======================================
Files 4901 4901
Lines 205867 205870 +3
Branches 11048 11048
=======================================
+ Hits 167414 167419 +5
+ Misses 38208 38206 -2
Partials 245 245
|
asottile-sentry
approved these changes
Jun 29, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
appears to be breaking processing:
|
asottile-sentry
added
the
Trigger: Revert
Add to a merged PR to revert it (skips CI)
label
Jun 29, 2023
PR reverted: 81dcc62 |
getsentry-bot
added a commit
that referenced
this pull request
Jun 29, 2023
This reverts commit b2634bf. Co-authored-by: asottile-sentry <103459774+asottile-sentry@users.noreply.github.com>
untitaker
added a commit
that referenced
this pull request
Jun 30, 2023
Redis event processing store is currently unused, meaning we can change it to not use a cache backend and move forward with Ted's original vision of getting rid of the cache backend. getsentry already uses a "transitional" backend that does not use the cache layer, and now that the redis backend is identical to that one we can move over to it. Previously I broke sentry by deploying #51870 (comment), where I forgot that getsentry had its own processingstore backend. I could fix the backend but I can also just delete it.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Scope: Backend
Automatically applied to PRs that change backend components
Trigger: Revert
Add to a merged PR to revert it (skips CI)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
LazyServiceWrapper is a horrible old beast but it has a few sanity
checks that a simple
import_string
lacks. For starters, whether theimported string even implements the relevant service baseclass.
Also LazyServiceWrapper supports typing now (which is the trigger
for doing this), while import_string would require one additional type
hint. That's easy to add but I don't particularly care for having N
ways to do services in Sentry.