mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 19:07:39 -02:30
Send also workflows as part of unified jobs
Workflows do not have a record in main_job, therefore the JOIN was ignoring those. We need to do LEFT JOIN to include also workflows. It also seems like we are not able to get a link to organizations from workflows? When looking at: <tower_url>#/organizations?organization_search=page_size:20;order_by:name We don't seem to list a relation to workflows. Is it possible to get it from somewhere?
This commit is contained in:
@@ -276,7 +276,7 @@ def copy_tables(since, full_path):
|
|||||||
main_unifiedjob.instance_group_id
|
main_unifiedjob.instance_group_id
|
||||||
FROM main_unifiedjob
|
FROM main_unifiedjob
|
||||||
JOIN django_content_type ON main_unifiedjob.polymorphic_ctype_id = django_content_type.id
|
JOIN django_content_type ON main_unifiedjob.polymorphic_ctype_id = django_content_type.id
|
||||||
JOIN main_organization ON main_organization.id = main_unifiedjob.organization_id
|
LEFT JOIN main_organization ON main_organization.id = main_unifiedjob.organization_id
|
||||||
WHERE main_unifiedjob.modified > {}
|
WHERE main_unifiedjob.modified > {}
|
||||||
AND main_unifiedjob.launch_type != 'sync'
|
AND main_unifiedjob.launch_type != 'sync'
|
||||||
ORDER BY main_unifiedjob.id ASC) TO STDOUT WITH CSV HEADER'''.format(since.strftime("'%Y-%m-%d %H:%M:%S'"))
|
ORDER BY main_unifiedjob.id ASC) TO STDOUT WITH CSV HEADER'''.format(since.strftime("'%Y-%m-%d %H:%M:%S'"))
|
||||||
|
|||||||
Reference in New Issue
Block a user