matt debergalis
0a7a51d468
madewith WIP
2012-04-20 02:21:11 -07:00
David Greenspan
4bd98aa38a
tinytest/run method now threads the write fence more than before
2012-04-17 20:13:22 -07:00
David Greenspan
b7d9397f45
added var
2012-04-17 20:13:22 -07:00
David Greenspan
852c3349bf
fix and add test for livedata method bug
2012-04-04 16:20:15 -07:00
Nick Martin
29471cb4b8
XXX Do not try to resume old sessions.
...
Session resumption needs some work.
2012-04-03 22:40:36 -07:00
Nick Martin
d56725dd6a
Move stub_stream to test helpers.
2012-04-03 22:37:12 -07:00
Nick Martin
04d8b284e0
Comment changes per review.
2012-04-03 22:37:12 -07:00
Nick Martin
a3ea86a4c6
Comment on including test file from a different package directory.
2012-04-03 22:37:12 -07:00
Nick Martin
dede19395d
Remove incorrect file add. Tests don't work when run only in livedata though!
2012-04-03 22:37:12 -07:00
Nick Martin
550fabf052
Stub stream based tests for livedata connection.
2012-04-03 22:37:12 -07:00
Nick Martin
ee1d25f499
Implement pause/resume in Minimongo. Uses a pessimal diff algorithm.
2012-04-03 22:37:11 -07:00
Geoff Schmidt
5c72fcaacc
armAndWait out of test
2012-03-16 23:36:33 -07:00
Geoff Schmidt
b3fc3150d4
simplify signature of observe()'s remove callback
2012-03-16 18:26:19 -07:00
Geoff Schmidt
6ed6fa75b5
test that Meteor.Errors are Errors
2012-03-16 02:55:14 -07:00
Geoff Schmidt
413c0778b5
move testAsyncMulti into test-helpers
2012-03-16 02:55:14 -07:00
Geoff Schmidt
6de5ab62ce
Simplify method API
2012-03-16 02:55:14 -07:00
Geoff Schmidt
c9b14233bb
support error() on sync methods on server
...
(temporary)
2012-03-16 02:55:14 -07:00
Geoff Schmidt
784529a9af
tighten up exception reporting in async tests
2012-03-16 02:55:14 -07:00
Geoff Schmidt
ef46d1ea58
eliminate App, proxy methods from Meteor
2012-03-16 02:55:14 -07:00
matt debergalis
bb575138e5
Break dependency between livedata and mongo-livedata
2012-03-14 16:30:58 -07:00
David Greenspan
97d17379b3
punctuation typo
2012-03-08 10:16:59 -08:00
matt debergalis
330fcc1e50
clarify return value.
2012-03-07 16:35:38 -08:00
Geoff Schmidt
734704205d
Remove data from client on unsubscription
2012-03-06 23:18:41 -08:00
Geoff Schmidt
47047621c9
resolve value conflicts by subscription priority
2012-03-06 21:24:28 -08:00
Geoff Schmidt
a0d4947366
assign every subscription a priority
2012-03-06 18:04:55 -08:00
Geoff Schmidt
ffd044b11d
keep a snapshot of last values sent to client
2012-03-06 17:58:56 -08:00
Geoff Schmidt
435cb6e50f
refactor sub datastructure
2012-03-06 17:55:38 -08:00
David Greenspan
ff1ec8bc14
sendError typos
2012-03-06 15:45:24 -08:00
Geoff Schmidt
3dc8dc2887
Permit fine-grained control of database polling.
...
You can now used invalidation keys to specify exactly what will get polled when.
2012-03-06 15:44:42 -08:00
Geoff Schmidt
14d41036f4
Simplify subscription API
...
- Use positional arguments
- Pass the subscription object in 'this'
2012-03-06 15:44:42 -08:00
Geoff Schmidt
d2baaedc9d
rename DynamicVariable => EnvironmentVariable
2012-03-06 15:44:41 -08:00
Geoff Schmidt
dd6f013e9b
generalize write fencing to support all databases
2012-03-06 15:44:41 -08:00
Geoff Schmidt
76c57526f7
rework public API for defining tests
2012-03-02 05:22:40 -08:00
Geoff Schmidt
cab5afbb91
move test reporting functions out of globals
2012-03-02 03:57:30 -08:00
Geoff Schmidt
bc69d57e16
Give each test run a unique ID
2012-03-02 02:32:32 -08:00
Geoff Schmidt
60913bfd6f
Notify observers asynchronously, add write fencing
2012-03-02 01:41:06 -08:00
Geoff Schmidt
86951aa743
block migration until livedata methods finish
...
-- This way we don't have to worry about losing the lambdas that go with outstanding method invocations.
Also, don't listen to reload signals except from App (not from third-party DDP servers.)
2012-03-01 19:40:44 -08:00
Geoff Schmidt
224f48cc81
In a migration, always get a consistent snapshot
2012-03-01 19:37:05 -08:00
Geoff Schmidt
ddfbf236ce
allow packages to block migration until they're ready
2012-03-01 17:25:36 -08:00
Geoff Schmidt
79aabd797b
make apply() somewhat more idiomatic
2012-03-01 05:11:56 -08:00
Geoff Schmidt
e48f335e94
Make requests idempotent on a connection
...
Use a replay cache. When a request is replayed, replay the response. Prune the replay cache based on a timer, but only when the session is connected.
2012-03-01 03:56:10 -08:00
Geoff Schmidt
8fc57d02fb
helper for manually testing session reconnection
2012-03-01 03:28:18 -08:00
Geoff Schmidt
3f51c557a5
Implement reconnection on the client.
2012-03-01 03:04:35 -08:00
Geoff Schmidt
1353d48c72
Implement reconnection on the server.
2012-03-01 02:37:01 -08:00
Geoff Schmidt
363fb71443
allow session to exist without a socket
2012-03-01 02:37:01 -08:00
Geoff Schmidt
671b1833a8
route all message sending through session
2012-03-01 02:37:01 -08:00
Geoff Schmidt
a87c077f22
serialize all messages from each client
2012-03-01 02:37:01 -08:00
Geoff Schmidt
605838fbfa
minor refactor
2012-03-01 02:37:01 -08:00
Geoff Schmidt
c8b5052add
move message dispatch fully into LivedataSession
2012-03-01 02:37:01 -08:00
Geoff Schmidt
5bfc4c472b
Don't create session until connect is received
2012-03-01 02:37:01 -08:00