Last modified: 2012-12-13 11:19:00 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 T41162, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39162 - New API module wblinktitles
New API module wblinktitles
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Wikidata bugs
storypoints: 5
: testme
Depends on:
Blocks: repoapi
  Show dependency treegraph
 
Reported: 2012-08-08 19:09 UTC by denny vrandecic
Modified: 2012-12-13 11:19 UTC (History)
2 users (show)

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


Attachments

Description denny vrandecic 2012-08-08 19:09:08 UTC
The call should have two parameters, from and to (both with site and title)
If from exists and to exists:
* if item(from) = item(to) : do nothing else raise error
If from exists and to not exists:
* setsitelink(from,to)
If from not exists and to exists:
* setsitelink(to,from)
If from not exists and to not exists:
* id = createitem
* setsitelink(id, from)
* setsitelink(id, to)
Comment 1 jeblad 2012-08-08 19:15:38 UTC
First implementation in https://gerrit.wikimedia.org/r/#/c/16819/
Comment 2 Anja Jentzsch 2012-11-29 12:39:44 UTC
Verified in Wikidata demo time for sprint 13

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


Navigation
Links