As a WME PM configure ReferenceNeeded API calls so we only call it for "recommended languages", so we can switch on or off the API call for the language specific ML model.
TODO
- in config code, add an environment variable for REFERENCE_NEED_LANGUAGES, which is a array with ['fa', 'it', 'zh', 'ru','pt', 'es', 'ja', 'de', 'fr', 'en']
- Add a config for REFERENCE_NEED_LANGUAGES_FILTER for enabling and disabling preferred languages
- When calling the reference needed API method, only call it if the current WMF project is one of the configured languages when REFERENCE_NEED_LANGUAGES_FILTER is true
- Modify the unit test for the API call and add config unit test to check the logic is correct.
- QA test in dev and check that the article JSON has the reference needed scores for the valid languages and that JSON property is missing for languages outside the config list.
Acceptance Criteria
- Deploy to dev and QA test pass
- Unit tests pass
- ReferenceNeeded is only called for the recommended languages
- Notify PMs that this API call is configurable and we can change the languages to use