Daniel Werner has submitted this change and it was merged. Change subject: Introduce wb.RepoApi which queries the repo independent from the current wiki ......................................................................
Introduce wb.RepoApi which queries the repo independent from the current wiki I've changed the wikibase api javascript to work from the client wikis as well. At the moment they only work on the repo wiki which blocks further development. To achieve this I'm using CORS for requests to wikis not on the same domain. Furthermore this fetches the edit token from the repo at it's own, if needed (introduces wbRepoEditToken). The whole module has been renamed to wb.repoApi to reflect this (I've replaced all usages and it passed all Qunit tests). On top of this this enables the Qunit tests in /lib for both clients and repo while they used to be only run on the repo. Change-Id: I3d256aa4dd272763e09fb9040de64ce2e8fc2b6f --- M client/WikibaseClient.hooks.php M client/tests/qunit/wbclient.watchlist.tests.js M lib/WikibaseLib.hooks.php M lib/WikibaseLib.php A lib/includes/modules/RepoAccessModule.php M lib/resources/Resources.php M lib/resources/jquery.wikibase/jquery.wikibase.claimlistview.js M lib/resources/jquery.wikibase/jquery.wikibase.claimview.js M lib/resources/jquery.wikibase/jquery.wikibase.snakview/snakview.js M lib/resources/wikibase.store/wikibase.EntityStore.js R lib/resources/wikibase.store/wikibase.RepoApi.js M lib/resources/wikibase.ui.PropertyEditTool.EditableAliases.js M lib/resources/wikibase.ui.PropertyEditTool.EditableDescription.js M lib/resources/wikibase.ui.PropertyEditTool.EditableLabel.js M lib/resources/wikibase.ui.PropertyEditTool.EditableSiteLink.js M lib/resources/wikibase.ui.PropertyEditTool.EditableValue.js R lib/tests/qunit/wikibase.store/wikibase.RepoApi.tests.js M repo/tests/selenium/statements/statements_spec.rb 18 files changed, 168 insertions(+), 28 deletions(-) Approvals: Daniel Werner: Verified; Looks good to me, approved -- To view, visit https://gerrit.wikimedia.org/r/44860 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I3d256aa4dd272763e09fb9040de64ce2e8fc2b6f Gerrit-PatchSet: 8 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Hoo man <[email protected]> Gerrit-Reviewer: Aude <[email protected]> Gerrit-Reviewer: Daniel Werner <[email protected]> Gerrit-Reviewer: Hoo man <[email protected]> Gerrit-Reviewer: Jeroen De Dauw <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
