-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix issue with overly long names in the LGPO module #55823
Conversation
@lomeroe What are your thoughts? |
Some of the "prepended text" unfortunately makes the policy item names make sense (in some cases you'll get the tail end of it only -- I don't remember what policy drove me to add the prepended text, but there are some), that would be the only downside I can come up with off the top of my head. It looks like prepended text would be cleared if there was a period at the end of it (line 5673). Which was probably for cases similar to this on other policies....Maybe a few other characters should be added, like the colon in your example (or other sentence ending characters) as opposed to dropping it completely... |
bb9d55f
to
9ac1ea4
Compare
I added back the old code, but commented out so we can test it if we find one that seems like it would benefit from the old code. It includes the dropping prepended_test that ends in either |
e6f03ac
to
84c4fb7
Compare
Yep, agree that the shorter names are easier and maybe items that needed the prepended text is the edge case (I just don't remember what policy element drove that being added -- so we could look at an alternative in those scenarios). |
498eb43
to
5f55b57
Compare
Codecov Report
@@ Coverage Diff @@
## master #55823 +/- ##
==========================================
- Coverage 17% 17% -<.01%
==========================================
Files 1202 1202
Lines 224545 224553 +8
Branches 49238 49233 -5
==========================================
Hits 38153 38153
- Misses 183523 183530 +7
- Partials 2869 2870 +1
|
f093ef8
to
15cca69
Compare
Some policy names were entire sentences pull from the adml file
Add back commented code for later testing if there is an issue
Add assert for comment field Enable Phosphorus
15cca69
to
e015f15
Compare
What does this PR do?
Fixes an issue in the LGPO module where policy parameters are extremely long. Some policy names were entire sentences pull from the adml file and prepended to the actual policy name.
This change does not affect ALL policies, only those that had prepended additional text. I estimate that to be 5 to 10 percent of policies. I added some logic to the state that will attempt to replace the old element name with the new element name. If this occurs, a Deprecation warning will be displayed in the comments. The warning will be displayed until Phosphorus.
This PR also replaces smart quotes, smart single quotes, em-dashes, and en-dashes with normal quotes and dashes. The unrecognized characters in the
Previous Behavior
section below contains smart quotes and an em dash. Those will be replaced and display properly. It will also make it so you don't have to add em dashes and smart quotes when setting policies. You will be able to use standard characters.Previous Behavior
A recent update to the Windows Update Config policy recently gives us this as a policy setting:
New Behavior
With this PR the above policy setting becomes:
Tests written?
Yes
Commits signed with GPG?
Yes