Skip to content

Creates fake names for Ml::Candidate

Eduardo Bonet requested to merge mlops-candidates-fake-names into master

What does this MR do and why?

If a candidate is not defined, creates a new random composed of 'animal-animal-animal-number'. This will improve the UI and allow users to search better through candidates. Existing candidates that don't have a name will continue to not have a name.

There are 141 animal names in https://github.com/ffaker/ffaker/blob/main/lib/ffaker/data/animal/common_names, so that means there are 28B (141141141*10000) possible combinations per project. Names can be duplicated.

Changelog: changed

How to set up and validate locally

  1. on rails console, create a new candidate using the repository. the candidate name should not be empty
    p = Project.find_by_id(1)
    e = Ml::Experiment.create(project: p, name: 'abcde')
    c = Ml::ExperimentTracking::CandidateRepository.new(p).create!(e, 0)
    c.name

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports