Commit Graph

8932 Commits

Author SHA1 Message Date
ekatek
ad708ca569 this should fix local versionsFrom in most cases and is technically right 2014-08-05 13:31:24 -07:00
David Glasser
62db7b694c api.versionsFrom may only be called once 2014-08-05 13:17:26 -07:00
David Glasser
845286b925 Merge branch 'devel' into packaging 2014-08-05 13:13:27 -07:00
ekatek
82323fcfa9 do not close the connection 2014-08-05 13:10:56 -07:00
ekatek
ecaa9e0231 download all dependencies to be on the safe side 2014-08-05 13:10:56 -07:00
ekatek
bcf85a42b9 don't print out add messages when no versions file present 2014-08-05 13:10:56 -07:00
ekatek
64ddf8a979 fixing the amIAuthorized issues 2014-08-05 13:10:56 -07:00
ekatek
5e4c8cd276 search --mine 2014-08-05 13:10:55 -07:00
ekatek
98a9b5b31a don't check authorization on the client 2014-08-05 13:10:55 -07:00
David Glasser
835eb66377 a tiny bit more info to help debug an error 2014-08-05 12:56:07 -07:00
David Glasser
ddc3657e4f Watch files which fail before emitting a resource
Regression introduced by the CSS watching code (specifically, f230eba62)
by the sourceIsWatched check. We need to be able to tell the difference
between "source handler didn't do anything because there was an error"
and "source handler didn't do anything because it's web-specific and
this is an os arch".

A simple fix would have been to interpret compileStep.error as
"sourceIsWatched = true", but I didn't think of that until after doing
it the slightly more complicated but more precise way :)

Also, ensure that if the runner rebuilds the client and there's an
error, it properly kills the app process (and the watchers and the
keepalive interval, etc).
2014-08-04 21:32:22 -07:00
Emily Stark
07852ebcbe Fix galaxy login 2014-08-04 20:38:33 -07:00
David Greenspan
5ff8117310 Update comments after looking into e7250a0
It seems that when ObserveSequence observed a Cursor, it used to stop() the observe when the main autorun was invalidated, creating a “gap” during which no callbacks would be received (or fired).  This was before we used Deps.nonreactive in the main autorun (shielding the cursor.observe from being stopped).  Now the observe is only stopped upon re-run or when the ObserveSequence is stopped, and there is no gap.

Removed references to this gap from comments.

I believe the current code is correct, and in addition, we could now optimize the cursor-to-same-cursor case (and basically not do anything if seq===lastSeq and is a Cursor, i.e. not stop the old handle, create a new handle, or diff).
2014-08-04 19:06:15 -07:00
David Glasser
7d05640ea0 Make buildmessage fiber-aware
Port a simplified version of Meteor.EnvironmentVariable and
Meteor.bindEnvironment to fiber-helpers.js to deal with this.

Identify uses of fiberHelpers.inFiber and switch them to either
fiberHelpers.bindEnvironment (if the callback they are wrapping is
semantically "part of" the context that creates the callback) or
fiberHelpers.inBareFiber (otherwise).

Without this, concurrency was causing the wrong buildmessage message
sets and jobs to be active when builds yielded.
2014-08-04 19:03:05 -07:00
David Glasser
4b7adf8397 Make events documentation more clear
Fixes #2335. See also Issue #2202.
2014-08-01 17:04:24 -07:00
MaximDubrovin
6345d92f07 move phantom_script.js setInterval into page.open callback
Until I made this I always got only ```<head/>``` with it's content, ```<body>``` was empty.

It seems setInterval script was finished earlier then url content was loaded to the page. Maybe because I have subscriptions with response time lower then 100ms so they were ready very quickly — database server in the same data center.

http://phantomjs.org/api/webpage/method/open.html
2014-08-01 16:44:04 -07:00
David Glasser
112198f3e8 Don't tell users to add ~/.meteor to PATH
Tilde expansion doesn't work in $PATH
2014-08-01 16:40:33 -07:00
ekatek
581b51afcc clean up misc, operations stuff 2014-08-01 15:29:19 -07:00
Avital Oliver
e7250a045f Eliminate _fetch on handles returned from cursor.observe()
This was originally introduced with
f1b77fec96, but it looks
like all of our tests now pass. (Maybe eliminating `rewind` in
b5a0613f85 made this no
longer necessary?)

If we find that this commit did break something, let's make sure to
add a failing test before reverting.
2014-08-01 15:01:26 -07:00
Avital Oliver
6166abde14 Reorg observe-sequence
(in preparation for {{#each}} over objects)
2014-08-01 14:59:48 -07:00
Avital Oliver
80b0973507 rename bindToCurrentDataIfIsfunction to bindDataContext
(for clarity)
2014-08-01 14:58:11 -07:00
ekatek
9d5aa280c3 invalid release should be a buildmesage, not an error 2014-08-01 00:13:08 -07:00
Justin SB
93b7a6fb10 Add some more scenarios for benchmark 2014-07-31 19:58:16 -07:00
David Glasser
d7594fd72d Code change from packaging-PREVIEW branch 2014-07-31 15:16:52 -07:00
David Glasser
1d17caeeaf Merge branch 'devel' into packaging 2014-07-31 15:07:40 -07:00
Emily Stark
bf0e0b61df Fix usage of timeoutScaleFactor in test-utils 2014-07-31 15:05:56 -07:00
David Glasser
8adb56b2b3 Fix typo in make-bootstrap-tarballs 2014-07-31 14:33:23 -07:00
David Glasser
09faa5371a Merge branch 'packaging-only-client-archs' into packaging 2014-07-31 14:20:49 -07:00
David Glasser
cee6d7401e fix orderKey regexp 2014-07-31 14:12:21 -07:00
Matthew Arbesfeld
8bcbd65344 Separate "browser" target into web.browser/cordova
Cordova projects often have a different set of files than web targets,
so we would like to be able to target different client architectures in
our bundles. Ideally, we allow the user to use arbitrary client
architectures - but this patch is a step in the right direction by
abstracting out more of the hard coded "browser"/"os" lines.

We accomplish this separation in a backwards compatible way by allowing
api.___ commands to target a "client" architecture. For example,
api.addFiles('a.js', 'client') adds 'a.js' to both the 'client.browser'
and 'client.cordova' targets.

Effects on 0.9 packaging stuff: packages don't have to change, but the
"data.json" file in ".meteor0" has "browser" in some places. We think we
have to fix the troposphere code where this data.json is created.

Some plugins will also be backwards-incompatible with this change, since
many have a "clientArch.matches("browser")" line in the plugin
code. Ideally, we fix plugins so that this stops being an issue, but for
now package authors can just patch that line.

At the compiled (unipackage) level the new names are 'web.browser' and
'web.cordova', replacing 'browser'. In package.js, the new names are
'client.browser' and 'client.cordova', serving as an adjunct to 'client'.
2014-07-31 14:12:15 -07:00
ekatek
722ebace9a don't just crash on unknown packages when changing admin 2014-07-31 13:53:40 -07:00
ekatek
1976d4f4f1 different error code for server errors 2014-07-31 13:53:40 -07:00
David Glasser
06a7dc90b5 Add many buildmessage.capture/assertInCapture
Moving towards a world where all things that might invoke buildmessage.error are
encouraged to be in a buildmessage.capture.

This commit is the answer to the question "how many small changes need to be
made to add buildmessage.assertInCapture to PackageCache.loadPackageAtPath?"

Next steps include:
 - Making catalog.resolveConstraints ALWAYS buildmessage.assertInCapture
   (not just when ignoreProjectDeps isn't passed)
 - Then changing resolveConstraints to complain using buildmessage
 - Removing the process.exit(1) in _ensureDepsUpToDate
 - Adding a more structured way to ensure that most commands
   call _ensureDepsUpToDate at an unsurprising location
2014-07-30 22:16:21 -07:00
David Glasser
b11a623193 assert rebuildLocalPackages in capture 2014-07-30 20:38:27 -07:00
David Glasser
e59fb948b5 fix tests broken by 6850b679e9 2014-07-30 19:24:55 -07:00
David Glasser
c5acfdf8c1 add missing underscore dep 2014-07-30 19:24:47 -07:00
David Glasser
26006d53dc Merge branch 'devel' into packaging
Conflicts:
	tools/utils.js
2014-07-30 17:40:44 -07:00
Avital Oliver
30e02600b4 Add guard I forgot to add in 693b78001c
(Thanks @justinsb for noticing this!)
2014-07-30 16:55:49 -07:00
Avital Oliver
7c4af8d12f Add guard I forgot to add in 693b78001c
(Thanks @justinsb for noticing this!)
2014-07-30 16:51:12 -07:00
Avital Oliver
d8e28eb74b Also log sanitized error in server logs (which gets sent to client) on match errors 2014-07-30 16:23:17 -07:00
Avital Oliver
135dd942aa Expose match failures in server logs 2014-07-30 16:23:17 -07:00
Tom Wang
114b36bbcb fix typo 2014-07-30 16:23:17 -07:00
David Glasser
e76332b102 Make it more clear that the clone is for transform 2014-07-30 16:23:17 -07:00
Mitar
9fd2214d89 Assure that transform is not changing cached object. 2014-07-30 16:23:17 -07:00
Ryan Yeske
2658a18a01 recognize forceApprovalPrompt option in Accounts.ui.config
this option was originally added via #1226
2014-07-30 16:23:17 -07:00
Avital Oliver
b85e3e1c5e Update History.md: log match errors on server 2014-07-30 16:22:58 -07:00
Avital Oliver
6d57079bd0 Merge branch 'avital-expose-match-errors-on-server' into devel 2014-07-30 16:21:55 -07:00
Avital Oliver
693b78001c Also log sanitized error in server logs (which gets sent to client) on match errors 2014-07-30 16:21:13 -07:00
ekatek
0460c5015f oh right wrap try around the block that can actually fail 2014-07-30 16:01:32 -07:00
ekatek
a91ff48da5 Allow MDG members to publish unprefixed releases in client 2014-07-30 15:58:12 -07:00