mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 10:27:34 -02:30
Generalize socketio sender from task and emit more data specific to the type of unified job sending the update
This commit is contained in:
@@ -48,7 +48,7 @@ class ProjectOptions(models.Model):
|
||||
('hg', _('Mercurial')),
|
||||
('svn', _('Subversion')),
|
||||
]
|
||||
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
||||
@@ -346,6 +346,9 @@ class ProjectUpdate(UnifiedJob, ProjectOptions):
|
||||
return True
|
||||
return False
|
||||
|
||||
def socketio_emit_data(self):
|
||||
return dict(project_id=self.project.id)
|
||||
|
||||
@property
|
||||
def task_impact(self):
|
||||
return 20
|
||||
|
||||
Reference in New Issue
Block a user