Page MenuHomePhabricator

New subpage to list down subscribers for a newsletter
Closed, ResolvedPublic

Description

This task is about the Newsletter extension, and its requirements are:

  1. Create a new subpage at Special:Newsletter/id/subscribers which lists down all the usernames of subscribers to a given newsletter (read only for starters)
  2. The page should list out subscribers one line per row. You can take in this data from nl_subscribers table. I think there are existing functions which you can call to get the subscribers ( public function getSubscribersFromID( $id ) in https://github.com/wikimedia/mediawiki-extensions-Newsletter/blob/master/includes/NewsletterDb.php#L335 )
  3. This page should be viewable only for people with newsletter-manage rights
  4. There should be navigation links and subtitle links as well (you can copy this from existing code)

For a GCI student, this might look a bit huge task, but it would be really rewarding - and we would be happy to extend the deadline on considerable progress!

Event Timeline

MtDu added a subscriber: MtDu.Dec 20 2016, 7:22 PM

@01tonythomas,
I'm interested in pursuing this task later. However, looking at it now, I have no idea where to start. Is there any documentation about the process of creating a subpage?
Thanks!

@01tonythomas,
I'm interested in pursuing this task later. However, looking at it now, I have no idea where to start. Is there any documentation about the process of creating a subpage?
Thanks!

Thank you. I think you can start with adding in a new 'case' like https://github.com/wikimedia/mediawiki-extensions-Newsletter/blob/master/includes/specials/SpecialNewsletter.php#L63 - and then just writing in a custom View in the same file. Like we have 'ManageView' and 'SubscribeView'. You might need a 'SubscribersManageView'

Filip added a subscriber: Filip.Dec 21 2016, 6:57 PM
Pppery claimed this task.Dec 22 2016, 11:03 PM

Change 328845 had a related patch set uploaded (by Pppery):
Add a Special:Newsletter/id/subsrcibers page

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

Change 328845 merged by jenkins-bot:
Add a Special:Newsletter/id/subsrcibers page

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

Qgil awarded a token.Jan 3 2017, 7:59 PM