https://meta.discourse.org/badges/13/first-flag
EDIT: a dangling badge shows when associated user is deleted.
Debounce issues repro:
- around 300px height browser window
- Keep fast scroll down.
- I requested twice around
96
offset in three tries.
https://meta.discourse.org/badges/13/first-flag
EDIT: a dangling badge shows when associated user is deleted.
Debounce issues repro:
96
offset in three tries.That user was deleted – so that’s why they don’t show up.
Most of the default Badges are revocable.
For those, when the queries are run again revoked badges won’t show on their pages.
A few of the default Badges are not revocable i.e.
Reader
First Flag
Anniversary
Hot Link
Famous Link
For those, once they’re there, they’re there.
I guess the logic of First Flag is to award it when the Flag feature is used, regardless of whether or not the Flag was Agreed or not. It isn’t First Good Flag after all.
Unfortunately I don’t see an easy CSS fix for removing the div entirely or the “granted at” from the page.
Hiding them is quite easy but since the root cause is that badges are not revoked when a user is deleted.
Might worth cleaning them anyways
Yeah we should clean these things up on deletion… having a look at sorting this out.
Note, we already have “dependant destroy”, so something fishy is up.
This fixes the orphan issue:
https://github.com/discourse/discourse/commit/418bc4a844820352f7ab94400c5e51285b000967
This fixes the second issue:
https://github.com/discourse/discourse/commit/7ab153dac3c7111451d186486964dab9d7e5855f
But please, in future, one bug report per topic.