-
Notifications
You must be signed in to change notification settings - Fork 5
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
#166840979 Implement articles search by tag (tag) #46
base: staging
Are you sure you want to change the base?
Conversation
<h3 className="mb-3 articles-title">{singleArticle.title}</h3> | ||
<p className="card-text mb-3">{`${singleArticle.body.substring(0, 150)}...`}</p> | ||
<div className="d-flex flex-row articles-feature"> | ||
<p className="articles-like mr-3"> |
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.
Identical blocks of code found in 2 locations. Consider refactoring.
be8714e
to
cb4d01b
Compare
cb4d01b
to
87a1aeb
Compare
_test_/ArticleActions.spec.js
Outdated
it('fetches articles', () => { | ||
moxios.wait(() => { | ||
const request = moxios.requests.mostRecent(); | ||
// console.log(request); |
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.
please remove this comment
_test_/ArticleActionsTag.spec.js
Outdated
.then(() => { | ||
const actionsCalled = store.getActions(); | ||
expect(actionsCalled).toEqual(expectedActions); | ||
// expect(actionsCalled[1].type).toEqual(GET_ARTICLES_BY_TAG); |
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.
please remove this comment
@@ -59,8 +60,9 @@ const App = () => ( | |||
<Route path="/newpassword" component={PasswordReset} /> | |||
<Route path="/socialAuth" component={SocialAuth} /> | |||
<Route path="/article" component={CreateArticlePage} /> | |||
<Route path="/articles" component={Articles} /> | |||
<Route path="/articles/:slug" component={SingleArticle} /> | |||
<Route exact path="/articles" component={Articles} /> |
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.
Remove exacts from the routes
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.
Hi @fob413. The exact was put there so that routes for viewing a specific article using its slug will be able to direct to the specific article page. If it is removed single articles would not be able to be viewed. Is there a workaround for this issue if exact is to be removed?
87a1aeb
to
ab63406
Compare
ab63406
to
f9bcd25
Compare
- Create actions for searching by tag - Create components for filtered articles page - Write unit tests [Delivers #166840979]
f9bcd25
to
eab0405
Compare
Code Climate has analyzed commit eab0405 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (70% is the threshold). This pull request will bring the total coverage in the repository to 95.1% (0.2% change). View more on Code Climate. |
What does this PR do?
Description of Task to be completed?
How should this be manually tested?
Any background context you want to provide?
What are the relevant pivotal tracker stories?
Screenshots (if appropriate)
Questions: