)]}'
{"ceilometer/api/controllers/v2.py":[{"author":{"_account_id":2284,"name":"Eoghan Glynn","email":"eglynn@redhat.com","username":"eglynn"},"change_message_id":"64087ad97f07957afd2519fa9929158618d764ef","unresolved":false,"context_lines":[{"line_number":937,"context_line":""},{"line_number":938,"context_line":"    @staticmethod"},{"line_number":939,"context_line":"    def validate(threshold_rule):"},{"line_number":940,"context_line":"        threshold_rule.query \u003d _sanitize_query(threshold_rule.query, [])"},{"line_number":941,"context_line":"        meter \u003d [q for q in threshold_rule.query if q.field \u003d\u003d \u0027meter\u0027]"},{"line_number":942,"context_line":"        if len(meter) !\u003d 1 or not meter[0].value:"},{"line_number":943,"context_line":"            error \u003d _(\"The Query must contains one meter\")"}],"source_content_type":"text/x-python","patch_set":8,"id":"AAAAS3%2F%2F1sg%3D","line":940,"updated":"2013-09-18 13:05:55.000000000","message":"I like the the idea of the constraint on project_id being added in this way.\n\nBut I wonder should the implicit constraint then be extracted from the alarm representation before this is returned to the API caller.\n\nIt would be awkward I guess to distinguish between the case where the alarm owner explicitly specified an equivalent constraint, and where it\u0027s added for them in that _sanitize_query() call above.","commit_id":"21d90d8117292bf40aa55e74a41f827bad90cc9f"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"0da8d1970864bab1da11f9b7279876d488d11dba","unresolved":false,"context_lines":[{"line_number":937,"context_line":""},{"line_number":938,"context_line":"    @staticmethod"},{"line_number":939,"context_line":"    def validate(threshold_rule):"},{"line_number":940,"context_line":"        threshold_rule.query \u003d _sanitize_query(threshold_rule.query, [])"},{"line_number":941,"context_line":"        meter \u003d [q for q in threshold_rule.query if q.field \u003d\u003d \u0027meter\u0027]"},{"line_number":942,"context_line":"        if len(meter) !\u003d 1 or not meter[0].value:"},{"line_number":943,"context_line":"            error \u003d _(\"The Query must contains one meter\")"}],"source_content_type":"text/x-python","patch_set":8,"id":"AAAAS3%2F%2F0v4%3D","line":940,"in_reply_to":"AAAAS3%2F%2F1sg%3D","updated":"2013-09-18 16:47:05.000000000","message":"I have copy/paste your comment in a other review","commit_id":"21d90d8117292bf40aa55e74a41f827bad90cc9f"}],"tests/api/v2/test_alarm_scenarios.py":[{"author":{"_account_id":2284,"name":"Eoghan Glynn","email":"eglynn@redhat.com","username":"eglynn"},"change_message_id":"64087ad97f07957afd2519fa9929158618d764ef","unresolved":false,"context_lines":[{"line_number":528,"context_line":""},{"line_number":529,"context_line":"        json[\u0027threshold_rule\u0027][\u0027query\u0027].append({"},{"line_number":530,"context_line":"            \u0027field\u0027: \u0027project_id\u0027, \u0027op\u0027: \u0027eq\u0027,"},{"line_number":531,"context_line":"            \u0027value\u0027: self.auth_headers[\u0027X-Project-Id\u0027]})"},{"line_number":532,"context_line":"        self.assertEqual(resp.status_code, 200)"},{"line_number":533,"context_line":""},{"line_number":534,"context_line":"    def test_delete_alarm(self):"}],"source_content_type":"text/x-python","patch_set":8,"id":"AAAAS3%2F%2F1t0%3D","line":531,"updated":"2013-09-18 13:05:55.000000000","message":"I don\u0027t see the need for this append, all that\u0027s left in the testcase is an assertion on the response code.","commit_id":"21d90d8117292bf40aa55e74a41f827bad90cc9f"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"0da8d1970864bab1da11f9b7279876d488d11dba","unresolved":false,"context_lines":[{"line_number":528,"context_line":""},{"line_number":529,"context_line":"        json[\u0027threshold_rule\u0027][\u0027query\u0027].append({"},{"line_number":530,"context_line":"            \u0027field\u0027: \u0027project_id\u0027, \u0027op\u0027: \u0027eq\u0027,"},{"line_number":531,"context_line":"            \u0027value\u0027: self.auth_headers[\u0027X-Project-Id\u0027]})"},{"line_number":532,"context_line":"        self.assertEqual(resp.status_code, 200)"},{"line_number":533,"context_line":""},{"line_number":534,"context_line":"    def test_delete_alarm(self):"}],"source_content_type":"text/x-python","patch_set":8,"id":"AAAAS3%2F%2F1Pw%3D","line":531,"in_reply_to":"AAAAS3%2F%2F1t0%3D","updated":"2013-09-18 16:47:05.000000000","message":"Done","commit_id":"21d90d8117292bf40aa55e74a41f827bad90cc9f"}]}
