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

share / sharedb / 842
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/checkout-6
DEFAULT BRANCH: master
Ran 14 Aug 2018 04:46PM UTC
Jobs 3
Files 21
Run time 1min
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
842

Pull #236

travis-ci

web-flow
Add Milestone Snapshots

This non-breaking change introduces the concept of "Milestone
Snapshots". A milestone snapshot is a snapshot of a document for a given
version, which is persisted in the database. The purpose of this is to
speed up the `Backend.fetchSnapshot` method, which currently has to
fetch all the ops required to build a snapshot from v0. Instead,
`fetchSnapshot` can now fetch the most recent, relevant milestone
snapshot and build on top of that with fewer ops.

In order to do this, the database adapter API has been updated to
include two new methods:

- `saveMilestoneSnapshot(collection, snapshot, callback): void;` stores
  the provided snapshot against the collection
- `getMilestoneSnapshot(collection, id, version, callback): void`
  fetches the most recent snapshot whose version is equal to or less
  than the provided `version` (or the most recent version if version is
  `null`, in keeping with the `to` argument in `getOps`).

The adapter also has the responsibility of saving the appropriate
milestone snapshots when a new op is committed.
Pull Request #236: Add Milestone Snapshots

1075 of 1294 branches covered (83.08%)

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

2260 of 2369 relevant lines covered (95.4%)

401.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 842.1 14 Aug 2018 04:48PM UTC 0
95.4
Travis Job 842.1
2 842.2 14 Aug 2018 04:46PM UTC 0
95.4
Travis Job 842.2
3 842.3 14 Aug 2018 04:46PM UTC 0
95.4
Travis Job 842.3
Source Files on build 842
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #842
  • Pull Request #236
  • PR Base - master (#839)
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