Wikimedia

Handle errors when attempting to (un)subscribe to newsletters on Special:Newsletters

Newsletter extension allows to manage and subscribe to newsletters on MediaWiki.

The extension adds a Special:Newsletters page which lists all the newsletters available on the wiki. This page also allows users to subscribe and unsubscribe from newsletters by clicking on a link on this page. There is a JavaScript click handler which lets the user subscribe/unsubscribe with one-click without navigating away from the page.

Currently, the click handler does not handle errors. The API already returns errors so your task is to add error handling code to this event handler.

See https://phabricator.wikimedia.org/T115874 for details.

Task tags

  • javascript
  • newsletter

Students who completed this task

Pranav Kumar

Task type

  • code Code
close

2015