-
-
Notifications
You must be signed in to change notification settings - Fork 158
[ADD] Add warnings for new URL joining functions #151
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
base: master
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR adds migration warnings for the transition from Odoo 18.0 to 19.0, specifically targeting the deprecation of unsafe URL joining functions and encouraging migration to Odoo's new safer tools.urls.urljoin() function.
- Creates a YAML configuration file with pattern-based warnings for deprecated URL joining functions
- Establishes a migration script structure for the 18.0 to 19.0 transition
- Provides comprehensive coverage of various URL joining patterns from urllib.parse and werkzeug.urls
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| url_joining_functions.yaml | Defines regex patterns and warning messages for deprecated URL joining functions |
| migrate_180_190.py | Creates the base migration script class for 18.0 to 19.0 transitions |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
odoo_module_migrate/migration_scripts/text_warnings/migrate_180_190/url_joining_functions.yaml
Outdated
Show resolved
Hide resolved
odoo_module_migrate/migration_scripts/text_warnings/migrate_180_190/url_joining_functions.yaml
Outdated
Show resolved
Hide resolved
odoo_module_migrate/migration_scripts/text_warnings/migrate_180_190/url_joining_functions.yaml
Outdated
Show resolved
Hide resolved
b8f528f to
313b3b0
Compare
313b3b0 to
b5b58d8
Compare
|
LGTM |
StefanRijnhart
left a comment
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.
Nice one! Tested functionally.
|
This PR has the |
This PR adds migration warnings for the transition from Odoo 18.0 to 19.0 to help developers identify and update deprecated URL joining functions.
In Odoo 19.0, a new safer URL joining function was introduced in
odoo.tools.urls.urljoin()to replace potentially unsafe URL joining methods from external libraries.More information in Related Odoo commit: odoo/odoo@977e62d91f3e