Last modified: 2012-08-02 15:41:54 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 T40569, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38569 - Returning URLs for sitelinks should be optional
Returning URLs for sitelinks should be optional
Status: RESOLVED DUPLICATE of bug 37306
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Daniel Kinzler
: patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-22 00:20 UTC by jeblad
Modified: 2012-08-02 15:41 UTC (History)
4 users (show)

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


Attachments

Description jeblad 2012-07-22 00:20:52 UTC
Returning URLs for sitelinks through the calls wbgetitems and wbsetsitelink should be optional. The URLs will be a large part of the content during transfer and it should be possible to turn them off if they will not be used.

They are now returned always.
Comment 1 Daniel Kinzler 2012-07-31 15:37:36 UTC
picked up because otherwise idle
Comment 2 Daniel Kinzler 2012-07-31 16:46:30 UTC
patch: https://gerrit.wikimedia.org/r/17074
Comment 3 jeblad 2012-08-02 15:04:33 UTC
A normal output should be something like this
http://localhost/repo/api.php?action=wbgetitems&sites=enwiki&titles=Oxygen&props=sitelinks&format=jsonfm
{
	"items": {
		"8": {
			"id": 8,
			"sitelinks": {
				"enwiki": {
					"site": "enwiki",
					"title": "Oxygen"
				},
				"afwiki": {
					"site": "afwiki",
					"title": "Suurstof"
				},
				"amwiki": {
					"site": "amwiki",
					"title": "\u12a6\u12ad\u1232\u1305\u1295"
				},

and an output with urls should look like this
http://localhost/repo/api.php?action=wbgetitems&sites=enwiki&titles=Oxygen&props=sitelinks/urls&format=jsonfm

{
	"items": {
		"8": {
			"id": 8,
			"sitelinks": {
				"enwiki": {
					"site": "enwiki",
					"title": "Oxygen",
					"url": "http:\/\/en.wikipedia.org\/wiki\/Oxygen"
				},
				"afwiki": {
					"site": "afwiki",
					"title": "Suurstof",
					"url": "http:\/\/af.wikipedia.org\/wiki\/Suurstof"
				},
				"amwiki": {
					"site": "amwiki",
					"title": "\u12a6\u12ad\u1232\u1305\u1295",
					"url": "http:\/\/am.wikipedia.org\/wiki\/%E1%8A%A6%E1%8A%AD%E1%88%B2%E1%8C%85%E1%8A%95"
				},
Comment 4 jeblad 2012-08-02 15:36:28 UTC
A minor change of the url syntax for props is in https://gerrit.wikimedia.org/r/#/c/17431/

Note that this is also a fix for an unreported bug, as it was possible to create repeating result sections.
Comment 5 Daniel Kinzler 2012-08-02 15:41:54 UTC

*** This bug has been marked as a duplicate of bug 37306 ***

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


Navigation
Links