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

Allow to switch to OpenFoodFacts.net/dev from the hidden settings #848

Closed
teolemon opened this issue Jan 4, 2022 · 2 comments · Fixed by #851
Closed

Allow to switch to OpenFoodFacts.net/dev from the hidden settings #848

teolemon opened this issue Jan 4, 2022 · 2 comments · Fixed by #851
Assignees
Labels

Comments

@teolemon
Copy link
Member

teolemon commented Jan 4, 2022

What

  • In order to speed up Knowledge panel testing, allow to switch to OpenFoodFacts.net/dev from the hidden settings

Part of

@teolemon
Copy link
Member Author

teolemon commented Jan 4, 2022

@monsieurtanuki I would love if we could also enable forcing to openbeautyfacts.org/net, openpetfoodfacts.org/net, openproductsfacts.org/net to see how bad the app crashes.

@teolemon teolemon changed the title Allow switch to OpenFoodFacts.net/dev from the hidden settings Allow to switch to OpenFoodFacts.net/dev from the hidden settings Jan 4, 2022
monsieurtanuki added a commit to monsieurtanuki/smooth-app that referenced this issue Jan 4, 2022
… to PROD and DEV

Impacted files:
* `knowledge_panels_query.dart`: not using systematically `QueryType.PROD` anymore
* `main.dart`: at init time, sets the correct query type from preferences
* `product_query.dart`: new method `setQueryType` that uses the preferences to set the query type
* `user_preferences_dev_mode.dart`: added an item that switches the `QueryType` to `PROD` and `DEV`
@monsieurtanuki
Copy link
Contributor

@teolemon You can do that right now:

OpenFoodAPIConfiguration.uriProdHost = 'world.openwhatever.org';

monsieurtanuki added a commit that referenced this issue Jan 4, 2022
…DEV (#851)

Impacted files:
* `knowledge_panels_query.dart`: not using systematically `QueryType.PROD` anymore
* `main.dart`: at init time, sets the correct query type from preferences
* `product_query.dart`: new method `setQueryType` that uses the preferences to set the query type
* `user_preferences_dev_mode.dart`: added an item that switches the `QueryType` to `PROD` and `DEV`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants