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

Block deletion of resources with unprocessed events #1587

Merged
merged 3 commits into from
Mar 16, 2018

Conversation

AlanCoding
Copy link
Member

No description provided.

@AlanCoding
Copy link
Member Author

Connected to #1586

Expands upon #1536 and #1533

@AlanCoding AlanCoding changed the title Block deletion of resources w unprocessed events Block deletion of resources with unprocessed events Mar 16, 2018
Copy link
Contributor

@wwitzel3 wwitzel3 left a comment

Choose a reason for hiding this comment

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

Nice set of changes here.

@@ -5,9 +5,17 @@

from django.utils.translation import ugettext_lazy as _

__all__ = [
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

return UnifiedJob.objects.filter(instance_group=self,
status__in=ACTIVE_STATES)
def _get_related_jobs(self):
return UnifiedJob.objects.filter(instance_group=self)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice removing all of the extra filtering since the mixin already applies this filter.

@AlanCoding AlanCoding merged commit 75dd8d7 into ansible:devel Mar 16, 2018
chrismeyersfsu pushed a commit to chrismeyersfsu/awx that referenced this pull request Apr 26, 2018
Add corresponding log for WorkflowJob submission
@AlanCoding AlanCoding deleted the more_event_blocking branch January 15, 2019 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants