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

share / sharedb
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: dependabot/bundler/docs/rexml-3.4.2
DEFAULT BRANCH: master
Repo Added 10 Mar 2016 07:44AM UTC
Files 39
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

LAST BUILD ON BRANCH presence-call-each
branch: presence-call-each
CHANGE BRANCH
x
Reset
  • presence-call-each
  • 1.x-beta
  • ServerStream-clone
  • Teamwork-fix-whenNothingPending
  • add-connection-tests
  • after-write
  • async-2
  • backend-docs
  • broken-connection
  • bug-fix/broken-hard-rollback
  • bug-fix/broken-presence-hardrollback
  • close-milestone-database
  • db-method-options
  • delay-op-for-query-poll
  • delete-docs
  • doc-images-with-height
  • downgrade-stack-warn
  • error-codes
  • eslint
  • examples-ws-update
  • fetch-snapshot-middleware
  • fix-272
  • fix-docs
  • fix-flaky-test
  • fix-lib-hasown-lagacy
  • fix-projection-queries
  • fix-tests-sync-unsub
  • fix-textarea-example
  • getops-options
  • handshake
  • held-ops
  • initialise-paused
  • leadership-readme-update
  • logger-override
  • master
  • middleware-docs-reply
  • null-milestone-db
  • op-batch
  • otapply-rollback
  • presence
  • presence-destroy
  • presence-example
  • presence-resubscribe
  • read-docs-middleware
  • readSnapshots-context
  • readSnapshots-specific-errors
  • remove-deprecated-middleware
  • remove-duplicated-type
  • remove-mingo-dep
  • reorganize-pubsub-adapters
  • reply-middleware
  • revert-263-readSnapshots-context
  • revert-shallow-copy-op
  • run-sharedb-mongo-tests
  • server-plugin-query
  • show
  • silence-logger-in-tests
  • snapshot-by-timestamp
  • snapshot-request-test
  • snapshot-throw
  • test-error-visibility
  • test-fixes
  • test-query-poll-doc
  • unsubscribe-bug
  • update-dependencies
  • update-examples
  • update-snapshot-docs
  • use-async
  • use-loglevel
  • v0.11.35
  • v0.11.36
  • v0.11.37
  • v1.0.0
  • v1.0.0-beta.1
  • v1.0.0-beta.10
  • v1.0.0-beta.11
  • v1.0.0-beta.12
  • v1.0.0-beta.13
  • v1.0.0-beta.14
  • v1.0.0-beta.15
  • v1.0.0-beta.16
  • v1.0.0-beta.17
  • v1.0.0-beta.18
  • v1.0.0-beta.19
  • v1.0.0-beta.2
  • v1.0.0-beta.20
  • v1.0.0-beta.21
  • v1.0.0-beta.22
  • v1.0.0-beta.23
  • v1.0.0-beta.24
  • v1.0.0-beta.25
  • v1.0.0-beta.26
  • v1.0.0-beta.27
  • v1.0.0-beta.28
  • v1.0.0-beta.29
  • v1.0.0-beta.3
  • v1.0.0-beta.30
  • v1.0.0-beta.31
  • v1.0.0-beta.4
  • v1.0.0-beta.5
  • v1.0.0-beta.6
  • v1.0.0-beta.7
  • v1.0.0-beta.8
  • v1.1.0
  • v1.2.0
  • v1.2.1
  • v1.3.0
  • v1.3.1
  • v1.3.2
  • v1.3.3
  • v1.3.4
  • v1.4.0
  • v1.4.1
  • v1.4.2
  • v1.5.0
  • v2
  • yet-another-presence

pending completion
1389

Pull #359

travis-ci

web-flow
Fix `Presence._callEachOrEmit`

At the moment, there's a bug where we:

  1. Start disconnected
  2. Submit a presence subscribe request with **no callback**
  3. Connect
  4. The presence then subscribes and calls each callback, but doesn't
     check whether the callback is truthy, which throws

We could check callbacks when we first assign them to the internal map,
but it's quite nice for debugging to see an `undefined` callback
attached to a `seq`.

Therefore, we should handle callbacks not existing when actually
calling them, which `Doc` already does.

This change moves the `Doc` `callEach` method into `utils`, where we can
also use it in `Presence`.
Pull Request #359: Fix `Presence._callEachOrEmit`

1405 of 1630 branches covered (86.2%)

17 of 17 new or added lines in 3 files covered. (100.0%)

3073 of 3157 relevant lines covered (97.34%)

536.13 hits per line

Relevant lines Covered
Build:
Build:
3157 RELEVANT LINES 3073 COVERED LINES
536.13 HITS PER LINE
Source Files on presence-call-each
  • List 0
  • Changed 15
  • Source Changed 3
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
1389 presence-call-each Fix `Presence._callEachOrEmit` At the moment, there's a bug where we: 1. Start disconnected 2. Submit a presence subscribe request with **no callback** 3. Connect 4. The presence then subscribes and calls each callback, but doesn't ... Pull #359 03 Apr 2020 04:52PM UTC web-flow travis-ci pending completion  
1388 presence-call-each Fix `Presence._callEachOrEmit` At the moment, there's a bug where we: 1. Start disconnected 2. Submit a presence subscribe request with **no callback** 3. Connect 4. The presence then subscribes and calls each callback, but doesn't ... push 03 Apr 2020 04:52PM UTC Alec Gibson travis-ci pending completion  
See All Builds (1414)
  • Repo on GitHub
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

© 2025 Coveralls, Inc