)]}'
{"ceilometer/api/controllers/v2.py":[{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"7a55433313dfb21454a4c8065fb7df9d79f2571f","unresolved":false,"context_lines":[{"line_number":676,"context_line":"    \"The ID of the user who last triggered an update to the resource\""},{"line_number":677,"context_line":""},{"line_number":678,"context_line":"    meter_id \u003d wtypes.text"},{"line_number":679,"context_line":"    \"The unique identifier for the mete\""},{"line_number":680,"context_line":""},{"line_number":681,"context_line":"    def __init__(self, **kwargs):"},{"line_number":682,"context_line":"        meter_id \u003d base64.encodestring(\u0027%s+%s\u0027 % (kwargs[\u0027resource_id\u0027],"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAASn%2F%2FpnY%3D","line":679,"updated":"2013-09-01 14:09:38.000000000","message":"typo: mete -\u003e meter","commit_id":"c4a00e5882ff38626e052520095295a4543a50c2"},{"author":{"_account_id":7642,"name":"Fengqian Gao","email":"fengqian.gao@intel.com","username":"Fengqian"},"change_message_id":"f5ee9a2c7ebb6fd30681ae37b1c1e50be87fad65","unresolved":false,"context_lines":[{"line_number":676,"context_line":"    \"The ID of the user who last triggered an update to the resource\""},{"line_number":677,"context_line":""},{"line_number":678,"context_line":"    meter_id \u003d wtypes.text"},{"line_number":679,"context_line":"    \"The unique identifier for the mete\""},{"line_number":680,"context_line":""},{"line_number":681,"context_line":"    def __init__(self, **kwargs):"},{"line_number":682,"context_line":"        meter_id \u003d base64.encodestring(\u0027%s+%s\u0027 % (kwargs[\u0027resource_id\u0027],"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAASn%2F%2Fpfk%3D","line":679,"in_reply_to":"AAAASn%2F%2FpnY%3D","updated":"2013-09-02 07:41:43.000000000","message":"Done","commit_id":"c4a00e5882ff38626e052520095295a4543a50c2"},{"author":{"_account_id":7680,"name":"Alex Gaynor","email":"alex.gaynor@gmail.com","username":"alex_gaynor"},"change_message_id":"4748412e5eb72bfd61d6ce525cd47a02263296f9","unresolved":false,"context_lines":[{"line_number":681,"context_line":"    def __init__(self, **kwargs):"},{"line_number":682,"context_line":"        meter_id \u003d base64.encodestring(\u0027%s+%s\u0027 % (kwargs[\u0027resource_id\u0027],"},{"line_number":683,"context_line":"                                                  kwargs[\u0027name\u0027]))"},{"line_number":684,"context_line":"        kwargs.update({\u0027meter_id\u0027: meter_id})"},{"line_number":685,"context_line":"        super(Meter, self).__init__(**kwargs)"},{"line_number":686,"context_line":""},{"line_number":687,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAASn%2F%2FqoE%3D","line":684,"updated":"2013-08-31 17:24:45.000000000","message":"This can more simply be written as `kwargs[\u0027meter_id\u0027] \u003d meter_id`","commit_id":"c4a00e5882ff38626e052520095295a4543a50c2"}],"ceilometer/storage/models.py":[{"author":{"_account_id":4491,"name":"Lianhao Lu","email":"llh_misc@outlook.com","username":"lianhao-lu"},"change_message_id":"7c68a43d0fc187418248d82fe9d294e3697264a0","unresolved":false,"context_lines":[{"line_number":142,"context_line":"    \"\"\""},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    def __init__(self, name, type, unit, resource_id, project_id, source,"},{"line_number":145,"context_line":"                 user_id, meter_id):"},{"line_number":146,"context_line":"        \"\"\"Create a new meter."},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"        :param name: name of the meter"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAASn%2F%2FvhU%3D","line":145,"updated":"2013-08-30 05:13:48.000000000","message":"how about using a default value meter_id\u003dNone","commit_id":"fd6daca2d510c5d949ca6ff33143e49c45692fb3"},{"author":{"_account_id":4491,"name":"Lianhao Lu","email":"llh_misc@outlook.com","username":"lianhao-lu"},"change_message_id":"7c68a43d0fc187418248d82fe9d294e3697264a0","unresolved":false,"context_lines":[{"line_number":153,"context_line":"        :param source: the identifier for the user/project id definition"},{"line_number":154,"context_line":"        :param user_id: UUID of user owning the resource"},{"line_number":155,"context_line":"        :param meter_id: A fake UUID of meter. It is the combination of"},{"line_number":156,"context_line":"                            resource_id and name."},{"line_number":157,"context_line":"        \"\"\""},{"line_number":158,"context_line":"        Model.__init__(self,"},{"line_number":159,"context_line":"                       name\u003dname,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAASn%2F%2Fvg8%3D","line":156,"updated":"2013-08-30 05:13:48.000000000","message":"How about adding the following here. This makes sure that all the db backends would generate the same meter_id, also have the ability for a special db backend to use its own schema for generating meter_id?\n\nif meter_id is None:\n    meter_id \u003d base64.encodestring(...)","commit_id":"fd6daca2d510c5d949ca6ff33143e49c45692fb3"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"60086c0c93c67f045cb2ec7dd74c5e6cb879fde0","unresolved":false,"context_lines":[{"line_number":153,"context_line":"        :param source: the identifier for the user/project id definition"},{"line_number":154,"context_line":"        :param user_id: UUID of user owning the resource"},{"line_number":155,"context_line":"        :param meter_id: A fake UUID of meter. It is the combination of"},{"line_number":156,"context_line":"                            resource_id and name."},{"line_number":157,"context_line":"        \"\"\""},{"line_number":158,"context_line":"        Model.__init__(self,"},{"line_number":159,"context_line":"                       name\u003dname,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAASn%2F%2FvUc%3D","line":156,"in_reply_to":"AAAASn%2F%2Fvg8%3D","updated":"2013-08-30 06:34:36.000000000","message":"Or instead of modify the Meter model constructor and all storage implementation, just adding\n\n    @property\n    def meter_id(self):\n        return base64.encodestring(\u0027%s+%s\u0027 % (self.resource_id, \n                                              self.counter_name))","commit_id":"fd6daca2d510c5d949ca6ff33143e49c45692fb3"}]}
