Commit Graph

12707 Commits

Author SHA1 Message Date
Denis Gorbachev
44bbd7f34c Cleanup Minimongo.Matcher instantiation
We've actually been wrapping our head over passing collection to Minimongo.Matcher before realizing that it doesn't really use the second argument.
2015-02-03 13:22:28 -08:00
David Glasser
bd78bef9a4 Update Contributing.md
Make it more clear that you should click through to the wiki page.
2015-02-03 13:17:31 -08:00
David Greenspan
6705025880 Kill old version-parser test, rescue another
I found this entire file of commented-out self-tests.  The
version-parsing part seems out-dated now, but there are tests of 
utils.defaultOrderKeyForReleaseVersion in there that seem legit, which
I re-enabled.
2015-02-02 13:20:45 -08:00
David Greenspan
45752e3203 parseConstraint -> parsePackageConstraint
In the return value, `name` has been changed to `package`,
and `vConstraint` is now `versionConstraint`.

`constraint.package` is better than `constraint.name`, where
`constraint` is a PackageConstraint.  It's also more consistent
with functions like parsePackageAtVersion which return an object
like `{package, version}`.

`vConstraint` was too cryptic.

Changes were discussed with Glasser in a code review.

Troposphere does not call parseConstraint or work with constraint
objects, so it doesn't need to change.

This is a breaking change to the package-version-parser API (or one
method of it, at least), but it is considered an internal API so we
are not worrying too much about it.
2015-02-02 13:13:31 -08:00
David Greenspan
948d7e34da remove unused package-version-parser function 2015-02-02 12:42:13 -08:00
David Greenspan
e7ee6184a6 Change return value of utils.parsePackageAtVersion
name -> package, as per code review
2015-02-01 12:53:03 -08:00
Sashko Stubailo
8149538e9c stop underscore from failing on non-existent function
For Template.body, there is no template instance, so the _.bind inside helpers
fails
2015-01-29 19:33:55 -08:00
David Glasser
dbea793f6a History.md updates 2015-01-29 17:07:09 -08:00
David Glasser
dde3924c9d Make MongoConnection constructor always wait
Summary:
Previously, the MongoConnection constructor (which gets called
implicitly the first time you make a Mongo.Collection) would wait for a
successful connection before returning ... if an oplog URL is supplied.
If not in oplog mode, it would return before the connection is
successful, and the first subsequent calls that actually tried to do
something with the DB would block instead.

Having an inconsistent API that is sometimes sync and sometimes async is
not very clear.  Moreover, error handling from connect was strange.
Prior to 0.8.1 (24a0006c), connect errors would be thrown
uncatchably (ie, from an unrelated context).  Starting with 0.8.1,
connect errors would effectively be ignored due to the new
bindEnvironment (they'd be logged, but all code would continue
normally).

It's pretty important that startup connection errors crash the server
process instead of letting it keep running unproductively.  And it would
also be nice if those errors could be caught (if you're making a
MongoConnection in your own code).  So this change ensures that
connection errors get thrown by the MongoConnection constructor.

Fixes #3038.

Test Plan: new unit test. manual test with MONGO_URL=xxx

Reviewers: ben

Subscribers: justinsb

Differential Revision: https://phabricator.meteor.io/D19
2015-01-29 16:56:22 -08:00
David Glasser
c0ea40230e Merge branch 'legacy-code-cleanup' into devel 2015-01-29 14:03:51 -08:00
David Glasser
299f413617 Remove support code for legacy systems
Summary:
What I'm looking for here is: attention to the few parts that aren't just
deletions (eg in auth.js), and thoughts about if removing any of these things
might break systems I haven't thought about.

Test Plan: test-packages, self-test (which mostly passes)

Reviewers: ekatek

Differential Revision: https://phabricator.meteor.io/D18
2015-01-29 14:03:41 -08:00
David Glasser
aff7f37d04 Remove legacy follower-livedata package 2015-01-29 14:03:28 -08:00
David Glasser
5990e71ddc Remove legacy AppConfig code
Nothing ever made full use of the promise of the complexity of the
API (configuration that can change at runtime) anyway.

This includes completely ignoring the $APP_CONFIG variable.

I opened GitHub issues against the only Atmosphere packages that had
dependencies on application-configuration (none of which actually used
the package other than by declaring the dependency).
2015-01-29 14:03:20 -08:00
David Glasser
7c40c3c5a6 Remove legacy proxy-binding
Also remove SIGHUP handler. This was designed for a legacy system, and
SIGHUP would be a better fit for what autoupdate currently uses SIGUSR2
for.  This includes removing some code in the ddp server to close
sockets on SIGHUP.
2015-01-29 14:03:11 -08:00
David Glasser
62037959fe Clean up comments about legacy code 2015-01-29 14:03:11 -08:00
David Glasser
df37fe5a9d Remove legacy login support
This includes `meteor login --galaxy`.

We still should be capable of cleaning up legacy tokens when we find
them.
2015-01-29 14:03:11 -08:00
David Glasser
5cc93cea1a Remove legacy support from deploy-style commands
This includes removing the options `deploy --star`, `deploy --admin`,
and `logs -f`
2015-01-29 14:03:11 -08:00
David Glasser
0e0dfed6a8 Remove "control program" support
This was support code for a now unused system.
2015-01-29 14:03:10 -08:00
David Glasser
15b2569f79 Update READMEs of things we're about to delete 2015-01-29 13:52:11 -08:00
Ben Newman
26ebc82198 Use error.code instead of .errno in server/shell.js. 2015-01-29 14:41:00 -05:00
Ben Newman
d75f1889d7 Retry listening for meteor shell connections on EADDRINUSE errors. 2015-01-29 12:24:35 -05:00
Sashko Stubailo
d047be739e Remove unneeded rule 2015-01-29 09:09:48 -08:00
Sashko Stubailo
e2ad1fdbbf Turn off new parens rule 2015-01-28 22:18:10 -08:00
Sashko Stubailo
36dfb1dc83 Add warehouse.js to ignore for linting because it's old 2015-01-28 22:14:57 -08:00
Sashko Stubailo
b6e804f5ef Add eslintignore with everything but tools js files 2015-01-28 22:13:11 -08:00
Sashko Stubailo
5e029ba736 Add ESLint and fix most linter errors in watch.js 2015-01-28 21:47:22 -08:00
David Greenspan
361a80c243 Changes from Glasser code review
Includes all discussed changes except:
- Checking for troposphere PVP compatibility
- "vConstraint" -> "versionConstraint"
- "name" -> "package" in utils.parsePackageAtVersion
2015-01-28 16:45:01 -08:00
Sashko Stubailo
633cfc21ae Add a way to reproduce previous behavior to History.md 2015-01-28 11:31:53 -08:00
Sashko Stubailo
07dc77ee5c Mention that the test tests helpers as well 2015-01-28 11:28:55 -08:00
Sashko Stubailo
58d921e926 Test in browser doesn't need docs right now
Conflicts:
	packages/test-in-browser/package.js
2015-01-28 11:06:28 -08:00
Sashko Stubailo
6b0f3d03b6 Improve History.md entry 2015-01-28 10:43:09 -08:00
Sashko Stubailo
368e8798a7 Update README.md 2015-01-28 10:21:24 -08:00
Sashko Stubailo
d2d05bedf5 Improve comment 2015-01-28 10:15:23 -08:00
Sashko Stubailo
06de4ae803 Merge branch 'event-current-data' into devel
Merge #3546

Use separate dynamic variable to track Template.instance(), and use
Blaze.currentView for Template.currentData() in event handlers
2015-01-28 10:12:35 -08:00
Sashko Stubailo
7201dbe84c Fix broked COMPAT comment 2015-01-28 10:06:38 -08:00
David Glasser
2771483390 Show 'admin' in top level 'meteor help'
Addresses #3474.
2015-01-27 18:44:03 -08:00
David Glasser
5269adefb1 Make 'meteor search' docs match implementation
Making the implementation match the previous docs is now a feature
request: #3521
2015-01-27 17:59:40 -08:00
David Glasser
5c83a94edd Merge branch 'pr/3530' into devel
Fixes #3530. Fixes #3529.
2015-01-27 17:50:24 -08:00
David Glasser
f8f90f949c Add a comment explaining why this file is so weird 2015-01-27 17:48:33 -08:00
Ronen Babayoff
eeb95efaed Add no-ops for Meteor.publish, methods, and onConnection if no webapp 2015-01-27 17:45:22 -08:00
David Glasser
074087be8a meteor login --email was supposed to be boolean!
See #3532.

We honestly should probably just drop the option and allow you to type
either a username or a password, just like in accounts-ui.

Because options have to be consistently bool or not across commands (so
that you can put them before the command name), change the testing-only
dummy command's string option to a different nonsense name.
2015-01-27 14:17:41 -08:00
Sashko Stubailo
fee892c43e Merge pull request #3550 from romanzolotarev/patch-1
Update README.md
2015-01-27 11:58:06 -08:00
Avital Oliver
f2840103ca Tests for Template.currentData and Template.parentData
A recent change fixed the behavior of `Template.currentData`
and `Template.parentData` in event handlers and helpers.
These are tests for the new, correct behavior.

(The old behavior read the data of the template instance.
The new behavior read the data context around the DOM node
where the event or helper ran)
2015-01-26 16:44:50 -08:00
Sashko Stubailo
b0ecad0ce2 Fix documentation of Template.currentData 2015-01-26 16:16:30 -08:00
David Glasser
93805ca3b6 Merge branch 'pr/2938' into devel
Fixes #2938.
2015-01-26 15:57:21 -08:00
David Glasser
e2706b1390 History update. 2015-01-26 15:57:10 -08:00
David Glasser
1829cfee15 Remove obsoleted comment 2015-01-26 15:55:50 -08:00
Andrew Wilcox
5f1c8f2eeb Add spiderable support for hash fragments
Since the browser application cache appears not to support URL path
routes in a non-buggy way (see
https://github.com/meteor/meteor/pull/2926), applications using the
appcache package will want to use hash fragment routes instead.

This PR adds support to the spiderable package for hash fragment
routes.  An original URL such as `http://example.com/#!a=1&b=2` will
be encoded by a search engine as an escaped fragment, decoded by the
spiderable package, passed through to the phantomjs process, and
appear to the phantom client as `#!a=1&b=2` in `window.location.hash`
(the same as when the original URL is opened in a regular browser).
2015-01-26 15:54:47 -08:00
Avital Oliver
5862ec0363 Make Template.instance() correct in this.autorun() in templates
A previous change decoupled "current view" from "current template instance".
The code made sure to preserve "current view" explicitly within
`this.autorun`, but now we need to do the same for "current template instance"
2015-01-26 15:52:44 -08:00
David Glasser
c51eed9330 Clone return value from server-side method call
The server-side Meteor.call abstraction is "RPC", not "function call",
so you shouldn't be able to mutate internal state using it. This is a
similar change to that done in e91713d9 with function parameters.

Fixes #3201.
2015-01-26 15:36:48 -08:00