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

wip(metric-issues): Update script to create metric issues #83025

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snigdhas
Copy link
Member

@snigdhas snigdhas commented Jan 7, 2025

Adding to bin/load-mocks to generate metric issues for local testing.
Uses:
bin/load-mocks --load-metric-issues --metric_alert_id={alert_id} - this will create a metric issue for the given metric alert rule
bin/load-mocks --load-metric-issues - this will create a metric alert rule and then create a metric issue for that rule

using the --load-metric-issues flag will skip any of the other setup that bin/load-mocks usually handles.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 7, 2025
Copy link

codecov bot commented Jan 7, 2025

Codecov Report

Attention: Patch coverage is 19.23077% with 21 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/utils/mockdata/core.py 19.23% 21 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #83025      +/-   ##
==========================================
+ Coverage   87.55%   87.63%   +0.07%     
==========================================
  Files        9411     9423      +12     
  Lines      536904   537012     +108     
  Branches    21113    21113              
==========================================
+ Hits       470107   470603     +496     
+ Misses      66431    66043     -388     
  Partials      366      366              

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.

1 participant