-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 719 - Suggestion Manager with suggestions for the latest input (#…
…720) * feat: 719 - Suggestion Manager with suggestions for the latest input New files: * `api_suggestion_manager_test.dart`: Unit tests for `SuggestionManager` * `suggestion_manager.dart`: Manager that returns the suggestions for the latest input. Impacted files: * `open_food_api_client.dart`: added a comment mentioning `SuggestionManager`. * `openfoodfacts.dart`: exported new file `suggestion_manager.dart` * feat: 719 - fixed tests and added a verbose jsonDecode method Deleted file: * `api_get_autocompleted_suggestions_test.dart`: based on a deprecated method Impacted files: * `api_get_suggestions_test.dart`: fixed test * `available_attribute_groups.dart`: now uses `HttpHelper().jsonDecode` * `available_preference_importances.dart`: now uses `HttpHelper().jsonDecode` * `events.dart`: now uses `HttpHelper().jsonDecode` * `folksonomy.dart`: now uses `HttpHelper().jsonDecode` * `http_helper.dart`: new `jsonDecode` method that deals with typical OFF server html error pages * `invalid_barcodes.dart`: now uses `HttpHelper().jsonDecode` * `open_food_api_client.dart`: now uses `HttpHelper().jsonDecode` * `ordered_nutrient_test.dart`: now uses `HttpHelper().jsonDecode` * `product_from_json_test.dart`: now uses `HttpHelper().jsonDecode` * `status.dart`: now uses `HttpHelper().jsonDecode` * feat: 719 - added the "software error" case Impacted file: * `http_helper.dart`: added the "software error" case to `jsonDecode` method
- Loading branch information
1 parent
4953709
commit 5a31a09
Showing
15 changed files
with
310 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.