Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check name similarity when adding exercises #551

Closed
rolandgeider opened this issue Nov 17, 2020 · 2 comments · Fixed by #578
Closed

Check name similarity when adding exercises #551

rolandgeider opened this issue Nov 17, 2020 · 2 comments · Fixed by #578
Milestone

Comments

@rolandgeider
Copy link
Member

When adding exercises, we should check if there is already an existing one with a similar name, e.g. with the Levenshtein distance between it and the names already in the database.

Ideally, we would show the possible matches and ask the user if he really wants to continue, but it's ok to just show an error for now.

TODO: update the exercise model's name_clean() and show an error message. We would need to experiment a bit on what distance is appropriate. Perhaps 4 oder so? Important: check only against other exercises with the same language

@lydiaxing
Copy link
Contributor

Hi, I'd like to work on this!

@rolandgeider
Copy link
Member Author

Hi there! It's all yours :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants