-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[ENH] More routes in rust FE #3609
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
|
a52abbd
to
5cf14ee
Compare
@@ -103,6 +106,39 @@ impl Frontend { | |||
} | |||
} | |||
|
|||
pub async fn reset(&mut self) -> Result<(), ResetError> { |
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: I think we need to make this not do anything in non-test env. Otherwise we are giving users a hammer
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.
I might suggest no-oping it or doing whatever error we do in python when its disabled rn
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.
No-oped this endpoint
self.collections_with_segments_cache | ||
.clear() | ||
.await | ||
.map_err(|_| ResetError::Cache) |
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.
shouldn't this reset the log and the sysdb?
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.
I assume the log and sysdb doesn't really keep any states (i.e. they should be a thin client). For now I no-oped the endpoint according to the suggestion above
rust/frontend/src/server.rs
Outdated
} | ||
|
||
async fn version() -> &'static str { | ||
"0.7.0-dev" |
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 pull from Cargo.toml
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.
fixed
2f22758
to
7f03d2c
Compare
Description of changes
Summarize the changes made by this PR.
Test plan
How are these changes tested?
pytest
for python,yarn test
for js,cargo test
for rustDocumentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?