gecko-dev/services
Kit Cambridge 96593594d3 Bug 1368209 - Add a test for fetching backlogged history records. r=tcsc
The test captures the existing logic in `_processIncoming`, even though
it's not quite correct:

* First, we fetch all records changed since the last sync, up to the
  download limit, and without an explicit sort order. This happens to
  work correctly now because the Python server uses "newest" by
  default, but can change in the future.
* If we reached the download limit fetching records, we request
  IDs for all records changed since the last sync, also up to the
  download limit, and sorted by index. This is likely to return IDs
  for records we've already seen, since the index is based on the
  frecency. It's also likely to miss IDs for other changed records,
  because the number of changed records might be higher than the
  download limit.
* Since we then fast-forward the last sync time, we'll never download
  any remaining changed records that we didn't add to our backlog.
* Finally, we backfill previously failed and backlogged records.

MozReview-Commit-ID: 7uQLXMseMIU

--HG--
extra : rebase_source : 719ee2d9e46102195251b410f093da3247095c22
2017-10-27 17:54:48 -07:00
..
blocklists Bug 1345556 - adjust BUG_COMPONENT for services/blocklist/* files. r=leplatrem 2017-03-10 12:26:58 -05:00
common Bug 1375223 - Remove Async.querySpinningly. r=kitcambridge 2017-10-31 18:50:31 -04:00
crypto Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8 2017-10-15 20:50:39 +01:00
fxaccounts Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop 2017-10-26 11:47:01 +01:00
sync Bug 1368209 - Add a test for fetching backlogged history records. r=tcsc 2017-10-27 17:54:48 -07:00
.eslintrc.js Bug 1375212 - Wrap thrown strings in Error objects r=eoger,markh 2017-07-22 18:55:43 -07:00
moz.build Bug 1361171 - Remove CloudSync. r=markh 2017-05-01 14:43:00 -07:00