Management Server Jobs Pending View Incorrect
- 主要語言
- Java
- 星號
- 3.1k
- 分支
- 1.4k
- 平均合併
- 6 天 19 小時
- 30 天內合併 PR
- 32
描述
### 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).
貢獻指南
研究方向
從 Management Server Jobs Pending 檢視和 async job API 開始,然後使用 async_job 中 job_status 為 1 或 2 的已完成工作重現問題。判斷哪種所提議的篩選方式適合此專案,並確認 Pending Jobs 分頁只顯示狀態為 pending 的工作,同時不會隱藏確實處於 pending 狀態的工作。
由索引模型根據 Issue 內容生成。
評估
- 領域
- api, frontend
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100