opencredit/BadgeOS-Community-Add-on

Achievement section in BuddyPress Profile has disappeared

Closed this issue · 2 comments

I tested this add-on using the stack add-on as well, which created a bunch of unnecessary badges to get me started. I deleted a few, then made a simple one to be awarded once on log-in. Everything worked great and the Achievement section showed in profile with the currently earned achievment. I then proceeded to rename the badge and achievement, and delete a few other others. Hoping to see the changes, I refreshed, and the profile section is gone, though the achievement is still awarded in the activity feed, and tracked in activity dashboard. It's also logged in events. The Achievement section however does not show up in the BP Profile anymore. Does this sound like a known issue?

The activity feed and log entries capture the achievement information exactly as they were when the achievement was earned and then stores that data in their own unique ways. If you rename the achievement, or change its image, or delete it or alter it in any other way, those changes are not propagated to the activity feed nor admin log (which is the desired behavior, because it ensures these remain historically accurate, and doesn't require them to query additional data on load).

The earned achievements list on the profile page IS showing data generated from a live query, however. And if the badges are deleted they will no longer appear. If you deleted the last of the badges of a given type the entire section will disappear. Is this what you're describing?

Please provide a link to your site if you can, and feel free to clarify if I misunderstood.

That is exactly what I'm describing. That clears up a lot of confusion for us working in a test/break-it environment, where I have people poking and prodding at my site. We will proceed with caution from here out.