Skip to content
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

Rework extraction API endpoints #339

Merged
merged 2 commits into from
Oct 13, 2022
Merged

Conversation

simonpeterhans
Copy link
Member

This PR fixes the broken REST API endpoints for feature extraction from items.

The session concept is roughly kept, meaning that an extraction session first has to be opened before items can be added, and should be closed once all items have been added.

The path to the extraction configuration to use can be specified in the config file with sessionExtractionConfigLocation.

The ExtractionContextProvider interface is used in GenericExtractionItemHandler instead of an IngestConfig to properly reuse the handler.


Since I will not have any time for further changes or contributions to this, @silvanheller asked me to open this PR as-is -- feel very free to make further changes to the respective branch.

A session can be started (the path to the extraction config to use is specified in the config) and ended, and objects can be queried for extraction while the session is running.
Copy link
Member

@silvanheller silvanheller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the work on fixing the endpoint! I've added a check for the config flag to allow / disallow extraction

@silvanheller silvanheller marked this pull request as ready for review October 13, 2022 13:17
@silvanheller silvanheller merged commit 2d8b104 into main Oct 13, 2022
@silvanheller silvanheller deleted the fix/extraction-api-session branch October 13, 2022 13:31
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.

2 participants