Skip to content

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

Merged
merged 29 commits into from
Sep 20, 2022
Merged

Conversation

lava
Copy link
Member

@lava lava commented Sep 7, 2022

📝 Reviewer Checklist

Review this pull request by ensuring the following items:

  • All user-facing changes have changelog entries
  • User-facing changes are reflected on vast.io

@lava lava force-pushed the story/sc-36675/rest-endpoint branch from 314ea93 to aa2815e Compare September 7, 2022 13:58
@lava lava force-pushed the story/sc-36675/rest-endpoint branch 3 times, most recently from 5994a54 to 118c144 Compare September 12, 2022 14:43
@lava lava force-pushed the story/sc-36675/rest-endpoint branch from 118c144 to e42a965 Compare September 12, 2022 14:50
@lava lava marked this pull request as ready for review September 12, 2022 14:58
Copy link
Member

@dominiklohmann dominiklohmann left a 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.

@lava lava force-pushed the story/sc-36675/rest-endpoint branch 2 times, most recently from 8ef092e to 724306d Compare September 15, 2022 12:49
@lava lava changed the title Add initial REST API for VAST Add initial REST API server for VAST Sep 15, 2022
@lava lava force-pushed the story/sc-36675/rest-endpoint branch from 274ee4f to bb3448c Compare September 15, 2022 16:01
@lava lava force-pushed the story/sc-36675/rest-endpoint branch 2 times, most recently from d6d8796 to da490e5 Compare September 17, 2022 00:29
Copy link
Member

@dominiklohmann dominiklohmann left a 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.
Large parts of this commit were done while pairing
during the latest Tenzir Hackathon.

Co-Authored-By: @patszt
Co-Authored-By: @mavam
Generated using `python3 -m trustme`.
lava added 20 commits September 19, 2022 19:21
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.
@lava lava force-pushed the story/sc-36675/rest-endpoint branch from 2abbb3e to 6d2af8e Compare September 19, 2022 17:22
@lava lava force-pushed the story/sc-36675/rest-endpoint branch from 6d2af8e to 2e25017 Compare September 19, 2022 19:07
@lava lava merged commit 68a3ab1 into master Sep 20, 2022
@lava lava deleted the story/sc-36675/rest-endpoint branch September 20, 2022 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants