https://gerrit.wikimedia.org/r/246675 implemented a JS subscription functionality which will show a success message if the API request was successful. It currently doesn't handle errors - but it should show error messages if the API request was unsuccessful. The API was rewritten in https://gerrit.wikimedia.org/r/#/c/244184/ to die on errors so we only need to make the javascript handle it.
Description
Description
Details
Details
Related Objects
Related Objects
Event Timeline
Comment Actions
Yes. This should be pretty easy. https://phabricator.wikimedia.org/diffusion/ENLT/browse/master/modules/ext.newsletter.js. doAPIRequest() returns a Promise object so we just need to add .fail() handling code here.
Comment Actions
Change 259655 had a related patch set uploaded (by PranavK):
Handle errors when attempting to unsubscribe on Special:Newsletters
Comment Actions
Change 259655 merged by jenkins-bot:
Handle errors when attempting to subscribe/unsubscribe on Special:Newsletters