Commit Graph

5964 Commits

Author SHA1 Message Date
Slava Kim
036dc4885e Tiny changes to tests formatting 2014-02-24 00:26:11 -08:00
Slava Kim
90a0c2d5c2 Add missing _safeAppendToBuffer = false and add clarity with comments 2014-02-24 00:25:38 -08:00
Slava Kim
7c202f6004 Better assertions in the oplog code 2014-02-23 20:03:38 -08:00
Slava Kim
90ba50acb7 Restructure and comment on _handleDoc logic for limits
Logic remains the same.
2014-02-23 18:19:57 -08:00
Slava Kim
f0d13f6678 Restructure and update comments for _addMatching-limits behavior
The logic remains the same.
Also remove `fields` - nothing uses the term `fields` except for the fields projection.
2014-02-23 17:52:17 -08:00
Slava Kim
9d4783e4fc Additional assert for _safeAppendToBuffer 2014-02-23 17:51:51 -08:00
Slava Kim
622d61f0a7 fix tests' setsEqual 2014-02-21 20:03:22 -08:00
Slava Kim
9ccdc0b80c Don't repoll if everything fits into buffer;
Use EJSON.equals
Better comments
2014-02-21 20:02:19 -08:00
Slava Kim
23ec5007e9 _justUpdatedBuffer => _safeAppendToBuffer 2014-02-19 12:44:19 -08:00
Slava Kim
6144213649 Tests for updated-buffered which stays in buffer or comes to published 2014-02-18 16:38:03 -08:00
Slava Kim
3871c92181 Don't throw an updated-buffered doc right away. It can go to published or back to buffer. 2014-02-18 16:37:31 -08:00
Slava Kim
e4eb3e3c75 Never put something into buffer if it will drop out in a moment after 2014-02-17 17:49:39 -08:00
Slava Kim
f336c61eda More self-checks with throws (asserts) 2014-02-17 17:30:46 -08:00
Slava Kim
07a18984b1 More comments, explicity, fixed ambiguities 2014-02-17 17:25:01 -08:00
Slava Kim
c03701ef1c Remove Sorter class from MinimongoTest as it is already exported in Minimongo symbol 2014-02-17 17:01:10 -08:00
Slava Kim
a5ddd71b1d Tests on newly supported cursor types 2014-02-17 16:10:20 -08:00
Slava Kim
8b931e64d6 Tests behave correctly in both oplog and non-oplog mode 2014-02-17 16:10:19 -08:00
Slava Kim
5b0663993a Fix typo: addPublished -> addBuffered;
Revert the population of initialQuerying back to _addMatching everything.
2014-02-17 16:10:19 -08:00
Slava Kim
1071b37ed4 Fix tests for oplog 2014-02-17 16:10:19 -08:00
Slava Kim
92d38af16d wip changed published document can go into buffer 2014-02-17 16:10:19 -08:00
Slava Kim
10d97c70c5 wip fixing the appends to buffer 2014-02-17 16:10:19 -08:00
Slava Kim
3ac9cf88b7 Fix the test on limit-requery ; keep docs in _published and _unpublishedBuffer consistently w/o _id 2014-02-17 16:10:19 -08:00
Slava Kim
8be6928b4c wip test 2014-02-17 16:10:19 -08:00
Slava Kim
cfadc51b91 More tests on updates. Clarifying comment 2014-02-17 16:10:19 -08:00
Slava Kim
690f7c485b A simple test for limits
and it does pass!
2014-02-17 16:10:19 -08:00
Slava Kim
4e095325cd Typo + always use inequalities with C-style comparators 2014-02-17 16:10:19 -08:00
Slava Kim
7493890bb2 Fix typos 2014-02-17 16:10:19 -08:00
Slava Kim
c389dadc46 Correctly distinguish queries with limits and sorts 2014-02-17 16:10:19 -08:00
Slava Kim
818a770ed9 Fix Dummy Structure
actually Dummy-structure was supposed to be so dummy, it would be trivially easy
to write a bug-free 20-line code for it. But I failed. To dummy structure...
2014-02-17 16:10:18 -08:00
Slava Kim
b8429fa0b1 Export sorter in Minimongo namespace 2014-02-17 16:10:18 -08:00
Slava Kim
ad0c88f071 Always use limit to separate ordered code vs unordered 2014-02-17 16:10:18 -08:00
Slava Kim
859ff555fe Limits in oplog code
- distinguish queries with limits and sorts
- separate the concept of matching set from published set
- keep a separate buffer for N documents outside of limit to reduce mongo
  lookups
2014-02-17 16:10:18 -08:00
Slava Kim
4541f72279 Revert "Merge branch 'oplog-localcollection' into devel"
This reverts commit 297b97659b, reversing
changes made to 204959b509.
2014-02-17 16:10:10 -08:00
Slava Kim
fb20ee822a Revert "Do less deep copies"
This reverts commit cb2f2adb1b.
2014-02-17 16:10:10 -08:00
Tim Haines
6b122ab51b Allow _sockjsOptions to be provided on DDP.connect
This is an unsupported API that may later be removed. Fixes #1762.
2014-02-17 15:49:34 -08:00
Robert Dickert
d861776948 Put /node_modules in package root on build
Fixes #1761.

Package code pulled from a git repo does not contain the directory
`/node_modules`, as these modules are downloaded during the build
process. However, this can confuse NPM prior to build completion.

If the package directory doesn’t have a '/node_modules' subdirectory,
NPM will assume we are not at the package root and will search the
directory's parents for one. It will then set the root to any ancestor
that does have a '/node_modules' subdir. This can cause the build to
fail for downloaded user packages and also Meteor itself if run from
checkout.

See also #927.
2014-02-17 15:38:44 -08:00
David Glasser
764b41adf4 Clone DDP data as it goes into the merge box
Fixes #1750.
2014-02-17 15:17:07 -08:00
David Glasser
3eb4a1339d Update back-compat comment 2014-02-16 23:09:37 -08:00
Emily Stark
c09d5e1578 Remove stray %s in update message. 2014-02-14 18:46:57 -08:00
Emily Stark
bc0b1ce53c Rename a test timeout variable and use it in more places.
Bump some more timeouts too.
release/tools-refactoring-update-test
2014-02-14 18:30:15 -08:00
Emily Stark
b04aa12d39 Make 'empty' a test app with no packages.
Rename previous 'empty' app to 'standard-app'.
2014-02-14 17:59:59 -08:00
Emily Stark
f0b633e785 Rough draft of History.md 2014-02-14 17:51:02 -08:00
David Glasser
75fbb90e8a Remove localstorage -> jquery dependency
We no longer use jquery for browser detection here.
2014-02-14 17:14:11 -08:00
Emily Stark
c248fcd673 Clarify registration test comment 2014-02-14 15:03:39 -08:00
Emily Stark
c847142344 Fix registration test error check 2014-02-14 15:02:51 -08:00
Emily Stark
708a818654 Fix typo in registration test comment 2014-02-14 15:01:22 -08:00
Emily Stark
e1548ed0cd Add first deferred registration test 2014-02-14 14:58:59 -08:00
Emily Stark
73a7a09ebe Require test-utils as testUtils instead of utils.
Avoids confusion with utils.js.
2014-02-14 10:01:14 -08:00
David Glasser
c5efe36bce Ensure we don't double-return through runFuture 2014-02-14 01:06:18 -08:00
David Glasser
72cc8603b5 publish-release needs a release file 2014-02-14 01:00:12 -08:00