Last modified: 2012-07-31 15:49:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T38354, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36354 - ForeignDBViaLBRepo does not implement fetchImageQuery
ForeignDBViaLBRepo does not implement fetchImageQuery
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.20.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-30 17:10 UTC by Jan Gerber
Modified: 2012-07-31 15:49 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jan Gerber 2012-04-30 17:10:28 UTC
ForeignDBViaLBRepo does not implement fetchImageQuery,
this is used by TimedMediaHandler for non local repos.

This would be required to embed videos from commons on en.wikipedia.org.
Comment 1 Chad H. 2012-04-30 17:12:47 UTC
fetchImageQuery() is specific to ForeignAPIRepo. Perhaps TMH should find another backend-agnostic way of doing this?
Comment 2 Jan Gerber 2012-04-30 17:14:41 UTC
Is there an overview of what types of backends exist? so far there is isLocal(),
both ForeignDBViaLBRepo and ForeignAPIRepo are not local. TMH right branches for local and remote repositories.
Comment 3 Bawolff (Brian Wolff) 2012-04-30 17:25:16 UTC
If ForeignDBViaLBRepo is used, certainly the info should come from the db not the api.

I imagine TMH would want to do something different for each backend (they all have different implementations). It could use instanceof to differentiate them.
Comment 4 Bawolff (Brian Wolff) 2012-07-31 11:49:06 UTC
Given that this was marked fixed, should probably have some comment linking to a gerrit change (?)
Comment 5 Jan Gerber 2012-07-31 15:49:12 UTC
https://gerrit.wikimedia.org/r/#/c/16885/
its done with sub classing ApiQueryAllPages to be able to set the db and using FauxRequest. Ideally core would have a way to pass the target db to ApiBase.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links