Commit Graph

2527 Commits

Author SHA1 Message Date
Matt DeBergalis
f0103b3416 Correct spec for nosub.error. Fixes #1142. 2013-11-05 00:57:45 -08:00
Slava Kim
7c036de1e4 Fix date stamp in logs. 2013-11-03 22:21:35 -08:00
Slava Kim
21b5e2acd8 Look for a file name ending with ":tests.js" as linker produces only such files. 2013-11-03 21:44:01 -08:00
Emily Stark
5afd0d5fb1 Use object equality for closing connections for tokens.
Fixes #1540.
2013-10-29 11:11:05 -07:00
Avital Oliver
21afac1e2d Add comments in deps linking to the docs 2013-10-23 09:47:32 -07:00
David Glasser
dd47801e2a facts: proof-of-concept server-side statistics.
Publishes statistics from the server to a Minimongo collection,
Facts.server. (On the server side, Facts is *not* backed by MongoDB.) By
default, this is available to all users if autopublish is on, or no
users if it is not on, but you can configure this with
Facts.setUserIdFilter.

You can add an ugly view on the stats to your app with {{> serverFacts }}.

Current stats, by package:

- mongo-livedata:
  - observe-handles
  - live-results-sets (when this is less than observe-handles,
    cursor de-dup is helping you)
- livedata
  - subscriptions
  - crossbar-listeners
  - sessions
2013-10-22 22:36:47 -07:00
David Glasser
9b58e3a21c Fix test added in dcfd00f.
The client version was running non-existent methods (because the
collection didn't exist server-side); because no callbacks were provided
to insert or update, this resulted in a Meteor._debug, but no failure.
2013-10-22 22:00:24 -07:00
David Glasser
9e7b4bd213 Fix error on this.removed during session shutdown.
Followup to 4f4e5342 which removed session resumption. That commit
deferred the _deactivateAllSubscriptions call on session shutdown, but
left around the immediate deletion of the merge box
state (collectionViews). This meant that if any publish callbacks were
called before the _deactivateAllSubscriptions call, they would operate
on the invalid collectionViews state.

This change ensures that the subscriptions are considered deactivated as
soon as we decide to deactivate them, even before we actually deactivate
them (and call their possibly-yielding stop callbacks).
2013-10-22 17:58:07 -07:00
Nick Martin
ad64ec17b0 remove duplicated sleep function in tests. Fixes #1496. 2013-10-18 16:00:41 -07:00
David Glasser
dcfd00fe2f Tests for update/upsert with $push/$each.
Test adapted by mcbain's test from #1492.
2013-10-18 15:39:47 -07:00
David Glasser
5a8ab31f43 Clone Meteor.Errors properly. Fixes #1482.
This fixes #1482 because EJSON.stringify clones its argument; this
change ensures that when it does that, it gets a Meteor.Error rather
than just an Object with some fields from the old Meteor.Error (which,
if the Meteor.Error was passed through a Future, will not include all
the fields we expect because they are not all enumerable).
2013-10-18 14:59:27 -07:00
Nick Martin
fbfcb4859b Increase buffer size for phantomjs in spiderable. Our docs were too big. 2013-10-18 13:28:25 -07:00
Avital Oliver
2c8422e441 Fail explicitly when publishing non-cursors 2013-10-17 22:48:07 -07:00
David Glasser
3aca36aac4 Implement $each, $slice, and $sort for $push. 2013-10-14 18:22:02 -07:00
David Glasser
0151b3188d minimongo: clone objects inserted with $addToSet 2013-10-14 18:22:02 -07:00
David Glasser
86b978b0f3 Upgrade to SockJS 0.3.8.
This includes an upgrade to the underlying websocket driver, and our
base_url in /info patch.
2013-10-12 10:35:33 -07:00
Nick Martin
687f989f18 Merge branch 'master' into devel 2013-10-10 13:25:50 -07:00
Emily Stark
de05d27cf3 Make browser-policy-content tell webapp about inline script policy.
This avoids the need for webapp to probe for browser-policy without
weak-depending on it.
2013-10-09 12:00:23 -07:00
Emily Stark
35cee2d4ea Test that logoutOtherClients returns a new valid token. 2013-10-08 22:01:40 -07:00
Emily Stark
cd0b6eb22f Use pollUntil in waitForLoggedOutStep 2013-10-08 22:01:40 -07:00
Emily Stark
abd9669099 Minor password test changes 2013-10-08 22:01:40 -07:00
Emily Stark
b44f0a61df Test for invalidated token after expireTokens. 2013-10-08 22:01:40 -07:00
Nick Martin
4e922fd709 remove ie8 hack from tests. for some reason it is no longer needed. 2013-10-08 21:30:39 -07:00
Nick Martin
57c87a403d OCD 2013-10-08 20:03:02 -07:00
Nick Martin
93c23470aa make a bunch of packages internal.
please remember to set this when making new packages.
2013-10-08 19:58:48 -07:00
Nick Martin
9f2188b5da Not sure why, but opera is better now (including old versions). I guess one of the minimongo changes caused the ordering to be different. 2013-10-08 00:42:52 -07:00
Nick Martin
28082f33e1 Fix issue where login callbacks could be called multiple times on reconnect. 2013-10-08 00:10:33 -07:00
Nick Martin
e5dd8f4f8e Better error handling if resetPassword fails. Also, handle setLoginToken(null) better. 2013-10-07 23:33:04 -07:00
Nick Martin
b09f206753 Specify userId in one other expireTokens call. Add a check to make sure we don't do it again. 2013-10-07 21:53:57 -07:00
Nick Martin
468eb6a1bf Fix typo in index name. We were not indexing password reset tokens correctly. 2013-10-07 21:53:57 -07:00
Nick Martin
9bad3afcfb Fix reset email test. NOTE: still needs work on error handling. 2013-10-07 21:53:57 -07:00
Nick Martin
f9504f215e Add test parameter so we only expire tokens for our user, not everyone. 2013-10-07 21:53:57 -07:00
Nick Martin
bc8406d8a0 add XXX note 2013-10-07 21:53:56 -07:00
Nick Martin
2deb0e9b62 break 'long series' test into smaller tests. 2013-10-07 21:53:56 -07:00
Nick Martin
6ca55ec189 Remember to call this._setLoginToken the other places we call this.setUserId
This makes me feel that this._setLoginToken is the wrong pattern even more strongly.
2013-10-07 21:53:56 -07:00
Slava Kim
799dd35319 Merge branch 'minimongo-near' into devel
Conflicts:
	History.md
	LICENSE.txt
2013-10-07 16:55:10 -07:00
Slava Kim
24b3ca13e1 Another test for minimongo $near inside $and clause
It throws no matter how deep is $near.
2013-10-07 16:50:27 -07:00
Slava Kim
d1518f4f17 Package wrapper for geojson-utils package to keep original code unchanged. 2013-10-07 16:07:45 -07:00
Slava Kim
7c9122ef09 Make geojson-utils a strong dependency of minimongo. 2013-10-07 14:30:54 -07:00
David Glasser
52e59350db Minor refactorings to restrictCreationByEmailDomain:
- test all emails if there is more than one (instead of relying on
  accounts-password to only set one)
- simplify boolean logic
- typo fix
2013-10-04 12:47:16 -07:00
David Glasser
38ed624909 Don't do Google domain redirect if restrictCreationByEmailDomain is function. 2013-10-04 12:46:17 -07:00
David Glasser
6fcff6d85d Warn if Accounts.config is only called on the client. 2013-10-04 12:41:45 -07:00
David Glasser
94c7833c82 Delete unused JSAnalyze.findGlobalDottedRefs.
Because it is currently unused and was the only direct use of the 'estraverse'
module, it seems better to minimize the number of dependencies shipped with
Meteor. Admittedly, estraverse is still a dependency of escope, but if we
upgrade escope to a version that has a more specific version requirement for
estraverse that conflicts with our Npm.depends, we'll be shipping two copies for
no reason.
2013-10-04 09:46:48 -07:00
David Glasser
6a836cca94 Use escope's native implicit global variable search code instead of our own.
That code was buggy when we first wrote linker; we reported the bugs and the
maintainer fixed it. Yay!
2013-10-04 09:31:58 -07:00
David Glasser
14e93abce3 Use a fork of Uglify again. 2013-10-03 17:06:55 -07:00
David Glasser
6528f9eef7 Avoid calling _.each on numbers (Underscore 1.5.2 doesn't like it).
Simplify NaN detection.
2013-10-03 15:52:20 -07:00
David Glasser
ceb37b48c6 Shrinkwrap update. 2013-10-03 15:52:19 -07:00
David Glasser
85a42e908c remove outdated comment 2013-10-03 15:52:19 -07:00
David Glasser
26af82fcf0 Upgrade lots of package Npm dependencies. 2013-10-03 15:52:19 -07:00
David Glasser
c03879f780 Upgrade lots of dev bundle NPM modules.
Needs a license review.
2013-10-03 15:52:19 -07:00