Skip to content

Use blog.python.org#2949

Merged
JacobCoffee merged 2 commits intomainfrom
pythoninsider-migration
Mar 3, 2026
Merged

Use blog.python.org#2949
JacobCoffee merged 2 commits intomainfrom
pythoninsider-migration

Conversation

@JacobCoffee
Copy link
Member

Description

  • Ensure links resolve to blog.python.org to properly redirect

Closes

Copilot AI review requested due to automatic review settings March 3, 2026 18:30
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 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".

Copy link

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 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.com entry links to blog.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.
@JacobCoffee JacobCoffee merged commit 5f5c55e into main Mar 3, 2026
14 checks passed
@JacobCoffee JacobCoffee deleted the pythoninsider-migration branch March 3, 2026 18:47
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.

Update /blogs/ on python.org

2 participants