Last modified: 2014-03-19 11:06:56 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 T64712, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62712 - wbgetentities shows entity as missing when it is visible through the UI
wbgetentities shows entity as missing when it is visible through the UI
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Immediate critical (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-16 16:31 UTC by Addshore
Modified: 2014-03-19 11:06 UTC (History)
7 users (show)

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


Attachments

Description Addshore 2014-03-16 16:31:38 UTC
Reported on https://www.wikidata.org/wiki/Wikidata:Contact_the_development_team#API_result_is_not_synchronized_with_data_page

Hi, item Q14615170 is opened finely, but API says that it is missing. Action purge does not help. — Ivan A. Krestinin (talk) 05:24, 15 March 2014 (UTC)
Is the same for me. --ValterVB (A) (talk) 07:51, 15 March 2014 (UTC)

https://www.wikidata.org/wiki/Q14615170
https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q14615170
Comment 1 Addshore 2014-03-16 16:48:17 UTC
Looks like the issue is caused by the item not appearing in the Entity Per Page table.
Thus $entityRevisionLookup->getEntityRevision( $entityId ) returns null showing a missing entity in the API and https://www.wikidata.org/wiki/Special:EntityData/Q14615170.json etc.

The question is, why is it not there?!!?!
Comment 2 Addshore 2014-03-16 17:12:21 UTC
MariaDB [wikidatawiki_p]> SELECT page_title FROM page LEFT JOIN wb_entity_per_page ON epp_page_id = page_id AND epp_entity_type = 'item' WHERE page_namespace = 0 AND epp_page_id IS NULL;

466 rows in set (38.58 sec)

http://tools.wmflabs.org/hoo/eppInconsistencies
Comment 3 Addshore 2014-03-16 17:29:22 UTC
Hoo ran rebuildEntityPerPage.php script and all fixed and confirmed with running the above query again and getting 0 rows! Woo!

This is probably something that should be checked regularl?!

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


Navigation
Links