RFE: bug.changed should be empty after running bug.commit() successfully

Bug #138837 reported by Markus Korn
2
Affects Status Importance Assigned to Milestone
python-launchpad-bugs
New
Wishlist
Unassigned

Bug Description

As discussed with pitti yesterday, py-lp-bugs would be more robust if bug.changed returns an empty list after successfully running bug.commit(). As a side effect this would also allow code like:

<changes to bug>
bug.commit()
<more changes>
bug.commit()

To achieve this it would be also necessary to add a "reload" argument to the commit function like bug.commit(reload=True). This would cause py-lp-bugs to reload the bugreport. This is necessary because we can not make sure that all changes are successfully committed to LP

Markus Korn (thekorn)
Changed in python-launchpad-bugs:
importance: Undecided → Wishlist
Revision history for this message
Brian Murray (brian-murray) wrote :

I was recently validating xorg.conf files in a bug report and was processing every xorg.conf attachment in a bug and if the bug had one invalid xorg.conf the bug would be tagged invalid-xorg-conf. However, this became a problem if after the invalid config file a valid one was found because the bug would then be tagged valid-xorg-conf since py-lp-b didn't know the bug had already been tagged invalid-xorg-conf.

If there were a reload function I could reload the bug after tags were added and the right thing would happen.

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.