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 search functionality #25

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

mradeybee
Copy link

@mradeybee mradeybee commented Mar 5, 2017

What does this PR do?

  • Enables status code to be searched for by its title
  • Enables status code to be searched for by its title with the verbose options.
  • Fixes issue Search functionality #4

@coveralls
Copy link

Coverage Status

Coverage decreased (-5.9%) to 84.615% when pulling c3248aa on andela-aadepoju:add-search-functionality into e4b78bb on akabiru:master.

@mradeybee
Copy link
Author

Thanks @akabiru for the label.

@akabiru akabiru added this to the v0.2.0 milestone Mar 5, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-6.6%) to 83.898% when pulling ec0c66c on andela-aadepoju:add-search-functionality into e4b78bb on akabiru:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-5.5%) to 85.0% when pulling 545c637 on andela-aadepoju:add-search-functionality into e4b78bb on akabiru:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-5.5%) to 85.0% when pulling c4a1c94 on andela-aadepoju:add-search-functionality into e4b78bb on akabiru:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-5.7%) to 93.525% when pulling f4488e5 on andela-aadepoju:add-search-functionality into 9be5d74 on akabiru:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 99.355% when pulling a228902 on andela-aadepoju:add-search-functionality into 9be5d74 on akabiru:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 99.355% when pulling a228902 on andela-aadepoju:add-search-functionality into 9be5d74 on akabiru:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 99.355% when pulling f535e4b on andela-aadepoju:add-search-functionality into 9be5d74 on akabiru:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 99.355% when pulling f535e4b on andela-aadepoju:add-search-functionality into 9be5d74 on akabiru:master.

Copy link
Owner

@akabiru akabiru left a comment

Choose a reason for hiding this comment

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

Hi @andela-aadepoju, I appreciate the good work you've put in. Having tested this current search implementation; I think it'd be good to implement with fuzzy search in mind. Such that when I run sth like hscode -s not, the output should include all status codes with descriptions matching 'not' such as Not Implemented, Not Modified e.t.c. Would love to hear your thoughts on this.

hscode -c 200
hscode -c 200 -v
hscode -l
hscode -s ok
Copy link
Owner

Choose a reason for hiding this comment

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

I'd recommend that we have search examples come after "list descriptions" (hscode -l 2xx) for consistency.

@@ -68,6 +68,22 @@
end
end

context 'search for code with title' do
it 'sees -s as a valid request' do
Copy link
Owner

@akabiru akabiru Mar 7, 2017

Choose a reason for hiding this comment

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

prefer detects -s to sees -s; command to request.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 99.367% when pulling 56e4bcb on andela-aadepoju:add-search-functionality into 9be5d74 on akabiru:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 99.375% when pulling 0ab58ec on andela-aadepoju:add-search-functionality into 9be5d74 on akabiru:master.

Copy link
Owner

@akabiru akabiru left a comment

Choose a reason for hiding this comment

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

Hey @andela-aadepoju, just to let you know I reviewed your PR and run some tests. We still need a few tweaks to get the fuzzy search working. I'll see if I can contribute to your PR to get a clearer view of what we need to do to get this working. Bear with us bro. 🙂

@mradeybee
Copy link
Author

Hey @akabiru No problem, buzz me up if you need anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants