Page MenuHomePhabricator

Find out whether it's possible to tell editors that the reason they can't save is due to a planned outage
Closed, ResolvedPublic0 Estimated Story Points


There's an error message that says "This wiki is in read-only mode". During Ops' planned outages due to the codfw migration, is it possible to make that error message say "This wiki is temporarily in read-only mode. Please try again later"?

Event Timeline

$wgReadOnly can be used to provide a reason in MediaWiki:Readonlywarning message.

The API provides this, VE does not appear to use it (yet)

How's this?

Unfortunately loading completely fails in read-only mode :( We should probably change that

So we can change ApiVisualEditor->isWriteMode to return false (ApiVisualEditorEdit->isWriteMode still returns true), and add a notice like the one shown on the wikitext editor.

You may wish to copy and paste your text into a text file and save it for later.

Don't think this part of the message is appropriate for VE though, @Glaisher

Change 276537 had a related patch set uploaded (by Alex Monk):
[WIP] Better handling of read-only mode

Jdforrester-WMF removed a project: Patch-For-Review.
Jdforrester-WMF set the point value for this task to 1.

Change 276537 merged by jenkins-bot:
Better handling of read-only mode

Answer: The message that editors saw said that the read-only mode was "probably due to planned maintenance".