apache / apache/hertzbeat

[BUG] <The routelink queryParams corresponding to the dashboard catagory is inaccurate>

Open
#1,076 2 comments 0 reactions 0 assignees View on GitHub
bug good first issue help wanted task
Dominant language
Java
Stars
7.4k
Forks
1.3k
Avg merge
1d 20h
Merged PRs (30d)
32

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

web-app\src\app\routes\dashboard\dashboard.component.html,routerLink‘/monitors' 对应的queryParams应该是catagory而不是app.因为appCountService.size、appCountService.availableSize、appCountService.unAvailableSize和appCountService.unManageSize 4个数值对应的类型都是catagory不是app,但点击链接时指向的是app=website。
例如service监控有11个,website监控10个、api监控1个,当我点击应用监控(service)时,只能查到10个(website)结果,会使用户产生歧义。
html比较容易修改,但是monitors接口应该是不支持catagory=service作为queryParams。
![image](https://github.com/dromara/hertzbeat/assets/60596094/be0e6ac7-01c0-480b-bdb2-9873201c8744)
![image](https://github.com/dromara/hertzbeat/assets/60596094/28163c1b-b94b-42a5-9d92-2660e7d55323)

### Expected Behavior

_No response_

### Steps To Reproduce

首页dashboard,点击应用监控(service),如果添加了多个service类型的监控指标,则只能查询到app=website的list,而不是所有service类型的list

### Environment

```markdown
HertzBeat version(s):docker 1.3.2
```

### Debug logs

_No response_

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start in web-app\src\app\routes\dashboard\dashboard.component.html and trace the monitors interface handling its query parameters. Reproduce the dashboard service-monitor click with multiple service types, then verify that the resulting list includes all service monitors rather than only website entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, java
Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.