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

Refactor typeahead service #3107

Merged
merged 2 commits into from
Jul 20, 2018
Merged

Conversation

stefannibrasil
Copy link

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

@ghost ghost assigned stefannibrasil Jul 20, 2018
@ghost ghost added the in progress label Jul 20, 2018
@stefannibrasil stefannibrasil force-pushed the typeahead-refactor branch 2 times, most recently from a7665af to c274275 Compare July 20, 2018 02:13
@plotsbot
Copy link
Collaborator

plotsbot commented Jul 20, 2018

1 Message
📖 @stefannibrasil Thank you for your pull request! I’m here to help with some tips and recommendations. Please take a look at the list provided and help us review and accept your contribution! And don’t be discouraged if you see errors – we’re here to help.

Generated by 🚫 Danger

@milaaraujo milaaraujo added summer-of-code rgsoc Rails Girls Summer of Code labels Jul 20, 2018
@milaaraujo milaaraujo self-assigned this Jul 20, 2018
@milaaraujo milaaraujo closed this Jul 20, 2018
@ghost ghost removed the in progress label Jul 20, 2018
@milaaraujo milaaraujo reopened this Jul 20, 2018
@milaaraujo milaaraujo closed this Jul 20, 2018
@ghost ghost removed the review-me label Jul 20, 2018
@milaaraujo milaaraujo reopened this Jul 20, 2018
@ghost ghost added the in progress label Jul 20, 2018
@stefannibrasil
Copy link
Author

@publiclab/reviewers

@milaaraujo
Copy link
Collaborator

Problem solved! All checks have passed! 😃

@publiclab/reviewers @jywarren

srchParams: {
srchString: @sprofile,
seq: @sseq
srchString: 'Jeff',
Copy link
Member

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'
Copy link
Member

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...

@jywarren jywarren merged commit 59152d0 into publiclab:master Jul 20, 2018
@ghost ghost removed the in progress label Jul 20, 2018
@jywarren
Copy link
Member

🎉 fantastic!!!

@stefannibrasil stefannibrasil deleted the typeahead-refactor branch July 21, 2018 03:40
SrinandanPai pushed a commit to SrinandanPai/plots2 that referenced this pull request May 5, 2019
* Refactor typeahead service

* Code climate fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review-me rgsoc Rails Girls Summer of Code summer-of-code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants