Skip to content

WD-36855 - archive /blog group pages and redirect to /blog - #16452

Merged
Ataku-B merged 7 commits into
feature-blogfrom
WD-36855-dev-archive-u-com-blog-group-pages
Jun 24, 2026
Merged

Ataku-B merged 7 commits into
feature-blogfrom
WD-36855-dev-archive-u-com-blog-group-pages

Conversation

@Ataku-B

@Ataku-B Ataku-B commented Jun 11, 2026 •

Copy link
Copy Markdown
Member

Done

  • Archived /blog group pages to permanently redirect to /blog

QA

Issue / Card

Fixes WD-36855

Copilot AI review requested due to automatic review settings June 11, 2026 22:39
@webteam-app

Copy link
Copy Markdown

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

Archives legacy /blog/<group> landing pages by replacing their rendered templates with permanent redirects to /blog, reducing maintenance surface while keeping old URLs functional.

Changes:

  • Replaced the previous blog group view with a redirect-only view returning 301 to /blog.
  • Updated URL routing for the archived group slugs to use the new redirect view.
  • Updated route tests accordingly and removed the now-unused group templates.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
webapp/views.py Introduces BlogArchivedGroup that permanently redirects archived group slugs to /blog.
webapp/app.py Wires the archived group slug route to BlogArchivedGroup.
tests/test_routes.py Adds coverage asserting archived group routes return 301 with Location: /blog.
templates/blog/cloud-and-server.html Removes obsolete group template (route now redirects).
templates/blog/desktop.html Removes obsolete group template (route now redirects).
templates/blog/internet-of-things.html Removes obsolete group template (route now redirects).
templates/blog/people-and-culture.html Removes obsolete group template (route now redirects).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread webapp/app.py Resolved
Comment thread tests/test_routes.py Resolved
@codecov

codecov Bot commented Jun 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.25%. Comparing base (5c04d45) to head (9722561).
⚠️ Report is 1 commits behind head on feature-blog.

Additional details and impacted files
@@               Coverage Diff                @@
##           feature-blog   #16452      +/-   ##
================================================
- Coverage         48.31%   48.25%   -0.07%     
================================================
  Files                37       37              
  Lines              5907     5900       -7     
================================================
- Hits               2854     2847       -7     
  Misses             3053     3053              
Files with missing lines Coverage Δ
webapp/app.py 85.79% <ø> (-0.05%) ⬇️
webapp/views.py 45.84% <ø> (-0.34%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Ataku-B
Ataku-B changed the base branch from main to feature-blog June 12, 2026 02:48
@eliman11

Copy link
Copy Markdown

Thanks Atakan! I'll +1 as the redirects work as expected. Is there a separate task to update the nav bar so we're not showing those groups in the bubble nav? It should be replaced by the global u.com nav bar instead

@Ataku-B

Ataku-B commented Jun 17, 2026

Copy link
Copy Markdown
Member Author

@eliman11 Madhur's PR for the /blog rebrand removes the bubble nav, when merged only the global nav will show.

Comment thread tests/test_routes.py
self.client.get("/blog/installing-ros-in-lxd").status_code, 200
)

def test_archived_blog_group_routes(self):

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.

We should probably define a ruleset for what/when we test redirects as we don't traditionally do it. We can leave this for now though

@petesfrench petesfrench 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.

LGTM

@Ataku-B
Ataku-B merged commit e9acec5 into feature-blog Jun 24, 2026
28 of 29 checks passed
@Ataku-B
Ataku-B deleted the WD-36855-dev-archive-u-com-blog-group-pages branch June 24, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants