HomePhabricator

Refactor MWMediaSearchWidget to use a queue and providers

Authored by Mooeypoo.

Description

Refactor MWMediaSearchWidget to use a queue and providers

Change the media search widget to work with resource queues and
providers. Create providers based on the user's filerepo settings
and aggregate their responses with the media queue. Stop asking
for more results from providers that are depleted.

Also fixes a rather nasty infinite-loop bug where the API returns
only very few images, and the UI keeps asking for more.

Bug: T78161
Bug: T88764
Change-Id: I65aed3446cd1f056476c56e6e04522c70e49e595
(cherry picked from commit aa9eb9545524242e9ff34de05d5b9b71485b81c4)

Details

Committed
KrenairFeb 10 2015, 11:12 PM
Parents
rEVED0054f33d7f6a: Use css class instead of jquery show/hide
Branches
Unknown
Tags
Unknown
References
refs/changes/61/189861/1
ChangeId
I65aed3446cd1f056476c56e6e04522c70e49e595