Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
createPrice
- now we don't care if we cannot fully read the server response body, as long as the status code has the expected value. In order to prevent trying to recreate over and over a Price when the response body evolves.Fixes bug(s)
Part of
Files
New file:
location_type.dart
: Type of the Location.Impacted files:
api_prices_test.dart
: refactored with the additional fieldslocation.dart
: added fieldslocationType
andwebsiteUrl
location.g.dart
: generatedmaybe_error.dart
: now we accept valid but unreadable responsesopen_prices_api_client.dart
: safercreatePrice
method; refactored with the additional fieldsopenfoodfacts.dart
: added filelocation_type.dart
price.dart
: added fieldreceiptQuantity
price.g.dart
: generatedprice_total_stats.dart
: added fieldslocationTypeOsmCount
,locationTypeOnlineCount
,proofTypeGdprRequestCount
andproofTypeShopImportCount
price_total_stats.g.dart
: generatedproof.dart
: added fieldsreceiptPriceCount
andreceiptPriceTotal
proof.g.dart
: generatedupdate_price_parameters.dart
: added fieldreceiptQuantity
update_proof_parameters.dart
: added fieldsreceiptPriceCount
,receiptPriceTotal
,locationOSMId
andlocationOSMType