Page MenuHomePhabricator

Handle article already exists in manual outline selection case
Closed, ResolvedPublic2 Estimated Story Points

Description

As part of the Article Guidance work (T396029), the workflow takes in consideration when the Wikipedia has already an article with the provided title to invite users to update the title. This was specified and implemented in T421196: Support case where the article title is already taken.

A regression seem to have affected this part of the process. Currently, it is possible to select an article that already exists and proceed with the workflow without an appropriate handling.
An example is illustrated below based on the following steps:

  1. Start a new article on Simple English Wikipedia with the title "Blues".
  2. Continue through the Article Guidance Workflow, observing that the UI behaves as if the article didn't exist.
  3. Reach Visual Editor and observe how the existing article contents are loaded.

Event Timeline

Pginer-WMF triaged this task as High priority.
Pginer-WMF added a project: Regression.
Pginer-WMF moved this task from Backlog to Prioritized on the LPL Hypothesis board.

Change #1294378 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ArticleGuidance@master] Check for title taken on manual outline selection

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

Nikerabbit set the point value for this task to 2.Jun 1 2026, 12:48 PM
Nikerabbit subscribed.

Do we know what caused the regression?

Do we know what caused the regression?

Not a regression. Checking for title already taken was not done in the manual outline selection code path.

Nikerabbit renamed this task from Regression for handling cases when article title is already taken to Handle article already exists in manual outline selection case.Jun 1 2026, 12:58 PM
Nikerabbit removed a project: Regression.
Nikerabbit updated the task description. (Show Details)

Change #1294378 merged by jenkins-bot:

[mediawiki/extensions/ArticleGuidance@master] Check for title taken on manual outline selection

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

This is working fine but this Selected subject seems to only work for items selected from wikidata search but not for manual outlines. @SBisson shall we do it as part of separate task, or move this one back to dev? I realized this may need a little bit different treatment as they are not selecting subject here rather choosing a manual outline

New Article Moto G4 (36).png (1,080×1,920 px, 185 KB)

@SGautam_WMF yes, maybe show the selected outline in this case?

I will add the design details for this one, for now, moving it to Prioritized column

en.t427327.mediawiki.mwdd.localhost_8080_w_index.php_title=Special_NewArticle&debug=true&agvariant=current&mobileaction=toggle_view_mobile(iPhone XR).png (828×1,792 px, 120 KB)

@SBisson yes, we can show selected outline in this case to keep it consistent with the suggested items. One more change we can consider is for "Selected subject" label, style it with Codex small text, bold weight, and subtle color instead of the current extra-large heading style

SBisson changed the task status from Open to In Progress.Jun 17 2026, 3:28 PM
SBisson moved this task from Prioritized to In-progress on the LPL Hypothesis board.

@SGautam_WMF what about the text of the label? "Selected subject" refers to the exact wikidata item. When manually selecting an outline, we generally refer to it as the "topic". Should we update the label to "Selected topic" ?

From what I can see the style is already small and subtle so I'll just apply the bold.

@SGautam_WMF what about the text of the label? "Selected subject" refers to the exact wikidata item. When manually selecting an outline, we generally refer to it as the "topic". Should we update the label to "Selected topic" ?

From what I can see the style is already small and subtle so I'll just apply the bold.

good observation, I am wondering how about "Selected article type" ? on size, I see it as 20px in inspect element

Screenshot 2026-06-17 at 9.14.10 PM.png (884×1,700 px, 188 KB)

Change #1303498 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ArticleGuidance@master] Show selected outline in title-conflict step

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

Change #1303498 merged by jenkins-bot:

[mediawiki/extensions/ArticleGuidance@master] Show selected outline in title-conflict step

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