Skip to content
This repository has been archived by the owner on May 9, 2021. It is now read-only.

#162167286 implement comment on a comment #75

Merged
merged 2 commits into from
Nov 28, 2018

Conversation

KvNGCzA
Copy link
Contributor

@KvNGCzA KvNGCzA commented Nov 24, 2018

What does this PR do?

Implement comment on a comment functionality

Description of Task to be completed?

  • create commentOnComment controller
  • refactor helpers
  • create commentOnComment route
  • refactor fetch article by id controller
  • create test for app.js
  • create commentOnComment model

How should this be manually tested?

  • clone this repo
  • run npm i
  • run npm start
  • run npm run db-init
  • sign up
  • hit the post api/v1/articles/comments/:{commentId} route,
    send { reply: 'reply text here' }

Any background context you want to provide?

  • None

What are the relevant pivotal tracker stories?

#162167286

Screenshots (if appropriate)

screen shot 2018-11-24 at 11 27 12 am

screen shot 2018-11-25 at 2 47 17 pm

Questions:

  • None

@coveralls
Copy link

Pull Request Test Coverage Report for Build 703

  • 35 of 35 (100.0%) changed or added relevant lines in 11 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 93.318%

Totals Coverage Status
Change from base Build 685: 0.2%
Covered Lines: 950
Relevant Lines: 986

💛 - Coveralls

@KvNGCzA KvNGCzA force-pushed the feature/162167286/comment-on-comment branch from 8029bc4 to 1f2f085 Compare November 25, 2018 13:46
@Darthrighteous Darthrighteous temporarily deployed to valinor-ah-backend-stagi-pr-75 November 25, 2018 13:46 Inactive
Copy link
Contributor

@tersoo-atsen tersoo-atsen left a comment

Choose a reason for hiding this comment

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

LGTM

server/middlewares/ArticleValidation.js Outdated Show resolved Hide resolved
server/middlewares/ArticleValidation.js Outdated Show resolved Hide resolved
server/routes/api/comments.js Outdated Show resolved Hide resolved
server/controllers/CommentController.js Outdated Show resolved Hide resolved
@KvNGCzA KvNGCzA temporarily deployed to valinor-ah-backend-stagi-pr-75 November 25, 2018 21:14 Inactive
test/server/controllers/ArticleController.test.js Outdated Show resolved Hide resolved
server/models/article.js Outdated Show resolved Hide resolved
server/helpers/getCommentsCount.js Outdated Show resolved Hide resolved
@KvNGCzA KvNGCzA force-pushed the feature/162167286/comment-on-comment branch from 58f639a to 759d772 Compare November 25, 2018 21:16
@KvNGCzA KvNGCzA temporarily deployed to valinor-ah-backend-stagi-pr-75 November 25, 2018 21:16 Inactive
@KvNGCzA KvNGCzA force-pushed the feature/162167286/comment-on-comment branch from 759d772 to 570a40e Compare November 25, 2018 21:17
@KvNGCzA KvNGCzA temporarily deployed to valinor-ah-backend-stagi-pr-75 November 25, 2018 21:17 Inactive
@KvNGCzA KvNGCzA force-pushed the feature/162167286/comment-on-comment branch from 570a40e to 2cef4e5 Compare November 25, 2018 21:24
@KvNGCzA KvNGCzA temporarily deployed to valinor-ah-backend-stagi-pr-75 November 25, 2018 21:25 Inactive
@KvNGCzA KvNGCzA force-pushed the feature/162167286/comment-on-comment branch from 2cef4e5 to 2dbec7c Compare November 26, 2018 07:58
@KvNGCzA KvNGCzA temporarily deployed to valinor-ah-backend-stagi-pr-75 November 26, 2018 07:58 Inactive
@KvNGCzA KvNGCzA force-pushed the feature/162167286/comment-on-comment branch from 2dbec7c to 8e600a1 Compare November 26, 2018 08:10
@sulenchy sulenchy self-requested a review November 26, 2018 11:15
Copy link
Contributor

@sulenchy sulenchy left a comment

Choose a reason for hiding this comment

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

LGTM

- create commentOnComment controller
- refactor helpers
- create commentOnComment route
- refactor fetch article by id controller
- create test for app.js
- create commentOnComment model

[Finishes #162167286]
@KvNGCzA KvNGCzA force-pushed the feature/162167286/comment-on-comment branch from 8e600a1 to 5060a2c Compare November 27, 2018 17:51
server/migrations/20181123164359-create-comment-reply.js Outdated Show resolved Hide resolved
server/migrations/20181123164359-create-comment-reply.js Outdated Show resolved Hide resolved
server/helpers/getCommentsCount.js Outdated Show resolved Hide resolved
server/helpers/getCommentsCount.js Outdated Show resolved Hide resolved
@KvNGCzA KvNGCzA force-pushed the feature/162167286/comment-on-comment branch 4 times, most recently from 0abd4ec to 4c021eb Compare November 28, 2018 08:53
@KvNGCzA KvNGCzA force-pushed the feature/162167286/comment-on-comment branch 2 times, most recently from f4f149e to 54f0a5c Compare November 28, 2018 09:22
- improve getCommentsCount helper
- remove articleId from CommentReply models

[Finishes #162167286]
@KvNGCzA KvNGCzA force-pushed the feature/162167286/comment-on-comment branch from 54f0a5c to b85e073 Compare November 28, 2018 09:25
@Darthrighteous Darthrighteous merged commit 6ba6b2d into develop Nov 28, 2018
@Darthrighteous Darthrighteous deleted the feature/162167286/comment-on-comment branch November 28, 2018 09:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants