23

Stack Overflow shows me questions under Questions tagged [electron] which do not have that tag, nor do they seem to ever have had it, which should rule out caching as the culprit.

For example, I'm seeing the following questions:

Neither question has the tag, but both have the word "electron" in their question body.

Is there some known behavior that causes these questions to appear on the "Questions tagged X" overview, while not really adding a visible tag?

12
  • 2
    Related: Did [cosmos] just get added as an [azure-cosmosdb] synomym?. I also noticed odd behaviour on the [ssms-19] and [ssms-18] tags.
    – Thom A
    Jul 25, 2022 at 15:57
  • 5
    Looks like there's a bug on /questions/tagged/[tag] endpoint. Searching for [tag] is:q still works properly. E.g. stackoverflow.com/…
    – Andrew T.
    Jul 25, 2022 at 16:01
  • 1
    Yeah, I'm seeing that too. Tagging for Dev review.
    – Machavity Mod
    Jul 25, 2022 at 16:01
  • 3
  • Same here, rdf yields lots of unrelated results (but sometimes related, so this seems like a feature gone wrong).
    – IS4
    Jul 25, 2022 at 16:17
  • 2
    Try this meta search for "Questions tagged [questions-tagged-x-shows-questions-without-tag-x]". :)
    – Laurel
    Jul 25, 2022 at 16:20
  • 1
    This is happening for all tags. Most questions that show up are not related to the tag.
    – Sean
    Jul 25, 2022 at 16:21
  • 1
    Also interesting to note that including multiple tags in the query also doesn't seem to suffer from this bug either; e.g. [cmd] is broken but [cmd] [python] isn't.
    – zcoop98
    Jul 25, 2022 at 16:33
  • 3
    I'm no longer seeing this issue, maybe it's already been fixed.
    – snwflk
    Jul 25, 2022 at 17:15
  • 1
    Interesting. I could definitely reproduce the issue earlier (I saw that the [electron] tag page earlier was returning questions that didn’t have the tag), but it doesn't seem to be happening anymore. Glad it’s fixed itself, I guess... I suppose I'll mark it as [status-completed], since whatever the issue was seems to be resolved now.
    – V2Blast
    Jul 25, 2022 at 17:43
  • 1
    @V2Blast This is definitely not resolved. I just had this problem with vulkan, directx, and direct3d, once I went to micro-optimization it went away for all the tags I view. The problem also persisted through forced refreshes.
    – vandench
    Jul 26, 2022 at 12:21
  • 3
    It looks like the devs have confirmed what was causing the issue, and will be deploying a fix soon. They'll post an answer once they've confirmed that the issue is fixed.
    – V2Blast
    Jul 26, 2022 at 16:10

1 Answer 1

13

Stack Overflow Developer responsible for this bug here! I've been investigating a different way to retrieve the Posts-associated-with-a-Tag data, starting with the Newest-sorted data and, unfortunately, when I turned it on for a short duration on the Stack Overflow site it exhibited an incorrect behaviour which I hadn't seen in the testing that I had performed locally and on other sites.

The new code is behind a feature flag and so can be toggled on or off easily, which explains why the bug appeared and then disappeared and then briefly came back.

I'm confident that it is now working correctly (following a code deployment yesterday) and the flag is enabled again here (meta) and on the Stack Overflow site - so those sites are using the new code.

Thanks for reporting this bug and please accept my apologies for the inconvenience!

7
  • Was the elasticsearch instance not enough to get this info? (AFAIK, it can return post that has a tag). Or is there another problem being solved?
    – Braiam
    Jul 29, 2022 at 10:53
  • Elastic is able to provide the list of posts that have the tag in question but it can't (so far as I understand) return the data needed to render the "Related Tags" component seen in the right hand column - and it was the code to retrieve that data which was causing too much load.
    – Dan Roberts StaffMod
    Jul 30, 2022 at 11:41
  • Is "related tags" something team specific? I don't see it in the public Q&A instance?
    – Braiam
    Jul 30, 2022 at 12:48
  • Or are you talking about the /tags route? That was... unexpected, considering that it's a many-to-many relationship in the DB already.
    – Braiam
    Jul 30, 2022 at 12:53
  • It's way down near the end of the page if you're on mobile, just above the Hot Network Questions section on the "tagged" page.
    – tripleee
    Jul 30, 2022 at 12:55
  • It this kind of experiment the cause of this issue? Aug 12, 2022 at 8:19
  • I suspect that the issue that @DiplomacyNotWar has linked has a different root cause. I'll be commenting on there if anyone wants more details.
    – Dan Roberts StaffMod
    Aug 12, 2022 at 10:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .