The class WatchedItemStore has a function clearUserWatchedItems that is used to removed a user's watched items from the store by deleting related rows from watchlist table. The function needs to delete the items from the watchlist_expiry table as well.
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Remove expired items in WatchedItemStore::clearUserWatchedItems | mediawiki/core | master | +74 -6 |
Related Objects
Event Timeline
Change 587394 had a related patch set uploaded (by HMonroy; owner: HMonroy):
[mediawiki/core@master] Remove expired items in WatchedItemStore::clearUserWatchedItems
Change 587394 merged by jenkins-bot:
[mediawiki/core@master] Remove expired items in WatchedItemStore::clearUserWatchedItems
@dom_walden This code only affects a test in WatchedItemStoreIntegrationTest.php (https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/097c6b575d44848f6531a84c5556a7ca2ab507a7/tests/phpunit/includes/watcheditem/WatchedItemStoreIntegrationTest.php#198).
EditWatchlist/clear and EditWatchlist/raw have their own clearUserWatchedItems function, which was indeed tested in T245224
This ticket does not have anything specifically user-facing, but it impacts T245224 (which has been tested & confirmed to function properly). I'm marking this work as Done.