apache / apache/cloudstack

`ApiResponseHelper#createUsageResponse(Usage)` needs to be modularised (530 lines).

Open
#11,635 1 comment 0 reactions 0 assignees Claimed by @PrashantBhanage View on GitHub
good-first-issue type:stability
Dominant language
Java
Stars
3.1k
Forks
1.4k
Avg merge
6d 19h
Merged PRs (30d)
32

Description

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_

Contributor guide

Open the contributing guide

Research direction

Start at ApiResponseHelper#createUsageResponse(Usage), the 530-line method identified in the issue, and review pull request #13695 for the work already underway. The refactor is complete when the method is modularised into manageable pieces without changing the UsageRecordResponse behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cloud, infrastructure
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.