-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Documentation Cleanup #8851
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
Merged
Merged
Documentation Cleanup #8851
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
98da6f0
docs: Made git work for all package managers
RDIL 2b52e81
Use semantics line break and add the ending period.
daxian-dbw 1c4c25b
Merge remote-tracking branch 'upstream/master' into patch-5
9a74b69
documentation cleanup
c2b56c6
more cleanup!
c2da62a
markdownlint issues fixed
33d26c2
more cleanup
333a06b
Update docs/community/governance.md
TravisEz13 a24b7b4
Update docs/community/governance.md
TravisEz13 a0ae386
Update docs/dev-process/breaking-change-contract.md
TravisEz13 52d02d9
Update docs/dev-process/coding-guidelines.md
TravisEz13 94aa542
fixed url
RDIL 2a18943
Update issue-management.md
sdwheeler e714001
Merge remote-tracking branch 'upstream/master' into patch-5
RDIL 3141c22
Merge branch 'master' into patch-5
RDIL a9b658c
Merge branch 'master' into patch-5
RDIL 6e3d3da
Merge remote-tracking branch 'upstream/master' into patch-5
RDIL c5f668f
Merge remote-tracking branch 'upstream/master' into patch-5
RDIL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,29 +4,33 @@ We have a serious commitment to backwards compatibility with all earlier version | |
|
|
||
| Below is a summary of our approach to handing breaking changes including what kinds of things constitute breaking changes, how we categorize them, and how we decide what we're willing to take. | ||
|
|
||
| Note that these rules only apply to existing stable features that have shipped in a supported release. New features marked as “in preview” that are still under development may be modified from one preview release to the next. These are not considered breaking changes. | ||
| Note that these rules only apply to existing stable features that have shipped in a supported release. New features marked as “in preview” that are still under development may be modified from one preview release to the next. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. perhaps we should change "in preview" to experimental now that we have that feature
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. agreed |
||
| These are **not** considered breaking changes. | ||
|
|
||
| To help triage breaking changes, we classify them in to four buckets: | ||
|
|
||
| 1. Public Contract | ||
| 2. Reasonable Grey Area | ||
| 3. Unlikely Grey Area | ||
| 4. Clearly Non-Public | ||
| 1. Reasonable Grey Area | ||
| 1. Unlikely Grey Area | ||
| 1. Clearly Non-Public | ||
|
|
||
| ## Bucket 1: Public Contract | ||
|
|
||
| Any change that is a clear violation of the public contract. | ||
|
|
||
| ### Unacceptable changes: | ||
| ### Unacceptable changes | ||
|
|
||
| + A code change that results in a change to the existing behavior observed for a given input with an API, protocol or the PowerShell language. | ||
| + Renaming or removing a public type, type member, or type parameter; renaming or removing a cmdlet or cmdlet parameter (note: it is possible to rename a cmdlet parameter if a parameter alias is added. This is an acceptable solution for PowerShell scripts but may BE95 break .NET code that depends on the name of the original member on the cmdlet object type.) | ||
| + Renaming or removing a public type, type member, or type parameter; renaming or removing a cmdlet or cmdlet parameter (note: it is possible to rename a cmdlet parameter if a parameter alias is added. | ||
|
|
||
| This is an acceptable solution for PowerShell scripts but may break .NET code that depends on the name of the original member on the cmdlet object type.) | ||
|
|
||
| + Decreasing the range of accepted values within a given parameter. | ||
| + Changing the value of a public constant or enum member; changing the type of a cmdlet parameter to a more restrictive type. | ||
| + Example: A cmdlet with a parameter -p1 that was previously type as [object] cannot be changed to be or a more restrictive type such as [int]. | ||
| + Making an incompatible change to any protocol without increasing the protocol version number. | ||
|
|
||
| ### Acceptable changes: | ||
| ### Acceptable changes | ||
|
|
||
| + Any existing behavior that results in an error message generally may be changed to provide new functionality. | ||
| + A new instance field is added to a type (this impacts .NET serialization but not PowerShell serialization and so is considered acceptable.) | ||
|
|
@@ -44,7 +48,8 @@ Examples: | |
| + Change in parsing of input and throwing new errors (even if parsing behavior is not specified in the docs) | ||
| + Example: a script may be using a JSON parser that is forgiving to minor syntactic errors in the JSON text. Changing that parser to be more rigorous in its processing would result in errors being thrown when no error was generated in the past thus breaking scripts. | ||
|
|
||
| Judiciously making changes in these type of features require judgement: how predictable, obvious, consistent was the behavior? In general, a significant external preview of the change would need to be done also possibly requiring an RFC to be created to allow for community input on the proposal. | ||
| Judiciously making changes in these type of features require judgement: how predictable, obvious, consistent was the behavior? | ||
| In general, a significant external preview of the change would need to be done also possibly requiring an RFC to be created to allow for community input on the proposal. | ||
|
|
||
| ## Bucket 3: Unlikely Grey Area | ||
|
|
||
|
|
@@ -68,14 +73,14 @@ Examples: | |
|
|
||
| + Changes to internal APIs that break private reflection | ||
|
|
||
| It is impossible to evolve a code base without making such changes, so we don't require up-front approval for these, but we will sometimes have to go back and revisit such change if there's too much pain inflicted on the ecosystem through a popular app or library. | ||
| It is impossible to evolve a code base without making such changes, so we don't require up-front approval for these, but we will sometimes have to go back and | ||
| revisit such change if there's too much pain inflicted on the ecosystem through a popular app or library. | ||
|
|
||
| # What This Means for Contributors | ||
| ## What This Means for Contributors | ||
|
|
||
| + All bucket 1, 2, and 3 breaking changes require contacting team at @powershell/powershell. | ||
| + If you're not sure into which bucket a given change falls, contact us as well. | ||
| + It doesn't matter if the existing behavior is "wrong", we still need to think through the implications. PowerShell has been in broad use for over 10 years so we be must be extremely sensitive to breaking existing users and scripts. | ||
| + If a change is deemed too breaking, we can help identify alternatives such as introducing a new API or cmdlet and obsoleting the old one. | ||
|
|
||
| Request for clarifications or suggested alterations to this document should be done by opening issues against this document. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
Native Components - we need to update the section - native components is not in the repo. Perhaps @adityapatwardhan and @PaulHigin could help.
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.
Perhaps so.