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: 956 - added product owner fields #961

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

monsieurtanuki
Copy link
Contributor

What

  • Added product owner fields.

Fixes bug(s)

Files

New file:

  • owner_field.dart: Helper class to compute the Product.ownerFields tags.

Impacted files:

  • api_get_product_test.dart: added a test for owner fields
  • openfoodfacts.dart: added new class OwnerField
  • product.dart: added field ownerFields and method getOwnerFieldTimestamp
  • product.g.dart: generated
  • product_fields.dart: refactored around localized product fields

New file:
* `owner_field.dart`: Helper class to compute the Product.ownerFields tags.

Impacted files:
* `api_get_product_test.dart`: added a test for owner fields
* `openfoodfacts.dart`: added new class `OwnerField`
* `product.dart`: added field `ownerFields` and method `getOwnerFieldTimestamp`
* `product.g.dart`: generated
* `product_fields.dart`: refactored around localized product fields
Copy link
Member

@teolemon teolemon left a comment

Choose a reason for hiding this comment

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

Thanks @monsieurtanuki 👍
The first step for protected products explainability

@monsieurtanuki monsieurtanuki merged commit bd3202b into openfoodfacts:master Aug 12, 2024
2 of 3 checks passed
@monsieurtanuki
Copy link
Contributor Author

Thank you @teolemon for your review!

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

Successfully merging this pull request may close these issues.

Add owner_fields field
2 participants