Page MenuHomePhabricator

[Story] All API modules should return pageinfo consistently
Open, LowPublic

Description

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.

See also: T56267: The data structure representing an entity's claims differs betweeen wbgetentities and wbsetclaim

Details

Reference
bz43025

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:09 AM
bzimport set Reference to bz43025.
bzimport added a subscriber: Unknown Object (MLST).

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 :>

Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
thiemowmde renamed this task from All API modules should return pageinfo consistently to [Story] All API modules should return pageinfo consistently.Aug 13 2015, 2:42 PM
thiemowmde lowered the priority of this task from High to Low.
thiemowmde updated the task description. (Show Details)
thiemowmde set Security to None.
thiemowmde added a project: patch-welcome.
thiemowmde removed a subscriber: Wikidata-bugs.