-
-
Notifications
You must be signed in to change notification settings - Fork 67
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: #350 - new method getProductFreshness #351
feat: #350 - new method getProductFreshness #351
Conversation
New file: * `ProductFreshness.dart`: Freshness of a [Product]. Impacted files: * `api_searchProduct_test.dart`: new test about "product freshness" * `openfoodfacts.dart`: new method `getProductFreshness`
Can we reserve the freshness namespace for this ? |
I'm not against changing the name. My point was to create a class (
And maybe later
The goal being to provide a method that helps to quickly monitor the state of a product: how complete it is, and how fresh the data is. |
|
Happy New Year!
Does that make sense? |
it does |
…ements" to freshness Impacted files: * `api_searchProducts_test.dart`: added test about `lastModified` * `openfoodfacts.dart`: added "last modified" and "states tags" to the query * `ProductFreshness.dart`: added `lastModified` and `ProductImprovement`s
@teolemon ping |
New file:
ProductFreshness.dart
: Freshness of a [Product].Impacted files:
api_searchProduct_test.dart
: new test about "product freshness"openfoodfacts.dart
: new methodgetProductFreshness