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 deletion apis for processing errors #70639

Merged
merged 2 commits into from
May 13, 2024

Conversation

wedamija
Copy link
Member

This adds apis at both the monitor and project level for deleting checkin processing errors.

@wedamija wedamija requested review from a team as code owners May 10, 2024 06:34
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 10, 2024
@wedamija wedamija force-pushed the danf/crons-processing-error-data-storage branch from 2989743 to 6b9efe5 Compare May 10, 2024 06:36
@wedamija wedamija force-pushed the danf/crons-processing-error-delete branch from 83589b8 to e349d28 Compare May 10, 2024 06:36
@wedamija wedamija force-pushed the danf/crons-processing-error-data-storage branch from 6b9efe5 to 026ba25 Compare May 10, 2024 16:48
@wedamija wedamija force-pushed the danf/crons-processing-error-delete branch from e349d28 to 54de3c7 Compare May 10, 2024 16:49
@wedamija
Copy link
Member Author

If we want, we could just make this api per project as well, instead of having two separate ones

parsed_uuid = UUID(uuid)
except ValueError:
raise ValidationError("Invalid UUID")
CheckinProcessErrorsManager().delete_for_project(project, parsed_uuid)
Copy link
Member

Choose a reason for hiding this comment

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

I am starting to feel like maybe this should just be in it's own module lol nbd

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah... Feels weird to instantiate it. What if I just make all the methods class/static?

Copy link
Member

Choose a reason for hiding this comment

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

sgtm. I am good w/ a module too

@evanpurkhiser
Copy link
Member

If we want, we could just make this api per project as well, instead of having two separate ones

could add a query parameter to filter to monitor slug?

Base automatically changed from danf/crons-processing-error-data-storage to master May 10, 2024 17:41
@wedamija wedamija force-pushed the danf/crons-processing-error-delete branch from 54de3c7 to c9078d1 Compare May 10, 2024 17:42
@wedamija
Copy link
Member Author

wedamija commented May 10, 2024

If we want, we could just make this api per project as well, instead of having two separate ones

could add a query parameter to filter to monitor slug?

I can delete it without the monitor slug anyway. We only really have to delete the actually error, we don't have to delete from the index since it'll just drop any errors that don't have values. But I think I can also just get the monitor info from the stored processing error. Maybe it's better to just do that?

This adds apis at both the monitor and project level for deleting checkin processing errors.
@wedamija wedamija force-pushed the danf/crons-processing-error-delete branch from c9078d1 to 51a2b4c Compare May 10, 2024 23:41
@evanpurkhiser evanpurkhiser merged commit e8e01b0 into master May 13, 2024
48 checks passed
@evanpurkhiser evanpurkhiser deleted the danf/crons-processing-error-delete branch May 13, 2024 14:20
@github-actions github-actions bot locked and limited conversation to collaborators May 29, 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.

None yet

2 participants