Page MenuHomePhabricator

Avoid "missing topic" warning on non-discussion pages
Open, Needs TriagePublic

Description

There are numerous redirects and old permalinks to articles that have been rewritten over the years with harmless fragments still part of the link that no longer point anywhere. These degrade gracefully and land readers at the top the article with either the information righ there, or easily fond via the table of contents (e.g. if the section got renamed), or simply not bothered if the link wasn't intended as a permalink in the first place (surprisingly common).

Example:

Screenshot 2024-04-15 at 14.23.45.png (520×1 px, 138 KB)

I was not able to reproduce the issue at:

It does also show on these pages on the same wikis, but that's expected as these are talk pages:

Event Timeline

The archive search will run on any page that might have discussions, this includes wgExtraSignatureNamespaces as well as talk namespaces. I suspect office and wikitech have the main namespace in that list.

As for non-existent pages, I suppose it is possible for a talk page to have been deleted but still have archives, although more likely there would be a redirect. Either way it's a rare edge case so I'm not too concerned.

@Esanders I vaguely recall a series of older DT tasks about the problems with DT using wgExtraSignatureNamespaces in this way to make a seemingly final decision that a page is a talk page when there are numerous indicators to the contrary, and/or requesting for ways to create a way to either opt-in or opt-out from that decision.

The main opt-in mechanism that I imagine would have been described there is __NEWSECTIONLINK__, which is clearly not set on any of these pages. Another (depending on the use case) is the complete lack of any comments/signatures currently on the page, although that's probably only enough signal to avoid creating reply payloads, not for creating new topics or finding archives (since some archive bots are configured to clear talk pages even if that means they become empty after that, sans for __NEWSECTIONLINK__ and whatever other header the page has).

I'm with this task being closed as a duplicate of a general task for "Avoid DT talk stuff on non-pages in signature-capable namespaces", if such task exists already, I imagine we won't need one for every DT feature, assuming that a solution will naturally piggyback off the same central switch.