-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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(workflow_engine): Schedule Deletion for Workflow #85665
Conversation
…flow and it's related models
a5a0a77
to
f7d43c0
Compare
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.
seems fine, left some non blocking comments
from sentry.testutils.helpers import TaskRunner | ||
from sentry.testutils.hybrid_cloud import HybridCloudTestMixin | ||
|
||
# from tests.sentry.workflow_engine.test_base import BaseWorkflowTest |
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.
guessing you meant to remove this
"action_condition", | ||
], | ||
) | ||
def test_delete_workflow(self, instance_attr): |
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.
should we have a test with multiple actions?
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.
👍 also, woo! this comment made me realize i missed action
in the test either 👀
Q: When an organization gets deleted, all of the organization's workflows get deleted. Will this task be triggered to clean up all of it's related models in that case? I'm thinking about the problem we discussed last week about actions not getting deleted when the org is deleted. |
@ameliahsu It doesn't seem like it -- locally, i added a test to confirm that the workflows are not cleaned up when you delete an org. we'd need to have a separate PR that's similar to this for the |
…d issue that sometimes the actions werent because of the roder of removal.
Description
Fix scheduled deletions for the
Workflow
model - this will now ensure that all the subsequent models are cleaned up correctly.