`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