-
Notifications
You must be signed in to change notification settings - Fork 213
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
search: adds functionality to remove search suggestion #678
Conversation
8d7a9f7
to
d6c417f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks for the contribution! And you even added tests :)
Looks pretty good, some minor comments and suggestions below.
Hi ! Thank you for your feedback; it’s greatly appreciated. I’ve implemented all the changes you suggested. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #678 +/- ##
==========================================
+ Coverage 94.88% 94.96% +0.07%
==========================================
Files 38 38
Lines 2289 2304 +15
==========================================
+ Hits 2172 2188 +16
+ Misses 117 116 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@comarquet thanks for your contribution! I've touched it up a bit and it's good to merge 🚀 |
Related to #497
I modified parse_search_suggestions so that it retrieves the feedbackToken of each suggestion in the search bar and associates it with the number it is displayed when invoking get_search_suggestions, so that the function remove_search_suggestion can be called with the number as parameter to delete the corresponding entry.