community-platform icon indicating copy to clipboard operation
community-platform copied to clipboard

[bug] How-to counter in profile looks broken?

Open davehakkens opened this issue 3 years ago • 3 comments

Describe the bug The how-to counter in profiles doesn't work?

To Reproduce See precious-plastic how-tos listed on the hompage and see the counter in the profile

Expected behavior It should show all Approved how-tos

Screenshots broken-how-to-counter

davehakkens avatar May 18 '21 13:05 davehakkens

That's really weird, not sure if it's an issue with the counter not incrementing properly, or maybe when the feature went live we didn't migrate existing data? If anyone wants to take it on they'll probably need access to at least the dev database to see how things are working there, and possibly live also

chrismclarke avatar Jun 21 '21 04:06 chrismclarke

was looking at other accounts. Seems to be ok(in sync) for them. Might just be only for the Precious Plastic account. So not an urgent issue.

davehakkens avatar Jun 21 '21 13:06 davehakkens

OK, for a proper fix we would need to run a script to check all the backend howto data and recalculate, which I don't think we can easily do until we have local database emulator running correctly.

In the meantime probably the easiest way would either be to go to individual howtos and just click to update/save/republish them. That should trigger the backend function to update the user profile.

You can check things populated correctly by seeing if the howto id (which can be seen in the console when the howto is opened) appears in the list of userCreatedHowtos

image

image

chrismclarke avatar Jul 16 '21 19:07 chrismclarke

Fixed as part of #2428

iSCJT avatar Jun 22 '23 14:06 iSCJT