Page MenuHomePhabricator

[Task] Consolidate watchlist and recent changes hook query code in Wikibase Client
Closed, ResolvedPublic

Description

The wikibase code that handles watchlist query was written when:

  1. options were not exposed to the hook
  2. were arrays instead of objects.
  3. SpecialRecentChangesFilters and SpecialWatchlistFilters hooks were used instead of ChangesListSpecialPageFilters (see I9cceda5d2dcf)
  4. SpecialRecentChangesQuery and SpecialWatchlistQuery hooks were used instead of ChangesListSpecialPageQuery (see I9cceda5d2dcf)

We should change from the old hooks that needed separate handling for Watchlist and RC to the new generic hooks.

We can also now make use of FormOptions, which would allow us to hook in more cleanly.

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:00 AM
bzimport set Reference to bz62798.
bzimport added a subscriber: Unknown Object (MLST).

perhaps we can even find a way to abstract / improve handling of these queries more generally.

it's a bit icky the way we modify the queries.

Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher raised the priority of this task from Low to High.Oct 13 2015, 12:11 PM

Setting to high in hopes that this will help us with enhanced recent changes support

Jonas renamed this task from Consolidate watchlist and recent changes hook query code in Wikibase Client to [Task] Consolidate watchlist and recent changes hook query code in Wikibase Client.Nov 2 2015, 11:44 AM
Jonas updated the task description. (Show Details)
Jonas set Security to None.
Tobi_WMDE_SW lowered the priority of this task from High to Medium.Nov 3 2015, 2:29 PM
daniel subscribed.

I have updated the description of this task to reflect the fact that core now offers hooks that can be used to modify the behavior of Watchlist and RecentChanges consistently. There is no more need to share code between the handlers for Watchlist and RecentChanges, because it will now be the same handler.

Change 252162 had a related patch set uploaded (by Aude):
Switch to use ChangesListSpecialPageFilters hook in client

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

Next steps:

  • investigate current situation for enhanced recent changes after the switch of these hooks

Change 252162 merged by jenkins-bot:
Switch to use ChangesListSpecialPageFilters hook in client

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

maybe I should have made subtasks for this, but https://gerrit.wikimedia.org/r/#/c/252173/ (part 2) of this is still in doing...

Change 254681 had a related patch set uploaded (by Aude):
Consolidate watchlist / recent changes query hook handling

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

Change 252173 abandoned by Aude:
Consolidate watchlist / recent changes query hook handling [WIP]

Reason:
see Ib660a01 instead

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

Change 254681 merged by jenkins-bot:
Consolidate watchlist / recent changes query hook handling

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

daniel moved this task from Review to Done on the Wikidata-Sprint-2015-11-17 board.