Commit Graph

6171 Commits

Author SHA1 Message Date
David Glasser
0c0cbe12be Update to Mongo driver 1.4.32
This contains a PR we just submitted to help with error handling
for #2534.
2015-02-27 12:00:25 -08:00
Slava Kim
385a16ab16 Fix spacebars output tests to accommodate recent compiler output changes 2015-02-27 11:44:04 -08:00
Slava Kim
f6dfcc4032 Remove an extra colon 2015-02-26 19:01:30 -08:00
Slava Kim
de052f11f8 Merge branch 'tracker-profiler' into devel
Actually contains annotations to Blaze useful for tracker-profiler but not the
package itself. These changes are also useful to the future tools.
2015-02-26 18:58:49 -08:00
Slava Kim
996369e6a5 Expose the active computations held within Tracker 2015-02-26 18:45:13 -08:00
Slava Kim
be93ffc1d7 Annotate Blaze autoruns for debugging and better errors 2015-02-26 18:44:52 -08:00
David Glasser
3e59a1bf8c Better errors on observeChanges and sub errors 2015-02-26 11:48:47 -08:00
David Glasser
9129bd5421 Send errors thrown by _publishCursor over DDP
This is now possible because observeChanges now can throw on bad
queries.

Previously this would crash the server if it occurred.
2015-02-26 11:48:47 -08:00
David Glasser
874b3ff74d Fix #2534 for oplog too
In order to test this, we applied the following diff to
minimongo/selector.js:

