Page MenuHomePhabricator

read-only mode for Notifications/Flow does not display user-friendly message
Open, Needs TriagePublic

Description

  1. Have read mode enable locally
  2. Switching to Edit a page will dispaly: "Warning: The database has been locked for maintenance, so you will not be able to save your edits right now."
  3. Open Notification panel and click on 'Mark as read' cross - marking as read is done with http://dev.wiki.local.wmftest.net:8080/w/api.php JSON response error:Object code:"readonly"; info:"The wiki is currently in read-only mode"
  4. Flow board:
  5. editing topic titles on Flow board gives

[062a2a5b] Exception Caught: Database is read-only: This wiki is currently in read-only mode!

  • posting a new topic or editing/posting replies - no responses received.

Note: When there is a case of db being in read-only mode (it was for for betalabs), wikitext pages (VE mode) would display a pop-up with explanation that the db in read only mode and suggesting to save edits later, etc.
Flow boards would display the following for any action on posts:

Event Timeline

Restricted Application added a project: Collaboration-Team-Triage. · View Herald TranscriptMar 14 2016, 9:16 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Etonkovidova renamed this task from read-only mode for Notifications/Flow does not display user-friendly error message to read-only mode for Notifications/Flow does not display user-friendly message .Mar 14 2016, 9:16 PM

At least in Echo, nothing appears to checking the promise that mw.echo.dm.NotificationsModel.markAllRead returns. So it looks like everything succeeded, and when you reload the page it shows up as unread again.

Etonkovidova updated the task description. (Show Details)Sep 14 2016, 9:11 PM
Etonkovidova updated the task description. (Show Details)Sep 14 2016, 9:17 PM