From 9462e467d6f8cf5e6634d92645d247060541e1b3 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Mon, 20 Jul 2020 07:43:43 +0000 Subject: [PATCH 1/2] ui: Mark gateway retrieval as not reconcilable --- ui-v2/app/services/repository/service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-v2/app/services/repository/service.js b/ui-v2/app/services/repository/service.js index a62a70a53463..3560e0c8494d 100644 --- a/ui-v2/app/services/repository/service.js +++ b/ui-v2/app/services/repository/service.js @@ -6,8 +6,8 @@ export default RepositoryService.extend({ return modelName; }, shouldReconcile: function(method) { - switch (method) { - case 'findGatewayBySlug': + switch (true) { + case method === 'findGatewayBySlug' || method.indexOf('for-service') !== -1: return false; } return this._super(...arguments); From 501741a5aabc9b7e2e08f040cda9b8be9c4c5ba5 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Mon, 27 Jul 2020 08:13:48 +0000 Subject: [PATCH 2/2] Move switch to a condtional --- ui-v2/app/services/repository/service.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui-v2/app/services/repository/service.js b/ui-v2/app/services/repository/service.js index 3560e0c8494d..c8a278cae4d4 100644 --- a/ui-v2/app/services/repository/service.js +++ b/ui-v2/app/services/repository/service.js @@ -6,9 +6,8 @@ export default RepositoryService.extend({ return modelName; }, shouldReconcile: function(method) { - switch (true) { - case method === 'findGatewayBySlug' || method.indexOf('for-service') !== -1: - return false; + if (method === 'findGatewayBySlug' || method.indexOf('for-service') !== -1) { + return false; } return this._super(...arguments); },