)]}'
{"zaqar/notifier/base.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"287352672078ffe2f2f2fb3e7190835ba098ac5a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2014 Catalyst IT Ltd"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":"# you may not use this file except in compliance with the License."}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_82decc6b","line":1,"updated":"2015-02-03 13:08:28.000000000","message":"2015*","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"dcfd92fc421a4a70b6ff3fc5de22c8bbed1aeba2","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2014 Catalyst IT Ltd"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":"# you may not use this file except in compliance with the License."}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_62bab86f","line":1,"in_reply_to":"da86d52c_82decc6b","updated":"2015-02-10 12:32:21.000000000","message":"Done","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"287352672078ffe2f2f2fb3e7190835ba098ac5a","unresolved":false,"context_lines":[{"line_number":18,"context_line":"import six"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":22,"context_line":"class NotifierBase(object):"},{"line_number":23,"context_line":"    \"\"\"Base class for Notifier drivers to document the expected interface."},{"line_number":24,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_a2d91085","line":21,"updated":"2015-02-03 13:08:28.000000000","message":"not sure we really need `abc` here. This is pipeline specific, I guess.","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"287352672078ffe2f2f2fb3e7190835ba098ac5a","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":22,"context_line":"class NotifierBase(object):"},{"line_number":23,"context_line":"    \"\"\"Base class for Notifier drivers to document the expected interface."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_c2e8c412","line":22,"updated":"2015-02-03 13:08:28.000000000","message":"actually, I\u0027m not even sure we need a base class at all.","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"5f422e0e7aa6fd23f39ceac45d8787e246f442de","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":22,"context_line":"class NotifierBase(object):"},{"line_number":23,"context_line":"    \"\"\"Base class for Notifier drivers to document the expected interface."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_d0c21f33","line":22,"in_reply_to":"da86d52c_c2e8c412","updated":"2015-02-04 12:48:11.000000000","message":"This was for the case that we need to implement different notifications drivers according to the subscriptor (webhook, sms,...). According to what we chatted in -zaqar, this is no longer needed :)","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"dcfd92fc421a4a70b6ff3fc5de22c8bbed1aeba2","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":22,"context_line":"class NotifierBase(object):"},{"line_number":23,"context_line":"    \"\"\"Base class for Notifier drivers to document the expected interface."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_42b77486","line":22,"in_reply_to":"da86d52c_d0c21f33","updated":"2015-02-10 12:32:21.000000000","message":"Yep, I have realized this after worked out the initial code. Will change it in next patch set.","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"}],"zaqar/notifier/webhook.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"287352672078ffe2f2f2fb3e7190835ba098ac5a","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        \"\"\"Send message to the subscribers.\"\"\""},{"line_number":48,"context_line":"        if self.subscription_controller:"},{"line_number":49,"context_line":"            subscribers \u003d self.subscription_controller.list(queue_name,"},{"line_number":50,"context_line":"                                                            project)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"            wh_flow \u003d uf.Flow(\u0027webhook_notifier_flow\u0027)"},{"line_number":53,"context_line":"            for s in list(next(subscribers)):"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_e2e30831","line":50,"updated":"2015-02-03 13:08:28.000000000","message":"mmh, I see why you\u0027re concerned about this. For every message posted, this will be called. Is `list` cached? Not sure if that\u0027s worth it. mmhh. I think this is something we can\u0027t avoid, we need that information. Lets make sure the right indexes are in-place for this. I\u0027ll put more thoughts on it.","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"dcfd92fc421a4a70b6ff3fc5de22c8bbed1aeba2","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        \"\"\"Send message to the subscribers.\"\"\""},{"line_number":48,"context_line":"        if self.subscription_controller:"},{"line_number":49,"context_line":"            subscribers \u003d self.subscription_controller.list(queue_name,"},{"line_number":50,"context_line":"                                                            project)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"            wh_flow \u003d uf.Flow(\u0027webhook_notifier_flow\u0027)"},{"line_number":53,"context_line":"            for s in list(next(subscribers)):"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_76351dda","line":50,"in_reply_to":"da86d52c_3068db1c","updated":"2015-02-10 12:32:21.000000000","message":"I think we have to do basic cache.","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"5f422e0e7aa6fd23f39ceac45d8787e246f442de","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        \"\"\"Send message to the subscribers.\"\"\""},{"line_number":48,"context_line":"        if self.subscription_controller:"},{"line_number":49,"context_line":"            subscribers \u003d self.subscription_controller.list(queue_name,"},{"line_number":50,"context_line":"                                                            project)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"            wh_flow \u003d uf.Flow(\u0027webhook_notifier_flow\u0027)"},{"line_number":53,"context_line":"            for s in list(next(subscribers)):"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_3068db1c","line":50,"in_reply_to":"da86d52c_e2e30831","updated":"2015-02-04 12:48:11.000000000","message":"I have been thinking about it and it doesn\u0027t look like something we can avoid :/ We could minimize the impact by doing some sort of caching algorithm. I guess.","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"287352672078ffe2f2f2fb3e7190835ba098ac5a","unresolved":false,"context_lines":[{"line_number":57,"context_line":"                                                    \u0027message\u0027: m}))"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"            # Run in parallel using eventlet green threads..."},{"line_number":60,"context_line":"            if async_utils.EVENTLET_AVAILABLE:"},{"line_number":61,"context_line":"                with futures.GreenThreadPoolExecutor() as executor:"},{"line_number":62,"context_line":"                    e \u003d engines.load(wh_flow, executor\u003dexecutor,"},{"line_number":63,"context_line":"                                     engine\u003d\u0027parallel\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_02d2dc5b","line":60,"updated":"2015-02-03 13:08:28.000000000","message":"Does this check if `monkey_patch` has been called?","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"dcfd92fc421a4a70b6ff3fc5de22c8bbed1aeba2","unresolved":false,"context_lines":[{"line_number":57,"context_line":"                                                    \u0027message\u0027: m}))"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"            # Run in parallel using eventlet green threads..."},{"line_number":60,"context_line":"            if async_utils.EVENTLET_AVAILABLE:"},{"line_number":61,"context_line":"                with futures.GreenThreadPoolExecutor() as executor:"},{"line_number":62,"context_line":"                    e \u003d engines.load(wh_flow, executor\u003dexecutor,"},{"line_number":63,"context_line":"                                     engine\u003d\u0027parallel\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_2c0d1238","line":60,"in_reply_to":"da86d52c_02d2dc5b","updated":"2015-02-10 12:32:21.000000000","message":"I guess no, see https://github.com/openstack/taskflow/blob/master/taskflow/utils/eventlet_utils.py\n\nNOTE: current code is based on 0.6.1","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"287352672078ffe2f2f2fb3e7190835ba098ac5a","unresolved":false,"context_lines":[{"line_number":63,"context_line":"                                     engine\u003d\u0027parallel\u0027)"},{"line_number":64,"context_line":"                    e.run()"},{"line_number":65,"context_line":"            else:"},{"line_number":66,"context_line":"                # TODO(flwang): Make the max_workers configurable"},{"line_number":67,"context_line":"                with futures.ThreadPoolExecutor(max_workers\u003d10) as executor:"},{"line_number":68,"context_line":"                    e \u003d engines.load(wh_flow, executor\u003dexecutor,"},{"line_number":69,"context_line":"                                     engine\u003d\u0027parallel\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_22d52043","line":66,"updated":"2015-02-03 13:08:28.000000000","message":"Can we do this outside the post method? For example, set a global `executure` to `GreenThreadPoolExecutor` if available.","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"dcfd92fc421a4a70b6ff3fc5de22c8bbed1aeba2","unresolved":false,"context_lines":[{"line_number":63,"context_line":"                                     engine\u003d\u0027parallel\u0027)"},{"line_number":64,"context_line":"                    e.run()"},{"line_number":65,"context_line":"            else:"},{"line_number":66,"context_line":"                # TODO(flwang): Make the max_workers configurable"},{"line_number":67,"context_line":"                with futures.ThreadPoolExecutor(max_workers\u003d10) as executor:"},{"line_number":68,"context_line":"                    e \u003d engines.load(wh_flow, executor\u003dexecutor,"},{"line_number":69,"context_line":"                                     engine\u003d\u0027parallel\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_6c0e2a34","line":66,"in_reply_to":"da86d52c_22d52043","updated":"2015-02-10 12:32:21.000000000","message":"Done","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"}],"zaqar/storage/pipeline.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"287352672078ffe2f2f2fb3e7190835ba098ac5a","unresolved":false,"context_lines":[{"line_number":118,"context_line":"    def message_controller(self):"},{"line_number":119,"context_line":"        kwargs \u003d {\u0027subscription_controller\u0027:"},{"line_number":120,"context_line":"                  self._storage.subscription_controller}"},{"line_number":121,"context_line":"        stages \u003d _get_storage_pipeline(\u0027message\u0027, self.conf, **kwargs)"},{"line_number":122,"context_line":"        stages.append(self._storage.message_controller)"},{"line_number":123,"context_line":"        return stages"},{"line_number":124,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_42f5b4ec","line":121,"updated":"2015-02-03 13:08:28.000000000","message":"mmh, don\u0027t the pipeline stages have an instance of the driver? Should we make `self._storage` accessible?","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"dcfd92fc421a4a70b6ff3fc5de22c8bbed1aeba2","unresolved":false,"context_lines":[{"line_number":118,"context_line":"    def message_controller(self):"},{"line_number":119,"context_line":"        kwargs \u003d {\u0027subscription_controller\u0027:"},{"line_number":120,"context_line":"                  self._storage.subscription_controller}"},{"line_number":121,"context_line":"        stages \u003d _get_storage_pipeline(\u0027message\u0027, self.conf, **kwargs)"},{"line_number":122,"context_line":"        stages.append(self._storage.message_controller)"},{"line_number":123,"context_line":"        return stages"},{"line_number":124,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_f6290d8a","line":121,"in_reply_to":"da86d52c_42f5b4ec","updated":"2015-02-10 12:32:21.000000000","message":"Technically, notifier is just one of the pipeline stages associated with message controller. so we really want to make it\u0027s accessible by \u0027self._storage\u0027? If so, we may have to iterate the stages to get it at here.","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"287352672078ffe2f2f2fb3e7190835ba098ac5a","unresolved":false,"context_lines":[{"line_number":131,"context_line":"    @decorators.lazy_property(write\u003dFalse)"},{"line_number":132,"context_line":"    def subscription_controller(self):"},{"line_number":133,"context_line":"        stages \u003d _get_storage_pipeline(\u0027subscription\u0027, self.conf)"},{"line_number":134,"context_line":"        stages.append()"},{"line_number":135,"context_line":"        return stages"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_62f8f8e5","line":134,"updated":"2015-02-03 13:08:28.000000000","message":"missing something? :D","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"dcfd92fc421a4a70b6ff3fc5de22c8bbed1aeba2","unresolved":false,"context_lines":[{"line_number":131,"context_line":"    @decorators.lazy_property(write\u003dFalse)"},{"line_number":132,"context_line":"    def subscription_controller(self):"},{"line_number":133,"context_line":"        stages \u003d _get_storage_pipeline(\u0027subscription\u0027, self.conf)"},{"line_number":134,"context_line":"        stages.append()"},{"line_number":135,"context_line":"        return stages"}],"source_content_type":"text/x-python","patch_set":3,"id":"da86d52c_024bbc87","line":134,"in_reply_to":"da86d52c_62f8f8e5","updated":"2015-02-10 12:32:21.000000000","message":"Done","commit_id":"00777570c909720f7f95b635066f0c119a4cc3e4"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"a808d33e1821d88ffd1e581605dea9c4e74b008c","unresolved":false,"context_lines":[{"line_number":75,"context_line":"                                       invoke_args\u003dargs,"},{"line_number":76,"context_line":"                                       invoke_kwds\u003dkwargs,"},{"line_number":77,"context_line":"                                       invoke_on_load\u003dTrue)"},{"line_number":78,"context_line":"            pipeline.append(mgr.driver)"},{"line_number":79,"context_line":"        except RuntimeError as exc:"},{"line_number":80,"context_line":"            LOG.warning(_(u\u0027Stage %(stage)d could not be imported: %(ex)s\u0027),"},{"line_number":81,"context_line":"                        {\u0027stage\u0027: ns, \u0027ex\u0027: str(exc)})"}],"source_content_type":"text/x-python","patch_set":6,"id":"ba7be1f8_243af998","line":78,"updated":"2015-02-26 17:55:16.000000000","message":"Shaifali is working on a builtin stages loader for this kind of scenario. Could you take a look here: https://review.openstack.org/#/c/144340/21/zaqar/storage/pipeline.py,cm","commit_id":"d64ca45f572f0d58fa8d5185c57097860ba12d54"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"a808d33e1821d88ffd1e581605dea9c4e74b008c","unresolved":false,"context_lines":[{"line_number":117,"context_line":"    @decorators.lazy_property(write\u003dFalse)"},{"line_number":118,"context_line":"    def message_controller(self):"},{"line_number":119,"context_line":"        kwargs \u003d {\u0027subscription_controller\u0027:"},{"line_number":120,"context_line":"                  self._storage.subscription_controller}"},{"line_number":121,"context_line":"        stages \u003d _get_storage_pipeline(\u0027message\u0027, self.conf, **kwargs)"},{"line_number":122,"context_line":"        stages.append(self._storage.message_controller)"},{"line_number":123,"context_line":"        return stages"}],"source_content_type":"text/x-python","patch_set":6,"id":"ba7be1f8_c4acbdef","line":120,"updated":"2015-02-26 17:55:16.000000000","message":"This method is not implemented for the redis.DataDriver, therefore this jobs keep failing.","commit_id":"d64ca45f572f0d58fa8d5185c57097860ba12d54"}]}
