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

Auto-install extensions #9573

Merged
merged 2 commits into from
Oct 16, 2014
Merged

Auto-install extensions #9573

merged 2 commits into from
Oct 16, 2014

Conversation

redmunds
Copy link
Contributor

Squashed version of #9490


Automatically install extensions "bundled" with installer on startup. This feature relies on the installer putting zip files for "bundled" extensions into the [install-dir]/auto-install-extensions/ folder.

This is for #9233


Testing Matrix for auto-install-extensions folder

Should fail silently

  • is missing
  • is empty
  • contains file which has non-zip file extension
  • contains file which has non-extension with zip file extension
  • contains extension that is already auto-installed
  • contains extension that is already manually installed
  • contains extension that has a newer version auto-installed
  • contains extension that has a newer version manually installed
  • contains extension that was already auto-installed, then manually removed

Should install extension

  • contains extension that is not yet installed (auto or manually)
  • contains extension that has an older version auto-installed
  • contains extension that has an older version manually installed

@redmunds redmunds mentioned this pull request Oct 16, 2014
@redmunds
Copy link
Contributor Author

@dangoor This is ready to merge for testing. I'm still looking at how we can add some unit tests.

@ingorichter ingorichter self-assigned this Oct 16, 2014
@@ -97,6 +105,8 @@ define(function (require, exports, module) {
var _idsToRemove = [],
_idsToUpdate = [];

PreferencesManager.definePreference(FOLDER_AUTOINSTALL, "object", undefined);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I missed this line on my last review. This isn't a preference, so it should not be defined on the PreferencesManager. It should either be PreferencesManager.stateManager.definePreference or not here at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@dangoor
Copy link
Contributor

dangoor commented Oct 16, 2014

@ingorichter Are you testing on the branch? I'd be fine merging this now because the one comment I had above doesn't impact the behavior here. It's just something we should clean up.

@dangoor
Copy link
Contributor

dangoor commented Oct 16, 2014

Merging

dangoor added a commit that referenced this pull request Oct 16, 2014
@dangoor dangoor merged commit 8ee6055 into master Oct 16, 2014
@dangoor dangoor deleted the randy/auto-install-bundle-squashed branch October 16, 2014 20:48
@ingorichter
Copy link
Contributor

I'm done with testing. I found one issue that is reported here #9576

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