Skip to content

feat: Add GetOrganizationUsageSummary and GetUserUsageSummary to BillingService - #4521

Open
devaniketh wants to merge 2 commits into
google:masterfrom
devaniketh:billing-usage-summary
Open

feat: Add GetOrganizationUsageSummary and GetUserUsageSummary to BillingService#4521
devaniketh wants to merge 2 commits into
google:masterfrom
devaniketh:billing-usage-summary

Conversation

@devaniketh

Copy link
Copy Markdown
Contributor

What this PR does

Implements the enhanced billing platform usage summary endpoints for organizations and users:

  • GET /organizations/{org}/settings/billing/usage/summary via BillingService.GetOrganizationUsageSummary
  • GET /users/{username}/settings/billing/usage/summary via BillingService.GetUserUsageSummary

These endpoints provide the organization- and user-level counterparts to EnterpriseService.GetUsageSummary.

Checklist

  • Unit tests added covering both methods and error paths
  • Generated accessor methods and tests via ./script/generate.sh
  • ./script/generate.sh --check passed
  • ./bin/custom-gcl run ./github/... passed with 0 issues
  • ./script/test.sh passed

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Sep 4, 2026
@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.53%. Comparing base (3a439fa) to head (2ff0c3e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4521   +/-   ##
=======================================
  Coverage   98.53%   98.53%           
=======================================
  Files         195      195           
  Lines       17848    17872   +24     
=======================================
+ Hits        17587    17611   +24     
  Misses        261      261           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmlewis gmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @devaniketh!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.

cc: @stevehipwell - @alexandear - @Not-Dhananjay-Mishra

@devaniketh

Copy link
Copy Markdown
Contributor Author

hey @stevehipwell @alexandear @Not-Dhananjay-Mishra if there's any issue let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NeedsReview PR is awaiting a review before merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants