שגיאת "נכשל" בבחירת תגיות מועדפות

סיכום מבוסס בינה מלאכותית

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 לייקים

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

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

2 לייקים

: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 לייקים

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

2 לייקים

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 לייקים

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

3 לייקים

Harsh crowd…

:sweat_smile:

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

:slightly_smiling_face:

2 לייקים

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

לייק 1

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

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

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

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

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

לייק 1

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

This topic can be closed.

2 לייקים

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