-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Users/suaggar/dynamic extension list #7071
Conversation
|
||
for(var extensionID of extensionList) { | ||
var siteExtensionDetails = null; | ||
|
||
// Python extensions are moved to Nuget and the extensions IDs are changed. The belo check ensures that old extensions are mapped to new extension ID. | ||
if(!allSiteExtensionMap[extensionID]){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: space before {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@@ -129,6 +129,26 @@ export class KuduTests { | |||
} | |||
} | |||
|
|||
public static async getAllSiteExtensions() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for L0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks :)
var extensionLocalPaths: string = ""; | ||
for(var siteExtension of siteExtensions) { | ||
siteExtensionMap[siteExtension.id] = siteExtension; | ||
} | ||
for(var siteExtension of allSiteExtensions) { | ||
allSiteExtensionMap[siteExtension.id] = siteExtension; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Can we include the title too in the map?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
@@ -141,6 +141,7 @@ | |||
"loc.messages.FailedToStartContinuousWebJob": "Failed to start continuous WebJob '%s'. Error: %s", | |||
"loc.messages.FailedToStopContinuousWebJob": "Failed to stop continuous WebJob '%s'. Error: %s", | |||
"loc.messages.FailedToGetSiteExtensions": "Failed to get site extensions. Error: %s", | |||
"loc.messages.FailedToGetAllSiteExtensions": "Failed to get all site extensions. Error: %s", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Failed to get extension feed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
incorporated
|
||
for(var extensionID of extensionList) { | ||
var siteExtensionDetails = null; | ||
|
||
// Python extensions are moved to Nuget and the extensions IDs are changed. The belo check ensures that old extensions are mapped to new extension ID. | ||
if(allSiteExtensionMap[extensionID] && allSiteExtensionMap[extensionID].title == extensionID) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we simplify the condition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are updating extensionID only when its value is matching title of some siteextension.
Dynamic install extensions drop down
Issue to remove escape character in extension title:
toby-meyer/AzSecurityPackRedirectAndHeadersMed#4