turn off text_bug API warnings for bughelper in hardy

Bug #194082 reported by Brian Murray
2
Affects Status Importance Assigned to Milestone
bughelper (Ubuntu)
Fix Released
Medium
Markus Korn
python-launchpad-bugs (Ubuntu)
Fix Released
Medium
Markus Korn

Bug Description

Binary package hint: bughelper

/home/bdmurray/source_trees/bughelper/main/launchpadbugs/text_bug.py:22: FutureWarning: text_bug API not stable yet
  warnings.warn("text_bug API not stable yet", FutureWarning)
/home/bdmurray/source_trees/bughelper/main/launchpadbugs/text_buglist.py:7: FutureWarning: text_buglist API not stable yet, LP returns a list of all bugs ever reported
  warnings.warn("text_buglist API not stable yet, LP returns a list of all bugs ever reported", FutureWarning)

This is disconcerting for new users of bughelper and should be turned off.

Revision history for this message
Markus Korn (thekorn) wrote :

Brian,
this warning occurs when loading the text_bug{,list} module.
Should this messages be turned of in bughelper/bugnumbers or should we stop warning the user when using the text interface in general?

Markus

Changed in bughelper:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Brian Murray (brian-murray) wrote :

What was the intent of the warning? The +text listing of a bug's web page isn't changing much and is more stable than the html as far as I know.

Revision history for this message
Markus Korn (thekorn) wrote :

we added text_bug.py in a very early stage of its development so we decided to add this warnings.

+1 from me to entirely remove this warnings, because
 * text_bug.py is frequently used and tested this way
 * +text seems to be a stable LP interface

Markus

Revision history for this message
Markus Korn (thekorn) wrote :

This following two patches remove this API warnings in the text mode entirely.

Markus

Revision history for this message
Markus Korn (thekorn) wrote :

patch against py-lp-bugs rev83

Revision history for this message
Markus Korn (thekorn) wrote :

patch against bughelper rev207

Changed in bughelper:
assignee: nobody → thekorn
status: Incomplete → Fix Committed
Changed in python-launchpad-bugs:
assignee: nobody → thekorn
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Markus Korn (thekorn) wrote :

As this patch did not cause any issues for the last week for me, I decided to commit it to .main:
------------------------------------------------------------
revno: 209
committer: Markus Korn <email address hidden>
branch nick: main
timestamp: Tue 2008-03-25 19:35:21 +0100
message:
  * bughelper, buginfo, bugnumbers: do not ignore warnings in text-mode,
    since there are no warnings anymore (LP: #194082)
------------------------------------------------------------

Revision history for this message
Markus Korn (thekorn) wrote :

same for the py-lp-bugs part:
------------------------------------------------------------
revno: 85
committer: Markus Korn <email address hidden>
branch nick: main
timestamp: Tue 2008-03-25 19:41:50 +0100
message:
  * launchpadbugs/test_bug{,list}.py: do not raise API warnings in
    text-mode anymore (LP: #194082)
------------------------------------------------------------

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-launchpad-bugs - 0.2.30

---------------
python-launchpad-bugs (0.2.30) hardy; urgency=low

  [ Markus Korn ]
  * launchpadbugs/text_bug.py: fixed parsing of milestones (LP: #202204)
  * launchpadbugs/text_bug.py: fixed parsing of task-rows, the very
    left arrow to expand a row got a seperate column (LP: #202880)
  * launchpadbugs/html_bug.py: fixed parsing of milestones in the html
    mode if a user is not logged in (LP: #202204)
  * launchpadbugs/html_bug.py: fixed issue when using py-lp-bugs
    and python2.4, thanks Stéphane Graber for pointing this out
    and testing the fix.
  * launchpadbugs/test_bug{,list}.py: do not raise API warnings in
    text-mode anymore (LP: #194082)

 -- Brian Murray <email address hidden> Mon, 07 Apr 2008 15:04:33 -0700

Changed in python-launchpad-bugs:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bughelper - 0.2.14

---------------
bughelper (0.2.14) hardy; urgency=low

  [Markus Korn]
  * bughelper, buginfo, bugnumbers: do not ignore warnings in text-mode,
    since there are no warnings anymore (LP: #194082)
  * bughelper, XMLOperations.py: items in info_files.dontlist are now
    integers (LP: #204457)

 -- Brian Murray <email address hidden> Mon, 07 Apr 2008 15:51:52 -0700

Changed in bughelper:
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.