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

feat: allow search v1 queries using /cgi/search.pl to ask for product results in v3 format (e.g. packagings) #7770

Merged
merged 5 commits into from
Nov 29, 2022

Conversation

stephanegigandet
Copy link
Contributor

This is needed for openfoodfacts-dart, in order to have only one packagings data model used by the new API v3 for reading and writing products, and the old search API v1.

openfoodfacts/openfoodfacts-dart#617 (comment)

I also replaced search_tests.t by a new search_v1.t that uses functions from APITest.pm

Note: the differences of types in the JSON tests are just in the tests, the actual API returns the right types. This is an issue with our test framework that I have not been able to solve yet.

@sonarcloud
Copy link

sonarcloud bot commented Nov 29, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@stephanegigandet stephanegigandet merged commit 0a16526 into main Nov 29, 2022
@stephanegigandet stephanegigandet deleted the search-api-version branch November 29, 2022 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants