Commit Graph

13441 Commits

Author SHA1 Message Date
David Greenspan
a84f89c007 Code review fixes 2015-03-05 11:43:06 -08:00
David Greenspan
9869245b8e Improve comments in optimize.js 2015-03-05 08:48:09 -08:00
David Greenspan
90c6b3e1bb No longer shift vars by 1 in MiniSat C wrapper
See 26e00d4d75
2015-03-05 08:23:24 -08:00
David Greenspan
023d471831 Code review changes to minisat_wrapper
All except fixing the 0-based/1-based thing
2015-03-04 17:46:14 -08:00
David Greenspan
8789a91d58 More code review changes (minisat_wrapper) 2015-03-04 16:45:42 -08:00
David Greenspan
b4da76a7e8 Improve comments 2015-03-04 14:22:45 -08:00
David Greenspan
db1e2ec823 Rebuild MiniSat with emscripten 1.28, new comment 2015-03-04 10:55:23 -08:00
David Greenspan
7ca88892e4 Add note to a logic_test 2015-03-04 10:10:42 -08:00
David Greenspan
1a648cf4c4 Clean up and comment Termifier interface 2015-03-04 10:06:37 -08:00
David Greenspan
8f84a60523 Make the "pushToNth" minor change from review
Just for clarity.

Add a needed test of weightedSum that catches "holes" in the array.
2015-03-04 09:11:57 -08:00
David Greenspan
f97f8f516a Fixes from initial review of logic.js except for…
…the pushToNth fix and documenting the "termifier" interface
2015-03-03 13:06:55 -08:00
David Greenspan
faa07c3e29 More code review changes; explain polarity
FormulaInfo is a constructed class
2015-03-03 12:47:47 -08:00
David Greenspan
8c095667e8 toNameTerm and toNumTerm no longer take arrays
this feature wasn't used anyway
2015-03-03 11:56:17 -08:00
David Greenspan
73306afa06 NameTerms can't be numbers or just - chars 2015-03-03 11:45:44 -08:00
David Greenspan
55c788a62f Fix bad order of declarations 2015-03-03 11:42:24 -08:00
David Greenspan
050fae168f Merge remote-tracking branch 'origin/devel' into use-logic-solver 2015-03-02 19:17:40 -08:00
Slava Kim
cbff527131 Add a spinner option to the admin progressbar-test command 2015-03-02 16:01:31 -08:00
Slava Kim
4af325b222 Add a dummy progress-bar test command for testing 2015-03-02 15:12:21 -08:00
Avital Oliver
4265cf8c44 Simplify Windows Meteor install path detection 2015-02-27 16:29:24 -08:00
Avital Oliver
1d828b5a16 Windows installer: Change a color
The version number on the bottom left corner is now black instead of
white.
2015-02-27 14:33:15 -08:00
Slava Kim
312b6afbc6 Merge branch 'windows-custom-location' into devel 2015-02-27 12:23:38 -08:00
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
Matt DeBergalis
13e98f5a4a switch to forums 2015-02-26 20:13:46 -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
Avital Oliver
b587efdab5 Add README for building Windows installer 2015-02-26 14:10:39 -08:00
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
David Greenspan
3ebeb5f0e6 Start making changes from Glasser initial review 2015-02-25 20:14:40 -08: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
Slava Kim
ec9afe2c64 Don't set quotes in METEOR_INSTALLATION variable 2015-02-25 16:35:19 -08:00
Slava Kim
bf63b6dbf8 Allow meteor.bat script to set its own installation location 2015-02-25 16:15:29 -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
c5c9e2e9b2 Merge branch 'release-1.0.3.2'
Fixes #3809.
2015-02-25 09:32:49 -08:00