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

fix(dashboard): OnDemand widget creation also includes transaction type #79059

Conversation

narsaynorath
Copy link
Member

Ensures that the proper on-demand objects are created when widgets are updated and created.

Since the discover split can create transaction types, we need to catch these types when creating the corresponding on demand objects. I've colocated the ondemand tests into one test class and parameterized the widget type so we can test the functionality against transaction widgets as well.

@narsaynorath narsaynorath requested a review from a team as a code owner October 11, 2024 20:07
@narsaynorath narsaynorath requested a review from a team October 11, 2024 20:07
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 11, 2024
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

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

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...sentry/api/serializers/rest_framework/dashboard.py 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #79059      +/-   ##
==========================================
- Coverage   78.29%   78.29%   -0.01%     
==========================================
  Files        7128     7129       +1     
  Lines      313712   313834     +122     
  Branches    51200    51229      +29     
==========================================
+ Hits       245629   245712      +83     
- Misses      61659    61692      +33     
- Partials     6424     6430       +6     

@narsaynorath narsaynorath merged commit 382209c into master Oct 15, 2024
50 of 51 checks passed
@narsaynorath narsaynorath deleted the nar/fix/dashboard-on-demand-widget-creation-also-checks-transactions branch October 15, 2024 12:51
cmanallen pushed a commit that referenced this pull request Oct 23, 2024
…pe (#79059)

Ensures that the proper on-demand objects are created when widgets are
updated and created.

Since the discover split can create transaction types, we need to catch
these types when creating the corresponding on demand objects. I've
colocated the ondemand tests into one test class and parameterized the
widget type so we can test the functionality against transaction widgets
as well.
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 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