-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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(crons): Add helpful subtitle to crons issue platform + update evidence #51877
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #51877 +/- ##
==========================================
+ Coverage 81.32% 81.34% +0.01%
==========================================
Files 4901 4899 -2
Lines 205915 205790 -125
Branches 11048 11048
==========================================
- Hits 167465 167400 -65
+ Misses 38205 38145 -60
Partials 245 245
|
def mark_failed(self, last_checkin=None, reason=MonitorFailure.UNKNOWN): | ||
def get_last_successful_checkin(self): | ||
return ( | ||
MonitorCheckIn.objects.filter(monitor_environment=self, status=CheckInStatus.OK) |
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.
Do we need an index on monitor_env, status, date_added
?
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.
Couldn't hurt...as long as the DB doesn't go crazy on us again. Would like to add that I guess and then will want to index on trace_id
as well. Would it make sense to bundle together or separately?
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.
Might make sense to split the trace_id
one out since we're not querying on it here? You could still bundle them together in the same ops ticket though.
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.
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.
this indexing is complete
PR reverted: 4d405d4 |
…idence (#51877) Adds helpful human-readable subtitle to issue platform crons issues + updates `last check-in` evidence to `last successful check-in`
…idence (#51877) Adds helpful human-readable subtitle to issue platform crons issues + updates `last check-in` evidence to `last successful check-in`
…idence (#51877) Adds helpful human-readable subtitle to issue platform crons issues + updates `last check-in` evidence to `last successful check-in`
Adds helpful human-readable subtitle to issue platform crons issues + updates
last check-in
evidence tolast successful check-in