Commit Graph

2603 Commits

Author SHA1 Message Date
Naomi Seyfer
fb65a1ea54 Stop having errors from bootstrap; m_l_t on tests 2013-02-19 16:30:37 -08:00
Naomi Seyfer
462f989c2e Addition to History.md about using pre-existing Mongo 2013-02-19 10:57:11 -08:00
Naomi Seyfer
f741531c01 Fixed inaccurate/old api for publish removed 2013-02-19 10:18:29 -08:00
Naomi Seyfer
f932d63443 Updated History.md draft 2013-02-18 14:31:25 -08:00
Naomi Seyfer
a2c9561ce2 Incrementing versions 2013-02-18 14:23:11 -08:00
David Glasser
76162f9b06 Improve id-invalidation test to explicitly be about "how many times did polling
happen?" rather than "how many things changed"?
2013-02-15 18:23:18 -08:00
David Glasser
74921182b5 Reduce unnecessary Mongo polling in more cases.
Specifically, we can now detect if a selector matches at most a fixed set of
IDs (instead of just "at most one ID"), both for queries and for writes. This
includes every write made from the client on a restricted collection!
2013-02-15 18:23:17 -08:00
David Glasser
a8fb7b4316 Reduce unnecessary Mongo polling.
Specifically, updates and removes that specify a specific _id, and all inserts,
should not require live queries that specify a specific different _id to poll.

This involves changing the InvalidationCrossbar matching semantics. I suspect
that a future version of the InvalidationCrossbar may want the old semantics, if
the notifications it is receiving are more oplog-driven than command-driven, but
this will work for now.

Also, make the O(1) optimization on minimongo remove("id") actually work.
Previously it was declawed by the fact that Meteor.Collection.remove normalizes
to {_id: "id"}.
2013-02-15 18:20:17 -08:00
Naomi Seyfer
2983419e5f Better UI for in-browser test runner 2013-02-15 16:59:42 -08:00
David Greenspan
9fd43419fa Fix #604: input with name="id" in form 2013-02-15 12:05:09 -08:00
Naomi Seyfer
657c101b2b Merging master to devel for 0.5.6 2013-02-15 11:16:52 -08:00
Naomi Seyfer
405cd9e86c Merge branch 'release-0.5.6' 2013-02-15 11:06:51 -08:00
Nick Martin
a7cc8a9277 Merge branch 'pr-680' into devel 2013-02-14 21:52:24 -08:00
Nick Martin
33a4cd617b Add a bunch of comments. 2013-02-14 21:50:17 -08:00
Andrew Wilcox
148670cfc6 add ##HTML_ATTRIBUTES## to app.html.in 2013-02-14 20:14:49 -08:00
Andrew Wilcox
cc27c50339 Browser identification and html attributes hook
This commit is theoretically independent of the route policy PR, but
had multiple merge conflicts with it.  This PR branch thus is based on
the route policy PR.  (That is you should only merge this PR if you've
already merged the route policy PR).

Adds an html attribute hook, used by the appcache package to insert the
manifest attribute into the app HTML.

However, to use the hook the appcache package needs to be able to
identify the browser (to decide whether to include the attribute or
not for that browser).

We now have multiple places that want to identify the browser: the
unsupported browser page, the appcache package, and, if we eventually
implement not delivering large polyfills to browsers that don't need
them, in app HTML generation code as well.

To avoid detecting the browser in multiple places ad-hoc, this commit
creates a Meteor "browser" object, intended to be a standard way of
identifying the browser server-side.  It uses but does not expose the
npm useragent module (we could choose a different mechanism to
identify the browser in the future if we wanted to).  The browser
object contains

* `name`: the name of the browser in camel case
* `major`, `minor`, `patch`: integers describing the browser version

In addition to the html attribute hook, the appcache package also
needs a way to get from the connect `req` object to the identified
browser (browsers *start* caching when they see the manifest
attribute, but only *stop* caching when they get a 404 for the
manifest...)

Eventually though we'd like smart packages to be able to serve content
without having to plug directly into connect.

This commit thus also introduces an early version of a Meteor
`request` object, intended to be a high-level description of the
request without exposing details of connect's low-level `req`.
Currently it contains:

* `browser`: browser identification object described above
* `url`: parsed url, including parsed query params

To get started, as a temporary measure I've added a
`categorizeRequest` function to __meteor_bootstrap__ which converts a
connect `req` to a Meteor `request`.  (Suggestions for a better name
are welcome).  This can go away once smart packages such as appcache
are being passed a `request` object directly when they serve content.

This allows `request` to be used uniformly: it is passed to the html
attributes hook, and the appcache package can use it when deciding
whether to generate a 404 for the manifest.
2013-02-14 20:14:49 -08:00
Naomi Seyfer
039fdf3f5d Merge branch 'ddp-pre1' into devel 2013-02-14 19:11:37 -08:00
Naomi Seyfer
a832d274cb Few more things in History.md 2013-02-14 19:08:06 -08:00
Naomi Seyfer
5235bbac2b Wordsmithing History.md 2013-02-14 19:03:37 -08:00
Naomi Seyfer
6da6cb4e7e vNEXT History.md changes for when ddp-pre1 is released 2013-02-14 18:52:58 -08:00
Naomi Seyfer
9f22ca14fd Merge branch 'devel' into ddp-pre1 2013-02-14 18:31:10 -08:00
David Glasser
88b88e4947 spec changes:
- clients need to take a new connection

- note URLs for sockjs and websocket

- wrapping
2013-02-14 18:18:35 -08:00
Naomi Seyfer
f11271dd4b IE8 Compatibility fixes 2013-02-14 17:05:51 -08:00
Geoff Schmidt
3698c640b8 DDP.md: add a bit more about version negotiation 2013-02-14 17:04:26 -08:00
Benjamin Chelli
aaa86c3e2d Fix override for icon-white
CSS Selector was not matching => wrong image loaded in certain cases
v0.5.6
2013-02-14 16:51:26 -08:00
David Glasser
ec852121ff Fix selectors matching against arrays containing subdocuments.
This is a 0.5.5 regression (with the new selector compiler): the new compiler
handled selectors with "a.b.c" reasonably well if the "c" level contained an
array but not if the "a" or "b" levels did.

This also implements mostly-Mongo-compatible behavior for sorting when arrays
are involved; this is not an 0.5.5 regression, since the old compiler did not
get this right.
2013-02-14 16:49:39 -08:00
David Glasser
1535fe3437 Bump version number and add release notes. 2013-02-14 16:49:06 -08:00
David Glasser
18035641f5 Fix selectors matching against arrays containing subdocuments.
This is a 0.5.5 regression (with the new selector compiler): the new compiler
handled selectors with "a.b.c" reasonably well if the "c" level contained an
array but not if the "a" or "b" levels did.

This also implements mostly-Mongo-compatible behavior for sorting when arrays
are involved; this is not an 0.5.5 regression, since the old compiler did not
get this right.
2013-02-14 16:38:44 -08:00
Naomi Seyfer
b4984368bd Added note about future ordered DDP 2013-02-14 15:49:23 -08:00
Naomi Seyfer
6e40ecfc8e Edits to DDP-pre1 informal spec 2013-02-14 15:46:05 -08:00
Naomi Seyfer
07656a249e Initial draft of DDP informal spec 2013-02-14 15:34:53 -08:00
Naomi Seyfer
5c48f097c5 Fix css selector for white icons in bootstrap
Merge branch 'pr-683' into devel
2013-02-14 14:36:07 -08:00
Naomi Seyfer
b2738e2346 Switch to using the right URI and comment what we are doing 2013-02-14 14:29:05 -08:00
Benjamin Chelli
1e22db062d Fix override for icon-white
CSS Selector was not matching => wrong image loaded in certain cases
2013-02-14 14:21:08 -08:00
Nick Martin
8896281b05 Merge remote-tracking branch 'remotes/origin/pr/679' into devel. Fixes #679. 2013-02-13 21:10:59 -08:00
David Glasser
8a69e74a5d Regexps that match "undefined" should not match nonexistent fields. 2013-02-13 19:04:50 -08:00
David Glasser
cc53ff3ac0 Implement $type and sorting for ObjectID, Date, and Binary. 2013-02-13 18:56:20 -08:00
David Glasser
e1b07e4848 Merge branch 'devel' into ddp-pre1 2013-02-13 17:05:07 -08:00
Nick Martin
7677944d3d Merge branch 'master' into devel 2013-02-13 16:33:03 -08:00
Nick Martin
3753c989fd Merge branch 'release-0.5.5' 2013-02-13 16:32:38 -08:00
David Glasser
8cf0d8f9b3 Deal more consistently with non-object bad DDP frames. 2013-02-13 15:02:06 -08:00
David Glasser
806ffc6b60 Updates to ObjectID docs. 2013-02-13 14:46:27 -08:00
David Glasser
2185b21be5 random docs: feedback from review. 2013-02-13 14:41:31 -08:00
Nick Martin
edda1f908c One last feature. v0.5.5 2013-02-13 13:57:36 -08:00
David Glasser
e12c6fd89a Various tests for count() with sort/limit/skip.
Patch by: Ted Blackman <ted.blackman@gmail.com>

(Ted fixed a bug on devel that was preventing these tests from passing. On the
ddp-pre1 branch, the bug was fixed in a different way, but the tests are still
useful.)
2013-02-13 13:56:52 -08:00
jperl
8307460df8 Return all basic google and facebook profile fields 2013-02-13 13:50:52 -08:00
Avital Oliver
5a3922b0c9 Simplify Google login configuration wizard 2013-02-13 13:12:16 -08:00
Avital Oliver
bb8e6ba94d Merge pull request #664 from jperl/auth-profile-data
Return all basic google and facebook profile fields
2013-02-13 12:56:16 -08:00
Nick Martin
30fe79bf1b Final tweaks to History. 2013-02-13 12:20:02 -08:00
David Glasser
82e2098102 Rename offending_message field to camel-case. 2013-02-13 11:03:54 -08:00