mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 12:27:37 -02:30
Implement job template job history statuses, configurable
This commit is contained in:
@@ -1351,6 +1351,7 @@ class JobTemplateSerializer(UnifiedJobTemplateSerializer, JobOptionsSerializer):
|
|||||||
else:
|
else:
|
||||||
d['can_copy'] = False
|
d['can_copy'] = False
|
||||||
d['can_edit'] = False
|
d['can_edit'] = False
|
||||||
|
d['recent_jobs'] = [{'id': x.id, 'status': x.status} for x in obj.jobs.all().order_by('-started')[:10]]
|
||||||
return d
|
return d
|
||||||
|
|
||||||
class JobSerializer(UnifiedJobSerializer, JobOptionsSerializer):
|
class JobSerializer(UnifiedJobSerializer, JobOptionsSerializer):
|
||||||
|
|||||||
@@ -328,6 +328,9 @@ AWX_PROOT_HIDE_PATHS = []
|
|||||||
# Additional paths to show for jobs using proot.
|
# Additional paths to show for jobs using proot.
|
||||||
AWX_PROOT_SHOW_PATHS = []
|
AWX_PROOT_SHOW_PATHS = []
|
||||||
|
|
||||||
|
# Number of jobs to show as part of the job template history
|
||||||
|
AWX_JOB_TEMPLATE_HISTORY = 10
|
||||||
|
|
||||||
# Not possible to get list of regions without authenticating, so use this list
|
# Not possible to get list of regions without authenticating, so use this list
|
||||||
# instead (based on docs from:
|
# instead (based on docs from:
|
||||||
# http://docs.rackspace.com/loadbalancers/api/v1.0/clb-devguide/content/Service_Access_Endpoints-d1e517.html)
|
# http://docs.rackspace.com/loadbalancers/api/v1.0/clb-devguide/content/Service_Access_Endpoints-d1e517.html)
|
||||||
|
|||||||
Reference in New Issue
Block a user