-
-
Notifications
You must be signed in to change notification settings - Fork 287
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: #2841 - from "AddNewProductPage", no need to be logged in to add data #2844
Merged
monsieurtanuki
merged 3 commits into
openfoodfacts:develop
from
monsieurtanuki:fix/#2841
Aug 26, 2022
Merged
fix: #2841 - from "AddNewProductPage", no need to be logged in to add data #2844
monsieurtanuki
merged 3 commits into
openfoodfacts:develop
from
monsieurtanuki:fix/#2841
Aug 26, 2022
Conversation
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
…ged in to add data Impacted files: * `add_basic_details_page.dart`: added parameter `bool isLoggedInMandatory` * `add_new_product_page.dart`: explicitly calls both pages `AddBasicDetailsPage` and `NutritionPageLoaded` with `isLoggedInMandatory: false` * `nutrition_page_loaded.dart`: added parameter `bool isLoggedInMandatory`
|
teolemon
added
the
Product addition
The easier it is to add a product and get Nutri-Score, Eco-Score, the happier the users.
label
Aug 26, 2022
teolemon
approved these changes
Aug 26, 2022
@teolemon Thank you for your review! |
Analyze and test |
cc @M123-dev |
@monsieurtanuki I believe this is related to working on a fork, it would work on a push to a branch, I believe |
@teolemon Maybe you're right, but I pushed this code the same way as my other PRs. |
Thank you guys! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Product addition
The easier it is to add a product and get Nutri-Score, Eco-Score, the happier the users.
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.
Impacted files:
add_basic_details_page.dart
: added parameterbool isLoggedInMandatory
add_new_product_page.dart
: explicitly calls both pagesAddBasicDetailsPage
andNutritionPageLoaded
withisLoggedInMandatory: false
nutrition_page_loaded.dart
: added parameterbool isLoggedInMandatory
What
saveAndRefresh
method has abool isLoggedInMandatory
parameter.true
, and actually we always used the default value: each time we used this method we checked first if the user was logged in. Which was not the desired behavior when creating a new product.false
in (only) 2 cases: insideAddNewProductPage
, forAddBasicDetailsPage
andNutritionPageLoaded
Fixes bug(s)