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

#161966583 Search #17

Merged
merged 1 commit into from
Jan 25, 2019
Merged

#161966583 Search #17

merged 1 commit into from
Jan 25, 2019

Conversation

actlikewill
Copy link
Contributor

@actlikewill actlikewill commented Jan 23, 2019

What does this pull request do?

  • This pull request adds Search functionality to Authors Haven. It allows a user to search the database for articles by title, author name or tag.

Description of the tasks to be completed?

  • Create search functionality within the application

How should this be manually tested?

  • clone the repo https://github.com/andela/ah-technocrats-frontend.git

  • change to the cloned directory cd ah-technocrats-frontend

  • git checkout t-search-161966583 to checkout to this branch

  • run npm install to install the application.

  • run npm start

  • From the search bar, you should be able to enter a search query. Press enter to perfom the search.

screen shot 2019-01-23 at 20 12 10

  • You will be redirected to the search results page with the results.

screen shot 2019-01-23 at 20 09 41

What are the relevant Pivotal Tracker Stories

#161966583

Checklist:

  • My code follows the style guidelines of this project
  • At least 2 people have reviewed my PR
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • My PR has one commit.

@verenceLola verenceLola temporarily deployed to ah-techno-staging-pr-17 January 23, 2019 17:15 Inactive
@actlikewill actlikewill changed the title feat(search) : search functionality #161966583 Search Functionality Jan 23, 2019
@actlikewill actlikewill changed the title #161966583 Search Functionality #161966583 Search Jan 23, 2019
@verenceLola verenceLola temporarily deployed to ah-techno-staging-pr-17 January 23, 2019 17:39 Inactive
@verenceLola verenceLola temporarily deployed to ah-techno-staging-pr-17 January 23, 2019 18:17 Inactive
@verenceLola verenceLola temporarily deployed to ah-techno-staging-pr-17 January 23, 2019 18:22 Inactive
@verenceLola verenceLola temporarily deployed to ah-techno-staging-pr-17 January 23, 2019 18:43 Inactive
@verenceLola verenceLola temporarily deployed to ah-techno-staging-pr-17 January 24, 2019 03:51 Inactive
@verenceLola verenceLola temporarily deployed to ah-techno-staging-pr-17 January 24, 2019 06:13 Inactive
@verenceLola verenceLola temporarily deployed to ah-techno-staging-pr-17 January 24, 2019 06:21 Inactive
switch (action.type) {
case types.SEARCH_SUBMIT:
return {
...state, results: null, keyWords: action.searchKeyWords, loading: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

why is results given the value null?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That clears the current search page when the user submits a new search.

Copy link
Contributor

@salma-nyagaka salma-nyagaka left a comment

Choose a reason for hiding this comment

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

Resolve your merge conflicts

@verenceLola verenceLola temporarily deployed to ah-techno-staging-pr-17 January 25, 2019 08:52 Inactive
 - allows user to search the articles by author, title or tag
[#161966583]t
Copy link
Contributor

@dotNesh dotNesh left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@SnyderMbishai SnyderMbishai left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@dotNesh dotNesh merged commit 281111e into develop Jan 25, 2019
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

5 participants