Skip to content
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

[docs] Document the final removal process #1315

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andrewnicols
Copy link
Member

No description provided.

Copy link

netlify bot commented Apr 3, 2025

Deploy Preview for moodledevdocs ready!

Name Link
🔨 Latest commit 17ec0bb
🔍 Latest deploy log https://app.netlify.com/sites/moodledevdocs/deploys/67ee04e07ee654000835904f
😎 Deploy Preview https://deploy-preview-1315--moodledevdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@andrewnicols andrewnicols requested a review from Copilot April 3, 2025 03:38
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the deprecation policy documentation to clearly outline the final removal process with improved structure and examples.

  • Clarified conditions for deprecations on the main branch
  • Revised formatting and phrasing for deprecation steps and code examples
  • Added a new section detailing the removal process

@andrewnicols andrewnicols requested a review from timhunt April 3, 2025 03:38
@andrewnicols andrewnicols force-pushed the deprecationRemovalsAndClarifications branch from 34c8e5f to 114d779 Compare April 3, 2025 03:39
@andrewnicols andrewnicols requested a review from Copilot April 3, 2025 03:39
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the deprecation policy documentation to clearly outline the process for final removal of deprecated features. Key changes include:

  • Expanded details on when deprecations can be applied, including exceptions for external integrations, irreparable feature breaks, and security issues.
  • Revised and restructured examples demonstrating both debugging and deprecation API usage.
  • Clarified the removal process with a new Step 3 section and modified guidelines on handling function versus method signatures.
Comments suppressed due to low confidence (1)

general/development/policies/deprecation/index.md:172

  • [nitpick] There appears to be a distinction between method signatures and function signatures in this section. It would help to add additional clarification to explain why function signatures may be removed while method signatures must remain unchanged.
Method signatures **must not change**, that is:

@andrewnicols andrewnicols force-pushed the deprecationRemovalsAndClarifications branch from 114d779 to 17ec0bb Compare April 3, 2025 03:47
@andrewnicols andrewnicols requested a review from Copilot April 3, 2025 03:49
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the deprecation policy documentation to clarify the final removal process and refine guidelines surrounding deprecation stages and method/function signature changes. Key changes include:

  • Splitting deprecation into three clear stages (Initial deprecation, Final deprecation, and Removal).
  • Updating tabbed examples and code snippets for both debugging notices and the \core\deprecation API.
  • Revising the policy on method versus function signature changes with an accompanying explanatory info section.

@@ -41,13 +47,13 @@ Once it is decided that a function should be deprecated, a two-step process shou

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

@timhunt timhunt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for donig this Andrew. Good to get this written down, and generally very good.

Just two bits of quibbling from me, and one from Jun, then this can move forwards.

- Functions deprecated in Moodle 4.5 (LTS) will be up for final deprecation in Moodle 6.0 (the first release for Series 6 right after the Moodle 5.3 (LTS) release).
</ValidExample>

#### Procedure

- When a function undergoes final deprecation, all content of the function should be removed. In the skeleton that remains, an error statement should be included that indicates that the function cannot be used anymore. You can also direct developers to the new function(s) in this message.
- When a function undergoes final deprecation, all content of the function should be removed. In the skeleton that remains, an error statement should be included that indicates that the function can not be used anymore. You can also direct developers to the new function(s) in this message.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think 'cannot' is more correct than 'can not' here. So, pity to see you changing it the 'wrong' way: https://www.google.com/search?client=firefox-b-e&channel=entpr&q=cannot+vs+can+not. (Sorry, grammar pedant.)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More importantly "You can also direct developers to ...". I would say "can (and should)" just to re-inforce a point made elsewhere on this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants