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

share / sharedb / 841
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/checkout-6
DEFAULT BRANCH: master
Ran 14 Aug 2018 01:49PM UTC
Jobs 3
Files 27
Run time 2min
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
841

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

876 of 1045 branches covered (83.83%)

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

1748 of 1839 relevant lines covered (95.05%)

634.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 841.1 14 Aug 2018 01:49PM UTC 0
95.4
Travis Job 841.1
2 841.2 14 Aug 2018 01:49PM UTC 0
95.4
Travis Job 841.2
3 841.3 14 Aug 2018 01:49PM UTC 0
95.4
Travis Job 841.3
Source Files on build 841
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #841
  • 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