Skip to content

[Track2 #2] Migrate nodes in Azure explorer to app service library - #4972

Merged
Hanxiao Liu (Flanker32) merged 7 commits into
feature-track2-webappfrom
hanxiao/webModule
Mar 10, 2021
Merged

Hanxiao Liu (Flanker32) merged 7 commits into
feature-track2-webappfrom
hanxiao/webModule

Conversation

@Flanker32

Copy link
Copy Markdown
Member

Migrate nodes in Azure explorer to app service library

WebAppUtils.WebAppDetails webAppDetails = (WebAppUtils.WebAppDetails) event.object;
switch (event.opsType) {
case ADD:
final IWebApp newWebApp = AzureWebAppMvpModel.getInstance()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why shall we use AzureWebAppMvpModel, shall we use az.webapp(id)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Will update codes here after refactor app service library to leverage Account service for authentication


private final WebApp webapp;
// todo: migrate file service to track2 SDK
private final WebApp webapp; // Track one client, keep for file service

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can we lazy load the webapp since the following statement will cause a network call.

AzureWebAppMvpModel.getInstance().getWebAppById(subscriptionId, webAppManager.id());

@Override
public @Nullable AzureIconSymbol getIconSymbol() {
boolean isLinux = OperatingSystem.LINUX.name().equalsIgnoreCase(webapp.operatingSystem().toString());
boolean isLinux = webapp.getRuntime().getOperatingSystem() != OperatingSystem.WINDOWS;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

add isLinux in IWebapp

private final IWebAppDeploymentSlot slot;

public DeploymentSlotNode(final IWebAppDeploymentSlot deploymentSlot, final DeploymentSlotModule parent) {
super(deploymentSlot.id(), deploymentSlot.name(), LABEL, parent, parent.subscriptionId, deploymentSlot.hostName(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

comment

* todo: move to app service library
*/
@AzureOperation(
name = "webapp.list.subscription|selected",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

comment

@@ -6,12 +6,25 @@
package com.microsoft.azuretools.core.mvp.model.webapp;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

deprecate anno

@Flanker32
Hanxiao Liu (Flanker32) merged commit 0ca430c into feature-track2-webapp Mar 10, 2021
@Flanker32
Hanxiao Liu (Flanker32) deleted the hanxiao/webModule branch March 10, 2021 11:43
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.

3 participants