-
-
Notifications
You must be signed in to change notification settings - Fork 97
Add initial REST API server for VAST #2567
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
314ea93
to
aa2815e
Compare
5994a54
to
118c144
Compare
118c144
to
e42a965
Compare
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 looked at the code more in depth and left a bunch of comments on things that I think should be looked at.
There are no major issues with the code. It'd be nice if the REST endpoints didn't have to implement a whole actor interface, but I don't know how feasible that actually is.
The biggest remaining piece of work is probably documentation, both for the usage of the REST plugin and the plugin API of the REST endpoints.
I also gave this a quick spin locally, and it looks like it's working fine. Once we addressed the remaining comments I think we can quickly approve and merge this. I'm also really interesting in seeing how this integrates with #2574.
8ef092e
to
724306d
Compare
274ee4f
to
bb3448c
Compare
d6d8796
to
da490e5
Compare
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.
We peer-reviewed this. Approving this as-is modulo the remaining comments. We have a few things left to do in follow-ups.
This polishes the results of a recent hackathon by pulling some high-level support for request handling into libvast, enabling closed-source plugins to also provide routes.
Generated using `python3 -m trustme`.
Running the catalog detached hides it from the `test_coordinator`, which introduces race conditions in all tests that need to wait for a catalog result. Additionally, introduce a missing error handler in the index that would lead to silent self-destruction of the index.
Add a missing error handler in the index that would lead to silent self-destruction if the catalog returns an error or wasn't spawned.
Without these, failure to start the server will be silen when run as a 'start command'.
This used to be updated in an earlier commit, but was accidentally reverted.
2abbb3e
to
6d2af8e
Compare
6d2af8e
to
2e25017
Compare
📝 Reviewer Checklist
Review this pull request by ensuring the following items: