Enhance the dashboard job summary endpoint #13924
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Enhance the dashboard job summary endpoint to contain
canceled
anderror
job counts.Jobs have 4 completion states
successful
,failed
,canceled
, anderror
.The dashboard api endpoint only gives
successful
andfailed
, which makes the user think there is something wrong with the dashboard because jobs with anerror
status do not show up. This PR adds those counts to the dashboard API.We see this on the new dashboard, where the recent jobs card shows errors but the chart shows none.
ISSUE TYPE
COMPONENT NAME
This PR: ansible/ansible-ui#477
Adds support to the Ansible-UI to use the updated API payload.
This is an example screenshot of what the customer sees without this PR. Notice no red in the graph. :(