Skip to content

document deprecation utils#18809

Merged
seanbudd merged 3 commits into
masterfrom
documentDeprecationUtils
Aug 28, 2025
Merged

document deprecation utils#18809
seanbudd merged 3 commits into
masterfrom
documentDeprecationUtils

Conversation

@SaschaCowley

Copy link
Copy Markdown
Member

Link to issue number:

Follow-up to #18571

Summary of the issue:

As part of #18571, I wrote code that made handling a large number of module-level deprecations easier. Since this code made handling module-level deprecations more systematic and auditable, the code was split out into its own module.
As we wanted to get #18571 merged to unblock other work, documentation for that utility was not added in that PR.

Description of user facing changes:

None

Description of developer facing changes:

Adds documentation on the novel strategy for handling module-level deprecations.

Description of development approach:

Wrote documentation.

Testing strategy:

None.

Known issues with pull request:

None.

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

Copilot AI review requested due to automatic review settings August 26, 2025 04:57
@SaschaCowley SaschaCowley requested a review from a team as a code owner August 26, 2025 04:57
@SaschaCowley SaschaCowley requested a review from seanbudd August 26, 2025 04:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 adds comprehensive documentation for the module-level deprecation utilities introduced in #18571. The documentation explains how to use the utils._deprecate module's handleDeprecations factory function and its associated DeprecatedSymbol subclasses to systematically handle API deprecations.

  • Documents the handleDeprecations factory function and DeprecatedSymbol subclasses (MovedSymbol, RemovedSymbol)
  • Provides a practical example showing how to deprecate symbols that are moved or removed
  • Improves formatting and structure of the existing deprecations documentation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread projectDocs/dev/deprecations.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@seanbudd seanbudd changed the title documentDeprecationUtils document deprecation utils Aug 26, 2025
@SaschaCowley SaschaCowley added the conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review. label Aug 28, 2025
@seanbudd seanbudd merged commit de2415e into master Aug 28, 2025
40 checks passed
@seanbudd seanbudd deleted the documentDeprecationUtils branch August 28, 2025 06:04
@github-actions github-actions Bot added this to the 2026.1 milestone Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants