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(crons): Add helpful subtitle to crons issue platform + update evidence #51877

Merged
merged 2 commits into from
Jul 13, 2023

Conversation

rjo100
Copy link
Contributor

@rjo100 rjo100 commented Jun 29, 2023

Adds helpful human-readable subtitle to issue platform crons issues + updates last check-in evidence to last successful check-in

@rjo100 rjo100 requested a review from a team as a code owner June 29, 2023 14:33
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 29, 2023
@codecov
Copy link

codecov bot commented Jun 29, 2023

Codecov Report

Merging #51877 (20b1a13) into master (bf51d1d) will increase coverage by 0.01%.
The diff coverage is 100.00%.

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              
Impacted Files Coverage Δ
src/sentry/monitors/models.py 94.49% <100.00%> (+0.18%) ⬆️
src/sentry/monitors/tasks.py 95.65% <100.00%> (ø)

... and 72 files with indirect coverage changes

@rjo100 rjo100 changed the title feat(crons): Add helpful subtitle to crons issue platform feat(crons): Add helpful subtitle to crons issue platform + update evidence Jun 29, 2023
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)
Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this indexing is complete

@rjo100 rjo100 merged commit b466fbc into master Jul 13, 2023
57 checks passed
@rjo100 rjo100 deleted the rjo100/add-crons-issue-subtitle branch July 13, 2023 17:31
@rjo100 rjo100 added the Trigger: Revert add to a merged PR to revert it (skips CI) label Jul 13, 2023
@getsentry-bot
Copy link
Contributor

PR reverted: 4d405d4

getsentry-bot added a commit that referenced this pull request Jul 13, 2023
…pdate evidence (#51877)"

This reverts commit b466fbc.

Co-authored-by: rjo100 <7078270+rjo100@users.noreply.github.com>
rjo100 added a commit that referenced this pull request Jul 13, 2023
…idence (#51877)

Adds helpful human-readable subtitle to issue platform crons issues +
updates `last check-in` evidence to `last successful check-in`
michellewzhang pushed a commit that referenced this pull request Jul 13, 2023
…idence (#51877)

Adds helpful human-readable subtitle to issue platform crons issues +
updates `last check-in` evidence to `last successful check-in`
michellewzhang pushed a commit that referenced this pull request Jul 13, 2023
…pdate evidence (#51877)"

This reverts commit b466fbc.

Co-authored-by: rjo100 <7078270+rjo100@users.noreply.github.com>
mifu67 pushed a commit that referenced this pull request Jul 13, 2023
…idence (#51877)

Adds helpful human-readable subtitle to issue platform crons issues +
updates `last check-in` evidence to `last successful check-in`
mifu67 pushed a commit that referenced this pull request Jul 13, 2023
…pdate evidence (#51877)"

This reverts commit b466fbc.

Co-authored-by: rjo100 <7078270+rjo100@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Jul 29, 2023
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 Trigger: Revert add to a merged PR to revert it (skips CI)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants