-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add remaining org CRUD endpoints + support deleting orgs on UI #8561
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…dpoint. Cascade org deletion to member, teams and keys Ensures any org deletion is handled correctly
…, and define response models for org delete + update
…dpoint to use DELETE
…` endpoint Allow admin to update member's role within org
…date member component shared between org and team member classes
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
krrishdholakia
added a commit
that referenced
this pull request
Feb 16, 2025
* feat(organization_endpoints.py): expose new `/organization/delete` endpoint. Cascade org deletion to member, teams and keys Ensures any org deletion is handled correctly * test(test_organizations.py): add simple test to ensure org deletion works * feat(organization_endpoints.py): expose /organization/update endpoint, and define response models for org delete + update * fix(organizations.tsx): support org delete on UI + move org/delete endpoint to use DELETE * feat(organization_endpoints.py): support `/organization/member_update` endpoint Allow admin to update member's role within org * feat(organization_endpoints.py): support deleting member from org * test(test_organizations.py): add e2e test to ensure org member flow works * fix(organization_endpoints.py): fix code qa check * fix(schema.prisma): don't introduce ondelete:cascade - breaking change * docs(organization_endpoints.py): document missing params * refactor(organization_view.tsx): initial commit creating a generic update member component shared between org and team member classes * feat(organization_view.tsx): support updating org member role on UI * feat(organization_view.tsx): allow proxy admin to delete members from org
krrishdholakia
added a commit
that referenced
this pull request
Feb 16, 2025
…8565) * refactor(teams.tsx): refactor to display all teams, across all orgs removes org switcher from navbar, simplifies viewing/creating teams on UI * fix(key_list.tsx): show user keys across all orgs make it easy to see flat list of keys across orgs on key table * style(all_keys_table.tsx): cleanup keys table * fix(user_dashboard.tsx): remove overflow-hidden in dashboard component * fix(teams.tsx): move org id placement in create team flow * fix(teams.tsx): support model selection on create team based on selected org * feat(view_key_table.tsx): move to using a filter component on keys page allows filtering keys by org and team * fix(filter.tsx): handle reset filter * fix: fix linting error * (Feat) - return `x-litellm-attempted-fallbacks` in responses from litellm proxy (#8558) * add_fallback_headers_to_response * test x-litellm-attempted-fallbacks * unit test attempted fallbacks * fix add_fallback_headers_to_response * docs document response headers * fix file name * test fix use mock endpoints for e2e files and ft tests * Revert "test fix use mock endpoints for e2e files and ft tests" This reverts commit c921d8d. * cleanup_azure_files * Add remaining org CRUD endpoints + support deleting orgs on UI (#8561) * feat(organization_endpoints.py): expose new `/organization/delete` endpoint. Cascade org deletion to member, teams and keys Ensures any org deletion is handled correctly * test(test_organizations.py): add simple test to ensure org deletion works * feat(organization_endpoints.py): expose /organization/update endpoint, and define response models for org delete + update * fix(organizations.tsx): support org delete on UI + move org/delete endpoint to use DELETE * feat(organization_endpoints.py): support `/organization/member_update` endpoint Allow admin to update member's role within org * feat(organization_endpoints.py): support deleting member from org * test(test_organizations.py): add e2e test to ensure org member flow works * fix(organization_endpoints.py): fix code qa check * fix(schema.prisma): don't introduce ondelete:cascade - breaking change * docs(organization_endpoints.py): document missing params * refactor(organization_view.tsx): initial commit creating a generic update member component shared between org and team member classes * feat(organization_view.tsx): support updating org member role on UI * feat(organization_view.tsx): allow proxy admin to delete members from org * Enable update/delete org members on UI (#8560) * feat(organization_endpoints.py): expose new `/organization/delete` endpoint. Cascade org deletion to member, teams and keys Ensures any org deletion is handled correctly * test(test_organizations.py): add simple test to ensure org deletion works * feat(organization_endpoints.py): expose /organization/update endpoint, and define response models for org delete + update * fix(organizations.tsx): support org delete on UI + move org/delete endpoint to use DELETE * feat(organization_endpoints.py): support `/organization/member_update` endpoint Allow admin to update member's role within org * feat(organization_endpoints.py): support deleting member from org * test(test_organizations.py): add e2e test to ensure org member flow works * fix(organization_endpoints.py): fix code qa check * fix(schema.prisma): don't introduce ondelete:cascade - breaking change * docs(organization_endpoints.py): document missing params * (Bug Fix) - Add Regenerate Key on Virtual Keys Tab (#8567) * add regenerate key to ui * ui fix key info * (Bug Fix + Better Observability) - BudgetResetJob: (#8562) * use class ResetBudgetJob * refactor reset budget job * update reset_budget job * refactor reset budget job * fix LiteLLM_UserTable * refactor reset budget job * add telemetry for reset budget job * dd - log service success/failure on DD * add detailed reset budget reset info on DD * initialize_scheduled_background_jobs * refactor reset budget job * trigger service failure hook when fails to reset a budget for team, key, user * fix resetBudgetJob * unit testing for ResetBudgetJob * test_duration_in_seconds_basic * testing for triggering service logging * fix logs on test teams fail * remove unused imports * fix import duration in s * duration_in_seconds * (Patch/bug fix) - UI, filter out litellm ui session tokens on Virtual Keys Page (#8568) * fix key list endpoint * _get_condition_to_filter_out_ui_session_tokens * duration_in_seconds * test_list_key_helper_team_filtering * bump: version 1.61.4 → 1.61.5 * ui fix tsx linting * ui new build * test_list_key_helper_team_filtering * ui new build * test_openai_fine_tuning * test_openai_fine_tuning --------- Co-authored-by: Ishaan Jaff <ishaanjaffer0324@gmail.com>
abhijitherekar
pushed a commit
to acuvity/litellm
that referenced
this pull request
Feb 20, 2025
…AI#8561) * feat(organization_endpoints.py): expose new `/organization/delete` endpoint. Cascade org deletion to member, teams and keys Ensures any org deletion is handled correctly * test(test_organizations.py): add simple test to ensure org deletion works * feat(organization_endpoints.py): expose /organization/update endpoint, and define response models for org delete + update * fix(organizations.tsx): support org delete on UI + move org/delete endpoint to use DELETE * feat(organization_endpoints.py): support `/organization/member_update` endpoint Allow admin to update member's role within org * feat(organization_endpoints.py): support deleting member from org * test(test_organizations.py): add e2e test to ensure org member flow works * fix(organization_endpoints.py): fix code qa check * fix(schema.prisma): don't introduce ondelete:cascade - breaking change * docs(organization_endpoints.py): document missing params * refactor(organization_view.tsx): initial commit creating a generic update member component shared between org and team member classes * feat(organization_view.tsx): support updating org member role on UI * feat(organization_view.tsx): allow proxy admin to delete members from org
abhijitherekar
pushed a commit
to acuvity/litellm
that referenced
this pull request
Feb 20, 2025
…erriAI#8565) * refactor(teams.tsx): refactor to display all teams, across all orgs removes org switcher from navbar, simplifies viewing/creating teams on UI * fix(key_list.tsx): show user keys across all orgs make it easy to see flat list of keys across orgs on key table * style(all_keys_table.tsx): cleanup keys table * fix(user_dashboard.tsx): remove overflow-hidden in dashboard component * fix(teams.tsx): move org id placement in create team flow * fix(teams.tsx): support model selection on create team based on selected org * feat(view_key_table.tsx): move to using a filter component on keys page allows filtering keys by org and team * fix(filter.tsx): handle reset filter * fix: fix linting error * (Feat) - return `x-litellm-attempted-fallbacks` in responses from litellm proxy (BerriAI#8558) * add_fallback_headers_to_response * test x-litellm-attempted-fallbacks * unit test attempted fallbacks * fix add_fallback_headers_to_response * docs document response headers * fix file name * test fix use mock endpoints for e2e files and ft tests * Revert "test fix use mock endpoints for e2e files and ft tests" This reverts commit c921d8d. * cleanup_azure_files * Add remaining org CRUD endpoints + support deleting orgs on UI (BerriAI#8561) * feat(organization_endpoints.py): expose new `/organization/delete` endpoint. Cascade org deletion to member, teams and keys Ensures any org deletion is handled correctly * test(test_organizations.py): add simple test to ensure org deletion works * feat(organization_endpoints.py): expose /organization/update endpoint, and define response models for org delete + update * fix(organizations.tsx): support org delete on UI + move org/delete endpoint to use DELETE * feat(organization_endpoints.py): support `/organization/member_update` endpoint Allow admin to update member's role within org * feat(organization_endpoints.py): support deleting member from org * test(test_organizations.py): add e2e test to ensure org member flow works * fix(organization_endpoints.py): fix code qa check * fix(schema.prisma): don't introduce ondelete:cascade - breaking change * docs(organization_endpoints.py): document missing params * refactor(organization_view.tsx): initial commit creating a generic update member component shared between org and team member classes * feat(organization_view.tsx): support updating org member role on UI * feat(organization_view.tsx): allow proxy admin to delete members from org * Enable update/delete org members on UI (BerriAI#8560) * feat(organization_endpoints.py): expose new `/organization/delete` endpoint. Cascade org deletion to member, teams and keys Ensures any org deletion is handled correctly * test(test_organizations.py): add simple test to ensure org deletion works * feat(organization_endpoints.py): expose /organization/update endpoint, and define response models for org delete + update * fix(organizations.tsx): support org delete on UI + move org/delete endpoint to use DELETE * feat(organization_endpoints.py): support `/organization/member_update` endpoint Allow admin to update member's role within org * feat(organization_endpoints.py): support deleting member from org * test(test_organizations.py): add e2e test to ensure org member flow works * fix(organization_endpoints.py): fix code qa check * fix(schema.prisma): don't introduce ondelete:cascade - breaking change * docs(organization_endpoints.py): document missing params * (Bug Fix) - Add Regenerate Key on Virtual Keys Tab (BerriAI#8567) * add regenerate key to ui * ui fix key info * (Bug Fix + Better Observability) - BudgetResetJob: (BerriAI#8562) * use class ResetBudgetJob * refactor reset budget job * update reset_budget job * refactor reset budget job * fix LiteLLM_UserTable * refactor reset budget job * add telemetry for reset budget job * dd - log service success/failure on DD * add detailed reset budget reset info on DD * initialize_scheduled_background_jobs * refactor reset budget job * trigger service failure hook when fails to reset a budget for team, key, user * fix resetBudgetJob * unit testing for ResetBudgetJob * test_duration_in_seconds_basic * testing for triggering service logging * fix logs on test teams fail * remove unused imports * fix import duration in s * duration_in_seconds * (Patch/bug fix) - UI, filter out litellm ui session tokens on Virtual Keys Page (BerriAI#8568) * fix key list endpoint * _get_condition_to_filter_out_ui_session_tokens * duration_in_seconds * test_list_key_helper_team_filtering * bump: version 1.61.4 → 1.61.5 * ui fix tsx linting * ui new build * test_list_key_helper_team_filtering * ui new build * test_openai_fine_tuning * test_openai_fine_tuning --------- Co-authored-by: Ishaan Jaff <ishaanjaffer0324@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
/organization/delete
endpoint. Cascade org deletion to member, teams and keysEnsures any org deletion is handled correctly
test(test_organizations.py): add simple test to ensure org deletion works
feat(organization_endpoints.py): expose /organization/update endpoint, and define response models for org delete + update
fix(organizations.tsx): support org delete on UI + move org/delete endpoint to use DELETE
feat(organization_endpoints.py): support
/organization/member_update
endpointAllow admin to update member's role within org
feat(organization_endpoints.py): support deleting member from org
test(test_organizations.py): add e2e test to ensure org member flow works
fix(organization_endpoints.py): fix code qa check
fix(schema.prisma): don't introduce ondelete:cascade - breaking change
docs(organization_endpoints.py): document missing params
refactor(organization_view.tsx): initial commit creating a generic update member component shared between org and team member classes
feat(organization_view.tsx): support updating org member role on UI
feat(organization_view.tsx): allow proxy admin to delete members from org