"FOUT" fout bij het selecteren van Favoriete badges

AI-generated summary

A user reported a bug where selecting or deselecting favorite badges in the Discourse interface resulted in a “FAILED” error, with the badge selection state not updating properly. The issue involved inconsistent behavior: clicking once to select or deselect a badge often failed, while a second click sometimes worked. The user noted that the badge count and star icon didn’t update correctly, and the Discourse banner disappeared when the error modal appeared. The issue was acknowledged by the team, and a fix was implemented via a pull request 12. After the fix was merged, the user confirmed the bug was resolved, and the topic was closed with the issue fully fixed.

  1. Two badges already selected.


  1. Click once to try to deselect a badge.


  1. Didn’t work.


  1. Click again to try to deselect the same badge.


  1. Worked this time.


  1. Click once to try to select a new badge (New User of the Month).

Repeated clicks to try to select yield the same result. I also noticed that the Discourse banner disappears underneath when the FAILED modal pops up.

4 likes

Sorry, @riking. Somehow I stepped on your topic title edit. No idea how I did that and I certainly didn’t intend to. Maybe another bug?

I manually corrected the topic title afterwards. I had somehow restored it to the original without even trying.

1 like

The bug persists. I cannot deselect or select favorite badges at all any more, so my displayed badges are now frozen in time.

2 likes

:musical_note: :snowflake:

They won’t go, they won’t go
Can’t choose badges anymore
They won’t go, They won’t go
They’re both frozen to the floor
They’re forever here and going to stay
Let the clicks rage on
I hope there’s a fix coming any day

:pray: :wrench:

2 likes

Thanks for the report. We’ll have it fixed.

2 likes

1st click will make the badge selected but the star icon is not displayed as “filled”, if refresh the page will see it was selected and the badge is displayed on user card properly.

But with the display issue, when user click the second time, the star icon will show as filled which actually cancel the selection.

I see it also happens on meta.

2 likes

Thanks for the feedback, we have assigned the work to one of our engineers and they’ll report back when completed.

3 likes

Harsh crowd…

:sweat_smile:

Thanks in advance to all involved for the upcoming fix though.

:slightly_smiling_face:

2 likes

This PR fixes problems with selecting favorite badges:
https://github.com/discourse/discourse/pull/13731

1 like

I can confirm that it works! :smiley:

I do have to remember to only single-click on the star, ignore the fact that the selected count doesn’t update, and refresh the page to see the proper results. If I click the star twice so that it appears to be unselected, the count at the top decrements, but when I refresh, the count reverts and the badge is still selected.

In essence, clicking the star once doesn’t seem to refresh the state of the page while clicking twice does. However, correct underlying functionality is only had from a single click and a manual refresh.

1 like

Oh, I’m able to reproduce the problem. Now it is some client side quirk. Jonathan, thanks for reporting! I’ll take care of this and post updates on this topic.

1 like

Hmm, wait, we haven’t merged it yet. I’m going to merge it tomorrow. @griffin my PR should fix the behaviour that you’re describing. I’ll double-check it anyway.

1 like

Interesting…

So it may be that the functionality was there, but that the appearance was deceptive. Either way, hopefully your PR will squash this bug once and for all! :slightly_smiling_face:

:bug: :hammer:

1 like

Ok, it’s merged now, after updating everything should work fine.

1 like

I can confirm that this bug is thoroughly smashed! :smiley:

This topic can be closed.

2 likes

This topic was automatically closed after 10 days. New replies are no longer allowed.