• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

andela / thor-ah / 429 / 1
92%
develop: 92%

Build:
DEFAULT BRANCH: develop
Ran 16 Sep 2018 08:58PM UTC
Files 86
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Sep 2018 08:56PM UTC coverage: 92.941% (+0.02%) from 92.922%
429.1

push

travis-ci

aknwosu
#159987737 Comments should be able to track edit history (#47)

* feat(comments): add ability to get all comments/replies of an article

Fetch all comments and replies for an article and include user informantion.
- update comment models: add validations.

* feat(history): define comment history model

In order to track comment history, we would need to have a copy of
the comment on each edit. Also for future queries, we've added a column
"isEdited" which is a boolean to know if the comment has been edited before and
to determine whether or not to fetch it's history.
- add isEdited column to comment table
- generate commentHistory table and migrations
- add relationship between both tables

* feat(comment): track comment edit history functionality

Allow users update, their comments, and also track the edit history
of each update.
- add updateComment method
- prevent users from updating other users' comments
- add relevant tests
- use hooks to update commentHistory model
- return updated comment with each update

* feat(history): add method to retrieve comment edit history

Users can comment and edit comments. This method fetches the comment edit history.
- Add relevant tests
- Add getCommentEdits method.
[Delivers #159987737]

304 of 362 branches covered (83.98%)

Branch coverage included in aggregate %.

1750 of 1848 relevant lines covered (94.7%)

3.01 hits per line

Source Files on job 429.1
  • Tree
  • List 0
  • Changed 11
  • Source Changed 6
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 236
  • Travis Job 429.1
  • 244b1299 on github
  • Prev Job for on develop (#398.1)
  • Next Job for on develop (#432.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc