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: 1011 - new "getPriceProducts" method #1012

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

monsieurtanuki
Copy link
Contributor

What

  • New "get price products" method, needed for Smoothie's "top products" page

Part of

Files

New files:

  • get_price_products_order.dart: Field for the "order by" clause of "get price products".
  • get_price_products_parameters.dart: Parameters for the "get price products" API query.
  • get_price_products_result.dart: List of price product objects returned by the "get price products" method.
  • get_price_products_result.g.dart: generated

Impacted files:

  • api_prices_test.dart: new tests around new getPriceProducts method; minor refactoring
  • get_parameters_helper.dart: minor refactoring
  • open_prices_api_client.dart: new getPriceProducts method
  • openfoodfacts.dart: exported the new 3 files

New files:
* `get_price_products_order.dart`: Field for the "order by" clause of "get price products".
* `get_price_products_parameters.dart`: Parameters for the "get price products" API query.
* `get_price_products_result.dart`: List of price product objects returned by the "get price products" method.
* `get_price_products_result.g.dart`: generated

Impacted files:
* `api_prices_test.dart`: new tests around new `getPriceProducts` method; minor refactoring
* `get_parameters_helper.dart`: minor refactoring
* `open_prices_api_client.dart`: new `getPriceProducts` method
* `openfoodfacts.dart`: exported the new 3 files
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 86.36364% with 15 lines in your changes missing coverage. Please review.

Project coverage is 75.88%. Comparing base (820d145) to head (9a12865).
Report is 80 commits behind head on master.

Files with missing lines Patch % Lines
lib/src/prices/get_price_products_result.g.dart 56.25% 7 Missing ⚠️
test/api_prices_test.dart 95.23% 3 Missing ⚠️
lib/src/prices/get_parameters_helper.dart 33.33% 2 Missing ⚠️
lib/src/prices/get_price_products_result.dart 60.00% 2 Missing ⚠️
lib/src/open_prices_api_client.dart 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1012      +/-   ##
==========================================
- Coverage   76.34%   75.88%   -0.47%     
==========================================
  Files         239      255      +16     
  Lines        8494     9546    +1052     
==========================================
+ Hits         6485     7244     +759     
- Misses       2009     2302     +293     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Successfully merging this pull request may close these issues.

2 participants