[Environments] Extension Refresh & other fixes #3532
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of the pull request
Bug fix - Fixes "Create Environments" button showing cached extension availability.
Using the button after enabling extensions, didn't refresh the page and didn't show data from the enabled extension.
The PR removes the caching code and refreshes the page every time navigated to.
Bug fix - Fixes adding incorrect user to Hyper - V admin group.
Adding a user to the Hyper-V admin group runs an elevated script. And getting the current user in this script returns the admin.
The bug was that the admin was being added to the group, not the user who might have initiated the operation. The fix adds the user as a parameter to the script call.
Bug fix - Hides browse button under repo manager for remote machines.
Having a browse button, while configuring remote machines, was confusing as it browsed the local machine instead.
The PR hides the button in cases where remote machines are being configured.
Bug fix - Machine config page doesn't load extension data
If one of the accounts associated with an extension errored out, an exception caused the rest of the data to be skipped.
The PR removes the data with the errors from the relevant variable, since it has already been handled.
Validation steps performed
Each fix was tested manually.
PR checklist