Skip to content

feat: Add GetOrganizationUsageSummary and GetUserUsageSummary to BillingService - #4521

Merged
gmlewis merged 3 commits into
google:masterfrom
devaniketh:billing-usage-summary
Sep 10, 2026
Merged

feat: Add GetOrganizationUsageSummary and GetUserUsageSummary to BillingService#4521
gmlewis merged 3 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 (9ef86bf) to head (df103c8).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4521   +/-   ##
=======================================
  Coverage   98.53%   98.53%           
=======================================
  Files         195      195           
  Lines       17851    17875   +24     
=======================================
+ Hits        17590    17614   +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

@devaniketh
devaniketh requested a review from gmlewis September 6, 2026 17:40

@Not-Dhananjay-Mishra Not-Dhananjay-Mishra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@devaniketh
devaniketh requested a review from gmlewis September 10, 2026 15:32
@gmlewis

gmlewis commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Thank you, @Not-Dhananjay-Mishra!
Merging.

@gmlewis
gmlewis merged commit 9b114ec into google:master Sep 10, 2026
15 checks passed
@gmlewis gmlewis removed the NeedsReview PR is awaiting a review before merging. label Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants