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

salesforce / refocus / 9569
89%

Build:
DEFAULT BRANCH: master
Ran 06 Jun 2019 11:32PM UTC
Jobs 1
Files 163
Run time 11s
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
9569

push

travis-ci

web-flow
Add publish tests for real-time events for subjects (#1180)

* Add publish tests for real-time events for subjects

Fix bugs uncovered by these new tests:
- do not publish an add event when creating a subject with isPublished=false
- when checking whether a subject's "isPublished" attribtue was changed. we were just looking at the current (new) value and the list of fields marked as changed by sequelize... but this causing problems for PUT operations... even if the PUT was NOT changing the isPublished attribute, if the field was included in the request body, then sequelize was including it in the list of changed fields. So I have updated the check to ALSO look at the old value only treat it as changed if the new value !== the old value
- when tags or absolutePath changes, we send a remove event then an add event so that filtering is correct - fix the remove event so that it is populated with the "old" values
- if a non-filtering attribute changes, we should be sending an update event (but we weren't)
- for bulk deletes, we were double-publishing - once from the db's afterDestroy and again from the bulkDeleteSubjects implementation, so remove the publish call from bulkDeleteSubjects and just let the db layer handle it

* Update subjects.js

2812 of 3601 branches covered (78.09%)

7620 of 8711 relevant lines covered (87.48%)

532.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9569.1 06 Jun 2019 11:32PM UTC 0
87.48
Travis Job 9569.1
Source Files on build 9569
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9569
  • 8a626000 on github
  • Prev Build on master (#9565)
  • Next Build on master (#9574)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc