You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2021/09/14 09:09:11 UTC
[skywalking-rocketbot-ui] branch master updated: fix: add filter
for serviceIds in services topology (#538)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-rocketbot-ui.git
The following commit(s) were added to refs/heads/master by this push:
new cd435b9 fix: add filter for serviceIds in services topology (#538)
cd435b9 is described below
commit cd435b9863a0ef6770caace905e5c63b592f32e5
Author: Fine0830 <fi...@outlook.com>
AuthorDate: Tue Sep 14 17:09:04 2021 +0800
fix: add filter for serviceIds in services topology (#538)
---
src/views/components/topology/topo-group/index.vue | 4 +++-
src/views/components/topology/topo-services.vue | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/views/components/topology/topo-group/index.vue b/src/views/components/topology/topo-group/index.vue
index 20902eb..426b361 100644
--- a/src/views/components/topology/topo-group/index.vue
+++ b/src/views/components/topology/topo-group/index.vue
@@ -84,7 +84,9 @@ limitations under the License. -->
}
private handleSelectGroup(id: string) {
this.SELECT_GROUP(id);
- this.GET_TOPO({ duration: this.durationTime, serviceIds: this.services.map((i) => i.key) });
+ const serviceIds = this.services.filter((item) => item.key).map((item) => item.key);
+
+ this.GET_TOPO({ duration: this.durationTime, serviceIds });
}
private fetchData() {
return Axios.post('/graphql', {
diff --git a/src/views/components/topology/topo-services.vue b/src/views/components/topology/topo-services.vue
index 17c6e9b..3071f80 100644
--- a/src/views/components/topology/topo-services.vue
+++ b/src/views/components/topology/topo-services.vue
@@ -102,7 +102,9 @@ limitations under the License. -->
}
private getServicesTopo() {
- const serviceIds = this.group.key ? this.currentServices.map((item) => item.key) : undefined;
+ const serviceIds = this.group.key
+ ? this.currentServices.filter((item) => item.key).map((item) => item.key)
+ : undefined;
this.GET_TOPO({
serviceIds,