Commit Graph

13334 Commits

Author SHA1 Message Date
Avital Oliver
83c65e718f Rename wix-installer/ -> installer/ 2015-02-26 12:09:30 -08:00
Sashko Stubailo
a4d85bb42c Remove extra option to absoluteUrl
force-ssl already sets this option by default
2015-02-26 11:53:32 -08:00
David Glasser
c6cc72e6e8 Merge branch 'issue-2534' into devel
Fixes #2534.
2015-02-26 11:51:31 -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
Sashko Stubailo
023fe49a1b Merge pull request #3818 from hwillson/issue-3441
Adjusted Meteor.absoluteUrl() to use the secure setting.
2015-02-26 11:44:08 -08:00
hwillson
c8ebdd2473 Reverting back to using secure = true with Meteor.absoluteUrl() and added the
force-ssl package to make sure docs are always served via SSL.
2015-02-26 14:17:01 -05:00
hwillson
d1a783d6cf Updated to only set secure flag to true if original URL is https based. 2015-02-26 06:52:04 -05:00
hwillson
7a4dd5295c Adjusted Meteor.absoluteUrl() to use the secure setting so SSL is enforced.
Helps address the issue of accessing https://docs.meteor.com and being
redirected to http://docs.meteor.com.
2015-02-25 22:32:13 -05: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
c5c9e2e9b2 Merge branch 'release-1.0.3.2'
Fixes #3809.
2015-02-25 09:32:49 -08:00
David Glasser
749ecb81ad update docs and examples for 1.0.3.2 2015-02-25 09:32:21 -08:00
David Glasser
0b8a33282e METEOR@1.0.3.2 release/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
Christian Bundy
650695f878 Change cursor to pointer on checkbox hover 2015-02-24 22:04:55 -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
Josh Owens
cc93674277 Set testing to automatically be run once. 2015-02-24 21:50:05 -08:00
Slava Kim
1448770bb0 Edit windows installer script to take the last item from the array, not just the second one 2015-02-24 21:18:47 -08:00
Slava Kim
62ac82c835 Bump release/WINDOWS-PREVIEW@0.1.8 2015-02-24 21:16:41 -08:00
Slava Kim
bf68f0f50e Delete the source of old installer 2015-02-24 21:10:28 -08:00
Slava Kim
798e6c2e8b Move installer to InstallMeteor.exe 2015-02-24 21:09:25 -08:00
Slava Kim
1aba870162 Always create an empty Release folder
otherwise the build fails
2015-02-24 21:06:38 -08:00
Slava Kim
bafde7f94c Remove pauses 2015-02-24 21:02:35 -08:00
Slava Kim
b6f9bf5976 Installer builds 2015-02-24 21:01:13 -08:00
Slava Kim
c8c84f5a9c Adapt the jenkins build script for the new installer. 2015-02-24 20:01:07 -08:00
Sashko Stubailo
80139982f5 Merge pull request #3806 from meteor/template-body-instance
Make Template.body be a normal template
2015-02-24 18:02:38 -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
David Glasser
67a45935e0 banner update for 1.0.3.2 2015-02-24 16:24:42 -08:00
David Glasser
d1e76b52cb Update examples and docs to 1.0.3.2-rc.0 2015-02-24 15:48:20 -08:00
David Glasser
18c6183926 History update 2015-02-24 15:19:20 -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 release/METEOR@1.0.3.2-rc.0 2015-02-24 12:40:51 -08:00
David Glasser
89381e98cd Fix crash when downloading second package build
The logic to figure out which build dirs are temp dirs which need to be
freed and which are not was wrong, since it missed the non-temp

               files.pathResolve(files.pathDirname(packagePath),
                                 packageLinkTarget));

Use a more explicit way of tracking this.

(Fixed merge conflict when merging from devel.)
2015-02-24 12:39:42 -08:00
David Glasser
f2f0482c69 Revert "Kill PhantomJS processes after meteor --test"
This reverts commit cd014c7600.

This was intended to be placed on devel (see #3205) and I accidentally
placed it on master.
2015-02-24 12:18:10 -08:00
Slava Kim
7bfa78a7bf Merge branch 'helpers-docs' into devel 2015-02-24 12:10:59 -08:00
Slava Kim
0af4a8ff7c Sashko's comments 2015-02-24 10:55:43 -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