temp: namespace model refact

This commit is contained in:
Jai Bhagat 2022-01-14 10:11:22 -05:00
parent 6bd33d3fb9
commit 4f802449dc
3 changed files with 7 additions and 4 deletions

View file

@ -11,7 +11,7 @@ export default class JobRoute extends Route {
@service token;
serialize(model) {
return { job_name: model.get('plainId') };
return { job_name: JSON.parse(model.get('id')).join('@') };
}
model(params, transition) {

View file

@ -1,7 +1,7 @@
<td data-test-job-name>
<LinkTo
@route="jobs.job"
@model={{this.job.plainId}}
@model={{this.job}}
@query={{hash namespace=this.job.namespace.id}}
class="is-primary"
>
@ -47,7 +47,10 @@
</em>
{{/if}}
{{else}}
<AllocationStatusBar @allocationContainer={{this.job}} @isNarrow={{true}} />
<AllocationStatusBar
@allocationContainer={{this.job}}
@isNarrow={{true}}
/>
{{/if}}
</div>
</td>

View file

@ -25,7 +25,7 @@ module.exports = function (environment) {
APP: {
blockingQueries: true,
mirageScenario: 'topoMedium',
mirageScenario: 'smallCluster',
mirageWithNamespaces: false,
mirageWithTokens: true,
mirageWithRegions: true,