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

feat(uptime): Use subscriptions to process uptime messages. #73100

Merged
merged 4 commits into from
Jun 21, 2024

Conversation

wedamija
Copy link
Member

This abstracts the subscription processor and starts attempting to fetch subscriptions when processing results. To keep our dummy test case going, for now we'll create dummy models if the subscription can't be found.

@wedamija wedamija requested a review from a team June 21, 2024 06:21
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 21, 2024
Copy link

codecov bot commented Jun 21, 2024

Codecov Report

Attention: Patch coverage is 87.96296% with 13 lines in your changes missing coverage. Please review.

Project coverage is 77.98%. Comparing base (ee9946a) to head (4b14eff).
Report is 13 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #73100      +/-   ##
==========================================
- Coverage   77.98%   77.98%   -0.01%     
==========================================
  Files        6623     6625       +2     
  Lines      295551   295637      +86     
  Branches    50900    50923      +23     
==========================================
+ Hits       230484   230546      +62     
- Misses      58790    58810      +20     
- Partials     6277     6281       +4     
Files Coverage Δ
src/sentry/remote_subscriptions/models.py 100.00% <100.00%> (ø)
src/sentry/testutils/cases.py 85.50% <100.00%> (+0.01%) ⬆️
src/sentry/testutils/factories.py 93.37% <100.00%> (+0.05%) ⬆️
src/sentry/uptime/issue_platform.py 95.65% <100.00%> (ø)
src/sentry/testutils/fixtures.py 92.99% <88.88%> (-0.11%) ⬇️
src/sentry/uptime/consumers/results_consumer.py 89.65% <87.50%> (+6.89%) ⬆️
.../remote_subscriptions/consumers/result_consumer.py 84.74% <84.74%> (ø)

... and 50 files with indirect coverage changes

This abstracts the subscription processor and starts attempting to fetch
subscriptions when processing results. To keep our dummy test case going,
for now we'll create dummy models if the subscription can't be found.
Comment on lines 81 to 86
self.result_processor = self.result_processor_cls(get_topic_codec(topic))

@property
@abc.abstractmethod
def result_processor_cls(self) -> type[ResultProcessor[T, U]]:
pass
Copy link
Member

Choose a reason for hiding this comment

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

lol it's a little confusing since it's a property

@wedamija wedamija merged commit 21e7c12 into master Jun 21, 2024
48 of 49 checks passed
@wedamija wedamija deleted the danf/uptime-use-subscriptions branch June 21, 2024 22:23
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants