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.
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
[Environments] Auto reload after Extensions page visit; selectable error text #3589
[Environments] Auto reload after Extensions page visit; selectable error text #3589
Changes from 10 commits
c59a7f5
56cf8d3
f9a7754
75aa81c
4bebbea
223e089
689e15f
2756b6f
02c0f28
7b51b33
03b015f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I believe you should be able to pass the users sid by doing string formating to replace values within the string. I believe Nick does something similar for the virtualization management page. We'd put a place holder for the user name within the string. Then within the code once we get the whole scripts string, we can replace the placeholder with the users sid
This: https://github.com/microsoft/devhome/blob/a9f6a7361318fb9cf7a05147e6e780c84277ddbd/common/Scripts/ModifyWindowsOptionalFeatures.cs#L218C16-L218C36
is replaced with This:
devhome/common/Scripts/ModifyWindowsOptionalFeatures.cs
Line 40 in a9f6a73
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.
Not understanding the suggestion? And what's the advantage?
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.
Oh this was a suggestion sorry. It was for if you wanted to pass in the users S-I-D of the user since you removed lines 42. which had
[System.Security.Principal.WindowsIdentity]::GetCurrent().Groups.Value
I was thinking there might be a way to pass in something like a SID or username so we can get an object that would tell us if the user is in the group or not. But if we really don't need these lines then its all good to ignore.