-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[ENH] Always pass Tenant and DB as query params #1558
base: main
Are you sure you want to change the base?
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
for key, value in kwargs.items(): | ||
if type == AuthzResourceTypes.DB and isinstance(value, CreateDatabase): | ||
return dict(value) | ||
elif type == AuthzResourceTypes.COLLECTION and isinstance( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: this was never used in the AuthzResourceTypes.COLLECTION
case
…core/chroma into beggers/tenant-db-only-as-params
kwargs["database"] = desired_database | ||
elif isinstance(kwargs["database"], chromadb.server.fastapi.types.CreateDatabase): | ||
kwargs["database"].name = desired_database | ||
if not request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only change to this file: remove a layer of indentation to make the code marginally cleaner
Description of changes
Summarize the changes made by this PR.
CreateTenant
andCreateDatabase
type and some auth code which only existed because of their existence.Test plan
How are these changes tested?
pytest
for python,yarn test
for jsDocumentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?