-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
Nutrition input issues #4627
Comments
While looking at the item listings in the website, it appears that the app is correctly updating the values. The values just do not appear in the app. It retrieves the serving size, but not any other nutritional information. All nutritional information is received if the product has been created/edited by other users or by the same account via the website. If the app is used to edit the information, this will then not be displayed in the app even after the values have been edited via the website or by another user. This appears to only affect the edit screen for nutritional information. All other information updates. I have also tried restarting the device and clearing the cache, though this did not correct the issue. |
I have noticed that this issue may be related to #4604. Within this @monsieurtanuki mentioned having authentication issues within the dev menu. I also have a series of "Invalid user id and password" exceptions that appear to be related to barcodes of items I have attempted to edit. During this, the debugging information states "IsLoggedIn: true". I managed to temporarily rectify the issue and have the item update by clearing all pending items, logging out and back in again. After doing this I was able to update most on a new item before pending items appeared again. Most were a different issue, "not started yet", with a final issue of "Invalid user" etc. By logging out and in, all of the prior issues cleared and the item was updated. The authentication issue quickly reappeared on following items, causing failure to edit nutritional information or packaging information. I have since tried to clear and re-login, this sometimes helps but not every time. While there is an authentication issue within the Pending contributions list, the app does not allow the "Calculate" fragment to be displayed within the nutritional information menu. Clearing the error allows this to work again. Edit: Clearing these "Could not save product...Invalid user id and password" exceptions fixes the issue of information not appearing within the nutritional information page, along with the fragment not being shown. Thank you @monsieurtanuki. Are these exception tasks stopped on their own, or do they require manual removal? I am glad this fixes this specific issue, though it does not address the issue of the exceptions happening in the first place. Should I open a new issue for this? |
Hi @NixedSec!
Those are interesting issues. Please create a specific issue in each case. |
Having the same issue as the OP. Here is a screencast (wait till the end, it worked before but well): screen-20231212-103804.mp4(Download video if it does not play.) I have to say that this only happened to me for the first time now and what I was doing differently was I entered the nutrition facts per piece/portion (German per Portion). Editr: I also have to add recently I often get the error "Cannot load nutrition facts" (from cache apparently), but I usually ignore this, because when I tap on the button again the data is loaded. Logcat
Smartphone modelDevice: Fairphone 4 (FP4) |
What
While using the Android app from F-Droid I noticed that it appears I can not provide any details into the Nutrition Facts section. All other parts of the app seem to work well: adding a new item, adding photos, adding details into other sections. If I correct any sections within Nutrition Facts, it appears to accept the changes and says it will update in the background. Section 2 of the Nutri-Score goes green and the prompt for computing the NOVA score goes away.
If I leave the item and go back, the NOVA prompt reappears and when looking at the Nutrition Facts section: all sections are then blank, the 100g/per serving switch remains in the correct position and the serving size info remains correct. This behaviour continues even after checking a few hours later (in case it was just a delay).
All in all, everything I have interacted with works except any nutrition values are wiped even if they had values in prior.
Steps to reproduce the behavior
Alternatively:
Expected behavior
Information entered or updated should be committed.
Why
All items edited are having their values cleared.
Part of
Smartphone model
The text was updated successfully, but these errors were encountered: