)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"e85830f95574461b84f58c469436dca601f3c125","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Class ReloadNotifier added"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Class ReloadNotifier allows to add banch of handler on reload service action."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: If906c90233dbab367d79d9482bdf996fa9f50b74"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5a2ca52d_197aeb77","line":9,"updated":"2015-10-15 16:07:00.000000000","message":"What\u0027s a \"banch\"? :) I think you meant \"bunch\", but probably a better commit message might be:\n\n Adds a class that signals callbacks when a service or launcher\n receives a reload notification.","commit_id":"26751b22a4b0b9150f36ab8077f5c8624e58da67"},{"author":{"_account_id":14358,"name":"Marian Horban","email":"m.horban@gmail.com","username":"mhorban"},"change_message_id":"4d1f4ef1c1932ad1d22b18e5a7691fc72d6021da","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Class ReloadNotifier added"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Class ReloadNotifier allows to add banch of handler on reload service action."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: If906c90233dbab367d79d9482bdf996fa9f50b74"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5a2ca52d_726afab4","line":9,"in_reply_to":"5a2ca52d_197aeb77","updated":"2015-10-16 07:58:33.000000000","message":":))) Right you are","commit_id":"26751b22a4b0b9150f36ab8077f5c8624e58da67"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"e6b8f6b0256909d6cc0b1c08250cb369203c7c3a","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Class ReloadNotifier added"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Adds a class that signals callbacks when a service or launcher receives a reload notification."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: If906c90233dbab367d79d9482bdf996fa9f50b74"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"3a29b11f_b047b34a","line":9,"updated":"2015-10-25 04:03:14.000000000","message":"Note: try to wrap commit messages at 72 chars please..","commit_id":"2b014e61b3f345eaec197010437afa6906f1d7ba"},{"author":{"_account_id":14358,"name":"Marian Horban","email":"m.horban@gmail.com","username":"mhorban"},"change_message_id":"f8e4d6abe2d112e983b1f45ca1e3dfa3be027999","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Class ReloadNotifier added"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Adds a class that signals callbacks when a service or launcher receives a reload notification."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: If906c90233dbab367d79d9482bdf996fa9f50b74"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"3a29b11f_134e98c1","line":9,"in_reply_to":"3a29b11f_b047b34a","updated":"2015-10-26 15:27:25.000000000","message":"Done","commit_id":"2b014e61b3f345eaec197010437afa6906f1d7ba"}],"oslo_service/service.py":[{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"38432cc3196f8d377bf55a14480097150fb4dc7b","unresolved":false,"context_lines":[{"line_number":161,"context_line":"            handler(signo, frame)"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"@six.add_metaclass(Singleton)"},{"line_number":165,"context_line":"class ReloadNotifier(notifier.Notifier):"},{"line_number":166,"context_line":"    \"\"\"Intended to subscribe to notifications of service reloading.\"\"\""},{"line_number":167,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a1a9d01_005483fc","line":164,"updated":"2015-09-29 17:41:34.000000000","message":"Why does this need to be a singleton?","commit_id":"ebafc19fa43be6e0a2d5300f5186570ea760322b"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"9c9c2ab75bcc01740f125e0e1b183093b7c9429e","unresolved":false,"context_lines":[{"line_number":161,"context_line":"            handler(signo, frame)"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"@six.add_metaclass(Singleton)"},{"line_number":165,"context_line":"class ReloadNotifier(notifier.Notifier):"},{"line_number":166,"context_line":"    \"\"\"Intended to subscribe to notifications of service reloading.\"\"\""},{"line_number":167,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a1a9d01_382e9743","line":164,"in_reply_to":"9a1a9d01_005483fc","updated":"2015-09-29 19:32:21.000000000","message":"Agreed, not sure why a singleton matters here.","commit_id":"ebafc19fa43be6e0a2d5300f5186570ea760322b"},{"author":{"_account_id":14358,"name":"Marian Horban","email":"m.horban@gmail.com","username":"mhorban"},"change_message_id":"c5e9b535fb1c0532f7dfc1e22ab6e14af8182607","unresolved":false,"context_lines":[{"line_number":161,"context_line":"            handler(signo, frame)"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"@six.add_metaclass(Singleton)"},{"line_number":165,"context_line":"class ReloadNotifier(notifier.Notifier):"},{"line_number":166,"context_line":"    \"\"\"Intended to subscribe to notifications of service reloading.\"\"\""},{"line_number":167,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a1a9d01_f8432dad","line":164,"in_reply_to":"9a1a9d01_005483fc","updated":"2015-09-30 08:16:56.000000000","message":"I have no clear answer: How to make this functionality accessible over all openstack code?\n\nIt looks impossible to add one more argument with this notifier everywhere...That\u0027s why in the first implementation I decided to use oslo.config CONF object. Because it is present everywhere.\n\nSo the only way that I see is to have global variable :(\nActually singleton is some way to wrap global variable.\nSingleton allows to control creating of instance. We need only one instance of this ReloadNotifier all over the process and we need something like global variable. That\u0027s why I chose to use singleton.","commit_id":"ebafc19fa43be6e0a2d5300f5186570ea760322b"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"f5e2f88b61a348156a2fea80668144651d1432b1","unresolved":false,"context_lines":[{"line_number":161,"context_line":"            handler(signo, frame)"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"@six.add_metaclass(Singleton)"},{"line_number":165,"context_line":"class ReloadNotifier(notifier.Notifier):"},{"line_number":166,"context_line":"    \"\"\"Intended to subscribe to notifications of service reloading.\"\"\""},{"line_number":167,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a1a9d01_cd81a4c4","line":164,"in_reply_to":"9a1a9d01_f8432dad","updated":"2015-09-30 22:15:37.000000000","message":"Ya, tough problem, perhaps update the docstring with what u just wrote, explaining why its a singleton in the docstring, for future questions of this kind...","commit_id":"ebafc19fa43be6e0a2d5300f5186570ea760322b"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"9c9c2ab75bcc01740f125e0e1b183093b7c9429e","unresolved":false,"context_lines":[{"line_number":162,"context_line":""},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"@six.add_metaclass(Singleton)"},{"line_number":165,"context_line":"class ReloadNotifier(notifier.Notifier):"},{"line_number":166,"context_line":"    \"\"\"Intended to subscribe to notifications of service reloading.\"\"\""},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def register_config_hook(self, conf):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a1a9d01_1844f318","line":165,"updated":"2015-09-29 19:32:21.000000000","message":"So I\u0027d almost recommend deriving from:\n\nhttps://github.com/openstack/taskflow/blob/master/taskflow/types/notifier.py#L313\n\nThat one restricts what can be registered and watched on, which it sees like u would want to restrict, possible to the set of, possibly something like:\n\n    \u003e\u003e\u003e from taskflow.types import notifier\n    \u003e\u003e\u003e class ConfigNotifier(notifier.RestrictedNotifier):\n    ...    def __init__(self):\n    ...       super(ConfigNotifier, self).__init__([\u0027config_changed\u0027], allow_any\u003dTrue)\n    ... \n    \u003e\u003e\u003e n \u003d ConfigNotifier()\n    \u003e\u003e\u003e n.register(\"bbb\", lambda *args, **kwargs: None)\n    Traceback (most recent call last):\n      File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n      File \"taskflow/types/notifier.py\", line 242, in register\n        \" callback registered\" % event_type)\n    ValueError: Disallowed event type \u0027bbb\u0027 can not have a callback registered\n    \u003e\u003e\u003e def on_changed(event_type, details):\n    ...   print event_type\n    ...   print details\n    ... \n    \u003e\u003e\u003e n.register(\u0027config_changed\u0027, on_changed)\n    \u003e\u003e\u003e n.notify(\u0027config_changed\u0027, {})\n    config_changed\n    {}\n    \u003e\u003e\u003e def on_config_changed_other(event_type, details):\n    ...    print \u0027it changed!!!\u0027\n    ... \n    \u003e\u003e\u003e n.register(\u0027config_changed\u0027, on_config_changed_other)\n    \u003e\u003e\u003e n.notify(\u0027config_changed\u0027, {})\n    config_changed\n    {}\n    it changed!!!","commit_id":"ebafc19fa43be6e0a2d5300f5186570ea760322b"},{"author":{"_account_id":14358,"name":"Marian Horban","email":"m.horban@gmail.com","username":"mhorban"},"change_message_id":"7a96075db9d3819feba7700a500c27ffc2d793fa","unresolved":false,"context_lines":[{"line_number":162,"context_line":""},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"@six.add_metaclass(Singleton)"},{"line_number":165,"context_line":"class ReloadNotifier(notifier.Notifier):"},{"line_number":166,"context_line":"    \"\"\"Intended to subscribe to notifications of service reloading.\"\"\""},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def register_config_hook(self, conf):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a2ca52d_49cbbfa5","line":165,"in_reply_to":"9a1a9d01_1844f318","updated":"2015-10-15 15:26:37.000000000","message":"Done","commit_id":"ebafc19fa43be6e0a2d5300f5186570ea760322b"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"9c9c2ab75bcc01740f125e0e1b183093b7c9429e","unresolved":false,"context_lines":[{"line_number":166,"context_line":"    \"\"\"Intended to subscribe to notifications of service reloading.\"\"\""},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def register_config_hook(self, conf):"},{"line_number":169,"context_line":"        notifier_args \u003d (notifier.Notifier.ANY,"},{"line_number":170,"context_line":"                         ReloadNotifier.reload_configuration)"},{"line_number":171,"context_line":"        if not self.is_registered(*notifier_args):"},{"line_number":172,"context_line":"            self.register(*notifier_args, kwargs\u003d{\u0027conf\u0027: conf})"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a1a9d01_b8fb87c0","line":169,"updated":"2015-09-29 19:32:21.000000000","message":"I\u0027m thinking u might need to make a closure method here instead of using \u0027reload_configuration\u0027 over and over again, because the duplicate checking in the register code might not let u register duplicates from what I remember:\n\nBut u might want to check:\n\nhttps://github.com/openstack/taskflow/blob/master/taskflow/types/notifier.py#L243","commit_id":"ebafc19fa43be6e0a2d5300f5186570ea760322b"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"79e5db630edba0531f910b92e6038edac65085a1","unresolved":false,"context_lines":[{"line_number":166,"context_line":"    \"\"\"Intended to subscribe to notifications of service reloading.\"\"\""},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def register_config_hook(self, conf):"},{"line_number":169,"context_line":"        notifier_args \u003d (notifier.Notifier.ANY,"},{"line_number":170,"context_line":"                         ReloadNotifier.reload_configuration)"},{"line_number":171,"context_line":"        if not self.is_registered(*notifier_args):"},{"line_number":172,"context_line":"            self.register(*notifier_args, kwargs\u003d{\u0027conf\u0027: conf})"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a1a9d01_6d43b8af","line":169,"in_reply_to":"9a1a9d01_6325325a","updated":"2015-09-30 22:14:34.000000000","message":"No I more of meant that its a static method that appears to be registered, that static method has the same name, therefore that I think will trigger the code that says its already registered,\n\nFor example:\n\nhttp://paste.openstack.org/show/474965/\n\nI\u0027m just wanting to make sure the above isn\u0027t happening for u :)","commit_id":"ebafc19fa43be6e0a2d5300f5186570ea760322b"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"7af73f7bdf7d6dde8569ec5df81dab62eafa9bc6","unresolved":false,"context_lines":[{"line_number":166,"context_line":"    \"\"\"Intended to subscribe to notifications of service reloading.\"\"\""},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def register_config_hook(self, conf):"},{"line_number":169,"context_line":"        notifier_args \u003d (notifier.Notifier.ANY,"},{"line_number":170,"context_line":"                         ReloadNotifier.reload_configuration)"},{"line_number":171,"context_line":"        if not self.is_registered(*notifier_args):"},{"line_number":172,"context_line":"            self.register(*notifier_args, kwargs\u003d{\u0027conf\u0027: conf})"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a1a9d01_142545ad","line":169,"in_reply_to":"9a1a9d01_63e16d9a","updated":"2015-10-01 15:25:01.000000000","message":"Okie dokie.","commit_id":"ebafc19fa43be6e0a2d5300f5186570ea760322b"},{"author":{"_account_id":14358,"name":"Marian Horban","email":"m.horban@gmail.com","username":"mhorban"},"change_message_id":"2de5be196cecd854afe07160c384a51d323b4c49","unresolved":false,"context_lines":[{"line_number":166,"context_line":"    \"\"\"Intended to subscribe to notifications of service reloading.\"\"\""},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def register_config_hook(self, conf):"},{"line_number":169,"context_line":"        notifier_args \u003d (notifier.Notifier.ANY,"},{"line_number":170,"context_line":"                         ReloadNotifier.reload_configuration)"},{"line_number":171,"context_line":"        if not self.is_registered(*notifier_args):"},{"line_number":172,"context_line":"            self.register(*notifier_args, kwargs\u003d{\u0027conf\u0027: conf})"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a1a9d01_63e16d9a","line":169,"in_reply_to":"9a1a9d01_6d43b8af","updated":"2015-10-01 14:51:16.000000000","message":"It happens, that\u0027s why I add testing \n\n  if not self.is_registered(*notifier_args):\n\non line 171","commit_id":"ebafc19fa43be6e0a2d5300f5186570ea760322b"},{"author":{"_account_id":14358,"name":"Marian Horban","email":"m.horban@gmail.com","username":"mhorban"},"change_message_id":"c5e9b535fb1c0532f7dfc1e22ab6e14af8182607","unresolved":false,"context_lines":[{"line_number":166,"context_line":"    \"\"\"Intended to subscribe to notifications of service reloading.\"\"\""},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def register_config_hook(self, conf):"},{"line_number":169,"context_line":"        notifier_args \u003d (notifier.Notifier.ANY,"},{"line_number":170,"context_line":"                         ReloadNotifier.reload_configuration)"},{"line_number":171,"context_line":"        if not self.is_registered(*notifier_args):"},{"line_number":172,"context_line":"            self.register(*notifier_args, kwargs\u003d{\u0027conf\u0027: conf})"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a1a9d01_6325325a","line":169,"in_reply_to":"9a1a9d01_b8fb87c0","updated":"2015-09-30 08:16:56.000000000","message":"I\u0027m not sure that I understand you.\nDo you mean to make reload_configuration inner function?\nIt is bad idea to make it inner because inner function is generated each time we call register_config_hook() and we will not have ability to check if it was registered self.is_registered().","commit_id":"ebafc19fa43be6e0a2d5300f5186570ea760322b"}],"requirements.txt":[{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"effab396eb44d53bf1eee9d1e94621ca18231fcc","unresolved":false,"context_lines":[{"line_number":17,"context_line":"Routes!\u003d2.0,!\u003d2.1,\u003e\u003d1.12.3;python_version\u003d\u003d\u00272.7\u0027"},{"line_number":18,"context_line":"Routes!\u003d2.0,\u003e\u003d1.12.3;python_version!\u003d\u00272.7\u0027"},{"line_number":19,"context_line":"Paste"},{"line_number":20,"context_line":"taskflow\u003e\u003d1.16.0"}],"source_content_type":"text/plain","patch_set":1,"id":"9a1a9d01_98c32357","line":20,"updated":"2015-09-29 19:34:52.000000000","message":"See email:\n\nhttp://lists.openstack.org/pipermail/openstack-dev/2015-September/075772.html","commit_id":"ebafc19fa43be6e0a2d5300f5186570ea760322b"},{"author":{"_account_id":14358,"name":"Marian Horban","email":"m.horban@gmail.com","username":"mhorban"},"change_message_id":"7a96075db9d3819feba7700a500c27ffc2d793fa","unresolved":false,"context_lines":[{"line_number":17,"context_line":"Routes!\u003d2.0,!\u003d2.1,\u003e\u003d1.12.3;python_version\u003d\u003d\u00272.7\u0027"},{"line_number":18,"context_line":"Routes!\u003d2.0,\u003e\u003d1.12.3;python_version!\u003d\u00272.7\u0027"},{"line_number":19,"context_line":"Paste"},{"line_number":20,"context_line":"taskflow\u003e\u003d1.16.0"}],"source_content_type":"text/plain","patch_set":1,"id":"5a2ca52d_de30e7ea","line":20,"in_reply_to":"9a1a9d01_98c32357","updated":"2015-10-15 15:26:37.000000000","message":"Joshua,\n\nThat\u0027s right, it will point to your new \u0027notifier\u0027 library as soon as it will be available on pypi.","commit_id":"ebafc19fa43be6e0a2d5300f5186570ea760322b"}]}
