-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[ENH] Create database flow e2e #3558
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
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
let segment_api = SegmentApi::try_from_config(&config) | ||
.await | ||
.expect("Error creating SegmentApi from config"); | ||
let server = FrontendServer::new(segment_api); |
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: we'll probably want to do the tokio spawn and join handle pattern so we can handle sigterm gracefully.
rust/frontend/src/api.rs
Outdated
use crate::config::FrontEndConfig; | ||
|
||
#[async_trait::async_trait] | ||
pub trait ServerApi { |
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.
Should this be outside of frontend? As bindings also wants to use it. I could go either way now that im writing this.
rust/frontend/src/api.rs
Outdated
@@ -1,44 +1,24 @@ | |||
use chroma_config::Configurable; |
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.
nit:filename
match res { | ||
Ok(_) => Ok(()), | ||
Err(e) => match e { | ||
CreateDatabaseError::AlreadyExists => Err(StatusCode::CONFLICT), |
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.
leave a TODO: we can probably map these to http
Description of changes
Summarize the changes made by this PR.
Improvements & Bug fixes
New functionality
Test plan
How are these changes tested?
pytest
for python,yarn test
for js,cargo test
for rustDocumentation Changes
None