From f4028199452a49a912dac50608e7874fbe979b9e Mon Sep 17 00:00:00 2001 From: Susmitha Girumala Date: Mon, 9 Aug 2021 09:09:18 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20Fix=20missing=20target?= =?UTF-8?q?=20in=20sessions=20scenarios=20in=20mirage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/api/mirage/scenarios/default.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/api/mirage/scenarios/default.js b/addons/api/mirage/scenarios/default.js index d448a443b..d0ad354c6 100644 --- a/addons/api/mirage/scenarios/default.js +++ b/addons/api/mirage/scenarios/default.js @@ -47,8 +47,9 @@ export default function (server) { // Other resources server.schema.scopes.where({ type: 'project' }).models.forEach((scope) => { server.createList('host-catalog', 2, { scope }, 'withChildren'); - server.createList('session', 4, { scope }, 'withAssociations'); server.createList('credential-store', 3, { scope }, 'withAssociations'); server.createList('target', 2, { scope }, 'withAssociations'); + // Sessions have target data. Create it after targets. + server.createList('session', 4, { scope }, 'withAssociations'); }); }