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

Make the whole fields extraction + weights computation part of the catalogue search API #20

Open
minottic opened this issue Jul 8, 2022 · 0 comments

Comments

@minottic
Copy link

minottic commented Jul 8, 2022

I think to ease every RIs deployment and adoption we should create one new endpoint in every data catalogue search API (e.g. in the SciCat search-API), which takes a bearer token and triggers the whole flow (let's say /compute-weights).
Namely:

  1. using a json file provided to the search-API we define the collection+fields we want to take from the (scicat) DB
  2. the /compute-weights does all the data preprocessing (i.e. for every item in each collection extract the relevant fields and compose the body of the subsequent post to the scoring service)
  3. after 2, the /compute-weights posts the data to the compute service using "pss_items_url"
  4. after 3, the /compute-weights posts the "pss_compute_url"

2,3 and 4 could be implemented in disjoint endpoints triggered sequentially if preferred.

It's left to every facility to schedule the /compute-weights computation and do the authz/auth to scicat.

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

No branches or pull requests

1 participant