Last modified: 2014-05-06 13:30:59 UTC
We need an easy way to list all empty entities, and perhaps also other "kinds" of entities, on special pages etc. This could easily be done via the page_props table, we just need to start using it. The page_props table is fed from the ParserOutput object (via LinksUpdate). So, EntityContent::getParserOutput() should just add the desired info to the ParserOutput - it could be provided by a getPageProps() method or some such. Initially supported "hints" or "kinds" could be: * empty: contains nothing at all * stub: consists only of label(s) and description(s) (and maybe also aliases). There could be more, like "unlinked" for items with no sitelinks.
quick note: I think items should be marked as empty based on EntiyObject::isEmpty(). There should probably a similar EntiyObject::isStub() method, though that one would have to be overridden in the ItemObject subclass.
we could also put the number of sitelinks and claims into page_props, to make it easy to search for entities with no or many sitelinks/claims.
To allow efficient queries over page_props, it would need new indexes, see bug 58032.
Change 99385 had a related patch set uploaded by Daniel Kinzler: (bug 40157) store entity status in page_props. https://gerrit.wikimedia.org/r/99385
Change 99385 merged by Jeroen De Dauw: (bug 40157) store entity status in page_props https://gerrit.wikimedia.org/r/99385