Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Validate and install extensions (final) #3157

Closed
wants to merge 45 commits into from
Closed

Conversation

njx
Copy link
Contributor

@njx njx commented Mar 18, 2013

This supersedes #3137, and should contain just the changes for the installer pull request separate from the node modules in #3156.

njx and others added 30 commits March 18, 2013 16:36
(Doing this separately from the other extension installation changes so we don't
overwhelm the diff view on github.)
…ate, but if you can access the class show() should be public). Also, remove the installer param to _showDialog() since it's never used.
installed (installing into disabled in those cases)
legally, and the test that follows the deleted one catches validation
issues in general)
the installation and mocks the extension loading to verify
that the extension *would* load.

disabled the test because it can only run once and will
fail on the second run because there's no way to delete the
target directory
dangoor and others added 15 commits March 18, 2013 16:44
…ng Ok

in dialog triggers download, but we don't yet do the validation afterward.
No cancelation yet, and errors aren't exposed in UI anywhere.

Includes a few cleanups to improve Node connection error cases.
…kage

'backend' layer with state tracked more rigorously. Centralize wrap-up
code that runs when a download is over (for whatever reason).
- if you're fast enough to click cancel when it's doing something other
  than downloading, it won't work right
- there's a race condition where sometimes we try to start install/validate
  before the downloaded file is fully saved to disk
- downloaded ZIP file isn't deleted after installation

Also fixes a few glitches in the validate/install code and a few formatting
issues that fell out of my last rebase.
…ix bug

where canceling download switched to error UI state instead of cancelation
state.
readStream, changing to synchronous exists to avoid possible
race, handling edge case where there might appear to be a commonPrefix
in a zip package but there actually isn't.
…h to

disk fully before beginning to process it.
* Delete temp downloaded file once it's done being processed.
* Small improvements to error result handlng.
* Use periods consistently in error message strings & group them with other
extension UI strings.
just a string, since that is an exceptional condition
…cts,

unlike our simple usage of the default Node APIs. Eliminate download-size
limit since it seems unimportant & makes the code a bunch more verbose.
* Fix bug where we didn't actually clean up downloaded ZIP when done with it.
@njx
Copy link
Contributor Author

njx commented Mar 18, 2013

Oops. Forgot to set this to pull into the right branch. Closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants