Skip to content

Conversation

MathewClegg
Copy link

Add GetConsumedLicenses and GetLicenseSyncStatus methods to EnterpriseService for retrieving license consumption data and sync status for Enterprise Server instances.

Fixes #3754

Copy link

codecov bot commented Oct 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.13%. Comparing base (233fe03) to head (81403e3).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3755      +/-   ##
==========================================
+ Coverage   91.11%   91.13%   +0.01%     
==========================================
  Files         187      188       +1     
  Lines       16702    16731      +29     
==========================================
+ Hits        15218    15247      +29     
  Misses       1296     1296              
  Partials      188      188              

☔ View full report in Codecov by Sentry.
📢 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.

@MathewClegg MathewClegg force-pushed the implement-enterprise-license-endpoints branch from a04735c to b3b7258 Compare October 4, 2025 16:51
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @MathewClegg!
Another thing we try to do in this repo is err on the side of using omitempty (with field type pointers) in the JSON field tags because GitHub is known to add/remove fields from structs, and by standardizing we also get the benefits of the auto-generated getters for fields.

Add GetConsumedLicenses and GetLicenseSyncStatus methods to
EnterpriseService for retrieving license consumption data and
sync status for Enterprise Server instances.

Fixes google#3754

Signed-off-by: Mathew Clegg <mathew.clegg@live.se>
@MathewClegg MathewClegg force-pushed the implement-enterprise-license-endpoints branch from b3b7258 to fec22d2 Compare October 5, 2025 12:01
@gmlewis
Copy link
Collaborator

gmlewis commented Oct 5, 2025

As explained in CONTRIBUTING.md, please do not use force-push in PRs in this repo, as it makes it difficult for reviewers to see what changed since their last review. Thanks.

@MathewClegg
Copy link
Author

Thank you so much for your review. I'll make sure to not force push next time

Add nil-safe getter methods for ServerInstanceProperties, ServerInstances,
ServiceInstanceItems, and ServerItemProperties to follow go-github patterns

Signed-off-by: Mathew Clegg <mathew.clegg@live.se>
@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Oct 5, 2025
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

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

cc: @stevehipwell - @alexandear - @zyfy29

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.

Add support for Enterprise License API endpoints.
2 participants