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

HabitRPG / habitica / 15098
19%

Build:
DEFAULT BRANCH: develop
Ran 19 Jul 2017 09:33PM UTC
Jobs 4
Files 315
Run time 9min
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
15098

push

travis-ci

SabreCat
Automatically mute users who attempt to post a slur, fixes #8062 (#8177)

* Initial psuedo-code for checking for slurs in messages

* Initial working prototype for blocking posting of slurs. Moved check from group.js to the chat api. Still needs: to permanently revoke chat privileges, to notify the moderators, a better method for checking for the blacklisted words, and a way to get the real list of words to check.

* Permanently revoke chat privileges when attempting to post a slur.

* Removed console logs

* Fixing rebase

* Do not moderate private groups

* Moved slur check to a generic check for banned words function

* Moved list of slurs to a separate file, fixed misplacement of return in ContainsBannedWords() function

* Slurs are blocked in both public and private groups

* Added code to send a slack message for slurs

* Fixed formatting issues

* Incorporated tectContainsBannedWords() function from PR 8197, added an argument to specify the list of banned words to check

* Added initial tests for blocking slurs and revoking chat priviliges

* Uncommented line to save revoked privileges

* Check that privileges are revoked in private groups

* Moved code to email/slack mods to chat api file

* Switched to BadRequest instead of NotFound error

* Restore chat privileges after test

* Using official placeholder slur

* Fixed line to export sendSubscriptionNotification function for slack

* Replaced muteUser function in user methods with a single line in the chat controller file

* Reset chatRevoked flag to false in a single line

* Switched method of setting chatRevoked flag so that it is updated locally and in the database

* First attempt at the muteUser function: revokes user's chat privileges and notifies moderators

* Manual merge for cherry-pick

* Initial working prototype for blocking posting of slurs. Moved check from group.js to the chat api. Still needs: to permanently revoke chat privile... (continued)

4494 of 16846 branches covered (26.68%)

15 of 15 new or added lines in 1 file covered. (100.0%)

5282 of 10720 relevant lines covered (49.27%)

500.02 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
14
100.0
website/server/libs/slack.js
Jobs
ID Job ID Ran Files Coverage
4 15098.4 (TEST="test:content" COVERAGE=true) 19 Jul 2017 09:33PM UTC 0
31.34
Travis Job 15098.4
5 15098.5 (TEST="test:common" COVERAGE=true) 19 Jul 2017 09:34PM UTC 0
57.69
Travis Job 15098.5
6 15098.6 (TEST="test:karma" COVERAGE=true) 19 Jul 2017 09:36PM UTC 0
47.16
Travis Job 15098.6
7 15098.7 (TEST="client:unit" COVERAGE=true) 19 Jul 2017 09:43PM UTC 0
15.49
Travis Job 15098.7
Source Files on build 15098
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #15098
  • c3506650 on github
  • Prev Build on develop (#15096)
  • Next Build on develop (#15099)
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