Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
import ApplicationSerializer from './application';
import { get } from '@ember/object';
import classic from 'ember-classic-decorator';
@classic
export default class JobPlan extends ApplicationSerializer {
mapToArray = ['FailedTGAllocs'];
normalize(typeHash, hash) {
hash.PreemptionIDs = (get(hash, 'Annotations.PreemptedAllocs') || []).mapBy(
'ID'
);
return super.normalize(...arguments);
}