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

andela / thor-ah / 429
92%

Build:
DEFAULT BRANCH: develop
Ran 16 Sep 2018 08:58PM UTC
Jobs 1
Files 86
Run time 5s
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

pending completion
429

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

Jobs
ID Job ID Ran Files Coverage
1 429.1 16 Sep 2018 08:58PM UTC 0
92.94
Travis Job 429.1
Source Files on build 429
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #429
  • 244b1299 on github
  • Prev Build on develop (#398)
  • Next Build on develop (#432)
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