Skip to content

Commit 79cba4c

Browse files
committed
Replace refrences to upgrade.txt with a link to the upgrade notes doc
1 parent ae53860 commit 79cba4c

File tree

1 file changed

+4
-4
lines changed
  • general/development/policies/deprecation

1 file changed

+4
-4
lines changed

general/development/policies/deprecation/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In an open source project, the end use of the codebase varies. People may have c
2222
- Deprecations apply to all public APIs, classes, and files.
2323
- Removal of a function, class, or file may only be considered after a minimum of 4 major releases since the deprecation. Example: anything deprecated in 3.2 means that it will be removed in 3.6
2424
- All deprecations should emit debugging notices where possible
25-
- All deprecations should be noted in the relevant upgrade.txt
25+
- All deprecations should be noted with an [upgrade note](../../upgradenotes.md).
2626

2727
## Moodle Core deprecation process
2828

@@ -86,7 +86,7 @@ If the current version is 3.1.2, the function will be marked as deprecated in 3.
8686
:::
8787

8888
- Check the body of the function being deprecated and look for additional function calls which have no other non-deprecated uses and may also be considered for deprecation. If they belong to the same code area they can be deprecated in the same issue.
89-
- Last but not least, every deprecation should be documented in the corresponding `upgrade.txt` files **at least** once but, **ideally**, both on this initial/immediate deprecation and also on the final deprecation/removal.
89+
- Last but not least, every deprecation should be documented in an [upgrade note](../../upgradenotes.md) **at least** once but, **ideally**, both on this initial/immediate deprecation and also on the final deprecation/removal.
9090

9191
Apart from the previous points, there are a few more optional but highly recommended steps:
9292

@@ -148,7 +148,7 @@ public function foobar(): void {
148148
- Deprecated classes must be completely removed.
149149
- The content of the PHPDoc should be removed, leaving only the `@deprecated` tag with the notice and, optionally, the replacement information. This includes all `@param`, `@return`, and other tags, as well as the description.
150150
- External functions deprecation process is different from the standard deprecation and functions should be completely removed.
151-
- Last but not least, every deprecation should be documented in the corresponding `upgrade.txt` files **at least** once but, **ideally**, both on the initial/immediate deprecation and also on this final deprecation/removal.
151+
- Last but not least, every deprecation should be documented in an [upgrade note](../../upgradenotes.md) **at least** once but, **ideally**, both on the initial/immediate deprecation and also on this final deprecation/removal.
152152

153153
## Parameters deprecation
154154

@@ -167,7 +167,7 @@ It is strongly advised to deprecate an entire method, rather than deprecating a
167167
- Update all calls to the affected function and either:
168168
- converting to use named parameters, removing the deprecated parameter; or
169169
- removing if at the end of a list of optional parameters.
170-
- Add a mention to the corresponding `upgrade.txt` file, documenting that the deprecated parameter should not be used any more
170+
- Add an [upgrade note](../../upgradenotes.md), documenting that the deprecated parameter should not be used any more
171171
- Add a mention to the [Developer Update notes](https://github.com/moodle/devdocs/blob/main/docs/devupdate.md), documenting that the deprecated parameter should not be used any more
172172
- _Where possible_:
173173
- If a type was previously specified it should be altered to be made nullable

0 commit comments

Comments
 (0)