Could be refactored into a WatchedItemStore:
- SpecialWatchlist
- SpecialEditWatchlist
Could be refactored into a WatchedItemStore:
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | ifried | T8964 Watch pages for a few days only (add an expiry time) | |||
Resolved | MusikAnimal | T100508 Watchlist expiry: Watch pages for a specified time frame (2013) | |||
Open | None | T129478 Refactor watchlist related code to use WatchedItemStore | |||
Resolved | Addshore | T129481 Refactor SpecialPages for Watchlist to use WatchedItemStore |
Change 276446 had a related patch set uploaded (by Addshore):
Add clearWatchedItems to WatchedItemStore
Change 277262 had a related patch set uploaded (by Addshore):
Use WatchedItemStore::countWatchers in SpecialWatchlist
Change 277276 had a related patch set uploaded (by Addshore):
Add WatchedItemStore::countWatchedItems
Change 277436 had a related patch set uploaded (by Addshore):
Use WatchedItemStore in SpecialEditWatchlist
Change 277444 had a related patch set uploaded (by Addshore):
Use WatchedItemStore::removeWatch in SpecialEditWatchlist
Change 277262 merged by jenkins-bot:
Use WatchedItemStore::countWatchers in SpecialWatchlist
Change 277444 merged by jenkins-bot:
Use WatchedItemStore::removeWatch in SpecialEditWatchlist
Change 277675 had a related patch set uploaded (by Addshore):
Add WatchedItemStore::getWatchedItemsForUser
Change 277772 had a related patch set uploaded (by Addshore):
Use WIS:addWatchBatch in SpecialEditWatchlist
So most of this now has patches up. Still to go are:
Okay, right now I think I would class this task as all in review.
The clearing stuff will not be complete until the wl_id field is on all production dbs
and the doMainQuery method on SpecialWatchlist should probably stay as it is for now, trying to factor this out quickly would likely lead to lots of pain.
Change 277772 merged by jenkins-bot:
Use WIS:addWatchBatchForUser in SpecialEditWatchlist
Change 277436 merged by jenkins-bot:
[mediawiki/core@master] Use WatchedItemStore clearing in SpecialEditWatchlist