update: add comment to explain loading namespaces in alloc route

This commit is contained in:
Jai Bhagat 2021-12-15 12:37:10 -05:00
parent edb330e701
commit c302f3a5cd

View file

@ -20,7 +20,7 @@ export default class AllocationRoute extends Route.extend(WithWatchers) {
.then(allocation =>
allocation
.get('job')
.then(() => this.store.findAll('namespace'))
.then(() => this.store.findAll('namespace')) // namespaces belong to a job and are an asynchronous relationship so we can peak them later on
.then(() => allocation)
)
.catch(notifyError(this));