Once all the PageAssessments code is merged, turn it on on Beta Labs and test it there. Make sure the data is getting stored and can be retrieved with the API.
When this was first deployed to Beta Labs, it caused the following error temporarily:
MWException from line 335 of /srv/mediawiki/php-master/includes/MagicWord.php: Error: invalid magic word 'assessment' #0 /srv/mediawiki/php-master/includes/MagicWord.php(260): MagicWord->load(string) #1 /srv/mediawiki/php-master/includes/parser/Parser.php(4762): MagicWord::get(string) #2 /srv/mediawiki/php-master/extensions/PageAssessments/PageAssessments.hooks.php(31): Parser->setFunctionHook(string, string) #3 /srv/mediawiki/php-master/includes/Hooks.php(195): PageAssessmentsHooks::onParserFirstCallInit(Parser) etc.
We need to figure out how to prevent this. bd808 said it may be due to not syncing InitializeSettings.php first.
My guess is that it's trying to execute
$parser->setFunctionHook( 'assessment', 'PageAssessmentsBody::cacheAssessment' );
before the i18n caches have been rebuilt by scap. Magic words (such as parser functions) have i18n aliases, so I bet the magic word has to be present in the i18n caches before you can actually start using it. That would explain why the error was temporary. @brion @Reedy: Does that sound like a reasonable theory?
It works nicely:
Querying for project: