Last modified: 2014-05-06 13:30:59 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 T42157, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40157 - Store hints about entities in page_props table
Store hints about entities in page_props table
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=2
: need-volunteer
Depends on:
Blocks: 39150 43732 46217 58030
  Show dependency treegraph
 
Reported: 2012-09-11 08:07 UTC by Daniel Kinzler
Modified: 2014-05-06 13:30 UTC (History)
5 users (show)

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


Attachments

Description Daniel Kinzler 2012-09-11 08:07:10 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.
Comment 1 Daniel Kinzler 2012-09-11 18:42:38 UTC
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.
Comment 2 Daniel Kinzler 2013-12-05 10:14:57 UTC
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.
Comment 3 Daniel Kinzler 2013-12-05 11:49:26 UTC
To allow efficient queries over page_props, it would need new indexes, see bug 58032.
Comment 4 Gerrit Notification Bot 2013-12-05 13:36:36 UTC
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
Comment 5 Gerrit Notification Bot 2014-04-09 14:50:01 UTC
Change 99385 merged by Jeroen De Dauw:
(bug 40157) store entity status in page_props

https://gerrit.wikimedia.org/r/99385

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


Navigation
Links