From 3d0632cf106712188e33c9b9b52a21c687c8bb70 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Thu, 15 Apr 2021 19:18:07 +0100 Subject: [PATCH] ui: remove old nspace argument from the proxy instance repository (#10039) The extra argument meant that the blocking query configuration wasn't being read properly, and therefore the correct ?index wasn't being sent with the request. --- .changelog/10039.txt | 3 +++ ui/packages/consul-ui/app/services/repository/proxy.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .changelog/10039.txt diff --git a/.changelog/10039.txt b/.changelog/10039.txt new file mode 100644 index 000000000..90bd541c7 --- /dev/null +++ b/.changelog/10039.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: ensure proxy instance API requests perform blocking queries correctly +``` diff --git a/ui/packages/consul-ui/app/services/repository/proxy.js b/ui/packages/consul-ui/app/services/repository/proxy.js index ea76d7e70..8202bf877 100644 --- a/ui/packages/consul-ui/app/services/repository/proxy.js +++ b/ui/packages/consul-ui/app/services/repository/proxy.js @@ -36,7 +36,7 @@ export default class ProxyService extends RepositoryService { } @dataSource('/:ns/:dc/proxy-instance/:serviceId/:node/:id') - findInstanceBySlug(params, nspace, configuration) { + findInstanceBySlug(params, configuration) { return this.findAllBySlug(params, configuration).then(function(items) { let res = {}; if (get(items, 'length') > 0) {