Page MenuHomePhabricator

Special:EditRecovery should say edit recovery is disabled for this user if it is
Closed, ResolvedPublic

Description

Reproduce:

Actual: displays "You have no unsaved changes."

Expected: the page should say you did not enable edit recovery, and (1) for registered users, provide a link to https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-editing where edit recovery can be enabled; (2) for non-registered (or temporary) users, instruct them to create a (permanent) account.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1019737 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/core@master] Edit Recovery: Add error messages to special page

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

Samwilson added subscribers: JSengupta-WMF, Samwilson.

Are the following error messages suitable?

  1. When not logged in:
Please [[Special:UserLogin|log in]] to use this feature.
  1. And when the preference is disabled (regardless of whether this is because the user has disabled it or the default state of it is disabled):
You can enable this feature in [[Special:Preferences#mw-prefsection-editing|your preferences]].

@JSengupta-WMF You might have an opinion here.

instruct them to create a (permanent) account.

I'm not sure about this (not that it's not a good idea); what is the usual messaging around temporary accounts? Are there existing messages we should be using here?

Note: Edit recovery feature supports recovering edits for anonymous and temporary users, if the feature is enabled by default (however it is currently disabled by default in Wikimedia wikis). cf T342738#9148104. So you need also to check whether edit recovery is enabled by default.

I think the approach overall is good. Rather than blocking the user, providing them option. We can combine it with

  1. Please [[Special:UserLogin|log in]] or create an account to use this feature.

So you need also to check whether edit recovery is enabled by default.

Good point. Although, not whether it's enabled by default, but just to check for that before checking if they're anon. I've updated the patch.

Rather than blocking the user, providing them option. We can combine it with

Sounds good; done.

Oh, actually, the create account link should probably be conditional because account creation is not always open. Does that matter?

Change #1019737 merged by jenkins-bot:

[mediawiki/core@master] Edit Recovery: Add error messages to special page

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

JWheeler-WMF lowered the priority of this task from Medium to Low.