community-platform
community-platform copied to clipboard
[bug] How-to counter in profile looks broken?
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
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
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.
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
Fixed as part of #2428