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

166816213 Like and Dislike Article #21

Merged
merged 1 commit into from
Jul 11, 2019

Conversation

fantastic-genius
Copy link
Contributor

Description

A user can decide to like or dislike an article created within the application

Type of change

Please select the relevant option

  • Bug fix (non-breaking changes which fixes an issue)
  • New feature (non-breaking changes which adds functionality)
  • Breaking change (fix or feature that could cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Chore

How Has This Been Tested?

please describe the test that you ran to verify your changes

  • End to end
  • Integration

Checklist:

  • My code follows the style guidelines of this project
  • I have linted my code prior to submission
  • I have made corresponding changes to the documentation
  • My changes generates 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

Pivotal Tracker

#166816213

@vincentayorinde vincentayorinde temporarily deployed to demeter-ah-backend-stagi-pr-21 July 9, 2019 10:25 Inactive
@fantastic-genius fantastic-genius force-pushed the feature/166816213-like-and-dislike-article branch from 1ce14ae to 728575e Compare July 9, 2019 13:14
@fantastic-genius fantastic-genius force-pushed the feature/166816213-like-and-dislike-article branch 2 times, most recently from a514c23 to 8d79a27 Compare July 10, 2019 17:33
- Add model and migration for ArticleLike
- Add ArticleLike model instance and class methods
- Add validation for like and dislike endpoint
- Add likeArticle and dislikeArticle method in Article controller
- Add route for like and dislike article
- Add integration tests for the endpoint
- Document endpoint

[Delivers #166816213]
@fantastic-genius fantastic-genius force-pushed the feature/166816213-like-and-dislike-article branch from 8d79a27 to f1df15f Compare July 11, 2019 09:35
@@ -2,7 +2,7 @@ import chai from 'chai';
import sinon from 'sinon';
import chaiHttp from 'chai-http';
import { app, db } from '../../server';
import { createUser, createArticle, createRate } from '../helpers';
import { createUser, createArticle, createRate, createArticleVote } from '../helpers';
Copy link

Choose a reason for hiding this comment

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

Multiple spaces found before '}' no-multi-spaces

@andela-johia andela-johia merged commit 7e0424d into staging Jul 11, 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

3 participants