mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Merge pull request #5474 from jlmitch5/fixRecentJobRunsList
include workflows on dashboard recent job runs list
This commit is contained in:
@@ -38,7 +38,7 @@ export function Home($scope, $compile, $stateParams, $rootScope, $location, $log
|
||||
ProcessErrors($scope, data, status, null, { hdr: 'Error!', msg: 'Failed to get dashboard host graph data: ' + status });
|
||||
});
|
||||
|
||||
Rest.setUrl(GetBasePath("jobs") + "?order_by=-finished&page_size=5&finished__isnull=false");
|
||||
Rest.setUrl("api/v1/unified_jobs?order_by=-finished&page_size=5&finished__isnull=false&type=workflow_job,job");
|
||||
Rest.get()
|
||||
.success(function (data) {
|
||||
$scope.dashboardJobsListData = data.results;
|
||||
@@ -114,7 +114,7 @@ export function Home($scope, $compile, $stateParams, $rootScope, $location, $log
|
||||
.error(function (data, status) {
|
||||
ProcessErrors($scope, data, status, null, { hdr: 'Error!', msg: 'Failed to get dashboard: ' + status });
|
||||
});
|
||||
Rest.setUrl(GetBasePath("jobs") + "?order_by=-finished&page_size=5&finished__isnull=false");
|
||||
Rest.setUrl("api/v1/unified_jobs?order_by=-finished&page_size=5&finished__isnull=false&type=workflow_job,job");
|
||||
Rest.get()
|
||||
.success(function (data) {
|
||||
data = data.results;
|
||||
|
||||
@@ -86,6 +86,18 @@
|
||||
color: @default-err;
|
||||
}
|
||||
|
||||
.DashboardList-status--failed{
|
||||
color: @default-err;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
padding: 0px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.DashboardList-status--failed:before {
|
||||
content: "\f06a";
|
||||
}
|
||||
|
||||
.DashboardList-nameCell {
|
||||
padding-left: 15px;
|
||||
width: 100%;
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
</a>
|
||||
</td>
|
||||
<td class="DashboardList-activityCell">
|
||||
<aw-smart-status jobs="template.recent_jobs"></aw-smart-status>
|
||||
<aw-smart-status jobs="template.recent_jobs" template-type="template.type"></aw-smart-status>
|
||||
</td>
|
||||
<td class="List-actionsContainer">
|
||||
<div class="List-actionButtonCell">
|
||||
|
||||
@@ -29,7 +29,7 @@ export default
|
||||
// detailsUrl, status, name, time
|
||||
scope.jobs = _.map(list, function(job){
|
||||
return {
|
||||
detailsUrl: job.url.replace("api/v1", "#"),
|
||||
detailsUrl: job.type && job.type === 'workflow_job' ? job.url.replace("api/v1/workflow_jobs", "#/workflows") : job.url.replace("api/v1", "#"),
|
||||
status: job.status,
|
||||
name: job.name,
|
||||
id: job.id,
|
||||
|
||||
@@ -1 +1 @@
|
||||
<aw-smart-status jobs="template.summary_fields.recent_jobs"></aw-smart-status>
|
||||
<aw-smart-status jobs="template.summary_fields.recent_jobs" template-type="template.type"></aw-smart-status>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<aw-smart-status jobs="scan_job_template.summary_fields.recent_jobs"></aw-smart-status>
|
||||
<aw-smart-status jobs="scan_job_template.summary_fields.recent_jobs" template-type="template.type"></aw-smart-status>
|
||||
|
||||
Reference in New Issue
Block a user