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

Add new command deployByFunctionAppId #4125

Merged
merged 2 commits into from
May 14, 2024
Merged

Add new command deployByFunctionAppId #4125

merged 2 commits into from
May 14, 2024

Conversation

MicroFish91
Copy link
Contributor

@MicroFish91 MicroFish91 commented May 10, 2024

One or more teams currently leverage our deploy command directly using commands.executeCommand. We previously allowed the functionAppId target to be passed as a third argument into deployProductionSlot. Upon investigation, I noticed that only the first arg was being passed down when wrapped with registerCommandWithTreeNodeUnwrapping.

Calling with registerCommand instead seems to preserve all args. As a workaround, I have created a command for these teams to utilize directly where the only thing you need to pass it is the functionAppId. This is probably better also because they are not really ever passing a tree item anyway, so we don't ever need to unwrap for their use-case.

@MicroFish91 MicroFish91 marked this pull request as ready for review May 10, 2024 21:58
@MicroFish91 MicroFish91 requested a review from a team as a code owner May 10, 2024 21:58
@nturinski
Copy link
Member

Confirmed with partner team that needs this that it's working. We're having another issue with the defaultHostname thing, but that's unrelated to these changes.

@MicroFish91 MicroFish91 merged commit 67e7f7d into main May 14, 2024
2 checks passed
@MicroFish91 MicroFish91 deleted the mwf/debug-deploy branch May 14, 2024 18:11
@nturinski nturinski added this to the 1.15.0 milestone May 21, 2024
@microsoft microsoft locked and limited conversation to collaborators Jun 29, 2024
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.

2 participants