Title: `ApiResponseHelper#createUsageResponse(Usage)` needs to be modularised (530 lines). · Issue #11635 · apache/cloudstack · GitHub
Open Graph Title: `ApiResponseHelper#createUsageResponse(Usage)` needs to be modularised (530 lines). · Issue #11635 · apache/cloudstack
X Title: `ApiResponseHelper#createUsageResponse(Usage)` needs to be modularised (530 lines). · Issue #11635 · apache/cloudstack
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 #...
Open Graph 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)....
X 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)....
Opengraph URL: https://github.com/apache/cloudstack/issues/11635
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ApiResponseHelper#createUsageResponse(Usage)` needs to be modularised (530 lines).","articleBody":"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).\r\n\r\n_Originally posted by @DaanHoogland in https://github.com/apache/cloudstack/pull/11531#discussion_r2348098564_\r\n ","author":{"url":"https://github.com/DaanHoogland","@type":"Person","name":"DaanHoogland"},"datePublished":"2025-09-15T07:29:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/11635/cloudstack/issues/11635"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:602495bf-a0c9-cc55-fcea-5e27732e1d11 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A432:2E1914:E5E421:1373AB3:6A4D5DB3 |
| html-safe-nonce | ff2835e85cb2780b4febf09d1d3bbae6d21751c38a01b6f889eb2a945204e703 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDMyOjJFMTkxNDpFNUU0MjE6MTM3M0FCMzo2QTRENURCMyIsInZpc2l0b3JfaWQiOiI5MDQ2OTQ2MTg4NDIyOTE2MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6334464b4c8f6a7b537dc3b2f8e340cb4c1a8d1f44762fe0ec8e6d17d3729447 |
| hovercard-subject-tag | issue:3416672567 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/11635/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d75f41beefb2236c6f7568ae1dcee75ecb1e07dbc01118c0b613c7e1658c6d00/apache/cloudstack/issues/11635 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d75f41beefb2236c6f7568ae1dcee75ecb1e07dbc01118c0b613c7e1658c6d00/apache/cloudstack/issues/11635 |
| og:image:alt | 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).... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DaanHoogland |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441 |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/cloudstack git https://github.com/apache/cloudstack.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 9759448 |
| octolytics-dimension-repository_nwo | apache/cloudstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9759448 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3bdd3157ea1f0fd738d408eceeead721acf1dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width