github.com/thomasobenaus/nomad@v0.11.1/ui/app/serializers/plugin.js (about)

     1  import ApplicationSerializer from './application';
     2  
     3  export default ApplicationSerializer.extend({
     4    normalize(typeHash, hash) {
     5      hash.PlainID = hash.ID;
     6  
     7      // TODO This shouldn't hardcode `csi/` as part of the ID,
     8      // but it is necessary to make the correct find request and the
     9      // payload does not contain the required information to derive
    10      // this identifier.
    11      hash.ID = `csi/${hash.ID}`;
    12  
    13      hash.Nodes = hash.Nodes || [];
    14      hash.Controllers = hash.Controllers || [];
    15  
    16      return this._super(typeHash, hash);
    17    },
    18  });