Page MenuHomePhabricator

importOresTopics script fails to import topics
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

> php maintenance/run.php ./extensions/GrowthExperiments/maintenance/importOresTopics.php --apiUrl https://en.wikipedia.org/w/api.php --wikiId enwiki --count 100 --verbose
Found 41 articles
There was a problem during the HTTP request: 400 Bad Request

What happens?:
The script fails with 400. The error message behind is model_info query parameter is not supported by this endpoint anymore. For more information please visit https://wikitech.wikimedia.org/wiki/ORES. This can be checked by requesting https://ores.wikimedia.org/v3/scores/?model_info=version. More info about the ORES model deprecation.

What should have happened instead?:
The script should import ORES topics from production to a test/local instance

Event Timeline

For technical/simplcity matters, the model_info query was simplified and doesn't support all the parameters anymore. I am not all that familiar with the PHP script, but does the output of https://ores.wikimedia.org/v3/scores/?model_info (note absence of =version) still have all the necessary information? If so, this should be easily fixable.

For technical/simplcity matters, the model_info query was simplified and doesn't support all the parameters anymore. I am not all that familiar with the PHP script, but does the output of https://ores.wikimedia.org/v3/scores/?model_info (note absence of =version) still have all the necessary information? If so, this should be easily fixable.

That was helpful indeed. Thank you!

Change 974653 had a related patch set uploaded (by Sergio Gimeno; author: Sergio Gimeno):

[mediawiki/extensions/GrowthExperiments@master] importOresTopics.php: remove model_info=version from request

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

Sgs triaged this task as Lowest priority.
Sgs edited projects, added Growth-Team (Sprint 3 (Growth Team)); removed Growth-Team.
Sgs updated Other Assignee, added: Sgs.
Sgs updated Other Assignee, added: klausman; removed: Sgs.
Sgs moved this task from Incoming to Code Review on the Growth-Team (Sprint 3 (Growth Team)) board.
Sgs added a subscriber: klausman.

Change 974653 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] importOresTopics.php: remove model_info=version from request

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