Page MenuHomePhabricator

Mentor's Talk page gets added to the mainspace category when a mentee's question header refers to a Category
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

Yesterday, a new mentee's question (diff) resulted in my User Talk page becoming an entry in the Languages of Nigeria category.

If I had not looked at the category and realised this, the impact would have been to leave ongoing litter in the category..

I suggest that when generating the Question from <mentee> on <topic> (<time date>) heading, the <topic> should be parsed and the "[[" + "]]" omitted if it commences with "Category:" as that text is consequential for mainspace.

Event Timeline

Etonkovidova subscribed.

Confirmed on testwiki wmf.4 - below are the steps to reproduce the issue

  • on testwiki go to Category:Plant page and click Edit
  • click to expand Help panel and post a question to your tutor
  • after posting your question, go to your mentor's User talk page and see that the page is added to Category:Plant

Additional issues:

  • The question header doesn't include the title of the page (the check box "Include page title with my question Category:Plant" was checked

Screenshot 2025-11-26 at 6.03.00 PM.png (2,026×408 px, 77 KB)

  • the mentor's user talk page is included into Category:Plant - https://test.wikipedia.org/wiki/Category:Plant
  • the source editor displays the page title == Question from [[User:Zilant17|Zilant17]] on [[Category:Plant]] (23:02, 26 November 2025) ==

I fixed this a long time ago (T289932)... Why did it come back?

Change #1308693 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@master] fix(QuestionPoster): Treat questions asked on categories correctly

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

Change #1308694 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@master] tests: E2E coverage for question posting on colon-prefixed namespaces

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

I fixed this a long time ago (T289932)... Why did it come back?

It didn't. It is a different bug (help desk questions vs mentorship questions). Fixed the latter one and actually wrote some tests for it.

Urbanecm_WMF triaged this task as Low priority.

Moving to sprint, as this was a very straightforward thing.

Urbanecm_WMF set the point value for this task to 0.5.Jul 8 2026, 5:45 PM
Urbanecm_WMF changed the point value for this task from 0.5 to 1.Thu, Jul 9, 8:17 AM

Change #1308693 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] fix(QuestionPoster): Treat questions asked on categories correctly

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

DMburugu subscribed.

The main patch appears to have resolved the issue. Issues can be filled in a follow up task

Change #1308694 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] tests: E2E coverage for question posting on colon-prefixed namespaces

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