Page MenuHomePhabricator

Watchlist label member store backend
Closed, ResolvedPublic

Description

We need a backend for managing the contents of the watchlist_label_member table, which contains associations between watched items and labels.

On the read side, WatchedItem could encapsulate a label list, which can be optionally populated by WatchedItemStore::getWatchedItemsForUser(). Compare WatchedItem::getExpiry().

Adding and removing a batch of label members could be done in WatchedItemStore by analogy with addWatchBatchForUser and removeWatchBatchForUser. The existing methods take a PageReference[].

Details

Related Changes in Gerrit:

Event Timeline

Change #1203784 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[mediawiki/core@master] Add label support to WatchedItemStore

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

Change #1203784 merged by jenkins-bot:

[mediawiki/core@master] Add label support to WatchedItemStore

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

Samwilson subscribed.

Yep.

I think the functionality of this is sufficiently tested in other tasks, so no need for QA here.