-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Refactor typeahead service #3107
Conversation
a7665af
to
c274275
Compare
c274275
to
0fb11a1
Compare
Generated by 🚫 Danger |
@publiclab/reviewers |
Problem solved! All checks have passed! 😃 @publiclab/reviewers @jywarren |
srchParams: { | ||
srchString: @sprofile, | ||
seq: @sseq | ||
srchString: 'Jeff', |
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.
So much better/more readable!!
end | ||
|
||
test 'typeahead notes functionality' do | ||
get '/api/typeahead/notes?srchString=lat&seq=7' | ||
get '/api/typeahead/notes?srchString=Blog' |
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.
Nice, a more realistic and readable API call too...
🎉 fantastic!!! |
* Refactor typeahead service * Code climate fix
As part of #3070 (Refactor Search API) we are opening this PR to remove API Typeahead endpoints duplication. The changes are prety similar to what we did here, but this time we worked on Typeahead endpoints.
Again, we decided to first try to remove some duplications/refactor the code and later improve the searches.
We would like some feedback about our work here, please! :)
@publiclab/reviewers @publiclab/soc @jywarren