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

Have a route to list insight opportunities for a given type of tags #676

Closed
teolemon opened this issue Mar 28, 2022 · 1 comment
Closed
Assignees

Comments

@teolemon
Copy link
Member

teolemon commented Mar 28, 2022

What

The problem is that we have thousands of categories, so we should send thousands of requests to robotoff for just knowing which category has at least one question to answer.

A better option is to have a route returning something like that

{
	"remaining_category_to_validate": {
		  "en:waters": 10,
		  "fr:lasagnes": 3,
		  ...
	  }
}

Parameter would be type of insights (eg. type=category, or type=labels)

We should also be able to paginate, and sort on quantity.

If possible add an agribalyse=True filter (it use categories.json to get agribalyse and filter on them, eventually on python side).

Why

Useful for games on bonus / malus for eco-score (avoid making 5 or 6 requests).

Useful to get data for eco-score (agribalyse)

Part of

@alexgarel
Copy link
Member

This issue is solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants