Page MenuHomePhabricator

Mobile should have better support for TitleBlacklist errors
Closed, ResolvedPublic

Description

On Desktop, if you try to create an article that is title blacklisted (via the TitleBlacklist extension), it gives you the following error as soon as you click the edit button:

You do not have permission to create pages, for the following reason: The title "Heck" has been banned from creation. It matches the following blacklist entry: .*heck.*

On mobile, it lets you write the article, but when you try to save it, it gives you a generic "Error, edit not saved" toast error.

We should change the behavior on mobile, so that it checks for title blacklist status when you first hit the edit button, and give the user a more specific error message.


Version: unspecified
Severity: enhancement

Details

Reference
bz63335

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:02 AM
bzimport set Reference to bz63335.
bzimport added a subscriber: Unknown Object (MLST).

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1829

We should tackle this before refining article creation through MobileFrontend. I've associated this bug with the relevant story in the backlog, https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1899

It's not really clear how we tackle this until we focus on article creation.

matmarex claimed this task.

After the changes in T228897, the usual desktop error message is used now. Here's how it looks like in the mobile editor:

image.png (667×375 px, 24 KB)

Unfortunately the error is still only shown when attempting to save, rather than when opening the editor. There is a separate task for this problem: T145304