Page MenuHomePhabricator

Talk page empty state appearing in project namespace
Closed, ResolvedPublic

Description

Behavior

  1. Visit a page in the project namespace that has not yet been created (e.g. https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Wikipedia:Village_pump1)

Actual

  1. ❗️Notice the talk page empty state experience is visible:

Screen Shot 2021-08-05 at 5.17.55 PM.png (1×2 px, 244 KB)

Expected

  1. ✅ The "normal" page appears:

Screen Shot 2021-08-05 at 5.18.51 PM.png (1×2 px, 383 KB)

Done

  • Expected behavior is implemented

Event Timeline

It's appearing in any namespace where discussiontools would apply. You'll note that Wikipedia: pages get reply links, e.g. https://en.wikipedia.beta.wmflabs.org/wiki/Wikipedia:Village_pump911

If we don't want it to appear on a page like this, we'll need to come up with some new heuristic.

I've thought that we intended to add the empty state only for "real" talk pages (that is, the "Talk" and "Blah talk" namespaces). The copy seems to assume that as well, since it refers to the subject page.

T274832 did have a list. I think I can approximate the correct result by checking for "discussion enabled" + $title->isTalkPage()

Change 710611 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/DiscussionTools@master] Only show the empty state on talk namespaces

https://gerrit.wikimedia.org/r/710611

Change 710611 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Only show the empty state on talk namespaces

https://gerrit.wikimedia.org/r/710611

@Ryasmeen and I checked this, we got the expected result. It works fine.

@Ryasmeen and I checked this, we got the expected result. It works fine.

Excellent, @EAkinloose + @Ryasmeen!