Skip to content

Check name similarity when submitting new exercises #2357

@rolandgeider

Description

@rolandgeider

From discussions in #2196, an easy way to avoid duplicate exercises ("pullups" vs "pull ups" vs "pull-ups") is to check the existing names when a new exercise is submitted and block it with a validation error if that's the case.

Idea: update the ExerciseTranslationSubmissionSerializer to also check that there's no existing translation for the same language has a name that is similar enough to the one submitted. I'm not sure what a realistic "similar enough" value would be, we will need to experiment a bit since if this value is too big, we would also block the editing of existing entries.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Enhancement.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions