web_link missing on bugs in production

Asked by Stefano Rivera

#!/usr/bin/env python
from launchpadlib.launchpad import Launchpad

for instance in 'staging', 'production':
    lp = Launchpad.login_anonymously('test_case', instance)

    bugno = {'production': 729061, 'staging': 724768}[instance]
    bug = lp.bugs[bugno]
    print '%s: %r' % (instance, hasattr(bug, 'web_link'))

staging: True
production: False

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Stefano Rivera
Solved:
Last query:
Last reply:
Revision history for this message
Curtis Hovey (sinzui) said :
#1

Staging appears to be using version='beta' by default. Launchpad.net is version='1.0' by default. The web_link property is obsolete, version='1.0' and version='devel' do not use it. Staging can be updated several times a day so we never expect it to be the same as launchpad.net. Use
    Launchpad.login_anonymously('test_case', instance, version='1.0')
to ensure the version is the same. You can use version='devel' too, there is often no more than a few days difference between staging and the main website.

Revision history for this message
Stefano Rivera (stefanor) said :
#2

It's barely a month old and it's obsolete? http://blog.launchpad.net/cool-new-stuff/new-web_link-property

It's also in the API docs: https://launchpad.net/+apidoc/1.0.html#bug

Revision history for this message
Stefano Rivera (stefanor) said :
#3

Thanks to the hint in https://bugs.launchpad.net/launchpad/+bug/316694 I cleared by WADL cache.