)]}'
{"watcher/applier/action_plan/default.py":[{"author":{"_account_id":13111,"name":"Hidekazu Nakamura","email":"hidekazuna@gmail.com","username":"hid-nakamura"},"change_message_id":"55b4d673ff9cd0fee325ff1b2bc26c07f39bcb1e","unresolved":false,"context_lines":[{"line_number":73,"context_line":"            action_plan \u003d objects.ActionPlan.get_by_uuid("},{"line_number":74,"context_line":"                self.ctx, self.action_plan_uuid, eager\u003dTrue)"},{"line_number":75,"context_line":"            action_plan.state \u003d objects.action_plan.State.FAILED"},{"line_number":76,"context_line":"            if action_plan.state \u003d\u003d objects.action_plan.State.CANCELLING:"},{"line_number":77,"context_line":"                notifications.action_plan.send_cancel_notification("},{"line_number":78,"context_line":"                    self.ctx, action_plan,"},{"line_number":79,"context_line":"                    action\u003dfields.NotificationAction.CANCEL,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_e3bf0da8","line":76,"range":{"start_line":76,"start_character":15,"end_line":76,"end_character":72},"updated":"2017-09-05 02:40:07.000000000","message":"action_plan.state is always objects.action_plan.State.FAILED by L75.","commit_id":"8a8c2ce40d5d83220c69be7f73409cf5e3c5d7bc"},{"author":{"_account_id":19457,"name":"aditi sharma","email":"adi.sky17@gmail.com","username":"aditi"},"change_message_id":"4c12629c58f02f6c5fc6fa5d3454b54f9d78430b","unresolved":false,"context_lines":[{"line_number":73,"context_line":"            action_plan \u003d objects.ActionPlan.get_by_uuid("},{"line_number":74,"context_line":"                self.ctx, self.action_plan_uuid, eager\u003dTrue)"},{"line_number":75,"context_line":"            action_plan.state \u003d objects.action_plan.State.FAILED"},{"line_number":76,"context_line":"            if action_plan.state \u003d\u003d objects.action_plan.State.CANCELLING:"},{"line_number":77,"context_line":"                notifications.action_plan.send_cancel_notification("},{"line_number":78,"context_line":"                    self.ctx, action_plan,"},{"line_number":79,"context_line":"                    action\u003dfields.NotificationAction.CANCEL,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_8119167b","line":76,"range":{"start_line":76,"start_character":15,"end_line":76,"end_character":72},"in_reply_to":"7f287b81_dc61923b","updated":"2017-09-07 08:48:47.000000000","message":"Done","commit_id":"8a8c2ce40d5d83220c69be7f73409cf5e3c5d7bc"},{"author":{"_account_id":19457,"name":"aditi sharma","email":"adi.sky17@gmail.com","username":"aditi"},"change_message_id":"1a14aac3d9eff5f1c6970e8239b6af83ae76b8a4","unresolved":false,"context_lines":[{"line_number":73,"context_line":"            action_plan \u003d objects.ActionPlan.get_by_uuid("},{"line_number":74,"context_line":"                self.ctx, self.action_plan_uuid, eager\u003dTrue)"},{"line_number":75,"context_line":"            action_plan.state \u003d objects.action_plan.State.FAILED"},{"line_number":76,"context_line":"            if action_plan.state \u003d\u003d objects.action_plan.State.CANCELLING:"},{"line_number":77,"context_line":"                notifications.action_plan.send_cancel_notification("},{"line_number":78,"context_line":"                    self.ctx, action_plan,"},{"line_number":79,"context_line":"                    action\u003dfields.NotificationAction.CANCEL,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_dc61923b","line":76,"range":{"start_line":76,"start_character":15,"end_line":76,"end_character":72},"in_reply_to":"7f287b81_e3bf0da8","updated":"2017-09-05 06:42:36.000000000","message":"will fix it","commit_id":"8a8c2ce40d5d83220c69be7f73409cf5e3c5d7bc"}],"watcher/applier/workflow_engine/base.py":[{"author":{"_account_id":13111,"name":"Hidekazu Nakamura","email":"hidekazuna@gmail.com","username":"hid-nakamura"},"change_message_id":"55b4d673ff9cd0fee325ff1b2bc26c07f39bcb1e","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        db_action.save()"},{"line_number":94,"context_line":"        return db_action"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def notify_cancel(self, action_plan_uuid):"},{"line_number":97,"context_line":"        action_plan \u003d objects.ActionPlan.get_by_uuid(self.context,"},{"line_number":98,"context_line":"                                                     action_plan_uuid,"},{"line_number":99,"context_line":"                                                     eager\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_c32ad1e5","line":96,"range":{"start_line":96,"start_character":7,"end_line":96,"end_character":21},"updated":"2017-09-05 02:40:07.000000000","message":"notify_cancel_start is better.","commit_id":"8a8c2ce40d5d83220c69be7f73409cf5e3c5d7bc"},{"author":{"_account_id":19457,"name":"aditi sharma","email":"adi.sky17@gmail.com","username":"aditi"},"change_message_id":"4c12629c58f02f6c5fc6fa5d3454b54f9d78430b","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        db_action.save()"},{"line_number":94,"context_line":"        return db_action"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def notify_cancel(self, action_plan_uuid):"},{"line_number":97,"context_line":"        action_plan \u003d objects.ActionPlan.get_by_uuid(self.context,"},{"line_number":98,"context_line":"                                                     action_plan_uuid,"},{"line_number":99,"context_line":"                                                     eager\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_e10a1a1e","line":96,"range":{"start_line":96,"start_character":7,"end_line":96,"end_character":21},"in_reply_to":"7f287b81_7c85fece","updated":"2017-09-07 08:48:47.000000000","message":"Done","commit_id":"8a8c2ce40d5d83220c69be7f73409cf5e3c5d7bc"},{"author":{"_account_id":19457,"name":"aditi sharma","email":"adi.sky17@gmail.com","username":"aditi"},"change_message_id":"1a14aac3d9eff5f1c6970e8239b6af83ae76b8a4","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        db_action.save()"},{"line_number":94,"context_line":"        return db_action"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def notify_cancel(self, action_plan_uuid):"},{"line_number":97,"context_line":"        action_plan \u003d objects.ActionPlan.get_by_uuid(self.context,"},{"line_number":98,"context_line":"                                                     action_plan_uuid,"},{"line_number":99,"context_line":"                                                     eager\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_7c85fece","line":96,"range":{"start_line":96,"start_character":7,"end_line":96,"end_character":21},"in_reply_to":"7f287b81_c32ad1e5","updated":"2017-09-05 06:42:36.000000000","message":"ok","commit_id":"8a8c2ce40d5d83220c69be7f73409cf5e3c5d7bc"},{"author":{"_account_id":13111,"name":"Hidekazu Nakamura","email":"hidekazuna@gmail.com","username":"hid-nakamura"},"change_message_id":"55b4d673ff9cd0fee325ff1b2bc26c07f39bcb1e","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        action_plan \u003d objects.ActionPlan.get_by_uuid(self.context,"},{"line_number":98,"context_line":"                                                     action_plan_uuid,"},{"line_number":99,"context_line":"                                                     eager\u003dTrue)"},{"line_number":100,"context_line":"        if not self._is_notified:"},{"line_number":101,"context_line":"            self._is_notified \u003d True"},{"line_number":102,"context_line":"            notifications.action_plan.send_cancel_notification("},{"line_number":103,"context_line":"                self._context, action_plan,"},{"line_number":104,"context_line":"                action\u003dfields.NotificationAction.CANCEL,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_03f339a0","line":101,"range":{"start_line":100,"start_character":8,"end_line":101,"end_character":36},"updated":"2017-09-05 02:40:07.000000000","message":"self._is_notified is True in the end. This variable can be removed.","commit_id":"8a8c2ce40d5d83220c69be7f73409cf5e3c5d7bc"},{"author":{"_account_id":19457,"name":"aditi sharma","email":"adi.sky17@gmail.com","username":"aditi"},"change_message_id":"1a14aac3d9eff5f1c6970e8239b6af83ae76b8a4","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        action_plan \u003d objects.ActionPlan.get_by_uuid(self.context,"},{"line_number":98,"context_line":"                                                     action_plan_uuid,"},{"line_number":99,"context_line":"                                                     eager\u003dTrue)"},{"line_number":100,"context_line":"        if not self._is_notified:"},{"line_number":101,"context_line":"            self._is_notified \u003d True"},{"line_number":102,"context_line":"            notifications.action_plan.send_cancel_notification("},{"line_number":103,"context_line":"                self._context, action_plan,"},{"line_number":104,"context_line":"                action\u003dfields.NotificationAction.CANCEL,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_bc7b66f2","line":101,"range":{"start_line":100,"start_character":8,"end_line":101,"end_character":36},"in_reply_to":"7f287b81_03f339a0","updated":"2017-09-05 06:42:36.000000000","message":"there can be multiple actions, which can call notify_cancel for same action plan, to avoid repeated notfiications it is done.","commit_id":"8a8c2ce40d5d83220c69be7f73409cf5e3c5d7bc"},{"author":{"_account_id":13111,"name":"Hidekazu Nakamura","email":"hidekazuna@gmail.com","username":"hid-nakamura"},"change_message_id":"2b019a63eb244c4526a754bec786c9c60701afc2","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        action_plan \u003d objects.ActionPlan.get_by_uuid(self.context,"},{"line_number":98,"context_line":"                                                     action_plan_uuid,"},{"line_number":99,"context_line":"                                                     eager\u003dTrue)"},{"line_number":100,"context_line":"        if not self._is_notified:"},{"line_number":101,"context_line":"            self._is_notified \u003d True"},{"line_number":102,"context_line":"            notifications.action_plan.send_cancel_notification("},{"line_number":103,"context_line":"                self._context, action_plan,"},{"line_number":104,"context_line":"                action\u003dfields.NotificationAction.CANCEL,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_e647d076","line":101,"range":{"start_line":100,"start_character":8,"end_line":101,"end_character":36},"in_reply_to":"7f287b81_bc7b66f2","updated":"2017-09-07 08:45:53.000000000","message":"Thanks, i got it.","commit_id":"8a8c2ce40d5d83220c69be7f73409cf5e3c5d7bc"},{"author":{"_account_id":13111,"name":"Hidekazu Nakamura","email":"hidekazuna@gmail.com","username":"hid-nakamura"},"change_message_id":"0db2b6c945b025bee9e2b4117e9a8c223209e8a9","unresolved":false,"context_lines":[{"line_number":279,"context_line":"                    fields.NotificationPhase.END)"},{"line_number":280,"context_line":""},{"line_number":281,"context_line":"            if action_object.state \u003d\u003d objects.action.State.PENDING:"},{"line_number":282,"context_line":"                action_object.state \u003d objects.action.State.CANCELLED"},{"line_number":283,"context_line":"                action_object.save()"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"        except Exception as e:"}],"source_content_type":"text/x-python","patch_set":4,"id":"7f515b1d_72eda8b5","line":282,"range":{"start_line":282,"start_character":16,"end_line":282,"end_character":68},"updated":"2017-09-29 04:37:57.000000000","message":"Action state changed to CANCELLED, we need to notify.","commit_id":"106e9cd4efb3b6929868a8039a07ef65279b6242"},{"author":{"_account_id":19457,"name":"aditi sharma","email":"adi.sky17@gmail.com","username":"aditi"},"change_message_id":"3acda2f78a0b8c8030f677d5c9f340a5a42f2124","unresolved":false,"context_lines":[{"line_number":279,"context_line":"                    fields.NotificationPhase.END)"},{"line_number":280,"context_line":""},{"line_number":281,"context_line":"            if action_object.state \u003d\u003d objects.action.State.PENDING:"},{"line_number":282,"context_line":"                action_object.state \u003d objects.action.State.CANCELLED"},{"line_number":283,"context_line":"                action_object.save()"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"        except Exception as e:"}],"source_content_type":"text/x-python","patch_set":4,"id":"7f515b1d_ad6741e9","line":282,"range":{"start_line":282,"start_character":16,"end_line":282,"end_character":68},"in_reply_to":"7f515b1d_72eda8b5","updated":"2017-09-29 05:28:39.000000000","message":"state update notification will go when we call action_object.save(),\nfor notifying cancel notification\nwe need two notification one before update(action.cancel.start), one after update(action.cancel.end)","commit_id":"106e9cd4efb3b6929868a8039a07ef65279b6242"}]}
