)]}'
{"target_bug.py":[{"author":{"_account_id":308,"name":"Thierry Carrez","email":"thierry@openstack.org","username":"ttx"},"change_message_id":"f1e446f614db3ffd8c82e6f1a27f9ed307a834d5","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"to_milestone \u003d proj.getMilestone(name\u003dargs.milestone)"},{"line_number":43,"context_line":"if not to_milestone:"},{"line_number":44,"context_line":"    parser.error(\u0027Target milestone %s does not exist\u0027 % args.milestone)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"for bug_id in args.bugs:"},{"line_number":47,"context_line":"    bug \u003d launchpad.bugs[bug_id]"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_83b3a74c","line":44,"updated":"2015-06-24 13:02:20.000000000","message":"You should test if the milestone is inactive, and try to reopen it if that\u0027s the case (fail with helpful error message for people with not enough rights to reopen milestone)","commit_id":"c11e437f51182e62aa7d4905b061dc432a51d6f1"},{"author":{"_account_id":308,"name":"Thierry Carrez","email":"thierry@openstack.org","username":"ttx"},"change_message_id":"f1e446f614db3ffd8c82e6f1a27f9ed307a834d5","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"for bug_id in args.bugs:"},{"line_number":47,"context_line":"    bug \u003d launchpad.bugs[bug_id]"},{"line_number":48,"context_line":"    for task in bug.bug_tasks:"},{"line_number":49,"context_line":"        if task.bug_target_name !\u003d args.projectname:"},{"line_number":50,"context_line":"            continue"},{"line_number":51,"context_line":"        print(\u0027%s - \u0027 % bug.id, end\u003d\u0027\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_e31cf367","line":48,"updated":"2015-06-24 13:02:20.000000000","message":"For bugs with multiple tasks (think: a liberty bug with a kilo backport task) this will result in adding the milestone target to multiple tasks, including the kilo backport task where that milestone will make no sense at all...\n\nMaybe adding a check to only apply the milestone if it belongs to the series attached to the task ? I know, LP should just not allow that, but it does.","commit_id":"c11e437f51182e62aa7d4905b061dc432a51d6f1"},{"author":{"_account_id":308,"name":"Thierry Carrez","email":"thierry@openstack.org","username":"ttx"},"change_message_id":"f1e446f614db3ffd8c82e6f1a27f9ed307a834d5","unresolved":false,"context_lines":[{"line_number":58,"context_line":"            except ServerError as e:"},{"line_number":59,"context_line":"                print(\u0027FAILED to update: %s\u0027 % e)"},{"line_number":60,"context_line":"            else:"},{"line_number":61,"context_line":"                print(\u0027milestone updated\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_a397cb8e","line":61,"updated":"2015-06-24 13:02:20.000000000","message":"Don\u0027t forget to re-close the milestone if you had to temporarily reopen it to target things.","commit_id":"c11e437f51182e62aa7d4905b061dc432a51d6f1"}]}
