mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 11:25:41 +03:00
Remove unused findAllocations method in both job and node
This was replaced with a relationship at some point.
This commit is contained in:
@@ -52,18 +52,9 @@ export default Watchable.extend({
|
||||
summary: '/summary',
|
||||
},
|
||||
|
||||
findAllocations(job) {
|
||||
const url = `${this.buildURL('job', job.get('id'), job, 'findRecord')}/allocations`;
|
||||
return this.ajax(url, 'GET', { data: this.buildQuery() }).then(allocs => {
|
||||
return this.store.pushPayload('allocation', {
|
||||
allocations: allocs,
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
fetchRawDefinition(job) {
|
||||
const url = this.buildURL('job', job.get('id'), job, 'findRecord');
|
||||
return this.ajax(url, 'GET', { data: this.buildQuery() });
|
||||
return this.ajax(url, 'GET');
|
||||
},
|
||||
|
||||
forcePeriodic(job) {
|
||||
|
||||
@@ -1,12 +1,3 @@
|
||||
import Watchable from './watchable';
|
||||
|
||||
export default Watchable.extend({
|
||||
findAllocations(node) {
|
||||
const url = `${this.buildURL('node', node.get('id'), node, 'findRecord')}/allocations`;
|
||||
return this.ajax(url, 'GET').then(allocs => {
|
||||
return this.store.pushPayload('allocation', {
|
||||
allocations: allocs,
|
||||
});
|
||||
});
|
||||
},
|
||||
});
|
||||
export default Watchable.extend();
|
||||
|
||||
Reference in New Issue
Block a user