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

ref(crons): Move save out of update_config #58826

Conversation

evanpurkhiser
Copy link
Member

It's probably better to be explicit here.

I would like to make some other changes to the monitor outside of just
updating the config in some places. So I don't want to call save twice.

@evanpurkhiser evanpurkhiser requested a review from a team as a code owner October 25, 2023 23:33
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 25, 2023
Copy link
Contributor

@rjo100 rjo100 left a comment

Choose a reason for hiding this comment

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

did you forget to remove the .save() from models.py?

@evanpurkhiser
Copy link
Member Author

Good catch, missed it when staging

@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-crons-move-save-out-of-update-config- branch from abe1c00 to 9142b7c Compare October 25, 2023 23:58
@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

Merging #58826 (73e30d0) into master (083bd82) will decrease coverage by 0.01%.
Report is 1912 commits behind head on master.
The diff coverage is 80.95%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #58826      +/-   ##
==========================================
- Coverage   80.62%   80.62%   -0.01%     
==========================================
  Files        5154     5154              
  Lines      225708   225736      +28     
  Branches    38029    38032       +3     
==========================================
+ Hits       181969   181991      +22     
- Misses      38184    38189       +5     
- Partials     5555     5556       +1     
Files Coverage Δ
src/sentry/issues/json_schemas.py 100.00% <100.00%> (ø)
src/sentry/issues/occurrence_consumer.py 92.18% <100.00%> (+0.25%) ⬆️
...monitors/endpoints/monitor_ingest_checkin_index.py 94.56% <100.00%> (+0.05%) ⬆️
...c/sentry/sentry_metrics/consumers/indexer/batch.py 92.12% <100.00%> (-0.08%) ⬇️
.../sentry/sentry_metrics/consumers/indexer/common.py 88.00% <100.00%> (+0.12%) ⬆️
static/app/components/commitLink.tsx 35.71% <ø> (ø)
.../components/replays/breadcrumbs/replayTimeline.tsx 0.00% <ø> (ø)
...onents/replays/player/useScrubberMouseTracking.tsx 0.00% <ø> (ø)
static/app/components/resolutionBox.tsx 93.75% <ø> (ø)
...y/sentry_metrics/consumers/indexer/multiprocess.py 84.12% <60.00%> (-2.76%) ⬇️
... and 1 more

... and 5 files with indirect coverage changes

@evanpurkhiser evanpurkhiser enabled auto-merge (squash) October 26, 2023 22:24
It's probably better to be explicit here.

I would like to make some other changes to the monitor outside of just
updating the config in some places. So I don't want to call save twice.
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-crons-move-save-out-of-update-config- branch from 9142b7c to 73e30d0 Compare October 26, 2023 22:25
@getsantry
Copy link
Contributor

getsantry bot commented Nov 17, 2023

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label Nov 17, 2023
@evanpurkhiser evanpurkhiser requested review from rjo100 and a team November 21, 2023 23:10
@rjo100
Copy link
Contributor

rjo100 commented Nov 22, 2023

did you forget to remove the .save() from models.py?

bumping old comment

@getsantry
Copy link
Contributor

getsantry bot commented Dec 14, 2023

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label Dec 14, 2023
@getsantry getsantry bot closed this Dec 22, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 6, 2024
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/ref-crons-move-save-out-of-update-config- branch April 8, 2024 18:30
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 Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants