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

Python extension path fix - Azure App Service Manage Task #7044

Merged
merged 6 commits into from
Apr 23, 2018

Conversation

vincent1173
Copy link
Contributor

No description provided.

@@ -128,7 +129,7 @@ export class KuduServiceUtils {
}

private _getExtensionLocalPath(extensionInfo: JSON): string {
var extensionId: string = extensionInfo['id'];
var extensionId: string = extensionInfo['id'].replace(pythonExtensionPrefix, "");
Copy link
Member

Choose a reason for hiding this comment

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

do you want to do this only for python ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, planned to do only for Python. but the check wont harm other extensions, as they dont have this prefix as of now. will be removing this once dynamic extension feature is available. //adding comment to ensure the same.

@@ -53,8 +54,8 @@ export class KuduServiceUtils {

for(var extensionID of extensionList) {
var siteExtensionDetails = null;
if(siteExtensionMap[extensionID]) {
siteExtensionDetails = siteExtensionMap[extensionID];
if(siteExtensionMap[extensionID] || (extensionID.startsWith('python') && siteExtensionMap[pythonExtensionPrefix + extensionID])) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we do case insensitive check?
The same applies for replace call below

Copy link
Contributor Author

@vincent1173 vincent1173 Apr 23, 2018

Choose a reason for hiding this comment

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

case insensitive check is not required here, as it worked for early scenarios.
However, When extension is made dynamic list, it will be handled.

@@ -53,8 +54,8 @@ export class KuduServiceUtils {

for(var extensionID of extensionList) {
var siteExtensionDetails = null;
if(siteExtensionMap[extensionID]) {
siteExtensionDetails = siteExtensionMap[extensionID];
if(siteExtensionMap[extensionID] || (extensionID.startsWith('python') && siteExtensionMap[pythonExtensionPrefix + extensionID])) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add some comment on why we are doing this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@vincent1173 vincent1173 requested a review from amaljg April 23, 2018 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: AzureAppService Label to monitor Azure App Service issues Area: Release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants