Management Server Jobs Pending View Incorrect
- 主要言語
- Java
- スター
- 3.1k
- フォーク
- 1.4k
- 平均マージ
- 6日 19時間
- マージ済み PR(30日)
- 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