-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Documented upgrading path for a major version #5155
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
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6a90c9b
Created 'upgrade' cookbook section
wouterj 2b0aee3
Fix little title case mistake
wouterj 300e8ab
Added new recipe on upgrading a major version
wouterj 99c5075
Fix typo
wouterj 55fcee9
Applied comments
wouterj 31999db
Fixes after review
wouterj 604ccab
Fix formatting error
wouterj 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
Applied comments
- Loading branch information
commit 55fcee9a898db5ee8ee382a235a97f9ed1738b67
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,10 +31,12 @@ old API will still work, while the new feature is used internally. This BC | |
layer is then marked as *deprecated*, indicating that it will be | ||
removed/changed in the future. | ||
|
||
The major version is the only time all existing BC layers are removed. The last | ||
minor version before a new major version (i.e. 2.7 is the last minor version of | ||
the 2 releases, 3.0 is the next version) will trigger deprecation notices when a | ||
BC layer is used. | ||
The major version is the only time all existing BC layers are removed. However, | ||
if you make sure you've fixed all deprecated usages in the last version of the | ||
previous major version, you should be able to upgrade to the new major version | ||
without problems. To help you with this, the last minor releases will trigger | ||
deprecated notices. For example, 2.7 and 2.8 trigger deprecated notices and if | ||
you do not have any notice while using 2.8, you can savely upgrade to 3.0. | ||
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. A slightly different suggestion, please mix and match - this stuff is just very important (which is why I'm so glad you wrote all this): When the major version is released (e.g. 3.0.0), all deprecated features and functionality
are removed. So, as long as you've updated your code to stop using these deprecated
features in the last version before the major (e.g. 2.8.*), you should be able to upgrade
without a problem.
To help with this, the last minor releases will trigger deprecation notices. For example, Symfony
2.7 and 2.8 trigger deprecated notices that you can see in the web debug toolbar. When visiting
your application... |
||
|
||
When visiting your application in the | ||
:doc:`dev environment </cookbook/configuration/environments>` in your browser, | ||
|
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
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.
I think this is more technical than we need to be. The important thing is that your old code still works, but is deprecated. Perhaps (starting right after "compatibility changes.")
To accomplish this, the "old" (e.g. functions, classes, etc) code still works, but is marked as *deprecated*, indicating that it will be removed/changed in the future and that you should stop using it.