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
Ensure we help people send the right country codes and language codes #233
Comments
I think it's already fixed for languages: A solution for countries would be to
@teolemon Is that correct? May I start coding that? |
We discussed that again last evening with @alexgarel and @jasmeet0817 and the consensus seemed to go for a server side fix. Trying to gather a few more opinions before answering |
@teolemon Understood. |
…n "cc" New file: * `CountryHelper.dart`: country enums and their ISO-2-codes Impacted files: * `AbstractQueryConfiguration.dart`: deprecated `String? cc` in favor of `OpenFoodFactsCountry? country` * `api_getTaxonomy_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `api_getTaxonomyAdditives_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `api_getTaxonomyAllergens_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `api_getTaxonomyCategories_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `api_getTaxonomyCountries_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `api_getTaxonomyIngredients_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `api_getTaxonomyLabels_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `api_getTaxonomyLanguages_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `OpenFoodAPIConfiguration.dart`: deprecated `String? globalCC` in favor of `OpenFoodFactsCountry? globalCountry` * `openfoodfacts.dart`: minor refactoring * `ProductListQueryConfiguration.dart`: added parameter `OpenFoodFactsCountry? country` * `ProductQueryConfigurations.dart`: added parameter `OpenFoodFactsCountry? country` * `ProductSearchQueryConfiguration.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyAdditive.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyAllergen.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyCategory.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyCountry.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyIngredient.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyLabel.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyLanguage.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyQueryConfiguration.dart`: deprecated `String? cc` in favor of `OpenFoodFactsCountry? country`
Impacted files: * `api_getProduct_test.dart`: not using deprecated parameter `lc` anymore * `ProductListQueryConfiguration.dart`: deprecated parameters `lc` and `cc` * `ProductQueryConfigurations.dart`: deprecated parameters `lc` and `cc` * `ProductSearchQueryConfiguration.dart`: deprecated parameters `lc` and `cc` * `TaxonomyAdditive.dart`: deprecated parameter cc` * `TaxonomyAllergen.dart`: deprecated parameter cc` * `TaxonomyCategory.dart`: deprecated parameter cc` * `TaxonomyCountry.dart`: deprecated parameter cc` * `TaxonomyIngredient.dart`: deprecated parameter cc` * `TaxonomyLabel.dart`: deprecated parameter cc` * `TaxonomyLanguage.dart`: deprecated parameter cc`
New file: * `CountryHelper.dart`: country enums and their ISO-2-codes Impacted files: * `AbstractQueryConfiguration.dart`: deprecated `String? cc` in favor of `OpenFoodFactsCountry? country` * `api_getTaxonomy_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `api_getTaxonomyAdditives_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `api_getTaxonomyAllergens_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `api_getTaxonomyCategories_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `api_getTaxonomyCountries_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `api_getTaxonomyIngredients_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `api_getTaxonomyLabels_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `api_getTaxonomyLanguages_test.dart`: now using `OpenFoodAPIConfiguration.globalCountry` * `OpenFoodAPIConfiguration.dart`: deprecated `String? globalCC` in favor of `OpenFoodFactsCountry? globalCountry` * `openfoodfacts.dart`: minor refactoring * `ProductListQueryConfiguration.dart`: added parameter `OpenFoodFactsCountry? country` * `ProductQueryConfigurations.dart`: added parameter `OpenFoodFactsCountry? country` * `ProductSearchQueryConfiguration.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyAdditive.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyAllergen.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyCategory.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyCountry.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyIngredient.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyLabel.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyLanguage.dart`: added parameter `OpenFoodFactsCountry? country` * `TaxonomyQueryConfiguration.dart`: deprecated `String? cc` in favor of `OpenFoodFactsCountry? country` * feat: #233 - explicitly deprecated parameters `lc` and `cc` Impacted files: * `api_getProduct_test.dart`: not using deprecated parameter `lc` anymore * `ProductListQueryConfiguration.dart`: deprecated parameters `lc` and `cc` * `ProductQueryConfigurations.dart`: deprecated parameters `lc` and `cc` * `ProductSearchQueryConfiguration.dart`: deprecated parameters `lc` and `cc` * `TaxonomyAdditive.dart`: deprecated parameter cc` * `TaxonomyAllergen.dart`: deprecated parameter cc` * `TaxonomyCategory.dart`: deprecated parameter cc` * `TaxonomyCountry.dart`: deprecated parameter cc` * `TaxonomyIngredient.dart`: deprecated parameter cc` * `TaxonomyLabel.dart`: deprecated parameter cc` * `TaxonomyLanguage.dart`: deprecated parameter cc`
@teolemon #292 partially answers this issue, with explicit country codes. |
The text was updated successfully, but these errors were encountered: