Make the job<->job-summary relationship reflective

The job summary needed a JobID
This commit is contained in:
Michael Lange
2018-03-28 14:56:15 -07:00
parent e658a3a9a0
commit 5ab5a1cbb1

View File

@@ -7,6 +7,7 @@ export default ApplicationSerializer.extend({
// TaskGroupSummary fragment list
hash.PlainJobId = hash.JobID;
hash.ID = JSON.stringify([hash.JobID, hash.Namespace || 'default']);
hash.JobID = hash.ID;
hash.TaskGroupSummaries = Object.keys(get(hash, 'Summary') || {}).map(key => {
const allocStats = get(hash, `Summary.${key}`) || {};