Page MenuHomePhabricator

TitlesMultiselectWidget for Partial blocks suggests and accepts non-existent (aka redlink) pages
Closed, ResolvedPublic1 Estimated Story Points

Description

The 'Pages' text input box suggests and accepts non-existent (aka redlink) pages (example). These are rejected on submission, but this is bad design.

Screen Shot 2018-10-30 at 1.30.41 PM.png (301×756 px, 25 KB)

Screen Shot 2018-10-30 at 1.28.39 PM.png (733×761 px, 68 KB)

Acceptance criteria

  • The error messages should continue to appear if the admin somehow manages to get these through
  • The 'Pages' input field should not suggest redlink pages
  • The 'Pages' input field should not accept redlink pages

Event Timeline

I'm not familiar with the technical name for the unit that does it (sorry) but UploadWizard handles this when suggesting categories quite well, as does VisualEditor. Code probably lives somewhere therefore.

Thanks @jrbs! Luckily for us, this is a simple config change for our use of the widget.

Change 472451 had a related patch set uploaded (by Tchanders; owner: Tchanders):
[mediawiki/core@master] TitlesMultiselectWidget: pass through additional configs

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

Change 472451 merged by jenkins-bot:
[mediawiki/core@master] TitlesMultiselectWidget: pass through additional configs

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