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

fix: 970 - refactored around new Prices API #971

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

monsieurtanuki
Copy link
Contributor

@monsieurtanuki monsieurtanuki commented Sep 7, 2024

What

  • Minor refactoring around minor changes in the new Prices API (Django).

Fixes bug(s)

Impacted files

  • api_prices_test.dart: refactored around new Prices API
  • open_prices_api_client.dart: different status code for "delete user session"; simplified updatePrice and updateProof
  • price_user.dart: field isModerator is now optional
  • price_user.g.dart: generated
  • session.dart: additional status codes and error messages

Impacted files:
* `api_prices_test.dart`: refactored around new Prices API
* `open_prices_api_client.dart`: different status code for "delete user session"; simplified `updatePrice` and `updateProof`
* `price_user.dart`: field `isModerator` is now optional
* `price_user.g.dart`: generated
* `session.dart`: additional status codes and error messages
@teolemon
Copy link
Member

teolemon commented Sep 7, 2024

Cc @raphodn

@teolemon
Copy link
Member

teolemon commented Sep 7, 2024

Thanks @monsieurtanuki 🙏

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 97.10145% with 2 lines in your changes missing coverage. Please review.

Project coverage is 75.47%. Comparing base (820d145) to head (5b8bb34).
Report is 54 commits behind head on master.

Files with missing lines Patch % Lines
lib/src/open_prices_api_client.dart 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #971      +/-   ##
==========================================
- Coverage   76.34%   75.47%   -0.88%     
==========================================
  Files         239      250      +11     
  Lines        8494     9183     +689     
==========================================
+ Hits         6485     6931     +446     
- Misses       2009     2252     +243     

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

@monsieurtanuki monsieurtanuki merged commit a8c696b into openfoodfacts:master Sep 7, 2024
5 checks passed
@monsieurtanuki
Copy link
Contributor Author

Thank you @teolemon for that very fast 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.

New Prices API in Django make some tests fail
3 participants