Page MenuHomePhabricator

contenttranslationlangtrend API fails with DBQueryError (Table 'wikishared.change_tag' doesn't exist from Translation::getDeletionTrend)
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

Access https://en.wikipedia.org/w/api.php?action=query&format=json&list=contenttranslationlangtrend&target=en

What happens?:

Response

{"error":{"code":"internal_api_error_DBQueryError","info":"[365014b2-91d4-4140-a888-7e7daac527b7] Caught exception of type Wikimedia\\Rdbms\\DBQueryError","errorclass":"Wikimedia\\Rdbms\\DBQueryError"},"servedby":"mw1374"}
Error 1146: Table 'wikishared.change_tag' doesn't exist (db1120)
Function: ContentTranslation\Translation::getDeletionTrend
Query: SELECT ar_timestamp, count(ar_page_id) as count FROM `change_tag`, `archive` WHERE ...

What should have happened instead?:

API should return data without errors

Event Timeline

Change 766321 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] Fix: contenttranslationlangtrend API fails with Internal DBQueryError

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

Change 766321 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Fix: contenttranslationlangtrend API fails with Internal DBQueryError

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

Krinkle moved this task from Untriaged to Feb 2022 on the Wikimedia-production-error board.
Krinkle subscribed.

Found in production as well. Glad to see a fix is already en-route.

Krinkle renamed this task from contenttranslationlangtrend API fails with Internal DBQueryError to contenttranslationlangtrend API fails with DBQueryError (Table 'wikishared.change_tag' doesn't exist fromContentTranslation\Translation::getDeletionTrend).Feb 28 2022, 3:07 PM
Krinkle renamed this task from contenttranslationlangtrend API fails with DBQueryError (Table 'wikishared.change_tag' doesn't exist fromContentTranslation\Translation::getDeletionTrend) to contenttranslationlangtrend API fails with DBQueryError (Table 'wikishared.change_tag' doesn't exist from Translation::getDeletionTrend).