Last modified: 2014-06-06 11:11:41 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 T66998, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64998 - Install default gadgets from wikidata.org on the test system (beta)
Install default gadgets from wikidata.org on the test system (beta)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=QA p=8 s=2014-06-03
:
Depends on:
Blocks: 65257
  Show dependency treegraph
 
Reported: 2014-05-07 11:55 UTC by tobias.gritschacher
Modified: 2014-06-06 11:11 UTC (History)
3 users (show)

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


Attachments

Description tobias.gritschacher 2014-05-07 11:55:49 UTC
To make sure we do not break default widgets on wikidata.org, we should also have them installed and tested on beta.
Comment 1 tobias.gritschacher 2014-05-13 12:48:40 UTC
This includes the following widgets:
AuthorityControl
CommonsMedia
Search
Comment 2 Bene* 2014-05-24 10:12:58 UTC
I have created http://wikidata.beta.wmflabs.org/wiki/MediaWiki:Common.js which imports the three gadgets. Is this needed anywhere else, too?
Comment 3 tobias.gritschacher 2014-05-27 09:18:25 UTC
@Bene* thanks, will check if it works and close the bug then. Probably you or someone from the community can enable them on test.wikidata.org as well, or has this already happened?
Comment 4 tobias.gritschacher 2014-05-27 10:52:27 UTC
@Bene*: it seems we cannot just load the AuthorityControl Gadget from Wikidata. It has hardcoded property-ids that do not match the properties on beta. One solution would be to import the Gadget on beta and then change the list of defined properties -> we would only need one property, that's enough for testing I think. We could probably automate the process of importing the Gadget and changing the property definitions but that is optional for now.
Comment 5 tobias.gritschacher 2014-05-27 11:52:41 UTC
@Bene*: I've now disabled (commented out) the AuthorityControl Gadget on beta. Now I realized that the Commons Gadget has an issue too. It makes an API call to get the imageinfo [1]. This works on wikidata.org but not on beta. I think there is just a setting on beta missing (could it be $wgUseInstantCommons?) but don't know exactly. Do you know?

[1] /w/api.php?action=query&prop=imageinfo&iiprop=url&iilimit=1&iiurlwidth=200&titles=File:Flag%20of%20Germany.svg
Comment 6 Lydia Pintscher 2014-05-27 11:54:49 UTC
Additional thought: We could make this a lot easier for the authority control gadget if we split configuration and code. Ultimately the configuration should probably be done using statements on properties.
Comment 7 tobias.gritschacher 2014-06-06 09:31:58 UTC
Ok, the CommonsGadget widget issue is resolved by now. We figured out that commons.wikimedia.beta.wmflabs.org is set up as a media repo for wikidata.beta.wmflabs.org. So we need to choose images from there when we want to test the CommonsMedia gadget.
Comment 8 tobias.gritschacher 2014-06-06 09:33:12 UTC
To resolve the issue with the AuthorityControl gadget, I'll import the gadget manually for now and adapt it to work on beta. That's not a perfect solution and we still need to think about how to automatically update the gadget on beta whenever it changes on wikidata.org.
Comment 9 tobias.gritschacher 2014-06-06 10:32:18 UTC
I've created a copy of the AuthorityControl gadget from wikidata.org with reduced number of properties and adjusted property ids for testing purposes on beta.
http://wikidata.beta.wmflabs.org/wiki/MediaWiki:Gadget-AuthorityControl.js
Comment 10 tobias.gritschacher 2014-06-06 11:11:41 UTC
The Search gadget seems to work but for some reason the arrow symbol is missing. But this should not be no blocker. Closing this bug as all 3 required gadgets are not installed and operational on beta. I've opened new bugs for writing browsertests.

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


Navigation
Links