Open Bug 1938148 Opened 2 months ago Updated 2 months ago

Remove MLEngineParent Dependency on TranslationsParent

Categories

(Core :: Machine Learning, task)

task

Tracking

()

People

(Reporter: nordzilla, Unassigned)

Details

Description

The MLEngineParnet class currently depends on the TranslationsParent class to utilize the algorithm to retrieve the maximum-supported-version records from Remote Settings.

Now that there are more projects that are utilizing Remote Settings to serve machine-learning models, we should be unified in our versioning strategy and move the versioning logic to a common location, perhaps toolkit/components/ml/common/**/*.

This will allow the TranslationsParent to depend on the shared ML infrastructure, rather than the converse.


Steps to implement

  • Create a global common utilities class in toolkit/components/ml/common/
  • Move the relevant Remote Settings logic out of TranslationsParent into this new file.
  • Rewire MLEngineParent and TranslationsParent to depend on this new file.

Tests to implement

  • Several tests may need to be updated to use the new location (query), however existing test coverage should be sufficient.
Type: defect → task
You need to log in before you can comment on or make changes to this bug.