Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4cb5049359
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Pull request overview
This PR aims to ensure the /blogs/ experience links to the canonical blog.python.org domain by normalizing legacy Blogger entry URLs during RSS parsing.
Changes:
- Add URL normalization logic to rewrite
pythoninsider.blogspot.comentry links toblog.python.org. - Apply normalization when building parsed entry dictionaries (
get_all_entries). - Add unit tests for the URL normalization behavior.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
apps/blogs/parser.py |
Adds _normalize_blog_url() and applies it to parsed RSS entry links. |
apps/blogs/tests/test_parser.py |
Introduces tests validating URL rewrite and preservation behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…com URLs Without this migration, the parser's URL normalization changes the update_or_create lookup key, causing duplicate BlogEntry rows for posts already imported with the legacy domain.
Description
Closes
/blogs/on python.org #2948