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

Add options to Search #106

Closed
wants to merge 5 commits into from

Conversation

STCTbone
Copy link

@STCTbone STCTbone commented Jan 3, 2017

Currently the Search module does not allow you to pass options to the underlying Tentacat.get function. This means that it executes searches against the Github Api with the default pagination: :auto, which will quickly hit rate limits on the Search API for any fairly common search term (like language:elixir). This PR allows options to be passed when invoking Search's methods, letting the developer avoid this issue when needed.

@coveralls
Copy link

coveralls commented Jan 3, 2017

Coverage Status

Coverage remained the same at 90.667% when pulling 90c1daa on STCTbone:add-options-to-search into 3e017f8 on edgurgel:master.

@spec code(map, Client.t) :: Tentacat.response
def code(params, client \\ %Client{}) do
get "search/code", client, params
@spec code(map, Client.t, [atom]) :: Tentacat.response
Copy link
Owner

Choose a reason for hiding this comment

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

I think in this case Keyword instead of [atom] seems more accurate. Sorry for the super late reply

@edgurgel
Copy link
Owner

This feature was done by https://github.com/edgurgel/tentacat/pull/100/files

@edgurgel edgurgel closed this Feb 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants