Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix loading of extensions by removing sample-ui-plugin #4251

Merged
merged 2 commits into from
Sep 23, 2020

Conversation

a-b-r-o-w-n
Copy link
Contributor

Description

In #4224, the way builtin plugins are loaded changed which breaks when the extensions.json file already existed, due to a failure to load the sample-ui-plugin. This just removes that from the manifest.

Task Item

#minor

beyackle
beyackle previously approved these changes Sep 23, 2020
@coveralls
Copy link

coveralls commented Sep 23, 2020

Coverage Status

Coverage remained the same at 55.63% when pulling 4b46adf on abrown/fix/loading-extensions into 0f8efe2 on main.

@a-b-r-o-w-n a-b-r-o-w-n merged commit e6f5405 into main Sep 23, 2020
@a-b-r-o-w-n a-b-r-o-w-n deleted the abrown/fix/loading-extensions branch September 23, 2020 21:14
@@ -245,12 +245,15 @@ class ExtensionManager {
const extensionInstallPath = path.dirname(fullPath);
const packageJson = (await readJson(fullPath)) as PackageJSON;
const isEnabled = packageJson?.composer && packageJson.composer.enabled !== false;
const metadata = getExtensionMetadata(extensionInstallPath, packageJson);
Copy link
Contributor

Choose a reason for hiding this comment

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

why was this moved out of the if statement if the else if does not contain any reference to metadata?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question. I had a version where I was just disabling the extension but setting the other metadata fields. I felt like removing the extension is better but forgot to move this back.

Copy link
Contributor

Choose a reason for hiding this comment

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

we can just move it back on some other PR

alanlong9278 added a commit to alanlong9278/BotFramework-Composer that referenced this pull request Sep 28, 2020
* main:
  fix: update l10n file (microsoft#4247)
  fix: fix loading of extensions by removing sample-ui-plugin (microsoft#4251)
  fix: split qna resource to another template (microsoft#4212)
  feat: UI Schema - Recognizer (microsoft#4135)
  fix: Change http to https for petstore.swagger.io calls (microsoft#4238)
  feat: install remote extensions from npm (microsoft#4224)
  fix: refactored select skill ui-plugin (microsoft#4207)
  feat: Added fieldSets to UIOptions (microsoft#4231)
  fix: New LG template not sync to other locale files (microsoft#4230)
@cwhitten cwhitten mentioned this pull request Nov 13, 2020
benbrown pushed a commit to benbrown/BotFramework-Composer that referenced this pull request May 24, 2021
* main:
  fix: update l10n file (microsoft#4247)
  fix: fix loading of extensions by removing sample-ui-plugin (microsoft#4251)
  fix: split qna resource to another template (microsoft#4212)
  feat: UI Schema - Recognizer (microsoft#4135)
  fix: Change http to https for petstore.swagger.io calls (microsoft#4238)
  feat: install remote extensions from npm (microsoft#4224)
  fix: refactored select skill ui-plugin (microsoft#4207)
  feat: Added fieldSets to UIOptions (microsoft#4231)
  fix: New LG template not sync to other locale files (microsoft#4230)
benbrown pushed a commit that referenced this pull request Jun 11, 2021
* main:
  fix: update l10n file (#4247)
  fix: fix loading of extensions by removing sample-ui-plugin (#4251)
  fix: split qna resource to another template (#4212)
  feat: UI Schema - Recognizer (#4135)
  fix: Change http to https for petstore.swagger.io calls (#4238)
  feat: install remote extensions from npm (#4224)
  fix: refactored select skill ui-plugin (#4207)
  feat: Added fieldSets to UIOptions (#4231)
  fix: New LG template not sync to other locale files (#4230)
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
…t#4251)

* fix loading of extensions by removing sample-ui-plugin

* remove builtin extension from manifest if not enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants