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

Suggest the most similar task name when a given task does not exist #880

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

maxpushka
Copy link
Contributor

This PR closes issue #867.

If the fuzzy model fails to find the most similar task name, it will just say "task does not exist" and the suggestion message won't be shown

@pd93 pd93 linked an issue Oct 2, 2022 that may be closed by this pull request
@pd93 pd93 added the type: feature A new feature or functionality. label Oct 2, 2022
@maxpushka maxpushka marked this pull request as draft October 2, 2022 16:31
@maxpushka maxpushka marked this pull request as ready for review October 2, 2022 18:28
Copy link
Member

@andreynering andreynering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @maxpushka, thanks for working on this PR!

I made a few comments, but once addressed this is good to be merged.

Can you also squash all your commits and keep a single one? Thanks!

errors.go Outdated Show resolved Hide resolved
help.go Outdated Show resolved Hide resolved
setup.go Outdated Show resolved Hide resolved
@maxpushka maxpushka force-pushed the feat/suggest-similar-task branch 5 times, most recently from 17c787b to 9c59c84 Compare October 10, 2022 08:51
@maxpushka
Copy link
Contributor Author

Hi @andreynering, thank you for the suggestions! A simpler error struct is the thing I should have gone on with from the start

Copy link
Member

@pd93 pd93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks good to me now. This is a really nice addition to Task!

One quick thing to think about. How do we imagine this working with #879? Should we also consider alias names when fuzzy matching?

@andreynering andreynering merged commit 460b89c into go-task:master Oct 14, 2022
@andreynering
Copy link
Member

andreynering commented Oct 14, 2022

Thanks @maxpushka!

Merged with small changes, including training the model with the aliases as well, now that they are available on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A new feature or functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show "Did you mean ...?" message when user mistypes a task name
3 participants