Developer blog linked on homepage is out of date

Bug #963742 reported by Martin Häcker
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-website
Fix Released
Medium
Richard Wilbur

Bug Description

The developer blog linked on the homepage <http://bazaar.canonical.com/en/> is out of date, it just displays a post "this blog has moved".

Thats kind of weird and has been since at least a month.

While I can still get at that blog through the moved post, it sure would be nice to see the blog posts there on the homepage.

Related branches

Jelmer Vernooij (jelmer)
affects: bzr → bzr-website
Revision history for this message
Роман Донченко (dpb-r) wrote :

Should be a pretty easy fix, no? :-)

=== modified file 'build.py'
--- build.py 2012-05-13 23:53:34 +0000
+++ build.py 2012-05-13 23:56:13 +0000
@@ -96,7 +96,7 @@
 # URLs of RSS feeds
 NEWS_RSS = "http://feeds.launchpad.net/bazaar/announcements.atom"
 CORE_RSS = "http://feeds.launchpad.net/bzr/announcements.atom"
-BLOG_RSS = "http://bazaarvcs.wordpress.com/feed/"
+BLOG_RSS = "http://blog.bazaar.canonical.com/?feed=atom"

 def main():

Jelmer Vernooij (jelmer)
Changed in bzr-website:
status: New → Triaged
importance: Undecided → Medium
Changed in bzr-website:
assignee: nobody → Richard Wilbur (richard-wilbur)
Changed in bzr-website:
status: Triaged → Fix Committed
Revision history for this message
Richard Wilbur (richard-wilbur) wrote :

I patched the code as Роман Донченко described, merged, and reloaded to see that the home page didn't change.

Next, I tried running
bzr-website$ python build.py
fetching data from http://feeds.launchpad.net/bazaar/announcements.atom
Traceback (most recent call last):
  File "build.py", line 121, in <module>
    main()
  File "build.py", line 107, in main
    build_feed("Community News", NEWS_RSS, 4),
  File "build.py", line 63, in build_feed
    d = feedparser.parse(rss_url, extra_headers={'Cache-control': 'max-age=60'})
TypeError: parse() got an unexpected keyword argument 'extra_headers'

So, next I took a look at feedparser.parse() and I can't find a version which provides the keyword argument 'extra_headers'. I did find that v>=5.1.3 all provide 'request_headers' and 'response_headers', so I modified build.py to try 'request_headers' or leave out the extra parameter. This works properly on my machine and regenerates index.html as expected.

In light of the local success, I committed, pushed branch to lp, recorded the reasons for this on the merge proposal, approved it, and merged it. So far, I have yet to see any changes on the homepage.

Does anyone know what triggers the rebuild of index.html on lp:bzr-website?
Does lp:bzr-website require a private patched copy of feedparser in order to work? I guess I found my answer on lp:716446 for this question.

Revision history for this message
Richard Wilbur (richard-wilbur) wrote :

So I just merged in the change for lp:716446 and reloaded the bzr homepage with still no effect--the homepage has yet to be regenerated (which would correct the blog address).

How do I trigger the regeneration of the homepage?

Revision history for this message
Richard Wilbur (richard-wilbur) wrote :

Looks like the homepage has been rebuilt and the fixed developer blog address has taken effect!

Changed in bzr-website:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.