)]}'
{"ceilometer/api/controllers/v2.py":[{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"71ea3caf106dc2fecbf01db1ce63d3dc0378e883","unresolved":false,"context_lines":[{"line_number":847,"context_line":"                                      \"key_value\"},"},{"line_number":848,"context_line":"                   repeat_actions\u003dFalse,"},{"line_number":849,"context_line":"                   combination_alarms\u003d[\u0027d0e6796f-ac80-4886-ae80-a7f21ba7f3d8\u0027,"},{"line_number":850,"context_line":"                                       \u0027d0e6796f-ac80-4886-1e80-a7f21ba7f3d8\u0027],"},{"line_number":851,"context_line":"                   combination_operator\u003d\u0027or\u0027,"},{"line_number":852,"context_line":"                   )"},{"line_number":853,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAARn%2F%2F6tI%3D","line":850,"updated":"2013-08-20 08:57:11.000000000","message":"Twice the same, that could be weird no?","commit_id":"5a48e81959c3456b2fe022f989297703d32f19fc"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"02af20d04e200805f30b19b35c2f3275dbce43b8","unresolved":false,"context_lines":[{"line_number":847,"context_line":"                                      \"key_value\"},"},{"line_number":848,"context_line":"                   repeat_actions\u003dFalse,"},{"line_number":849,"context_line":"                   combination_alarms\u003d[\u0027d0e6796f-ac80-4886-ae80-a7f21ba7f3d8\u0027,"},{"line_number":850,"context_line":"                                       \u0027d0e6796f-ac80-4886-1e80-a7f21ba7f3d8\u0027],"},{"line_number":851,"context_line":"                   combination_operator\u003d\u0027or\u0027,"},{"line_number":852,"context_line":"                   )"},{"line_number":853,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAARn%2F%2F6XU%3D","line":850,"in_reply_to":"AAAARn%2F%2F6tI%3D","updated":"2013-08-20 10:13:45.000000000","message":"Correct very bad example :)","commit_id":"5a48e81959c3456b2fe022f989297703d32f19fc"},{"author":{"_account_id":4715,"name":"Angus Salkeld","email":"asalkeld@redhat.com","username":"asalkeld"},"change_message_id":"b4b6a8f0ea1e753fc45bf25495906c0fe76de92f","unresolved":false,"context_lines":[{"line_number":737,"context_line":"    if alarm.is_combination_alarm() and alarm.is_normal_alarm():"},{"line_number":738,"context_line":"        error \u003d _("},{"line_number":739,"context_line":"            \"counter_name/statistic/threshold/comparison_operator\""},{"line_number":740,"context_line":"            \" are mutualize exclusive with\""},{"line_number":741,"context_line":"            \" combination_alarms/combination_operator\")"},{"line_number":742,"context_line":"        pecan.response.translatable_error \u003d error"},{"line_number":743,"context_line":"        raise wsme.exc.ClientSideError(error)"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAARn%2F%2FyJ0%3D","line":740,"updated":"2013-08-21 23:52:13.000000000","message":"\"are mutually exclusive with\" ?","commit_id":"6d028047401d04d7d7a31881ee44d400681df8a7"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"d9068ade5d8ef66d532166213fa3bc47b231c8aa","unresolved":false,"context_lines":[{"line_number":737,"context_line":"    if alarm.is_combination_alarm() and alarm.is_normal_alarm():"},{"line_number":738,"context_line":"        error \u003d _("},{"line_number":739,"context_line":"            \"counter_name/statistic/threshold/comparison_operator\""},{"line_number":740,"context_line":"            \" are mutualize exclusive with\""},{"line_number":741,"context_line":"            \" combination_alarms/combination_operator\")"},{"line_number":742,"context_line":"        pecan.response.translatable_error \u003d error"},{"line_number":743,"context_line":"        raise wsme.exc.ClientSideError(error)"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAASn%2F%2F%2FFw%3D","line":740,"in_reply_to":"AAAARn%2F%2FyJ0%3D","updated":"2013-08-27 07:08:14.000000000","message":"Done","commit_id":"6d028047401d04d7d7a31881ee44d400681df8a7"},{"author":{"_account_id":2284,"name":"Eoghan Glynn","email":"eglynn@redhat.com","username":"eglynn"},"change_message_id":"1879258c3ab8d00d633c95490acce7dc46d67e9e","unresolved":false,"context_lines":[{"line_number":885,"context_line":"    \"The matching_metadata of the alarm\""},{"line_number":886,"context_line":""},{"line_number":887,"context_line":"    combination_alarms \u003d [wtypes.text]"},{"line_number":888,"context_line":"    \"A list of alarms id\""},{"line_number":889,"context_line":""},{"line_number":890,"context_line":"    combination_operator \u003d wtypes.Enum(str, \u0027or\u0027, \u0027and\u0027)"},{"line_number":891,"context_line":"    \"The operator between combination_alarms\""}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAASn%2F%2F8lg%3D","line":888,"updated":"2013-08-27 18:10:55.000000000","message":"Femto-nit:\n\n  s/alarms id/alarm IDs/","commit_id":"a993e5e31a48ab55dac0bf182761ff7cc7dc5617"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"c39cce561322d73c5b8845f224ce7f7120a661de","unresolved":false,"context_lines":[{"line_number":885,"context_line":"    \"The matching_metadata of the alarm\""},{"line_number":886,"context_line":""},{"line_number":887,"context_line":"    combination_alarms \u003d [wtypes.text]"},{"line_number":888,"context_line":"    \"A list of alarms id\""},{"line_number":889,"context_line":""},{"line_number":890,"context_line":"    combination_operator \u003d wtypes.Enum(str, \u0027or\u0027, \u0027and\u0027)"},{"line_number":891,"context_line":"    \"The operator between combination_alarms\""}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAASn%2F%2F3xM%3D","line":888,"in_reply_to":"AAAASn%2F%2F8lg%3D","updated":"2013-08-28 16:32:34.000000000","message":"Done","commit_id":"a993e5e31a48ab55dac0bf182761ff7cc7dc5617"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"09d8da5cb0fe3100d5fa991c2cf8dcab0c22aeb3","unresolved":false,"context_lines":[{"line_number":797,"context_line":"        return resources"},{"line_number":798,"context_line":""},{"line_number":799,"context_line":""},{"line_number":800,"context_line":"def _alarm_validate(alarm):"},{"line_number":801,"context_line":"    \"\"\"Ensure alarm is a combination alarm or a normal alarm"},{"line_number":802,"context_line":""},{"line_number":803,"context_line":"    :param alarm: the alarm to validate"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FwKc%3D","line":800,"updated":"2013-08-30 01:40:28.000000000","message":"This seems like it should be a method of Alarm. Why is it separate?","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"cee0cf249f47e7c13da99951336a8c3ffb0be950","unresolved":false,"context_lines":[{"line_number":797,"context_line":"        return resources"},{"line_number":798,"context_line":""},{"line_number":799,"context_line":""},{"line_number":800,"context_line":"def _alarm_validate(alarm):"},{"line_number":801,"context_line":"    \"\"\"Ensure alarm is a combination alarm or a normal alarm"},{"line_number":802,"context_line":""},{"line_number":803,"context_line":"    :param alarm: the alarm to validate"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2Fcho%3D","line":800,"in_reply_to":"AAAASn%2F%2FwKc%3D","updated":"2013-09-04 17:35:28.000000000","message":"I have moved this.","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"ffd76c2eb1b8b5b4b632104703ddf037e704492a","unresolved":false,"context_lines":[{"line_number":814,"context_line":"    if not alarm.is_combination_alarm() and not alarm.is_normal_alarm():"},{"line_number":815,"context_line":"        error \u003d _("},{"line_number":816,"context_line":"            \"counter_name/statistic/threshold/comparison_operator/period\""},{"line_number":817,"context_line":"            \"/evaluation_periods/matching_metadata\""},{"line_number":818,"context_line":"            \" or\""},{"line_number":819,"context_line":"            \" combination_alarms/combination_operator\""},{"line_number":820,"context_line":"            \"must be set\")"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FxaQ%3D","line":817,"updated":"2013-08-29 20:45:13.000000000","message":"these messages are somewhat ambiguous. what does the slash stand for? does it mean \u0027and\u0027 in this case?\n\nedit: ok, i read through rest of patch and i now know it stands for \u0027and\u0027 :)... probably best to avoid slash and make it: counter_name, statistic, threshold, comparison_operator, period, evaluation_periods and matching_metadata","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"cee0cf249f47e7c13da99951336a8c3ffb0be950","unresolved":false,"context_lines":[{"line_number":814,"context_line":"    if not alarm.is_combination_alarm() and not alarm.is_normal_alarm():"},{"line_number":815,"context_line":"        error \u003d _("},{"line_number":816,"context_line":"            \"counter_name/statistic/threshold/comparison_operator/period\""},{"line_number":817,"context_line":"            \"/evaluation_periods/matching_metadata\""},{"line_number":818,"context_line":"            \" or\""},{"line_number":819,"context_line":"            \" combination_alarms/combination_operator\""},{"line_number":820,"context_line":"            \"must be set\")"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2Fchs%3D","line":817,"in_reply_to":"AAAASn%2F%2FxaQ%3D","updated":"2013-09-04 17:35:28.000000000","message":"Done","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"09d8da5cb0fe3100d5fa991c2cf8dcab0c22aeb3","unresolved":false,"context_lines":[{"line_number":886,"context_line":"    matching_metadata \u003d {wtypes.text: wtypes.text}"},{"line_number":887,"context_line":"    \"The matching_metadata of the alarm\""},{"line_number":888,"context_line":""},{"line_number":889,"context_line":"    combination_alarms \u003d [wtypes.text]"},{"line_number":890,"context_line":"    \"A list of alarms IDs\""},{"line_number":891,"context_line":""},{"line_number":892,"context_line":"    combination_operator \u003d wtypes.Enum(str, \u0027or\u0027, \u0027and\u0027)"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FwHQ%3D","line":889,"updated":"2013-08-30 01:40:28.000000000","message":"I\u0027m afraid that we\u0027re going to clutter up this class with all sorts of mutually exclusive parameters as we add features to the alarms. Is there some way to express the Alarm as a series of rules so we can be consistent? Or maybe what we have as an Alarm now is the rule, and there is a new concept \"above\" the Alarm (and that would imply a new API endpoint to create the thing). Either way, this feels like it is going to be confusing for users.","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"729f759ec93d9a74a7e20fa182b1787185215f3b","unresolved":false,"context_lines":[{"line_number":902,"context_line":"    repeat_actions \u003d bool"},{"line_number":903,"context_line":"    \"The actions should be re-triggered on each evaluation cycle\""},{"line_number":904,"context_line":""},{"line_number":905,"context_line":"    matching_metadata \u003d {wtypes.text: wtypes.text}"},{"line_number":906,"context_line":"    \"The matching_metadata of the alarm\""},{"line_number":907,"context_line":""},{"line_number":908,"context_line":"    combination_alarms \u003d [wtypes.text]"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAASn%2F%2FYTU%3D","line":905,"updated":"2013-09-05 13:14:05.000000000","message":"This needs to be a richer data structure. I think you want a list of Query instances.","commit_id":"d7de71aba68ef1b07ebf4f1765650f03f7fdf84a"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"39d02da8df789e697c4988fd709039c8ffe9fc95","unresolved":false,"context_lines":[{"line_number":902,"context_line":"    repeat_actions \u003d bool"},{"line_number":903,"context_line":"    \"The actions should be re-triggered on each evaluation cycle\""},{"line_number":904,"context_line":""},{"line_number":905,"context_line":"    matching_metadata \u003d {wtypes.text: wtypes.text}"},{"line_number":906,"context_line":"    \"The matching_metadata of the alarm\""},{"line_number":907,"context_line":""},{"line_number":908,"context_line":"    combination_alarms \u003d [wtypes.text]"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAS3%2F%2F%2Bj8%3D","line":905,"in_reply_to":"AAAASn%2F%2FYTU%3D","updated":"2013-09-16 08:28:03.000000000","message":"Done","commit_id":"d7de71aba68ef1b07ebf4f1765650f03f7fdf84a"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"8343a9cdbc1dd3c4d87c243c35abf0ae00d2e216","unresolved":false,"context_lines":[{"line_number":905,"context_line":"    matching_metadata \u003d {wtypes.text: wtypes.text}"},{"line_number":906,"context_line":"    \"The matching_metadata of the alarm\""},{"line_number":907,"context_line":""},{"line_number":908,"context_line":"    combination_alarms \u003d [wtypes.text]"},{"line_number":909,"context_line":"    \"A list of alarms IDs\""},{"line_number":910,"context_line":""},{"line_number":911,"context_line":"    combination_operator \u003d wtypes.Enum(str, \u0027or\u0027, \u0027and\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAASn%2F%2FbXo%3D","line":908,"updated":"2013-09-04 21:13:25.000000000","message":"You did not address this comment from patch 11:\n\nI\u0027m afraid that we\u0027re going to clutter up this class with all sorts of mutually exclusive parameters as we add features to the alarms. Is there some way to express the Alarm as a series of rules so we can be consistent? Or maybe what we have as an Alarm now is the rule, and there is a new concept \"above\" the Alarm (and that would imply a new API endpoint to create the thing). Either way, this current implementation is going to be confusing for users to understand what values they can provide together based on the \"mode\" the alarm is using.","commit_id":"d7de71aba68ef1b07ebf4f1765650f03f7fdf84a"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"39d02da8df789e697c4988fd709039c8ffe9fc95","unresolved":false,"context_lines":[{"line_number":905,"context_line":"    matching_metadata \u003d {wtypes.text: wtypes.text}"},{"line_number":906,"context_line":"    \"The matching_metadata of the alarm\""},{"line_number":907,"context_line":""},{"line_number":908,"context_line":"    combination_alarms \u003d [wtypes.text]"},{"line_number":909,"context_line":"    \"A list of alarms IDs\""},{"line_number":910,"context_line":""},{"line_number":911,"context_line":"    combination_operator \u003d wtypes.Enum(str, \u0027or\u0027, \u0027and\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAS3%2F%2F%2BkE%3D","line":908,"in_reply_to":"AAAASn%2F%2FZJI%3D","updated":"2013-09-16 08:28:03.000000000","message":"The new API proposal has been implemented:\n\nhttps://wiki.openstack.org/wiki/Ceilometer/blueprints/alarm-api","commit_id":"d7de71aba68ef1b07ebf4f1765650f03f7fdf84a"},{"author":{"_account_id":2284,"name":"Eoghan Glynn","email":"eglynn@redhat.com","username":"eglynn"},"change_message_id":"518b19165bb2e01ffcecba0ae248704b1bad14a3","unresolved":false,"context_lines":[{"line_number":905,"context_line":"    matching_metadata \u003d {wtypes.text: wtypes.text}"},{"line_number":906,"context_line":"    \"The matching_metadata of the alarm\""},{"line_number":907,"context_line":""},{"line_number":908,"context_line":"    combination_alarms \u003d [wtypes.text]"},{"line_number":909,"context_line":"    \"A list of alarms IDs\""},{"line_number":910,"context_line":""},{"line_number":911,"context_line":"    combination_operator \u003d wtypes.Enum(str, \u0027or\u0027, \u0027and\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAASn%2F%2FZJI%3D","line":908,"in_reply_to":"AAAASn%2F%2FZgU%3D","updated":"2013-09-05 09:21:04.000000000","message":"Agreed that the mutual exclusivity is getting confusing. But essentially both things are alarms, so I wouldn\u0027t want to lose this commonality.\n\nHow about we factor out the AlarmRule from Alarm, and provide two separate types of rule, a StatisticsWindowRule and a MetaAlarmRule.\n\nThe StatisticsWindowRule would encapsulate statistic, meter name, period, eval periods, threshold, comparison operator, and matching metadata.\n\nWhereas the MetaAlarmRule would encapsulate the underlying alarm IDs and the combination operator.\n\nThe common Alarm attributes (name, ID, project, user, actions) would still be maintained in a common model that then contains/refers to the rule.\n\nAlarms would still be created via the same endpoint, with the rule type provided determining the nature of the alarm.\n\nThe threshold evaluation logic could then have an eval strategy per rule type.","commit_id":"d7de71aba68ef1b07ebf4f1765650f03f7fdf84a"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"bbce8b03a07a8120dd1fee50c2defa1b4a74b581","unresolved":false,"context_lines":[{"line_number":905,"context_line":"    matching_metadata \u003d {wtypes.text: wtypes.text}"},{"line_number":906,"context_line":"    \"The matching_metadata of the alarm\""},{"line_number":907,"context_line":""},{"line_number":908,"context_line":"    combination_alarms \u003d [wtypes.text]"},{"line_number":909,"context_line":"    \"A list of alarms IDs\""},{"line_number":910,"context_line":""},{"line_number":911,"context_line":"    combination_operator \u003d wtypes.Enum(str, \u0027or\u0027, \u0027and\u0027)"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAASn%2F%2FZgU%3D","line":908,"in_reply_to":"AAAASn%2F%2FbXo%3D","updated":"2013-09-05 07:58:44.000000000","message":"Sorry doug, I have not forgotten your comment, I have just focus this rework on moving defaults/validation stuffs into the API, and for sure, the code doesn\u0027t look good.I agree that maintaining exclusive parameters is a bad choice. The code looks complicated and complexity will be increase if we add a other king of alarm. And this without talking about the how the end-user will understand this.\n\nI prefer the approach of the concept \"above\" the Alarm, because\nit allows to keep the alarms mechanism simple. \n\nNow, I wonder how far I have to separate the two kinds of alarm.\nThe API only and both endpoints use the same storage model ?, or I need to create a new storage API and modeI even it shares half of attributes ?","commit_id":"d7de71aba68ef1b07ebf4f1765650f03f7fdf84a"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"7373d66a794578ef5654d688918f9fe0ac9ca3f2","unresolved":false,"context_lines":[{"line_number":972,"context_line":""},{"line_number":973,"context_line":""},{"line_number":974,"context_line":"class AlarmCombinationRule(_Base):"},{"line_number":975,"context_line":"    operator \u003d AdvEnum(\u0027operator\u0027, str, \u0027or\u0027, \u0027and\u0027, default\u003d\u0027or\u0027)"},{"line_number":976,"context_line":"    \"How to combine the sub-alarms\""},{"line_number":977,"context_line":""},{"line_number":978,"context_line":"    alarm_ids \u003d wsme.wsattr([wtypes.text], mandatory\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAS3%2F%2F9Ys%3D","line":975,"updated":"2013-09-16 15:29:26.000000000","message":"Not sure about the default, I\u0027d rather set `and\u0027, but YMMV","commit_id":"c66fb0548f6b2e6672683662e6033410fa435a45"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6092b6bb58eb662ca0090ba54c678bf2fc229e91","unresolved":false,"context_lines":[{"line_number":972,"context_line":""},{"line_number":973,"context_line":""},{"line_number":974,"context_line":"class AlarmCombinationRule(_Base):"},{"line_number":975,"context_line":"    operator \u003d AdvEnum(\u0027operator\u0027, str, \u0027or\u0027, \u0027and\u0027, default\u003d\u0027or\u0027)"},{"line_number":976,"context_line":"    \"How to combine the sub-alarms\""},{"line_number":977,"context_line":""},{"line_number":978,"context_line":"    alarm_ids \u003d wsme.wsattr([wtypes.text], mandatory\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAS3%2F%2F9HA%3D","line":975,"in_reply_to":"AAAAS3%2F%2F9Ys%3D","updated":"2013-09-17 09:55:30.000000000","message":"I agree, done","commit_id":"c66fb0548f6b2e6672683662e6033410fa435a45"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"b5506589403da4635e5fe0ed9c5edff84be722eb","unresolved":false,"context_lines":[{"line_number":1069,"context_line":"        if rule:"},{"line_number":1070,"context_line":"            if self.type \u003d\u003d \u0027threshold\u0027:"},{"line_number":1071,"context_line":"                self.threshold_rule \u003d AlarmThresholdRule(**rule)"},{"line_number":1072,"context_line":"            if self.type \u003d\u003d \u0027combination\u0027:"},{"line_number":1073,"context_line":"                self.combination_rule \u003d AlarmCombinationRule(**rule)"},{"line_number":1074,"context_line":""},{"line_number":1075,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAS3%2F%2F8lI%3D","line":1072,"updated":"2013-09-16 18:58:27.000000000","message":"elif","commit_id":"c66fb0548f6b2e6672683662e6033410fa435a45"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6092b6bb58eb662ca0090ba54c678bf2fc229e91","unresolved":false,"context_lines":[{"line_number":1069,"context_line":"        if rule:"},{"line_number":1070,"context_line":"            if self.type \u003d\u003d \u0027threshold\u0027:"},{"line_number":1071,"context_line":"                self.threshold_rule \u003d AlarmThresholdRule(**rule)"},{"line_number":1072,"context_line":"            if self.type \u003d\u003d \u0027combination\u0027:"},{"line_number":1073,"context_line":"                self.combination_rule \u003d AlarmCombinationRule(**rule)"},{"line_number":1074,"context_line":""},{"line_number":1075,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAS3%2F%2F6Xw%3D","line":1072,"in_reply_to":"AAAAS3%2F%2F8lI%3D","updated":"2013-09-17 09:55:30.000000000","message":"Done","commit_id":"c66fb0548f6b2e6672683662e6033410fa435a45"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"7373d66a794578ef5654d688918f9fe0ac9ca3f2","unresolved":false,"context_lines":[{"line_number":1071,"context_line":"                self.threshold_rule \u003d AlarmThresholdRule(**rule)"},{"line_number":1072,"context_line":"            if self.type \u003d\u003d \u0027combination\u0027:"},{"line_number":1073,"context_line":"                self.combination_rule \u003d AlarmCombinationRule(**rule)"},{"line_number":1074,"context_line":""},{"line_number":1075,"context_line":"    @classmethod"},{"line_number":1076,"context_line":"    def sample(cls):"},{"line_number":1077,"context_line":"        threshold_rule \u003d {"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAS3%2F%2F9YM%3D","line":1074,"updated":"2013-09-16 15:29:26.000000000","message":"It seems to me that there\u0027s a way to create an alarm with both attribute set.\n\nThere should be a test that allow or disallow that. I think it\u0027s not allowed though.","commit_id":"c66fb0548f6b2e6672683662e6033410fa435a45"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6092b6bb58eb662ca0090ba54c678bf2fc229e91","unresolved":false,"context_lines":[{"line_number":1071,"context_line":"                self.threshold_rule \u003d AlarmThresholdRule(**rule)"},{"line_number":1072,"context_line":"            if self.type \u003d\u003d \u0027combination\u0027:"},{"line_number":1073,"context_line":"                self.combination_rule \u003d AlarmCombinationRule(**rule)"},{"line_number":1074,"context_line":""},{"line_number":1075,"context_line":"    @classmethod"},{"line_number":1076,"context_line":"    def sample(cls):"},{"line_number":1077,"context_line":"        threshold_rule \u003d {"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAS3%2F%2F9Co%3D","line":1074,"in_reply_to":"AAAAS3%2F%2F9YM%3D","updated":"2013-09-17 09:55:30.000000000","message":"@jd, Done\n\n@gordon, wsme doesn\u0027t allow one attribute with different/unknow type.","commit_id":"c66fb0548f6b2e6672683662e6033410fa435a45"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"b5506589403da4635e5fe0ed9c5edff84be722eb","unresolved":false,"context_lines":[{"line_number":1071,"context_line":"                self.threshold_rule \u003d AlarmThresholdRule(**rule)"},{"line_number":1072,"context_line":"            if self.type \u003d\u003d \u0027combination\u0027:"},{"line_number":1073,"context_line":"                self.combination_rule \u003d AlarmCombinationRule(**rule)"},{"line_number":1074,"context_line":""},{"line_number":1075,"context_line":"    @classmethod"},{"line_number":1076,"context_line":"    def sample(cls):"},{"line_number":1077,"context_line":"        threshold_rule \u003d {"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAS3%2F%2F8kY%3D","line":1074,"in_reply_to":"AAAAS3%2F%2F9YM%3D","updated":"2013-09-16 18:58:27.000000000","message":"since they\u0027re mutually exclusive, is it possible to just have them both use a general \u0027rule\u0027 attribute rather than having separate threshold_rule/combination_rule attributes?","commit_id":"c66fb0548f6b2e6672683662e6033410fa435a45"},{"author":{"_account_id":4491,"name":"Lianhao Lu","email":"llh_misc@outlook.com","username":"lianhao-lu"},"change_message_id":"7469c69ddf6815bc3a53d76dd98c8be5ca6bf7a8","unresolved":false,"context_lines":[{"line_number":1227,"context_line":"        else:"},{"line_number":1228,"context_line":"            data.state_timestamp \u003d alarm_in.state_timestamp"},{"line_number":1229,"context_line":""},{"line_number":1230,"context_line":"        Alarm.validate(data)"},{"line_number":1231,"context_line":""},{"line_number":1232,"context_line":"        old_alarm \u003d Alarm.from_db_model(alarm_in).as_dict(storage.models.Alarm)"},{"line_number":1233,"context_line":"        new_alarm \u003d data.as_dict(storage.models.Alarm)"}],"source_content_type":"text/x-python","patch_set":19,"id":"AAAAS3%2F%2F2rc%3D","line":1230,"updated":"2013-09-18 07:48:44.000000000","message":"do we need this? Should wsme automatically call validate()?","commit_id":"0859da3b27962cc0d55613ecccde5e3ae74f8672"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6e234d2b9db454cdf398dddb7ec6662d022717cd","unresolved":false,"context_lines":[{"line_number":1227,"context_line":"        else:"},{"line_number":1228,"context_line":"            data.state_timestamp \u003d alarm_in.state_timestamp"},{"line_number":1229,"context_line":""},{"line_number":1230,"context_line":"        Alarm.validate(data)"},{"line_number":1231,"context_line":""},{"line_number":1232,"context_line":"        old_alarm \u003d Alarm.from_db_model(alarm_in).as_dict(storage.models.Alarm)"},{"line_number":1233,"context_line":"        new_alarm \u003d data.as_dict(storage.models.Alarm)"}],"source_content_type":"text/x-python","patch_set":19,"id":"AAAAS3%2F%2F2cY%3D","line":1230,"in_reply_to":"AAAAS3%2F%2F2kE%3D","updated":"2013-09-18 08:53:24.000000000","message":"Perhaps this one: https://bugs.launchpad.net/wsme/+bug/1220678\nI will add a comment to the code","commit_id":"0859da3b27962cc0d55613ecccde5e3ae74f8672"},{"author":{"_account_id":4491,"name":"Lianhao Lu","email":"llh_misc@outlook.com","username":"lianhao-lu"},"change_message_id":"871d54a9f16791ee26c2bd12cf9c8d375ce121bf","unresolved":false,"context_lines":[{"line_number":1227,"context_line":"        else:"},{"line_number":1228,"context_line":"            data.state_timestamp \u003d alarm_in.state_timestamp"},{"line_number":1229,"context_line":""},{"line_number":1230,"context_line":"        Alarm.validate(data)"},{"line_number":1231,"context_line":""},{"line_number":1232,"context_line":"        old_alarm \u003d Alarm.from_db_model(alarm_in).as_dict(storage.models.Alarm)"},{"line_number":1233,"context_line":"        new_alarm \u003d data.as_dict(storage.models.Alarm)"}],"source_content_type":"text/x-python","patch_set":19,"id":"AAAAS3%2F%2F2kE%3D","line":1230,"in_reply_to":"AAAAS3%2F%2F2og%3D","updated":"2013-09-18 08:20:13.000000000","message":"looks like a wsme bug?","commit_id":"0859da3b27962cc0d55613ecccde5e3ae74f8672"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"7b9c118a146950baa838aa02712ba3dba4450f0e","unresolved":false,"context_lines":[{"line_number":1227,"context_line":"        else:"},{"line_number":1228,"context_line":"            data.state_timestamp \u003d alarm_in.state_timestamp"},{"line_number":1229,"context_line":""},{"line_number":1230,"context_line":"        Alarm.validate(data)"},{"line_number":1231,"context_line":""},{"line_number":1232,"context_line":"        old_alarm \u003d Alarm.from_db_model(alarm_in).as_dict(storage.models.Alarm)"},{"line_number":1233,"context_line":"        new_alarm \u003d data.as_dict(storage.models.Alarm)"}],"source_content_type":"text/x-python","patch_set":19,"id":"AAAAS3%2F%2F2og%3D","line":1230,"in_reply_to":"AAAAS3%2F%2F2rc%3D","updated":"2013-09-18 08:02:26.000000000","message":"Good question, for sure this is not done wsme, but from my understanding of wsme, it should be called when we use wsme.validate decorator.\n\nIn the fact, validate is called in each subtype of the Alarm but not on the Alarm itself.","commit_id":"0859da3b27962cc0d55613ecccde5e3ae74f8672"},{"author":{"_account_id":2284,"name":"Eoghan Glynn","email":"eglynn@redhat.com","username":"eglynn"},"change_message_id":"952a5c90108b366f9dcd1da2678a9658730dac61","unresolved":false,"context_lines":[{"line_number":985,"context_line":""},{"line_number":986,"context_line":"    @property"},{"line_number":987,"context_line":"    def default_description(self):"},{"line_number":988,"context_line":"        return _(\u0027Combined state of alarms %s\u0027) % self.operator.join("},{"line_number":989,"context_line":"            self.alarm_ids)"},{"line_number":990,"context_line":""},{"line_number":991,"context_line":"    def as_dict(self):"}],"source_content_type":"text/x-python","patch_set":20,"id":"AAAAS3%2F%2F16M%3D","line":988,"updated":"2013-09-18 12:09:42.000000000","message":"Could you work the operator into the default description also?","commit_id":"01f7890662a5718e35a0dfeb96c526586019df65"},{"author":{"_account_id":2284,"name":"Eoghan Glynn","email":"eglynn@redhat.com","username":"eglynn"},"change_message_id":"1f19bbe56be2a850869db5bdbc02da6cb27791e9","unresolved":false,"context_lines":[{"line_number":985,"context_line":""},{"line_number":986,"context_line":"    @property"},{"line_number":987,"context_line":"    def default_description(self):"},{"line_number":988,"context_line":"        return _(\u0027Combined state of alarms %s\u0027) % self.operator.join("},{"line_number":989,"context_line":"            self.alarm_ids)"},{"line_number":990,"context_line":""},{"line_number":991,"context_line":"    def as_dict(self):"}],"source_content_type":"text/x-python","patch_set":20,"id":"AAAAS3%2F%2F06A%3D","line":988,"in_reply_to":"AAAAS3%2F%2F16M%3D","updated":"2013-09-18 16:21:24.000000000","message":"Ignore me, I\u0027m blind ;)","commit_id":"01f7890662a5718e35a0dfeb96c526586019df65"}],"ceilometer/storage/impl_db2.py":[{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"8343a9cdbc1dd3c4d87c243c35abf0ae00d2e216","unresolved":false,"context_lines":[{"line_number":523,"context_line":"        if isinstance(matching_metadata, dict):"},{"line_number":524,"context_line":"            #note(sileht): keep compatibility with old db format"},{"line_number":525,"context_line":"            return matching_metadata"},{"line_number":526,"context_line":"        elif matching_metadata:"},{"line_number":527,"context_line":"            new_matching_metadata \u003d {}"},{"line_number":528,"context_line":"            for elem in matching_metadata:"},{"line_number":529,"context_line":"                new_matching_metadata[elem[\u0027key\u0027]] \u003d elem[\u0027value\u0027]"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAASn%2F%2FbUk%3D","line":526,"updated":"2013-09-04 21:13:25.000000000","message":"Now this method returns None in some cases, instead of always returning a dictionary.","commit_id":"d7de71aba68ef1b07ebf4f1765650f03f7fdf84a"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"39d02da8df789e697c4988fd709039c8ffe9fc95","unresolved":false,"context_lines":[{"line_number":523,"context_line":"        if isinstance(matching_metadata, dict):"},{"line_number":524,"context_line":"            #note(sileht): keep compatibility with old db format"},{"line_number":525,"context_line":"            return matching_metadata"},{"line_number":526,"context_line":"        elif matching_metadata:"},{"line_number":527,"context_line":"            new_matching_metadata \u003d {}"},{"line_number":528,"context_line":"            for elem in matching_metadata:"},{"line_number":529,"context_line":"                new_matching_metadata[elem[\u0027key\u0027]] \u003d elem[\u0027value\u0027]"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAS3%2F%2F%2Bjs%3D","line":526,"in_reply_to":"AAAASn%2F%2FbUk%3D","updated":"2013-09-16 08:28:03.000000000","message":"New review doesn\u0027t change this","commit_id":"d7de71aba68ef1b07ebf4f1765650f03f7fdf84a"}],"ceilometer/storage/impl_mongodb.py":[{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"8343a9cdbc1dd3c4d87c243c35abf0ae00d2e216","unresolved":false,"context_lines":[{"line_number":761,"context_line":"        if isinstance(matching_metadata, dict):"},{"line_number":762,"context_line":"            #note(sileht): keep compatibility with old db format"},{"line_number":763,"context_line":"            return matching_metadata"},{"line_number":764,"context_line":"        elif matching_metadata:"},{"line_number":765,"context_line":"            new_matching_metadata \u003d {}"},{"line_number":766,"context_line":"            for elem in matching_metadata:"},{"line_number":767,"context_line":"                new_matching_metadata[elem[\u0027key\u0027]] \u003d elem[\u0027value\u0027]"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAASn%2F%2FbUg%3D","line":764,"updated":"2013-09-04 21:13:25.000000000","message":"Same comment.","commit_id":"d7de71aba68ef1b07ebf4f1765650f03f7fdf84a"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"39d02da8df789e697c4988fd709039c8ffe9fc95","unresolved":false,"context_lines":[{"line_number":761,"context_line":"        if isinstance(matching_metadata, dict):"},{"line_number":762,"context_line":"            #note(sileht): keep compatibility with old db format"},{"line_number":763,"context_line":"            return matching_metadata"},{"line_number":764,"context_line":"        elif matching_metadata:"},{"line_number":765,"context_line":"            new_matching_metadata \u003d {}"},{"line_number":766,"context_line":"            for elem in matching_metadata:"},{"line_number":767,"context_line":"                new_matching_metadata[elem[\u0027key\u0027]] \u003d elem[\u0027value\u0027]"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAS3%2F%2F%2Bjk%3D","line":764,"in_reply_to":"AAAASn%2F%2FbUg%3D","updated":"2013-09-16 08:28:03.000000000","message":"New review doesn\u0027t change this","commit_id":"d7de71aba68ef1b07ebf4f1765650f03f7fdf84a"}],"ceilometer/storage/models.py":[{"author":{"_account_id":4491,"name":"Lianhao Lu","email":"llh_misc@outlook.com","username":"lianhao-lu"},"change_message_id":"d8dbc909870537b242567ac6ca5b627c2f47a18c","unresolved":false,"context_lines":[{"line_number":275,"context_line":"                                      entering the insufficient data state"},{"line_number":276,"context_line":"    :param matching_metadata: the key/values of metadata to match on."},{"line_number":277,"context_line":"    :param repeat_actions: Is the actions should be triggered on each"},{"line_number":278,"context_line":"                           alarm evaluation."},{"line_number":279,"context_line":"    \"\"\""},{"line_number":280,"context_line":"    def __init__(self, name,"},{"line_number":281,"context_line":"                 user_id, project_id,"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAASX%2F%2F3YQ%3D","line":278,"updated":"2013-08-26 02:03:38.000000000","message":"how about add those new parameters here?","commit_id":"9ef1d392aa12eddf60f93ce0fa0e6ed07e207afa"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"1d7f5f3e7b19b5354f108c37e46e271a838bcbdf","unresolved":false,"context_lines":[{"line_number":275,"context_line":"                                      entering the insufficient data state"},{"line_number":276,"context_line":"    :param matching_metadata: the key/values of metadata to match on."},{"line_number":277,"context_line":"    :param repeat_actions: Is the actions should be triggered on each"},{"line_number":278,"context_line":"                           alarm evaluation."},{"line_number":279,"context_line":"    \"\"\""},{"line_number":280,"context_line":"    def __init__(self, name,"},{"line_number":281,"context_line":"                 user_id, project_id,"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAASn%2F%2F%2FFk%3D","line":278,"in_reply_to":"AAAASX%2F%2F3YQ%3D","updated":"2013-08-27 07:08:19.000000000","message":"Done","commit_id":"9ef1d392aa12eddf60f93ce0fa0e6ed07e207afa"},{"author":{"_account_id":2284,"name":"Eoghan Glynn","email":"eglynn@redhat.com","username":"eglynn"},"change_message_id":"1879258c3ab8d00d633c95490acce7dc46d67e9e","unresolved":false,"context_lines":[{"line_number":311,"context_line":"                        counter_name, comparison_operator,"},{"line_number":312,"context_line":"                        statistic, threshold, period)"},{"line_number":313,"context_line":"            else:"},{"line_number":314,"context_line":"                description \u003d \u0027Alarm when alarms id %s alarm\u0027 % \\"},{"line_number":315,"context_line":"                    combination_operator.join(combination_alarms)"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"        Model.__init__("}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAASn%2F%2F8kA%3D","line":314,"updated":"2013-08-27 18:10:55.000000000","message":"Another femto-nitpick ... over-use of \"alarm\" in that description, also doesn\u0027t account for insufficient_data transitions.\n\nHow about ...\n\n  \u0027Combine state of alarms %s\u0027","commit_id":"a993e5e31a48ab55dac0bf182761ff7cc7dc5617"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"c39cce561322d73c5b8845f224ce7f7120a661de","unresolved":false,"context_lines":[{"line_number":311,"context_line":"                        counter_name, comparison_operator,"},{"line_number":312,"context_line":"                        statistic, threshold, period)"},{"line_number":313,"context_line":"            else:"},{"line_number":314,"context_line":"                description \u003d \u0027Alarm when alarms id %s alarm\u0027 % \\"},{"line_number":315,"context_line":"                    combination_operator.join(combination_alarms)"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"        Model.__init__("}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAASn%2F%2F3xE%3D","line":314,"in_reply_to":"AAAASn%2F%2F8kA%3D","updated":"2013-08-28 16:32:34.000000000","message":"Done","commit_id":"a993e5e31a48ab55dac0bf182761ff7cc7dc5617"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"09d8da5cb0fe3100d5fa991c2cf8dcab0c22aeb3","unresolved":false,"context_lines":[{"line_number":303,"context_line":"                 matching_metadata\u003d{},"},{"line_number":304,"context_line":"                 repeat_actions\u003dFalse"},{"line_number":305,"context_line":"                 ):"},{"line_number":306,"context_line":"        if counter_name:"},{"line_number":307,"context_line":"            if period is None:"},{"line_number":308,"context_line":"                period \u003d 60"},{"line_number":309,"context_line":"            if evaluation_periods is None:"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FwHI%3D","line":306,"updated":"2013-08-30 01:40:28.000000000","message":"Are these changes related to adding the new type of alarm? I don\u0027t see the connection.\n\nWhy is the model setting defaults? Should it do validation? What if period \u003c\u003d 0, for example?","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"cee0cf249f47e7c13da99951336a8c3ffb0be950","unresolved":false,"context_lines":[{"line_number":303,"context_line":"                 matching_metadata\u003d{},"},{"line_number":304,"context_line":"                 repeat_actions\u003dFalse"},{"line_number":305,"context_line":"                 ):"},{"line_number":306,"context_line":"        if counter_name:"},{"line_number":307,"context_line":"            if period is None:"},{"line_number":308,"context_line":"                period \u003d 60"},{"line_number":309,"context_line":"            if evaluation_periods is None:"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FvC4%3D","line":306,"in_reply_to":"AAAASn%2F%2FwHI%3D","updated":"2013-09-04 17:35:28.000000000","message":"I have added in a separate review the move of the defaults/validation stuffs in the API.\n\nAnd put the combination alarm reviews on top","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"ffd76c2eb1b8b5b4b632104703ddf037e704492a","unresolved":false,"context_lines":[{"line_number":307,"context_line":"            if period is None:"},{"line_number":308,"context_line":"                period \u003d 60"},{"line_number":309,"context_line":"            if evaluation_periods is None:"},{"line_number":310,"context_line":"                evaluation_periods \u003d 1"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"        if not description:"},{"line_number":313,"context_line":"            if counter_name:"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FxOg%3D","line":310,"updated":"2013-08-29 20:45:13.000000000","message":"if counter_name:\n    period \u003d period or 60\n    evaluation_periods \u003d evaluation_periods or 1\n\nif the mandatory assignment operation adds overhead than feel free to ignore this :)","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"cee0cf249f47e7c13da99951336a8c3ffb0be950","unresolved":false,"context_lines":[{"line_number":307,"context_line":"            if period is None:"},{"line_number":308,"context_line":"                period \u003d 60"},{"line_number":309,"context_line":"            if evaluation_periods is None:"},{"line_number":310,"context_line":"                evaluation_periods \u003d 1"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"        if not description:"},{"line_number":313,"context_line":"            if counter_name:"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FchA%3D","line":310,"in_reply_to":"AAAASn%2F%2FxOg%3D","updated":"2013-09-04 17:35:28.000000000","message":"Done","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"09d8da5cb0fe3100d5fa991c2cf8dcab0c22aeb3","unresolved":false,"context_lines":[{"line_number":317,"context_line":"                        counter_name, comparison_operator,"},{"line_number":318,"context_line":"                        statistic, threshold, period)"},{"line_number":319,"context_line":"            else:"},{"line_number":320,"context_line":"                description \u003d \u0027Combine state of alarms %s\u0027 % \\"},{"line_number":321,"context_line":"                    combination_operator.join(combination_alarms)"},{"line_number":322,"context_line":""},{"line_number":323,"context_line":"        Model.__init__("}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FwGg%3D","line":320,"updated":"2013-08-30 01:40:28.000000000","message":"\"Combined state...\"","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"cee0cf249f47e7c13da99951336a8c3ffb0be950","unresolved":false,"context_lines":[{"line_number":317,"context_line":"                        counter_name, comparison_operator,"},{"line_number":318,"context_line":"                        statistic, threshold, period)"},{"line_number":319,"context_line":"            else:"},{"line_number":320,"context_line":"                description \u003d \u0027Combine state of alarms %s\u0027 % \\"},{"line_number":321,"context_line":"                    combination_operator.join(combination_alarms)"},{"line_number":322,"context_line":""},{"line_number":323,"context_line":"        Model.__init__("}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FchI%3D","line":320,"in_reply_to":"AAAASn%2F%2FwGg%3D","updated":"2013-09-04 17:35:28.000000000","message":"Done","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"ffd76c2eb1b8b5b4b632104703ddf037e704492a","unresolved":false,"context_lines":[{"line_number":347,"context_line":"            combination_operator\u003dcombination_operator)"},{"line_number":348,"context_line":""},{"line_number":349,"context_line":"    def is_combination_alarm(self):"},{"line_number":350,"context_line":"        return self.combination_alarms or self.combination_operator"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"    def is_normal_alarm(self):"},{"line_number":353,"context_line":"        return self.counter_name or self.statistic or self.threshold \\"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FxJM%3D","line":350,"updated":"2013-08-29 20:45:13.000000000","message":"out of curiosity, if there\u0027s no combination_operator, what happens to alarms? is it assumed to be \u0027and\u0027? should this be \u0027self.combination_alarms AND self.combination_operator\u0027?","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"cee0cf249f47e7c13da99951336a8c3ffb0be950","unresolved":false,"context_lines":[{"line_number":347,"context_line":"            combination_operator\u003dcombination_operator)"},{"line_number":348,"context_line":""},{"line_number":349,"context_line":"    def is_combination_alarm(self):"},{"line_number":350,"context_line":"        return self.combination_alarms or self.combination_operator"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"    def is_normal_alarm(self):"},{"line_number":353,"context_line":"        return self.counter_name or self.statistic or self.threshold \\"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2Fcgw%3D","line":350,"in_reply_to":"AAAASn%2F%2FwGY%3D","updated":"2013-09-04 17:35:28.000000000","message":"Done","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"09d8da5cb0fe3100d5fa991c2cf8dcab0c22aeb3","unresolved":false,"context_lines":[{"line_number":347,"context_line":"            combination_operator\u003dcombination_operator)"},{"line_number":348,"context_line":""},{"line_number":349,"context_line":"    def is_combination_alarm(self):"},{"line_number":350,"context_line":"        return self.combination_alarms or self.combination_operator"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"    def is_normal_alarm(self):"},{"line_number":353,"context_line":"        return self.counter_name or self.statistic or self.threshold \\"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FwGY%3D","line":350,"in_reply_to":"AAAASn%2F%2FxJM%3D","updated":"2013-08-30 01:40:28.000000000","message":"Yes, if the combination operator is set but no alarms are specified this seems like it would be returning the wrong value. I think you just want\n\n  return bool(self.combination_alarms)","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"ffd76c2eb1b8b5b4b632104703ddf037e704492a","unresolved":false,"context_lines":[{"line_number":352,"context_line":"    def is_normal_alarm(self):"},{"line_number":353,"context_line":"        return self.counter_name or self.statistic or self.threshold \\"},{"line_number":354,"context_line":"            or self.comparison_operator or self.period \\"},{"line_number":355,"context_line":"            or self.evaluation_periods or self.matching_metadata"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FxN4%3D","line":355,"updated":"2013-08-29 20:45:13.000000000","message":"use parentheses instead of backslash to follow HACKING guidelines","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"cee0cf249f47e7c13da99951336a8c3ffb0be950","unresolved":false,"context_lines":[{"line_number":352,"context_line":"    def is_normal_alarm(self):"},{"line_number":353,"context_line":"        return self.counter_name or self.statistic or self.threshold \\"},{"line_number":354,"context_line":"            or self.comparison_operator or self.period \\"},{"line_number":355,"context_line":"            or self.evaluation_periods or self.matching_metadata"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2Fcgs%3D","line":355,"in_reply_to":"AAAASn%2F%2FwGM%3D","updated":"2013-09-04 17:35:28.000000000","message":"This method has been removed","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"09d8da5cb0fe3100d5fa991c2cf8dcab0c22aeb3","unresolved":false,"context_lines":[{"line_number":352,"context_line":"    def is_normal_alarm(self):"},{"line_number":353,"context_line":"        return self.counter_name or self.statistic or self.threshold \\"},{"line_number":354,"context_line":"            or self.comparison_operator or self.period \\"},{"line_number":355,"context_line":"            or self.evaluation_periods or self.matching_metadata"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FwGM%3D","line":355,"in_reply_to":"AAAASn%2F%2FxN4%3D","updated":"2013-08-30 01:40:28.000000000","message":"Or just\n\n  return not self.is_combination_alarm()","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"}],"ceilometer/storage/sqlalchemy/alembic/versions/5ff418fec2b_add_combination_xxx_.py":[{"author":{"_account_id":2284,"name":"Eoghan Glynn","email":"eglynn@redhat.com","username":"eglynn"},"change_message_id":"1879258c3ab8d00d633c95490acce7dc46d67e9e","unresolved":false,"context_lines":[{"line_number":36,"context_line":"    op.add_column(\u0027alarm\u0027, sa.Column(\u0027combination_alarms\u0027,"},{"line_number":37,"context_line":"                                     JSONEncodedDict))"},{"line_number":38,"context_line":"    op.add_column(\u0027alarm\u0027, sa.Column(\u0027combination_operator\u0027,"},{"line_number":39,"context_line":"                                     sa.String(255)))"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"def downgrade():"}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAASn%2F%2F8jw%3D","line":39,"updated":"2013-08-27 18:10:55.000000000","message":"Does this need to be 255 (for \u0027and\u0027 or \u0027or\u0027)?","commit_id":"a993e5e31a48ab55dac0bf182761ff7cc7dc5617"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"c39cce561322d73c5b8845f224ce7f7120a661de","unresolved":false,"context_lines":[{"line_number":36,"context_line":"    op.add_column(\u0027alarm\u0027, sa.Column(\u0027combination_alarms\u0027,"},{"line_number":37,"context_line":"                                     JSONEncodedDict))"},{"line_number":38,"context_line":"    op.add_column(\u0027alarm\u0027, sa.Column(\u0027combination_operator\u0027,"},{"line_number":39,"context_line":"                                     sa.String(255)))"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"def downgrade():"}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAASn%2F%2F3wY%3D","line":39,"in_reply_to":"AAAASn%2F%2F8jw%3D","updated":"2013-08-28 16:32:34.000000000","message":"Done","commit_id":"a993e5e31a48ab55dac0bf182761ff7cc7dc5617"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"ffd76c2eb1b8b5b4b632104703ddf037e704492a","unresolved":false,"context_lines":[{"line_number":28,"context_line":"down_revision \u003d \u002717738166b91\u0027"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"from alembic import op"},{"line_number":31,"context_line":"import sqlalchemy as sa"},{"line_number":32,"context_line":"from ceilometer.storage.sqlalchemy.models import JSONEncodedDict"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FxXg%3D","line":31,"updated":"2013-08-29 20:45:13.000000000","message":"space to external libraries from ceilometer stuff","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"09d8da5cb0fe3100d5fa991c2cf8dcab0c22aeb3","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"def upgrade():"},{"line_number":36,"context_line":"    op.add_column(\u0027alarm\u0027, sa.Column(\u0027combination_alarms\u0027,"},{"line_number":37,"context_line":"                                     JSONEncodedDict))"},{"line_number":38,"context_line":"    op.add_column(\u0027alarm\u0027, sa.Column(\u0027combination_operator\u0027,"},{"line_number":39,"context_line":"                                     sa.String(3)))"},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FwF4%3D","line":37,"updated":"2013-08-30 01:40:28.000000000","message":"This column type is listed as a dictionary but the value is actually a list.","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"cee0cf249f47e7c13da99951336a8c3ffb0be950","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"def upgrade():"},{"line_number":36,"context_line":"    op.add_column(\u0027alarm\u0027, sa.Column(\u0027combination_alarms\u0027,"},{"line_number":37,"context_line":"                                     JSONEncodedDict))"},{"line_number":38,"context_line":"    op.add_column(\u0027alarm\u0027, sa.Column(\u0027combination_operator\u0027,"},{"line_number":39,"context_line":"                                     sa.String(3)))"},{"line_number":40,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2Fccs%3D","line":37,"in_reply_to":"AAAASn%2F%2FwF4%3D","updated":"2013-09-04 17:35:28.000000000","message":"JSONEncodedDict is badly named, it works for many python type","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"}],"ceilometer/storage/sqlalchemy/models.py":[{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"09d8da5cb0fe3100d5fa991c2cf8dcab0c22aeb3","unresolved":false,"context_lines":[{"line_number":200,"context_line":""},{"line_number":201,"context_line":"    matching_metadata \u003d Column(JSONEncodedDict)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"    combination_alarms \u003d Column(JSONEncodedDict)"},{"line_number":204,"context_line":"    combination_operator \u003d Column(String(3))"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FwF0%3D","line":203,"updated":"2013-08-30 01:40:28.000000000","message":"This column type is listed as a dictionary but the value is actually a list.","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"cee0cf249f47e7c13da99951336a8c3ffb0be950","unresolved":false,"context_lines":[{"line_number":200,"context_line":""},{"line_number":201,"context_line":"    matching_metadata \u003d Column(JSONEncodedDict)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"    combination_alarms \u003d Column(JSONEncodedDict)"},{"line_number":204,"context_line":"    combination_operator \u003d Column(String(3))"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2Fcco%3D","line":203,"in_reply_to":"AAAASn%2F%2FwF0%3D","updated":"2013-09-04 17:35:28.000000000","message":"JSONEncodedDict is badly named, it works for many python type","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"}],"tests/api/v2/test_alarm_scenarios.py":[{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"ffd76c2eb1b8b5b4b632104703ddf037e704492a","unresolved":false,"context_lines":[{"line_number":109,"context_line":"                                   \u0027value\u0027: \u0027name4\u0027,"},{"line_number":110,"context_line":"                                   }])"},{"line_number":111,"context_line":"        for a in alarms:"},{"line_number":112,"context_line":"            print(\u0027%s: %s\u0027 % (a[\u0027name\u0027], a[\u0027alarm_id\u0027]))"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"        four \u003d self.get_json(\u0027/alarms/%s\u0027 % alarms[0][\u0027alarm_id\u0027])"},{"line_number":115,"context_line":"        self.assertEquals(four[\u0027name\u0027], \u0027name4\u0027)"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2FxG0%3D","line":112,"updated":"2013-08-29 20:45:13.000000000","message":"is this print for debugging?","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"cee0cf249f47e7c13da99951336a8c3ffb0be950","unresolved":false,"context_lines":[{"line_number":109,"context_line":"                                   \u0027value\u0027: \u0027name4\u0027,"},{"line_number":110,"context_line":"                                   }])"},{"line_number":111,"context_line":"        for a in alarms:"},{"line_number":112,"context_line":"            print(\u0027%s: %s\u0027 % (a[\u0027name\u0027], a[\u0027alarm_id\u0027]))"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"        four \u003d self.get_json(\u0027/alarms/%s\u0027 % alarms[0][\u0027alarm_id\u0027])"},{"line_number":115,"context_line":"        self.assertEquals(four[\u0027name\u0027], \u0027name4\u0027)"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAASn%2F%2Fcf0%3D","line":112,"in_reply_to":"AAAASn%2F%2FxG0%3D","updated":"2013-09-04 17:35:28.000000000","message":"Removed","commit_id":"182dd5f1bb5d6864369d304fd4bc19237736e008"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"b5506589403da4635e5fe0ed9c5edff84be722eb","unresolved":false,"context_lines":[{"line_number":185,"context_line":"                                   \u0027value\u0027: \u0027name4\u0027,"},{"line_number":186,"context_line":"                                   }])"},{"line_number":187,"context_line":"        for a in alarms:"},{"line_number":188,"context_line":"            print(\u0027%s: %s\u0027 % (a[\u0027name\u0027], a[\u0027alarm_id\u0027]))"},{"line_number":189,"context_line":"        self.assertEqual(alarms[0][\u0027name\u0027], \u0027name4\u0027)"},{"line_number":190,"context_line":"        self.assertEqual(alarms[0][\u0027combination_rule\u0027][\u0027alarm_ids\u0027],"},{"line_number":191,"context_line":"                         [\u0027739e99cb-c2ec-4718-b900-332502355f38\u0027,"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAS3%2F%2F8jo%3D","line":188,"updated":"2013-09-16 18:58:27.000000000","message":"i assume this print statement was for debugging?","commit_id":"c66fb0548f6b2e6672683662e6033410fa435a45"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6092b6bb58eb662ca0090ba54c678bf2fc229e91","unresolved":false,"context_lines":[{"line_number":185,"context_line":"                                   \u0027value\u0027: \u0027name4\u0027,"},{"line_number":186,"context_line":"                                   }])"},{"line_number":187,"context_line":"        for a in alarms:"},{"line_number":188,"context_line":"            print(\u0027%s: %s\u0027 % (a[\u0027name\u0027], a[\u0027alarm_id\u0027]))"},{"line_number":189,"context_line":"        self.assertEqual(alarms[0][\u0027name\u0027], \u0027name4\u0027)"},{"line_number":190,"context_line":"        self.assertEqual(alarms[0][\u0027combination_rule\u0027][\u0027alarm_ids\u0027],"},{"line_number":191,"context_line":"                         [\u0027739e99cb-c2ec-4718-b900-332502355f38\u0027,"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAS3%2F%2F6Xo%3D","line":188,"in_reply_to":"AAAAS3%2F%2F8jo%3D","updated":"2013-09-17 09:55:30.000000000","message":"removed","commit_id":"c66fb0548f6b2e6672683662e6033410fa435a45"},{"author":{"_account_id":2284,"name":"Eoghan Glynn","email":"eglynn@redhat.com","username":"eglynn"},"change_message_id":"952a5c90108b366f9dcd1da2678a9658730dac61","unresolved":false,"context_lines":[{"line_number":252,"context_line":"        alarms \u003d list(self.conn.get_alarms())"},{"line_number":253,"context_line":"        self.assertEqual(4, len(alarms))"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"    def test_post_invalid_alarm_type(self):"},{"line_number":256,"context_line":"        json \u003d {"},{"line_number":257,"context_line":"            \u0027name\u0027: \u0027added_alarm\u0027,"},{"line_number":258,"context_line":"            \u0027type\u0027: \u0027threshold\u0027,"}],"source_content_type":"text/x-python","patch_set":20,"id":"AAAAS3%2F%2F15Y%3D","line":255,"updated":"2013-09-18 12:09:42.000000000","message":"Nitpick: WRT the testcase name, test_post_invalid_alarm_type, it\u0027s the multiple rules that are the problem not the provided type (\u0027threshold\u0027) being invalid, right?","commit_id":"01f7890662a5718e35a0dfeb96c526586019df65"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"4e86c4b71b194c73d7cb4bc22cf766eb0af24179","unresolved":false,"context_lines":[{"line_number":252,"context_line":"        alarms \u003d list(self.conn.get_alarms())"},{"line_number":253,"context_line":"        self.assertEqual(4, len(alarms))"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"    def test_post_invalid_alarm_type(self):"},{"line_number":256,"context_line":"        json \u003d {"},{"line_number":257,"context_line":"            \u0027name\u0027: \u0027added_alarm\u0027,"},{"line_number":258,"context_line":"            \u0027type\u0027: \u0027threshold\u0027,"}],"source_content_type":"text/x-python","patch_set":20,"id":"AAAAS3%2F%2F1bI%3D","line":255,"in_reply_to":"AAAAS3%2F%2F15Y%3D","updated":"2013-09-18 16:47:32.000000000","message":"Done","commit_id":"01f7890662a5718e35a0dfeb96c526586019df65"}],"tests/storage/test_storage_scenarios.py":[{"author":{"_account_id":2284,"name":"Eoghan Glynn","email":"eglynn@redhat.com","username":"eglynn"},"change_message_id":"1879258c3ab8d00d633c95490acce7dc46d67e9e","unresolved":false,"context_lines":[{"line_number":1529,"context_line":"                               alarm_actions\u003d[\u0027http://nowhere/alarms\u0027],"},{"line_number":1530,"context_line":"                               matching_metadata\u003d"},{"line_number":1531,"context_line":"                               {\u0027key2\u0027: \u0027value2\u0027,"},{"line_number":1532,"context_line":"                                \u0027user_metadata.key3\u0027: \u0027value3\u0027})]"},{"line_number":1533,"context_line":"        for a in alarms:"},{"line_number":1534,"context_line":"            self.conn.update_alarm(a)"},{"line_number":1535,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAASn%2F%2F8hk%3D","line":1532,"updated":"2013-08-27 18:10:55.000000000","message":"What does it mean for matching metadata to be set for a combination alarm?\n\nShould this be mutually excluded also?\n\n(in the sense that counter_name/statistic/threshold/comparison_operator are mutually exclusive with combination_alarms/combination_operator\")\n\nMy understanding of matching_metadata is that it\u0027s intended to be used to constrain a direct statistics query, which would not be relevant IIUC for a combination alarm.","commit_id":"a993e5e31a48ab55dac0bf182761ff7cc7dc5617"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"c39cce561322d73c5b8845f224ce7f7120a661de","unresolved":false,"context_lines":[{"line_number":1529,"context_line":"                               alarm_actions\u003d[\u0027http://nowhere/alarms\u0027],"},{"line_number":1530,"context_line":"                               matching_metadata\u003d"},{"line_number":1531,"context_line":"                               {\u0027key2\u0027: \u0027value2\u0027,"},{"line_number":1532,"context_line":"                                \u0027user_metadata.key3\u0027: \u0027value3\u0027})]"},{"line_number":1533,"context_line":"        for a in alarms:"},{"line_number":1534,"context_line":"            self.conn.update_alarm(a)"},{"line_number":1535,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAASn%2F%2F3n4%3D","line":1532,"in_reply_to":"AAAASn%2F%2F8hk%3D","updated":"2013-08-28 16:32:34.000000000","message":"Done","commit_id":"a993e5e31a48ab55dac0bf182761ff7cc7dc5617"}]}
