open-prices-frontend icon indicating copy to clipboard operation
open-prices-frontend copied to clipboard

Dashboard stuck at 0 prices ( number of proofs ok ) while userpage showing plausible number of prices and updating

Open serpico opened this issue 9 months ago • 2 comments

What

Main bother is there's no PriceActionMenuButton displayed to edit/delete prices or proofs

Platform (Desktop, Mobile, Hunger Games)

  • Both on mobile Android 5 using up-to-date Fennec browser and Desktop Firefox 125.0.3

serpico avatar May 05 '24 05:05 serpico

Hi @serpico , can you try to log out and log in again ?

It seems to be an old bug, that I think we solved. see #360

raphodn avatar May 05 '24 08:05 raphodn

I tried ( on both mobile and desktop ) I think my initial username was lowercase, I tried using Uppercase see if it would change something but it's like it's forcing the lowercase.

After your message I logged in with a different browser's profile, so as to avoid something related to password manager, using lowercase but to no avail, still 0 prices in dashboard.

serpico avatar May 05 '24 08:05 serpico

Is it still an issue ?

raphodn avatar Sep 08 '24 17:09 raphodn

Thanks a lot for following up.

It's even worse :)

Prices were always 0 and a couple days ago or last week proof went to 0 see screenshots from webapp and smoothie.

In smoothie, I'm not sure there supposed to be a number next to My proofs as there is one next to My price, but I can see my proofs and prices when I tap on the respective buttons.

0proof smoothie

I browsed a few issues about editing prices, changing locations, etc...some of them were solved, I poked around the UI in the webapp to see if I could find some menu in webapp to edit my prices but could find any ( can you post a screenshot if there is/are, indeed, menu(s) ? to change date, change location of price, etc )...and also thought maybe it's related if the webapp consider I have 0 price it makes sense that I'm not allowed to edit/modify/delete any.

serpico avatar Sep 08 '24 17:09 serpico

it's strange, when calculating user stats you have many prices & proofs

image

your dashboard still shows 0 ? are you logging in using your username ?

raphodn avatar Sep 23 '24 14:09 raphodn

your dashboard still shows 0 ? are you logging in using your username ?

Yep, still 0 for both Mes Prix and Mes Preuves as shown on the screenshot in the comment above https://github.com/openfoodfacts/open-prices-frontend/issues/571#issuecomment-2336764080

Yep only one username, and I see the same values as those appearing in your last screenshot when I go to top contributors

Is there another way ( link inside a page or whatever ) for registered user to access his proof's page ?

However :

https://prices.openfoodfacts.org/app/dashboard/proofs gives : proofs

https://prices.openfoodfacts.org/app/dashboard/prices gives : prices

Something must've happened 186 proofs ago ( 407-221 ) and didn't happen since...would that help if I gave you a date ?

serpico avatar Sep 23 '24 14:09 serpico

and same on mobile ? it could also be a browser cookie issue. I really don't know..

in https://prices.openfoodfacts.org/app/dashboard/prices the underlying API query is

https://prices.openfoodfacts.org/api/v1/prices?app_name=Open+Prices+Web+App&page=1&size=20&order_by=-created&owner=serpicozaure

raphodn avatar Sep 23 '24 15:09 raphodn

For the record, here are the screenshots on mobile, I'll try to log in with a different computer in a few weeks, see if that changes anything.

Screenshot_20240923-175351

serpico avatar Sep 23 '24 16:09 serpico

ok the big issue here is your email showing up, it should be your username. sorry for asking again, but did you try to log out, and log back in (with just your username, not your email) ?

image

raphodn avatar Sep 23 '24 16:09 raphodn

Don't apologize, all the less since you solved the issue :) I don't know if I didn't understand the first time, anyway I thought they were interchangeable. Now it shows a coherent number of proofs and prices. Thanks for your patience.

serpico avatar Sep 23 '24 16:09 serpico

keycloak is coming soon - https://github.com/openfoodfacts/openfoodfacts-auth - it should simplify this in the future !

raphodn avatar Sep 23 '24 16:09 raphodn