Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Admin Management Functionality #953

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

MattDavisRV
Copy link
Contributor

A similar PR may already be submitted!
Please search among the Pull request before creating one.

If your changes introduce breaking changes, please prefix the title of your pull request with "[BREAKING_CHANGES]". This allows for clear identification of such changes in the 'What's Changed' section on the release page, making it developer-friendly.

Thanks for submitting a pull request! Please provide enough information so that others can review your pull request.

Describe the change
This change includes functionality to manage your Org via Admin API. This change does not include all endpoints and functionality related to the Admin API. As I have time, and if no one else has added them, I will submit another PR for the missing functionality.

Provide OpenAI documentation link
Admin API Documentation

Describe your solution
Implemented functionality to:

  • Manage Admin API Keys
  • Manage Organization Invites
  • Manage Organization Users
  • Manage Projects
  • Manage Project Users
  • View Organization Costs

Tests
Tests have been created for all functionality added. Test methodology was copied from existing tests in the library.

Additional context
I'm unsure why the Sanity checks are failing, they were locally as well, but unrelated to my changes (jsonschema).

Issue: #XXXX

Copy link

codecov bot commented Mar 11, 2025

Codecov Report

Attention: Patch coverage is 54.93827% with 146 lines in your changes missing coverage. Please review.

Project coverage is 92.13%. Comparing base (774fc9d) to head (2ec4c2c).
Report is 88 commits behind head on master.

Files with missing lines Patch % Lines
admin_project.go 59.09% 18 Missing and 9 partials ⚠️
admin_user.go 50.98% 17 Missing and 8 partials ⚠️
admin_invite.go 58.62% 16 Missing and 8 partials ⚠️
admin_key.go 52.00% 16 Missing and 8 partials ⚠️
admin_project_user.go 63.63% 16 Missing and 8 partials ⚠️
admin_usage.go 33.33% 15 Missing and 7 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #953      +/-   ##
==========================================
- Coverage   98.46%   92.13%   -6.33%     
==========================================
  Files          24       33       +9     
  Lines        1364     2110     +746     
==========================================
+ Hits         1343     1944     +601     
- Misses         15      112      +97     
- Partials        6       54      +48     

☔ 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.

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.

1 participant