)]}'
{"ceilometer/tests/unit/transformer/test_conversions.py":[{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"34ad043499bc4a3ea0388d7849ed563d6e80e5b5","unresolved":false,"context_lines":[{"line_number":115,"context_line":"            aggregator.handle_sample(context.get_admin_context(), sample)"},{"line_number":116,"context_line":"            self._sample_offset +\u003d 1"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    def test_rate_of_change_calculation_two_resources(self):"},{"line_number":119,"context_line":"        resource_id \u003d [\u00271ca738a1-c49c-4401-8346-5c60ebdb03f4\u0027,"},{"line_number":120,"context_line":"                       \u00275dd418a6-c6a9-49c9-9cef-b357d72c71dd\u0027]"},{"line_number":121,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3a57f1b5_f44972d1","line":118,"updated":"2016-02-10 15:17:20.000000000","message":"we could move this to pipeline_base with other conversion tests","commit_id":"dba7bfa32a8dfc24b13f0a60fbcf01d82e1d0242"},{"author":{"_account_id":20275,"name":"Dan Travis","email":"datravis@us.ibm.com","username":"datravis"},"change_message_id":"45efb7e18f49171664d4370bd2017e849454aa1d","unresolved":false,"context_lines":[{"line_number":115,"context_line":"            aggregator.handle_sample(context.get_admin_context(), sample)"},{"line_number":116,"context_line":"            self._sample_offset +\u003d 1"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    def test_rate_of_change_calculation_two_resources(self):"},{"line_number":119,"context_line":"        resource_id \u003d [\u00271ca738a1-c49c-4401-8346-5c60ebdb03f4\u0027,"},{"line_number":120,"context_line":"                       \u00275dd418a6-c6a9-49c9-9cef-b357d72c71dd\u0027]"},{"line_number":121,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3a57f1b5_73dca712","line":118,"in_reply_to":"3a57f1b5_f44972d1","updated":"2016-02-10 20:20:49.000000000","message":"Will do.","commit_id":"dba7bfa32a8dfc24b13f0a60fbcf01d82e1d0242"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"34ad043499bc4a3ea0388d7849ed563d6e80e5b5","unresolved":false,"context_lines":[{"line_number":136,"context_line":"            sample_time \u003d sample_time + datetime.timedelta(0, 1)"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        aggregated_samples \u003d aggregator.flush(context.get_admin_context())"},{"line_number":139,"context_line":"        self.assertEqual(len(aggregated_samples), 1)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        rate_of_change_transformer.handle_sample(context.get_admin_context(),"},{"line_number":142,"context_line":"                                                 aggregated_samples[0])"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a57f1b5_34dceae3","line":139,"updated":"2016-02-10 15:17:20.000000000","message":"we should probably check that the sample actually has the last timestamp rather than first?","commit_id":"dba7bfa32a8dfc24b13f0a60fbcf01d82e1d0242"},{"author":{"_account_id":20275,"name":"Dan Travis","email":"datravis@us.ibm.com","username":"datravis"},"change_message_id":"45efb7e18f49171664d4370bd2017e849454aa1d","unresolved":false,"context_lines":[{"line_number":136,"context_line":"            sample_time \u003d sample_time + datetime.timedelta(0, 1)"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        aggregated_samples \u003d aggregator.flush(context.get_admin_context())"},{"line_number":139,"context_line":"        self.assertEqual(len(aggregated_samples), 1)"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        rate_of_change_transformer.handle_sample(context.get_admin_context(),"},{"line_number":142,"context_line":"                                                 aggregated_samples[0])"}],"source_content_type":"text/x-python","patch_set":4,"id":"3a57f1b5_93c0432c","line":139,"in_reply_to":"3a57f1b5_34dceae3","updated":"2016-02-10 20:20:49.000000000","message":"Good catch, I\u0027ll make this change.","commit_id":"dba7bfa32a8dfc24b13f0a60fbcf01d82e1d0242"}],"ceilometer/transformer/conversions.py":[{"author":{"_account_id":10987,"name":"Igor Degtiarov","username":"tovstun","inactive":true},"change_message_id":"f39fc8423acdc082456a5bd4744b295464a71c28","unresolved":false,"context_lines":[{"line_number":249,"context_line":"        if not (self.size or self.retention_time):"},{"line_number":250,"context_line":"            self.size \u003d 1"},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"        if timestamp \u003d\u003d \"first\" or timestamp \u003d\u003d \"last\":"},{"line_number":253,"context_line":"            self.timestamp \u003d timestamp"},{"line_number":254,"context_line":"        else:"},{"line_number":255,"context_line":"            self.timestamp \u003d \"first\""}],"source_content_type":"text/x-python","patch_set":1,"id":"5a5ae5dd_cdad5d85","line":252,"updated":"2016-02-05 17:05:54.000000000","message":"we could use one check:\nif timestamp in [\"first\", \"last\"]:","commit_id":"8b6fe01f4719a9ecfa32ab3139ed6a38e914163f"},{"author":{"_account_id":20275,"name":"Dan Travis","email":"datravis@us.ibm.com","username":"datravis"},"change_message_id":"ccb8cecc5a31c18866402e24ff5d8f37965b63a9","unresolved":false,"context_lines":[{"line_number":249,"context_line":"        if not (self.size or self.retention_time):"},{"line_number":250,"context_line":"            self.size \u003d 1"},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"        if timestamp \u003d\u003d \"first\" or timestamp \u003d\u003d \"last\":"},{"line_number":253,"context_line":"            self.timestamp \u003d timestamp"},{"line_number":254,"context_line":"        else:"},{"line_number":255,"context_line":"            self.timestamp \u003d \"first\""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a57f1b5_e14c8178","line":252,"in_reply_to":"5a5ae5dd_cdad5d85","updated":"2016-02-09 21:12:18.000000000","message":"Good catch.  Addressing.","commit_id":"8b6fe01f4719a9ecfa32ab3139ed6a38e914163f"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"34ad043499bc4a3ea0388d7849ed563d6e80e5b5","unresolved":false,"context_lines":[{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    Example:"},{"line_number":229,"context_line":"      To aggregate sample by resource_metadata and keep the"},{"line_number":230,"context_line":"      resource_metadata of the latest received sample;"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"        AggregatorTransformer(retention_time\u003d60, resource_metadata\u003d\u0027last\u0027)"},{"line_number":233,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3a57f1b5_74b6e28b","line":230,"updated":"2016-02-10 15:17:20.000000000","message":"maybe update this to show how timestamp works as well?","commit_id":"dba7bfa32a8dfc24b13f0a60fbcf01d82e1d0242"},{"author":{"_account_id":20275,"name":"Dan Travis","email":"datravis@us.ibm.com","username":"datravis"},"change_message_id":"45efb7e18f49171664d4370bd2017e849454aa1d","unresolved":false,"context_lines":[{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    Example:"},{"line_number":229,"context_line":"      To aggregate sample by resource_metadata and keep the"},{"line_number":230,"context_line":"      resource_metadata of the latest received sample;"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"        AggregatorTransformer(retention_time\u003d60, resource_metadata\u003d\u0027last\u0027)"},{"line_number":233,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3a57f1b5_b3f9bf82","line":230,"in_reply_to":"3a57f1b5_74b6e28b","updated":"2016-02-10 20:20:49.000000000","message":"I\u0027ll add an additional example using timestamp.","commit_id":"dba7bfa32a8dfc24b13f0a60fbcf01d82e1d0242"}]}