--- a/packages/minimongo/selector.js
+++ b/packages/minimongo/selector.js
@@ -591,6 +591,8 @@ ELEMENT_OPERATORS = {
   },
   $in: {
     compileElementSelector: function (operand) {
+      if (operand === null)
+        operand = [];
       if (!isArray(operand))
         throw Error("$in needs an array");

This means that minimongo now allows `$in: null`, and thus
OplogObserveDriver can be used for the query in the new 'bad query'
test, but mongod still returns an error that is processed by the passing
test.  (The client side of the test fails with this temporary change,
because minimongo no longer throws!)

It's hard to see how to test this better, because minimongo should throw
on any queries that mongod throws on.
2015-02-26 11:48:47 -08:00
David Glasser
2f2ba3979c Make observeChanges throw on bad query
Fixes #2534.

In the past, a bad query would be retried forever, causing the
observeChanges to hang.

(In the common case of a DDP subscription, this would also cause the
current DDP connection to completely stop reading messages, and would
make methods that do writes to the same collection (on ANY DDP
connection) never get their 'updated' messages.  See
https://github.com/meteor/meteor/issues/2534#issuecomment-73355050
These two secondary problems may still need to be fixed but at least
the root cause should be addressed.)

This only fixes PollingObserveDriver, not OplogObserveDriver, but this
issue typically only affects PollingObserveDriver because we don't
choose to use OplogObserveDriver when minimongo can't understand a
query.
2015-02-26 11:48:47 -08:00
David Glasser
cfc4015f61 Failing test for #2534.
Test fails on server (passes on client).
2015-02-26 11:48:47 -08:00
David Glasser
396bfac14c Fix . 2015-02-25 15:06:52 -08:00
David Glasser
34c366faea Fix backwards logic of #3780. 2015-02-25 14:55:36 -08:00
David Glasser
c69e990152 $TINYTEST_FILTER to only run some tests
I have typed `if (! test.name.match(/foo/)) return` an average of 4
times a week for the past several years.  No more.
2015-02-25 14:55:36 -08:00
Avital Oliver
b3c49b5fa1 Improve Blaze performance on initial array rendering
This is one of a longer sequence of changes we can make to make
the diffing algorithm in Blaze be linear as opposed to quadratic
which it is at the momeny, in general.

This change specifically makes it so that the very common case of
an {{#each}} over an array that switches from empty to a long array
much faster, since the adds in those case are always at the end
of the array. This means there's no bookkeeping necessary to
update indexes.

This changes reduces the rendering time from the example posted
on #3596 from 5000ms to 1729ms.
2015-02-25 14:40:43 -08:00
David Glasser
acae4a576e Merge branch 'master' into devel
Made sure not to revert the run-velocity change that was reverted on
master.
2015-02-25 09:35:31 -08:00
David Glasser
0b8a33282e METEOR@1.0.3.2 2015-02-25 08:55:26 -08:00
Slava Kim
00d3896e20 Merge branch 'installer-wix' into devel
Adapt the wix installer for real. Use it as the main build target in all jenkins
jobs, etc.
2015-02-24 22:17:11 -08:00
Mitar
1100dec36c Added message argument to "include" and "notInclude". 2015-02-24 21:52:31 -08:00
Mitar
5a0a0bc061 Provide notInclude in Tinytest. 2015-02-24 21:52:31 -08:00
Slava Kim
62ac82c835 Bump 2015-02-24 21:16:41 -08:00
Sashko Stubailo
d5a278ddfc Make Template.body be a normal template
Fixes #3631
Instead of a collection of top-level views, which it was before
2015-02-24 18:02:21 -08:00
Sashko Stubailo
5cbe84e917 Remove error checking for <body> attrs 2015-02-24 17:14:56 -08:00
Mitar
d0ddf5cd9b Unifying tinytest fields. 2015-02-24 13:57:20 -08:00
David Glasser
58c58b0320 METEOR@1.0.3.2-rc.0 2015-02-24 12:40:51 -08:00
Jacek Migdal
0e3c992fd8 No argument in client accounts callbacks.
https://github.com/meteor/meteor/issues/3572

[stubailo] Improve docs
2015-02-23 21:51:27 -08:00
Jacek Migdal
b5861c114a Implement Account.onLogin/onLoginFailure on client.
https://github.com/meteor/meteor/issues/3572
2015-02-23 21:51:26 -08:00
Sashko Stubailo
ee59870e06 Add docs about new Session.set API, wrap doc comments 2015-02-23 21:42:13 -08:00
Abigail Watson
26fc3d6666 Allow ReactiveDict#set to take object of keys/values 2015-02-23 21:35:50 -08:00
Netanel Gilad
d49af044d2 throw error instead of warning when two attributes with the same name are defined in the body. 2015-02-23 21:24:49 -08:00
Netanel Gilad
fa4e9c676e add body attributes tests 2015-02-23 21:24:49 -08:00
Netanel Gilad
48ecdf1d54 add warning when the same body attribute appears more than once. 2015-02-23 21:24:48 -08:00
Netanel Gilad
0eab851204 add body attributes to body 2015-02-23 21:24:48 -08:00
Slava Kim
05b6ddb8ed Colors to Tracker's readme 2015-02-22 12:34:13 -08:00
David Glasser
f426f09abb Allow asking for full update result from Mongo 2015-02-19 10:42:08 -08:00
David Glasser
17fc498259 Fix tests from #3730 fix
Whoops, accidentally only ran webapp tests before pushing.
2015-02-17 18:39:20 -08:00
David Glasser
d4d349ca96 Don't overly escape Meteor.settings.public
Fixes #3730.

Testing Done:
Manual testing based on the report in #3730. Also confirmed that `</script>` is not a problem.

I would have added a test-packages test but there's no easy way to override Meteor.settings in test-packages.

Bugs closed: 3730

Reviewed at https://rbcommons.com/s/meteor/r/1/
2015-02-17 18:01:01 -08:00
David Glasser
414b5e2206 Improve Email.send docs
Fixes #3747.
2015-02-17 14:15:33 -08:00
Sashko Stubailo
5efa6da74a Remove unused dependencies from Webapp
Fixes #3753
2015-02-17 09:25:18 -08:00
ekatek
fb528874b3 bumping meteor-platform
A pre-release has failed to bump its package versions before releasing
pre-releases. Bumping them post-factum, so we can release a (test)
release.
2015-02-16 15:39:18 -08:00
ekatek
4a8e5fde08 incrementing version numbers
A merge of the windows-cordova branch did not increment the version numbers
of some packages before adding pre-release versions. This causes constraint
solver errors, when, for example, trying to build a release from devel. This
change should fix the most obvious candidates.
2015-02-16 15:25:25 -08:00
Slava Kim
37f3230591 Merge branch 'upgrade-cordova' into devel
This merge applies changes to the dev-bundle script, but the new dev-bundle is
yet to be built.
2015-02-16 14:07:00 -08:00
Slava Kim
d4f3c211e6 Upgrade device cordova dependency to 0.3.0 2015-02-16 12:08:46 -08:00
Slava Kim
f8b07186d0 Upgrade statusbar cordova dependency to 0.1.10 2015-02-16 12:07:45 -08:00
Slava Kim
51a0263d4b Upgrade splashscreen cordova dependency to 1.0.0 2015-02-16 12:05:43 -08:00
Slava Kim
fc07a67704 Upgrade file-transfer cordova dependency to 0.5.0 2015-02-16 12:04:37 -08:00
Slava Kim
3ea3160365 Upgrade the file cordova dependency to 1.3.3 2015-02-16 11:59:26 -08:00
Slava Kim
772e87a355 Upgrade the inappbrowser dependency 2015-02-16 11:58:38 -08:00
Slava Kim
6c57bc2cfc Bump com.apache.cordova.console dep to 0.2.13 2015-02-14 12:44:05 -08:00
David Glasser
e7aab586c6 "Index" crossbar by collection
ie, when processing each oplog entry, don't even look at the triggers
from unrelated collection.

Also, just make "every trigger and notification needs a string
collection" into a hard rule.

This is apparently much faster for at least one real user; see #3697.

Summary: should be self-contained and documented

Test Plan: unit tests

Reviewers: ekatek

Differential Revision: https://phabricator.meteor.io/D29
2015-02-13 12:21:25 -08:00