mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 01:15:43 +03:00
Make the job<->job-summary relationship reflective
The job summary needed a JobID
This commit is contained in:
@@ -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}`) || {};
|
||||
|
||||
Reference in New Issue
Block a user