Management Server Jobs Pending View Incorrect
- Ngôn ngữ chính
- Java
- Star
- 3.1k
- Fork
- 1.4k
- Merge trung bình
- 6 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 32
Mô tả
### problem
The Management Server Jobs Pending view in the UI is showing ALL jobs in the async_job table for the management server id, not just those with pending status. This is due to the fact that the API call does not have an option to filter by job status, and the UI logic/view does not filter out non-pending jobs.

### versions
This was found in Cloudstack 4.19.0.1, but appears to be present in all later versions as well.
### The steps to reproduce the bug
1. Perform actions that cause async jobs to run (AttachVolume for example).
2. Once jobs are complete (job_status=1 or job_status=2 in database), view the management server's Pending Jobs tab.
### What to do about it?
This could be fixed in several ways:
1. Async job api updated to take a filter for job status and UI updated to provide it as input (better performance)
2. UI updated to filter the response data based on job status (could degrade if # of jobs becomes large)
3. UI enhanced to show job status data for the user (and maybe details when a job fails, for example).
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với chế độ xem Management Server Jobs Pending và async job API, sau đó tái hiện sự cố bằng các job đã hoàn tất trong async_job với job_status là 1 hoặc 2. Xác định cách tiếp cận lọc được đề xuất nào phù hợp với dự án và xác minh rằng tab Pending Jobs chỉ hiển thị các job có trạng thái pending mà không ẩn các job thực sự đang pending.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Lĩnh vực
- api, frontend
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100