aude created this task.
aude added a subscriber: aude.
aude added projects: Wikidata, CirrusSearch, MediaWiki-extensions-GeoData.
Herald added a subscriber: Aklapper.
Herald added a project: Discovery.
TASK DESCRIPTION
When updating a page, CirrusSearch attempts to get ParserOutput from
ParserCache.
```
private function getContentAndParserOutput( $page ) {
$content = $page->getContent();
$parserOptions = $page->makeParserOptions( 'canonical' );
$parserOutput = ParserCache::singleton()->get( $page, $parserOptions
);
if ( !$parserOutput ) {
// We specify the revision ID here. There might be a newer
revision,
// but we don't care because (a) we've already got a job
somewhere
// in the queue to index it, and (b) we want magic words like
// {{REVISIONUSER}} to be accurate
$revId = $page->getRevision()->getId();
$parserOutput = $content->getParserOutput( $page->getTitle(),
$revId );
}
return array( $content, $parserOutput );
}
```
For adding coordinates for a wiki with GeoData newly enabled, the
ParserOutput would be lacking coordinates if obtained from cache.
either there needs to be a way to force parse or, perhaps if the coordinates
are already in geo_tags then maybe a way for coordinates to come from there.
TASK DETAIL
https://phabricator.wikimedia.org/T116381
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: aude
Cc: aude, Aklapper, Wikidata-bugs, Deskana, jeremyb
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs