`ApiResponseHelper#createUsageResponse(Usage)` needs to be modularised (530 lines).
未關閉
good-first-issue
type:stability
- 主要語言
- Java
- 星號
- 3.1k
- 分支
- 1.4k
- 平均合併
- 6 天 19 小時
- 30 天內合併 PR
- 32
描述
this is adding only three lines to a 530 line method. No issue in the context but `public UsageRecordResponse createUsageResponse(Usage usageRecord)` needs to be refactorred (as many pieces of code).
_Originally posted by @DaanHoogland in https://github.com/apache/cloudstack/pull/11531#discussion_r2348098564_
貢獻指南
研究方向
從 issue 中所指出的 530 行方法 ApiResponseHelper#createUsageResponse(Usage) 開始,並查看 pull request #13695,了解已在進行的工作。在不變更 UsageRecordResponse 行為的情況下,將該方法模組化為易於管理的部分後,重構即完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java
- 領域
- cloud, infrastructure
- Issue 類型
- 重構
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100