Wikimedia

Tracker: Squash TicketWatcher and TopicWatcher classes

Knowledge expectation

Student is expected to know Python.

Problem

Currently, we have two models that are watchable (Ticket and Topic). Who watches what is stored in TicketWatcher/TopicWatcher models.

For easier extending of notifications to other objects (like Grants or even whole objects) having single Watcher model (with "type" attribute) would be useful, so making an object watchable wouldn't mean to add new database tables.

This should include a data migration to migrate data from TicketWatcher and TopicWatcher to the new model.

Please claim the task on Phabricator (linked below) when you claim the task on the GCI website.

Please submit your work into Gerrit. If you want to learn how to use Gerrit first, you can claim this task.

Materials

Task tags

  • python
  • django

Students who completed this task

arcaynia

Task type

  • code Code
close

2018