Last modified: 2014-02-22 23:57:07 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 T45025, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43025 - All API modules should return pageinfo consistently
All API modules should return pageinfo consistently
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on: 61811
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-12 17:35 UTC by Daniel Kinzler
Modified: 2014-02-22 23:57 UTC (History)
5 users (show)

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


Attachments

Description Daniel Kinzler 2012-12-12 17:35:01 UTC
All API modules should return information about the page containing an entity, e.g. the page and revision ID, in a consistent way. Some API modules currently report this inlined into the entity structure (e.g. wbgetentities), some don't return it at all (e.g. wbgetclaims) and some return it in a separate pageinfo structure (e.g. wbremoveclaims).

All modules should handle this consistently, by returning a separate pageinfo structure. IN case multiple entities are returned, care has to be taken to associate the pageinfo with the correct item.

Also keep in mind that UI modules need to be updated when the location of this information changes in the API output.
Comment 1 jeblad 2012-12-12 18:20:46 UTC
This imply breaking changes.
Comment 2 Lydia Pintscher 2013-10-08 15:35:53 UTC
Adam: Is this the case now?
Comment 3 Addshore 2013-10-08 16:45:20 UTC
I suspect not, There is a bug on the board that is related to this *adds a see also*
We just need to consistently return stuff in the same way everywhere :>

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


Navigation
Links