)]}'
{"ceilometer/dispatcher/gnocchi.py":[{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"269a748ce524fb82877b2c050faf667f68b3f215","unresolved":false,"context_lines":[{"line_number":485,"context_line":"        if associated_resources:"},{"line_number":486,"context_line":"            to_end \u003d itertools.chain([resource], *["},{"line_number":487,"context_line":"                self._search_resource(resource_type,"},{"line_number":488,"context_line":"                                      str(query) % resource[\u0027id\u0027])"},{"line_number":489,"context_line":"                for resource_type, query in associated_resources.items()"},{"line_number":490,"context_line":"            ])"},{"line_number":491,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"bff0334d_3e7ff015","line":488,"range":{"start_line":488,"start_character":42,"end_line":488,"end_character":47},"updated":"2017-04-11 10:09:33.000000000","message":"We need to figure out why query is a dict instead of a str. And not blindly convert the type, the resulting query will be invalid.","commit_id":"1837ada5bcb74ebe5b7f2dd340ba7e0eeca6281d"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"5c7e0701595f3ccbe71922a0ba78bdc87d07c34d","unresolved":false,"context_lines":[{"line_number":485,"context_line":"        if associated_resources:"},{"line_number":486,"context_line":"            to_end \u003d itertools.chain([resource], *["},{"line_number":487,"context_line":"                self._search_resource(resource_type,"},{"line_number":488,"context_line":"                                      str(query) % resource[\u0027id\u0027])"},{"line_number":489,"context_line":"                for resource_type, query in associated_resources.items()"},{"line_number":490,"context_line":"            ])"},{"line_number":491,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9ff52f3f_c9c0ee53","line":488,"range":{"start_line":488,"start_character":42,"end_line":488,"end_character":47},"in_reply_to":"9ff52f3f_2e5400ca","updated":"2017-04-13 16:08:20.000000000","message":"hmm.. i just tried  simple yaml.load, it pull in as a string... not sure why query is a dict in the bug\n\n\n\u003e\u003e\u003e type(blah[\u0027sources\u0027][2][\u0027event_associated_resources\u0027][\u0027instance_network_interface\u0027])\n\u003ctype \u0027str\u0027\u003e","commit_id":"1837ada5bcb74ebe5b7f2dd340ba7e0eeca6281d"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"ecdab6621492ccde48166e42ec6f7602396f3a1f","unresolved":false,"context_lines":[{"line_number":485,"context_line":"        if associated_resources:"},{"line_number":486,"context_line":"            to_end \u003d itertools.chain([resource], *["},{"line_number":487,"context_line":"                self._search_resource(resource_type,"},{"line_number":488,"context_line":"                                      str(query) % resource[\u0027id\u0027])"},{"line_number":489,"context_line":"                for resource_type, query in associated_resources.items()"},{"line_number":490,"context_line":"            ])"},{"line_number":491,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9ff52f3f_9fcb34a4","line":488,"range":{"start_line":488,"start_character":42,"end_line":488,"end_character":47},"in_reply_to":"9ff52f3f_c9c0ee53","updated":"2017-04-13 16:37:53.000000000","message":"lol, so weird. I\u0027ll contact Andreas for more info about this bug. As long as I reproduce it, I\u0027ll fix it as soon.","commit_id":"1837ada5bcb74ebe5b7f2dd340ba7e0eeca6281d"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"517689899511498815466c2ba0d6c571e458343f","unresolved":false,"context_lines":[{"line_number":485,"context_line":"        if associated_resources:"},{"line_number":486,"context_line":"            to_end \u003d itertools.chain([resource], *["},{"line_number":487,"context_line":"                self._search_resource(resource_type,"},{"line_number":488,"context_line":"                                      str(query) % resource[\u0027id\u0027])"},{"line_number":489,"context_line":"                for resource_type, query in associated_resources.items()"},{"line_number":490,"context_line":"            ])"},{"line_number":491,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"bff0334d_b9d43a21","line":488,"range":{"start_line":488,"start_character":42,"end_line":488,"end_character":47},"in_reply_to":"bff0334d_3e7ff015","updated":"2017-04-11 10:40:13.000000000","message":"yeah, but any query from event_associated_resources in gnocchi_resources.yaml should be str, right? Whatever it should be, I\u0027d like to reproduce and figure out. :)","commit_id":"1837ada5bcb74ebe5b7f2dd340ba7e0eeca6281d"},{"author":{"_account_id":22752,"name":"Hanxi Liu","email":"apolloliuhx@gmail.com","username":"Hanxi_Liu"},"change_message_id":"0ccc75455274f0e4c8b3420836b60e4995e1b65e","unresolved":false,"context_lines":[{"line_number":485,"context_line":"        if associated_resources:"},{"line_number":486,"context_line":"            to_end \u003d itertools.chain([resource], *["},{"line_number":487,"context_line":"                self._search_resource(resource_type,"},{"line_number":488,"context_line":"                                      str(query) % resource[\u0027id\u0027])"},{"line_number":489,"context_line":"                for resource_type, query in associated_resources.items()"},{"line_number":490,"context_line":"            ])"},{"line_number":491,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9ff52f3f_2e5400ca","line":488,"range":{"start_line":488,"start_character":42,"end_line":488,"end_character":47},"in_reply_to":"bff0334d_a4baa3bd","updated":"2017-04-13 15:27:09.000000000","message":"There is a test case[1] to debug. So weird it is the \u0027query\u0027 is a string without doubt and I can\u0027t reproduce the error. \n[1]https://github.com/openstack/ceilometer/blob/master/ceilometer/tests/unit/dispatcher/test_gnocchi.py#L632","commit_id":"1837ada5bcb74ebe5b7f2dd340ba7e0eeca6281d"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"53bb0ec5c56f7e08abd3a5bcbdb677e53c1cd5b9","unresolved":false,"context_lines":[{"line_number":485,"context_line":"        if associated_resources:"},{"line_number":486,"context_line":"            to_end \u003d itertools.chain([resource], *["},{"line_number":487,"context_line":"                self._search_resource(resource_type,"},{"line_number":488,"context_line":"                                      str(query) % resource[\u0027id\u0027])"},{"line_number":489,"context_line":"                for resource_type, query in associated_resources.items()"},{"line_number":490,"context_line":"            ])"},{"line_number":491,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"bff0334d_a4baa3bd","line":488,"range":{"start_line":488,"start_character":42,"end_line":488,"end_character":47},"in_reply_to":"bff0334d_b9d43a21","updated":"2017-04-12 12:48:26.000000000","message":"hmm... this might actually be because yaml is loading in event_associated_resources[1] and it is ignoring the quotation and returning it as a dictionary. this should be testable.\n\n[1] https://github.com/openstack/ceilometer/blob/master/ceilometer/dispatcher/data/gnocchi_resources.yaml#L78","commit_id":"1837ada5bcb74ebe5b7f2dd340ba7e0eeca6281d"}]}
