Uh oh!
There was an error while loading. Please reload this page.
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.
It would be better to just decide which versions
nextshould be backported to, backport it, and then list those versions here.Can you also clarify when would backporting be necessary for a
versionadded? New features should be documented on thenextrelease, and not backported to previous versions.The only exception I can think of is if we are documenting an addition after the fact, but this is covered in the next paragraph.
versionchangedare more likely to be backported, so maybe this paragraph should be moved there.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.
Maybe, but practically, sometimes the backporting decisions take weeks; I don't think they shouldn't block the PR to main.
New API is sometimes added for security fixes, either to enable old behaviour in cases where it's so insecure that we change the default, or to enable new secure behaviour. (Also: third-party redistributors can backport features. That's not what the devguide documents, but the tooling is built with that in mind.)
versionchangedsharts with “Similar toversionadded”, so I added the docs here.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.
To clarify, with the first sentence I meant the support for
nextitself. IOW, ifnextis supported from e.g. 3.12+, then the docs should simply say something like "When backporting to versions before 3.12, use a specific version instead ofnext.". If you are planning to use the current wording until the support fornexthas been backported and then update this paragraph accordingly, that's ok (assuming thatnextdoes the right thing when used on older versions).For security fixes and similar I was thinking that are more likely to be
versionchanged, but sometimes new APIs are indeed added. Since the docs forversionchangedstart with "Similar toversionadded", I now think it's ok to leave the paragraph here.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! Yes, I expect to change the wording after backporting the feature, and I plan to talk to RMs after this is merged and announced.