)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"19d64f041336f26c83c2ce64643c5e5d020a5971","unresolved":false,"context_lines":[{"line_number":26,"context_line":"                          server\u003d\u0027ceilometerhost\u0027, no_ack\u003dTrue)"},{"line_number":27,"context_line":"server \u003d notify.get_subscriber_server(transport, target, endpoints)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Implements bp/notification-subscriber-server"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Change-Id: I434bc487c382a2048670df726d9bebd640150bb9"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"AAAATn%2F%2ByBA%3D","line":29,"updated":"2013-11-20 10:43:14.000000000","message":"no need for bp/","commit_id":"219cf7c52927a45bc9673cdea5635ff56484191f"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6d3254252f22266f99dd6bf8d01d1953383b910d","unresolved":false,"context_lines":[{"line_number":26,"context_line":"                          server\u003d\u0027ceilometerhost\u0027, no_ack\u003dTrue)"},{"line_number":27,"context_line":"server \u003d notify.get_subscriber_server(transport, target, endpoints)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Implements bp/notification-subscriber-server"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Change-Id: I434bc487c382a2048670df726d9bebd640150bb9"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"AAAATn%2F%2BqGc%3D","line":29,"in_reply_to":"AAAATn%2F%2ByBA%3D","updated":"2013-11-21 23:43:03.000000000","message":"Done","commit_id":"219cf7c52927a45bc9673cdea5635ff56484191f"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"b88394720e79077f9ae83df8ee20a4ec89b5eb20","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2013-11-22 09:50:31 +0100"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implementation of notification subscriber server"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch allows to quickly create the server to subscribe to"},{"line_number":10,"context_line":"notification messages. It only supports the messaging driver."},{"line_number":11,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"AAAATn%2F%2BMTo%3D","line":8,"updated":"2013-11-29 12:50:01.000000000","message":"I\u0027d have used the term \"listener\" rather than \"subscriber\" ... but both seem fine\n\nWell, wait ... to my mind, a subscriber consumes the message and no other subscriber sees it. A listener is just one of potentially multiple consumers of the same message.\n\nWe don\u0027t want to be the exclusive consumer, I assume?","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"797b7b9b83e938050afa78f8edbc8b541eb9eeb1","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2013-11-22 09:50:31 +0100"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implementation of notification subscriber server"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch allows to quickly create the server to subscribe to"},{"line_number":10,"context_line":"notification messages. It only supports the messaging driver."},{"line_number":11,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"AAAATn%2F%2BHRU%3D","line":8,"in_reply_to":"AAAATn%2F%2BLgw%3D","updated":"2013-12-02 13:38:45.000000000","message":"Hmm.\n\nMy understanding is that ceilometer does require the ability to consume notification messages without preventing other consumers\n\nI think that\u0027s what it is using join_consumer_pool() for.. See notes and mailing list discussions here: https://wiki.openstack.org/wiki/Oslo/Messaging#Ceilometer_Metering_Messages\n\nI would have assumed we\u0027d want that join_consume_pool() behaviour here","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2013-11-22 09:50:31 +0100"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implementation of notification subscriber server"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch allows to quickly create the server to subscribe to"},{"line_number":10,"context_line":"notification messages. It only supports the messaging driver."},{"line_number":11,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"AAAATn%2F%2BLgw%3D","line":8,"in_reply_to":"AAAATn%2F%2BMTo%3D","updated":"2013-11-29 16:28:10.000000000","message":"Yes, +1 for listener, if others can consume the notification messages it\u0027s better, \n\nbut to do this, each listener needs to consume the topic on a different queue.\n\nThe actual driver implementation don\u0027t allow to set the queue_name,\nso when both \u0027listener\u0027 listen the same topic with oslo.messaging, each steal messages of the other. We have already have the same limitation in ceilometer actually. so, it is not a high priority needs (set a queue_name) for now for ceilometer. \n\n(Nova/cinder/... can emit notification on two topics and that solve the problem in an other ways)","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"b88394720e79077f9ae83df8ee20a4ec89b5eb20","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Implementation of notification subscriber server"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch allows to quickly create the server to subscribe to"},{"line_number":10,"context_line":"notification messages. It only supports the messaging driver."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"The implementation:"},{"line_number":13,"context_line":"- allows to create a server that dispatch notification message to the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"AAAATn%2F%2BMTI%3D","line":10,"updated":"2013-11-29 12:50:01.000000000","message":"Bah, yes - we\u0027ve a bunch of weirdness going on here\n\nThis is the messaging library, so you\u0027d think it just does messaging\n\nYet, we have a notifier that can notify via messaging, logs, etc.\n\nThen we have a notification consumer that can only consume from messaging\n\nThen we\u0027re going to have a python logging thing that can log via notifications (potentially then notifiying via logging)\n\nBut, whatever ... life is messy :)","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Implementation of notification subscriber server"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch allows to quickly create the server to subscribe to"},{"line_number":10,"context_line":"notification messages. It only supports the messaging driver."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"The implementation:"},{"line_number":13,"context_line":"- allows to create a server that dispatch notification message to the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"AAAATn%2F%2BLgU%3D","line":10,"in_reply_to":"AAAATn%2F%2BMTI%3D","updated":"2013-11-29 16:28:10.000000000","message":":)","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"b88394720e79077f9ae83df8ee20a4ec89b5eb20","unresolved":false,"context_lines":[{"line_number":18,"context_line":"Example of the api:"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class Endpoint(object):"},{"line_number":21,"context_line":"    def process_notification(self, notification):"},{"line_number":22,"context_line":"        do_somehting(notification.message)"},{"line_number":23,"context_line":"        notfication.acknowledge()"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"AAAATn%2F%2BMS0%3D","line":21,"updated":"2013-11-29 12:50:01.000000000","message":"So, I think I\u0027d mirror the notifier API here ...\n\nWe have info() etc. methods on the sender side, should also have them on the receiver side\n\ncontext, publisher_id, event_type, payload are all explicit args on the sender side ... so we should do the same on the receiver side:\n\n  class Handler(object):\n\n      def warn(self, ctxt, publisher_id, event_type, payload):\n          ...","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":18,"context_line":"Example of the api:"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class Endpoint(object):"},{"line_number":21,"context_line":"    def process_notification(self, notification):"},{"line_number":22,"context_line":"        do_somehting(notification.message)"},{"line_number":23,"context_line":"        notfication.acknowledge()"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"AAAATn%2F%2BLrI%3D","line":21,"in_reply_to":"AAAATn%2F%2BMS0%3D","updated":"2013-11-29 16:28:10.000000000","message":"I like the idea.","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"b88394720e79077f9ae83df8ee20a4ec89b5eb20","unresolved":false,"context_lines":[{"line_number":20,"context_line":"class Endpoint(object):"},{"line_number":21,"context_line":"    def process_notification(self, notification):"},{"line_number":22,"context_line":"        do_somehting(notification.message)"},{"line_number":23,"context_line":"        notfication.acknowledge()"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification.info\u0027, exchange\u003d\u0027cinder\u0027,"},{"line_number":26,"context_line":"                          server\u003d\u0027ceilometerhost\u0027, ack\u003dFalse)"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"AAAATn%2F%2BMSw%3D","line":23,"updated":"2013-11-29 12:50:01.000000000","message":"How about we auto-acknowledge if the handler returns and allow the handler to raise an exception if its not successfully handled ?","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":20,"context_line":"class Endpoint(object):"},{"line_number":21,"context_line":"    def process_notification(self, notification):"},{"line_number":22,"context_line":"        do_somehting(notification.message)"},{"line_number":23,"context_line":"        notfication.acknowledge()"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification.info\u0027, exchange\u003d\u0027cinder\u0027,"},{"line_number":26,"context_line":"                          server\u003d\u0027ceilometerhost\u0027, ack\u003dFalse)"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"AAAATn%2F%2BLoc%3D","line":23,"in_reply_to":"AAAATn%2F%2BMSw%3D","updated":"2013-11-29 16:28:10.000000000","message":"This is the other way I have thinked, I will propose a update with that way.","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"b88394720e79077f9ae83df8ee20a4ec89b5eb20","unresolved":false,"context_lines":[{"line_number":22,"context_line":"        do_somehting(notification.message)"},{"line_number":23,"context_line":"        notfication.acknowledge()"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification.info\u0027, exchange\u003d\u0027cinder\u0027,"},{"line_number":26,"context_line":"                          server\u003d\u0027ceilometerhost\u0027, ack\u003dFalse)"},{"line_number":27,"context_line":"server \u003d notify.get_subscriber_server(transport, target, endpoints)"},{"line_number":28,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"AAAATn%2F%2BMRs%3D","line":25,"updated":"2013-11-29 12:50:01.000000000","message":"Urk, yeah - this is messy\n\nOn the notifier side, we say the topic is \u0027notifications\u0027 and then call an info() method - the fact that the driver concatenates the topic with the priority is driver specific\n\nBUT ... !\n\nIt\u0027s *notification* *driver* specific and the receiver API is inherently tied to that driver ... so ...\n\nI dunno, it still feels like implementation details which are abstracted on the sending side are leaking out on the receiver side if we do topic\u003d\u0027notifications.info\u0027\n\nMy way is more complex - you\u0027d go through each of the endpoints, figure out what priority levels they\u0027re interested in and then subscribe to each of those priority levels","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":22,"context_line":"        do_somehting(notification.message)"},{"line_number":23,"context_line":"        notfication.acknowledge()"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification.info\u0027, exchange\u003d\u0027cinder\u0027,"},{"line_number":26,"context_line":"                          server\u003d\u0027ceilometerhost\u0027, ack\u003dFalse)"},{"line_number":27,"context_line":"server \u003d notify.get_subscriber_server(transport, target, endpoints)"},{"line_number":28,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"AAAATn%2F%2BLew%3D","line":25,"in_reply_to":"AAAATn%2F%2BMRs%3D","updated":"2013-11-29 16:28:10.000000000","message":"I see :), I will try to have the server side that looks like the client side, I prefer to have a clean and easily understandable API. And I like the idea that the endpoint have info/warn/error method.","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"b88394720e79077f9ae83df8ee20a4ec89b5eb20","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification.info\u0027, exchange\u003d\u0027cinder\u0027,"},{"line_number":26,"context_line":"                          server\u003d\u0027ceilometerhost\u0027, ack\u003dFalse)"},{"line_number":27,"context_line":"server \u003d notify.get_subscriber_server(transport, target, endpoints)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Implements blueprint notification-subscriber-server"},{"line_number":30,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"AAAATn%2F%2BMRM%3D","line":27,"updated":"2013-11-29 12:50:01.000000000","message":"Need to also support executor and serializer","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification.info\u0027, exchange\u003d\u0027cinder\u0027,"},{"line_number":26,"context_line":"                          server\u003d\u0027ceilometerhost\u0027, ack\u003dFalse)"},{"line_number":27,"context_line":"server \u003d notify.get_subscriber_server(transport, target, endpoints)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Implements blueprint notification-subscriber-server"},{"line_number":30,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"AAAATn%2F%2BLoQ%3D","line":27,"in_reply_to":"AAAATn%2F%2BMRM%3D","updated":"2013-11-29 16:28:10.000000000","message":"Sure, I have started without to simply the initial implementation.","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"c0ea11f8517cbf8b76fa881ce9ca869ece6beb3e","unresolved":false,"context_lines":[{"line_number":14,"context_line":"class Endpoint(object):"},{"line_number":15,"context_line":"    def warn(self, ctxt, publisher_id, event_type, payload, extras):"},{"line_number":16,"context_line":"        do_somehting(payload) or \\"},{"line_number":17,"context_line":"            raise RequeueMessageException()"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification\u0027, exchange\u003d\u0027cinder\u0027)"},{"line_number":20,"context_line":"listener \u003d notify.get_notification_listener(transport, target,"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"AAAATn%2F9ukM%3D","line":17,"updated":"2013-12-06 17:00:52.000000000","message":"I\u0027d be happier if requeue() support came after this patch","commit_id":"0cd4737a26dc764cb57f89f947d5240ca62d189d"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"a54b308601d609c146b3536be7995a5df8d6d685","unresolved":false,"context_lines":[{"line_number":14,"context_line":"class Endpoint(object):"},{"line_number":15,"context_line":"    def warn(self, ctxt, publisher_id, event_type, payload, extras):"},{"line_number":16,"context_line":"        do_somehting(payload) or \\"},{"line_number":17,"context_line":"            raise RequeueMessageException()"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification\u0027, exchange\u003d\u0027cinder\u0027)"},{"line_number":20,"context_line":"listener \u003d notify.get_notification_listener(transport, target,"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"AAAATn%2F9jcU%3D","line":17,"in_reply_to":"AAAATn%2F9ukM%3D","updated":"2013-12-12 08:23:35.000000000","message":"I have moved all requeue thing in a patch on top of all other.","commit_id":"0cd4737a26dc764cb57f89f947d5240ca62d189d"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"c0ea11f8517cbf8b76fa881ce9ca869ece6beb3e","unresolved":false,"context_lines":[{"line_number":17,"context_line":"            raise RequeueMessageException()"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification\u0027, exchange\u003d\u0027cinder\u0027)"},{"line_number":20,"context_line":"listener \u003d notify.get_notification_listener(transport, target,"},{"line_number":21,"context_line":"                                            endpoints,"},{"line_number":22,"context_line":"                                            executor,"},{"line_number":23,"context_line":"                                            serializer)"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"AAAATn%2F9ujY%3D","line":20,"updated":"2013-12-06 17:00:52.000000000","message":"target should be [target] ?","commit_id":"0cd4737a26dc764cb57f89f947d5240ca62d189d"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"a54b308601d609c146b3536be7995a5df8d6d685","unresolved":false,"context_lines":[{"line_number":17,"context_line":"            raise RequeueMessageException()"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification\u0027, exchange\u003d\u0027cinder\u0027)"},{"line_number":20,"context_line":"listener \u003d notify.get_notification_listener(transport, target,"},{"line_number":21,"context_line":"                                            endpoints,"},{"line_number":22,"context_line":"                                            executor,"},{"line_number":23,"context_line":"                                            serializer)"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"AAAATn%2F9jcQ%3D","line":20,"in_reply_to":"AAAATn%2F9ujY%3D","updated":"2013-12-12 08:23:35.000000000","message":"yep, done","commit_id":"0cd4737a26dc764cb57f89f947d5240ca62d189d"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"class Endpoint(object):"},{"line_number":15,"context_line":"    def warn(self, ctxt, publisher_id, event_type, payload, extras):"},{"line_number":16,"context_line":"        do_somehting(payload)"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification\u0027, exchange\u003d\u0027cinder\u0027)"},{"line_number":19,"context_line":"listener \u003d notify.get_notification_listener(transport, [target],"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"AAAATn%2F9C%2FA%3D","line":16,"updated":"2013-12-17 12:41:47.000000000","message":"typo - do_something()","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"class Endpoint(object):"},{"line_number":15,"context_line":"    def warn(self, ctxt, publisher_id, event_type, payload, extras):"},{"line_number":16,"context_line":"        do_somehting(payload)"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification\u0027, exchange\u003d\u0027cinder\u0027)"},{"line_number":19,"context_line":"listener \u003d notify.get_notification_listener(transport, [target],"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"AAAATn%2F88y4%3D","line":16,"in_reply_to":"AAAATn%2F9C%2FA%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":15,"context_line":"    def warn(self, ctxt, publisher_id, event_type, payload, extras):"},{"line_number":16,"context_line":"        do_somehting(payload)"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification\u0027, exchange\u003d\u0027cinder\u0027)"},{"line_number":19,"context_line":"listener \u003d notify.get_notification_listener(transport, [target],"},{"line_number":20,"context_line":"                                            endpoints,"},{"line_number":21,"context_line":"                                            executor,"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"AAAATn%2F9C%2Bs%3D","line":18,"updated":"2013-12-17 12:41:47.000000000","message":"This should be \u0027notifications\u0027 right?\n\nWhich makes me wonder - should we make this optional and allow a fallback to using conf.notification_topics ?","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":15,"context_line":"    def warn(self, ctxt, publisher_id, event_type, payload, extras):"},{"line_number":16,"context_line":"        do_somehting(payload)"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification\u0027, exchange\u003d\u0027cinder\u0027)"},{"line_number":19,"context_line":"listener \u003d notify.get_notification_listener(transport, [target],"},{"line_number":20,"context_line":"                                            endpoints,"},{"line_number":21,"context_line":"                                            executor,"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"AAAATn%2F88zA%3D","line":18,"in_reply_to":"AAAATn%2F9C%2Bs%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done, I will see later for the operational notification_topics.","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification\u0027, exchange\u003d\u0027cinder\u0027)"},{"line_number":19,"context_line":"listener \u003d notify.get_notification_listener(transport, [target],"},{"line_number":20,"context_line":"                                            endpoints,"},{"line_number":21,"context_line":"                                            executor,"},{"line_number":22,"context_line":"                                            serializer)"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"AAAATn%2F9C%2Bg%3D","line":20,"updated":"2013-12-17 12:41:47.000000000","message":"Should be\n\n [Endpoint()],","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":"target \u003d messaging.Target(topic\u003d\u0027notification\u0027, exchange\u003d\u0027cinder\u0027)"},{"line_number":19,"context_line":"listener \u003d notify.get_notification_listener(transport, [target],"},{"line_number":20,"context_line":"                                            endpoints,"},{"line_number":21,"context_line":"                                            executor,"},{"line_number":22,"context_line":"                                            serializer)"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"AAAATn%2F88y8%3D","line":20,"in_reply_to":"AAAATn%2F9C%2Bg%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"}],"doc/source/notification_listener.rst":[{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":".. autofunction:: get_notification_listener"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":".. autoclass:: NotificationDispatcher"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":".. autoclass:: MessageHandlingServer"},{"line_number":14,"context_line":"   :members:"}],"source_content_type":"text/x-rst","patch_set":12,"id":"AAAATn%2F9CgQ%3D","line":11,"updated":"2013-12-17 12:41:47.000000000","message":"This isn\u0027t part of the public API is it ?","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":".. autofunction:: get_notification_listener"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":".. autoclass:: NotificationDispatcher"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":".. autoclass:: MessageHandlingServer"},{"line_number":14,"context_line":"   :members:"}],"source_content_type":"text/x-rst","patch_set":12,"id":"AAAATn%2F88yE%3D","line":11,"in_reply_to":"AAAATn%2F9CgQ%3D","updated":"2013-12-18 16:09:57.000000000","message":"Removed","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"d86795922afed55d05a18744e250465eb7179e91","unresolved":false,"context_lines":[{"line_number":2,"context_line":"Notification Listener"},{"line_number":3,"context_line":"---------------------"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":".. automodule:: oslo.messaging.notification.listener"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":".. currentmodule:: oslo.messaging"},{"line_number":8,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"AAAAUH%2F%2BLdQ%3D","line":5,"updated":"2014-01-29 17:16:23.000000000","message":"Should be notify.listener\n\nSee how the nice module level docs with examples are missing from http://docs-draft.openstack.org/75/61675/7/check/gate-oslo.messaging-docs/5e77612/doc/build/html/notification_listener.html","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2213141b4a0d11638bd273bf40a20de95059f62f","unresolved":false,"context_lines":[{"line_number":2,"context_line":"Notification Listener"},{"line_number":3,"context_line":"---------------------"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":".. automodule:: oslo.messaging.notification.listener"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":".. currentmodule:: oslo.messaging"},{"line_number":8,"context_line":""}],"source_content_type":"text/x-rst","patch_set":14,"id":"AAAAUH%2F%2BFgI%3D","line":5,"in_reply_to":"AAAAUH%2F%2BLdQ%3D","updated":"2014-01-30 12:40:27.000000000","message":"Done","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"d86795922afed55d05a18744e250465eb7179e91","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":".. autofunction:: expected_exceptions"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":".. autoexception:: ExpectedException"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":".. autofunction:: get_local_context"}],"source_content_type":"text/x-rst","patch_set":14,"id":"AAAAUH%2F%2BJtI%3D","line":16,"updated":"2014-01-29 17:16:23.000000000","message":"I don\u0027t think the expected exceptions stuff is relevant to the notification listener, is it?\n\nexpected exceptions is about exceptions you expect to send back to the RPC client as a reply","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2213141b4a0d11638bd273bf40a20de95059f62f","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":".. autofunction:: expected_exceptions"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":".. autoexception:: ExpectedException"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":".. autofunction:: get_local_context"}],"source_content_type":"text/x-rst","patch_set":14,"id":"AAAAUH%2F%2BFf8%3D","line":16,"in_reply_to":"AAAAUH%2F%2BJtI%3D","updated":"2014-01-30 12:40:27.000000000","message":"Done","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"}],"oslo/messaging/_drivers/amqpdriver.py":[{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"b88394720e79077f9ae83df8ee20a4ec89b5eb20","unresolved":false,"context_lines":[{"line_number":414,"context_line":"        listener \u003d AMQPListener(self, target, conn)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"        conn.declare_topic_consumer(target.topic, listener)"},{"line_number":417,"context_line":"        if target.server:"},{"line_number":418,"context_line":"            conn.declare_topic_consumer(\u0027%s.%s\u0027 % (target.topic,"},{"line_number":419,"context_line":"                                                   target.server),"},{"line_number":420,"context_line":"                                        listener)"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BMQg%3D","line":417,"updated":"2013-11-29 12:50:01.000000000","message":"Hmm, this might leak through to the RPC side - i.e. you\u0027ll be able to create an RPC server which doesn\u0027t listen for host specific calls","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":414,"context_line":"        listener \u003d AMQPListener(self, target, conn)"},{"line_number":415,"context_line":""},{"line_number":416,"context_line":"        conn.declare_topic_consumer(target.topic, listener)"},{"line_number":417,"context_line":"        if target.server:"},{"line_number":418,"context_line":"            conn.declare_topic_consumer(\u0027%s.%s\u0027 % (target.topic,"},{"line_number":419,"context_line":"                                                   target.server),"},{"line_number":420,"context_line":"                                        listener)"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BLiw%3D","line":417,"in_reply_to":"AAAATn%2F%2BMQg%3D","updated":"2013-11-29 16:28:10.000000000","message":"yes, the notification don\u0027t need to listen to a host specific topic.","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"b88394720e79077f9ae83df8ee20a4ec89b5eb20","unresolved":false,"context_lines":[{"line_number":419,"context_line":"                                                   target.server),"},{"line_number":420,"context_line":"                                        listener)"},{"line_number":421,"context_line":"        if target.fanout:"},{"line_number":422,"context_line":"            conn.declare_fanout_consumer(target.topic, listener)"},{"line_number":423,"context_line":""},{"line_number":424,"context_line":"        return listener"},{"line_number":425,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BMQc%3D","line":422,"updated":"2013-11-29 12:50:01.000000000","message":"And this will break the RPC side, because we don\u0027t require people to set fanout\u003dTrue when creating their RPC servers\n\nI think I\u0027d be inclined to create a separate method here for notification listeners, rather than re-using listen() fully","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":419,"context_line":"                                                   target.server),"},{"line_number":420,"context_line":"                                        listener)"},{"line_number":421,"context_line":"        if target.fanout:"},{"line_number":422,"context_line":"            conn.declare_fanout_consumer(target.topic, listener)"},{"line_number":423,"context_line":""},{"line_number":424,"context_line":"        return listener"},{"line_number":425,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BLi4%3D","line":422,"in_reply_to":"AAAATn%2F%2BMQc%3D","updated":"2013-11-29 16:28:10.000000000","message":"Hum ok, I will create a new listening method for notification. It\u0027s now clear fir me that the topic consumer\u0027s needs for RPC server is different than the one for notification server.","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"}],"oslo/messaging/_drivers/impl_fake.py":[{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"d86795922afed55d05a18744e250465eb7179e91","unresolved":false,"context_lines":[{"line_number":162,"context_line":"        return listener"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"    def listen_for_notifications(self, topics):"},{"line_number":165,"context_line":"        exchange \u003d self._get_exchange(self._default_exchange)"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"        targets \u003d [messaging.Target(topic\u003d\u0027%s.%s\u0027 % (topic, priority))"},{"line_number":168,"context_line":"                   for topic, priority in topics]"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2BJsM%3D","line":165,"updated":"2014-01-29 17:16:23.000000000","message":"Hmm, interesting - why only the default exchange here?\n\nWhat if I want to listen for notifications on both the nova and cinder exchanges?","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2213141b4a0d11638bd273bf40a20de95059f62f","unresolved":false,"context_lines":[{"line_number":162,"context_line":"        return listener"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"    def listen_for_notifications(self, topics):"},{"line_number":165,"context_line":"        exchange \u003d self._get_exchange(self._default_exchange)"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"        targets \u003d [messaging.Target(topic\u003d\u0027%s.%s\u0027 % (topic, priority))"},{"line_number":168,"context_line":"                   for topic, priority in topics]"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2BFaY%3D","line":165,"in_reply_to":"AAAAUH%2F%2BJsM%3D","updated":"2014-01-30 12:40:27.000000000","message":"Because the FakeListener don\u0027t allow to listen on multiple exchanges, I will provide an other patch to add this to the FakeListener","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"}],"oslo/messaging/_drivers/impl_qpid.py":[{"author":{"_account_id":8784,"name":"Gordon Sim","email":"gsim@redhat.com","username":"gordonsim"},"change_message_id":"d27c7cfeacffef5af1171acf5d6881cdccdd7ac6","unresolved":false,"context_lines":[{"line_number":558,"context_line":"        self.ensure(None, self.session.acknowledge, message)"},{"line_number":559,"context_line":""},{"line_number":560,"context_line":"    def reject(self, message):"},{"line_number":561,"context_line":"        self.ensure(None, self.session.reject, message)"},{"line_number":562,"context_line":""},{"line_number":563,"context_line":"    def requeue(self, message):"},{"line_number":564,"context_line":"        self.ensure(None, self.session.release, message)"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BLTo%3D","line":561,"updated":"2013-11-29 17:27:27.000000000","message":"As things stand, this won\u0027t have any effect as the subscription is (from what I can see) always in accept-mode \u0027none\u0027, meaning there are no explicit accepts and messages are assumed delivered when sent out by thr broker.","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"797b7b9b83e938050afa78f8edbc8b541eb9eeb1","unresolved":false,"context_lines":[{"line_number":558,"context_line":"        self.ensure(None, self.session.acknowledge, message)"},{"line_number":559,"context_line":""},{"line_number":560,"context_line":"    def reject(self, message):"},{"line_number":561,"context_line":"        self.ensure(None, self.session.reject, message)"},{"line_number":562,"context_line":""},{"line_number":563,"context_line":"    def requeue(self, message):"},{"line_number":564,"context_line":"        self.ensure(None, self.session.release, message)"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BHQ0%3D","line":561,"in_reply_to":"AAAATn%2F%2BLTo%3D","updated":"2013-12-02 13:38:45.000000000","message":"Thanks for the comment\n\nWhen Mehdi splits out the reject() support into a separate patch, we can have a more detailed discussion on that review","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":8784,"name":"Gordon Sim","email":"gsim@redhat.com","username":"gordonsim"},"change_message_id":"d27c7cfeacffef5af1171acf5d6881cdccdd7ac6","unresolved":false,"context_lines":[{"line_number":561,"context_line":"        self.ensure(None, self.session.reject, message)"},{"line_number":562,"context_line":""},{"line_number":563,"context_line":"    def requeue(self, message):"},{"line_number":564,"context_line":"        self.ensure(None, self.session.release, message)"},{"line_number":565,"context_line":""},{"line_number":566,"context_line":"    def close(self):"},{"line_number":567,"context_line":"        \"\"\"Close/release this connection.\"\"\""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BLTY%3D","line":564,"updated":"2013-11-29 17:27:27.000000000","message":"As above for reject. It\u0027s also not clear what the purpose of release would be here. Since it is an exclusive subscription queue, all that will happen is that the message will be redelivered (albeit out of order). What is the use case for reject and requeue with notifications?\n\n(Usually with pub-sub, though you can have an ack if you want reliable subscriptions, you don\u0027t have/need a nack since each subscriber gets its own message anyway).","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"797b7b9b83e938050afa78f8edbc8b541eb9eeb1","unresolved":false,"context_lines":[{"line_number":561,"context_line":"        self.ensure(None, self.session.reject, message)"},{"line_number":562,"context_line":""},{"line_number":563,"context_line":"    def requeue(self, message):"},{"line_number":564,"context_line":"        self.ensure(None, self.session.release, message)"},{"line_number":565,"context_line":""},{"line_number":566,"context_line":"    def close(self):"},{"line_number":567,"context_line":"        \"\"\"Close/release this connection.\"\"\""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BHQw%3D","line":564,"in_reply_to":"AAAATn%2F%2BLTY%3D","updated":"2013-12-02 13:38:45.000000000","message":"Ditto for reject()","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"}],"oslo/messaging/_drivers/impl_rabbit.py":[{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"19d64f041336f26c83c2ce64643c5e5d020a5971","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                                \" ... skipping it.\"))"},{"line_number":164,"context_line":"            else:"},{"line_number":165,"context_line":"                LOG.exception(_(\"Failed to process message\""},{"line_number":166,"context_line":"                                \" ... will requeue.\"))"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def consume(self, *args, **kwargs):"},{"line_number":169,"context_line":"        \"\"\"Actually declare the consumer on the amqp channel.  This will"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F%2Bxws%3D","line":166,"updated":"2013-11-20 10:43:14.000000000","message":"don\u0027t you want to have\n\nelse:\n    message.ack()\n\nhere?","commit_id":"219cf7c52927a45bc9673cdea5635ff56484191f"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6d3254252f22266f99dd6bf8d01d1953383b910d","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                                \" ... skipping it.\"))"},{"line_number":164,"context_line":"            else:"},{"line_number":165,"context_line":"                LOG.exception(_(\"Failed to process message\""},{"line_number":166,"context_line":"                                \" ... will requeue.\"))"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def consume(self, *args, **kwargs):"},{"line_number":169,"context_line":"        \"\"\"Actually declare the consumer on the amqp channel.  This will"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F%2BqGk%3D","line":166,"in_reply_to":"AAAATn%2F%2Bxws%3D","updated":"2013-11-21 23:43:03.000000000","message":"I have completely remove \u0027ack_on_error\u0027 stuffs, it is not used by the driver abstraction layer, and not really useful.","commit_id":"219cf7c52927a45bc9673cdea5635ff56484191f"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"16356414e550a043d3381fd7c91ad759caed8c38","unresolved":false,"context_lines":[{"line_number":154,"context_line":"            callback(msg, message)"},{"line_number":155,"context_line":"        except Exception:"},{"line_number":156,"context_line":"            LOG.exception(_(\"Failed to process message ... skipping it.\"))"},{"line_number":157,"context_line":"            message.ack()"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"    def consume(self, *args, **kwargs):"},{"line_number":160,"context_line":"        \"\"\"Actually declare the consumer on the amqp channel.  This will"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BoI4%3D","line":157,"updated":"2013-11-22 09:27:29.000000000","message":"I still think it misses something. If there\u0027s no exception, there\u0027s no ack/reject.","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":154,"context_line":"            callback(msg, message)"},{"line_number":155,"context_line":"        except Exception:"},{"line_number":156,"context_line":"            LOG.exception(_(\"Failed to process message ... skipping it.\"))"},{"line_number":157,"context_line":"            message.ack()"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"    def consume(self, *args, **kwargs):"},{"line_number":160,"context_line":"        \"\"\"Actually declare the consumer on the amqp channel.  This will"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BLnU%3D","line":157,"in_reply_to":"AAAATn%2F%2BSew%3D","updated":"2013-11-29 16:28:10.000000000","message":"@doug, this is ack here (the message is the kombu object, not the oslo.messaging one)\n\n@Ben I have splitted this big patch, the \u0027ack_on_error removing stuff\u0027 will be in a separate commit with the explanation of why I want to remove it.","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"3c3cceee496734c44b48cc974e97f0d008855189","unresolved":false,"context_lines":[{"line_number":154,"context_line":"            callback(msg, message)"},{"line_number":155,"context_line":"        except Exception:"},{"line_number":156,"context_line":"            LOG.exception(_(\"Failed to process message ... skipping it.\"))"},{"line_number":157,"context_line":"            message.ack()"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"    def consume(self, *args, **kwargs):"},{"line_number":160,"context_line":"        \"\"\"Actually declare the consumer on the amqp channel.  This will"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BSew%3D","line":157,"in_reply_to":"AAAATn%2F%2Bb7Q%3D","updated":"2013-11-27 20:22:23.000000000","message":"Also, the behavior of the old code was to reject() on exception.\n\nTBH, I don\u0027t see what removing ack_on_error has to do with this feature anyway.","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"cc2759cd569700509623c0efe5aef643f6d71f47","unresolved":false,"context_lines":[{"line_number":154,"context_line":"            callback(msg, message)"},{"line_number":155,"context_line":"        except Exception:"},{"line_number":156,"context_line":"            LOG.exception(_(\"Failed to process message ... skipping it.\"))"},{"line_number":157,"context_line":"            message.ack()"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"    def consume(self, *args, **kwargs):"},{"line_number":160,"context_line":"        \"\"\"Actually declare the consumer on the amqp channel.  This will"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2Bb7Q%3D","line":157,"in_reply_to":"AAAATn%2F%2BoI4%3D","updated":"2013-11-26 04:20:28.000000000","message":"And is the method name ack() or acknowledge()?","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"}],"oslo/messaging/_drivers/impl_zmq.py":[{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"b88394720e79077f9ae83df8ee20a4ec89b5eb20","unresolved":false,"context_lines":[{"line_number":909,"context_line":""},{"line_number":910,"context_line":"        if self._url.hosts:"},{"line_number":911,"context_line":"            raise NotImplementedError(\u0027The ZeroMQ driver does not yet support \u0027"},{"line_number":912,"context_line":"                                      \u0027transport URLs\u0027)"},{"line_number":913,"context_line":""},{"line_number":914,"context_line":"    def _send(self, target, ctxt, message,"},{"line_number":915,"context_line":"              wait_for_reply\u003dNone, timeout\u003dNone, envelope\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BMQM%3D","line":912,"updated":"2013-11-29 12:50:01.000000000","message":"This seems completely unrelated? Separate commit?","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":909,"context_line":""},{"line_number":910,"context_line":"        if self._url.hosts:"},{"line_number":911,"context_line":"            raise NotImplementedError(\u0027The ZeroMQ driver does not yet support \u0027"},{"line_number":912,"context_line":"                                      \u0027transport URLs\u0027)"},{"line_number":913,"context_line":""},{"line_number":914,"context_line":"    def _send(self, target, ctxt, message,"},{"line_number":915,"context_line":"              wait_for_reply\u003dNone, timeout\u003dNone, envelope\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BLnE%3D","line":912,"in_reply_to":"AAAATn%2F%2BMQM%3D","updated":"2013-11-29 16:28:10.000000000","message":"Done","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"d86795922afed55d05a18744e250465eb7179e91","unresolved":false,"context_lines":[{"line_number":961,"context_line":""},{"line_number":962,"context_line":"    def listen_for_notifications(self, topics):"},{"line_number":963,"context_line":"        #note(sileht): this listener implementation is limited"},{"line_number":964,"context_line":"        # because zeromq doesn\u0027t support requeing message"},{"line_number":965,"context_line":"        conn \u003d create_connection(self.conf)"},{"line_number":966,"context_line":""},{"line_number":967,"context_line":"        listener \u003d ZmqListener(self, None)"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2BJr4%3D","line":964,"updated":"2014-01-29 17:16:23.000000000","message":"Isn\u0027t requeueing in the next patch?\n\nAlso, we prefer this format:\n\n  # NOTE(sileht): ...","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2213141b4a0d11638bd273bf40a20de95059f62f","unresolved":false,"context_lines":[{"line_number":961,"context_line":""},{"line_number":962,"context_line":"    def listen_for_notifications(self, topics):"},{"line_number":963,"context_line":"        #note(sileht): this listener implementation is limited"},{"line_number":964,"context_line":"        # because zeromq doesn\u0027t support requeing message"},{"line_number":965,"context_line":"        conn \u003d create_connection(self.conf)"},{"line_number":966,"context_line":""},{"line_number":967,"context_line":"        listener \u003d ZmqListener(self, None)"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2BFaU%3D","line":964,"in_reply_to":"AAAAUH%2F%2BJr4%3D","updated":"2014-01-30 12:40:27.000000000","message":"Moved in the correct patch","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"}],"oslo/messaging/_executors/base.py":[{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"cc2759cd569700509623c0efe5aef643f6d71f47","unresolved":false,"context_lines":[{"line_number":33,"context_line":"        self.raw_mode \u003d raw_mode"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def _dispatch(self, incoming):"},{"line_number":36,"context_line":"        if self.raw_mode:"},{"line_number":37,"context_line":"            self.callback(incoming)"},{"line_number":38,"context_line":"        else:"},{"line_number":39,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2Bb60%3D","line":36,"updated":"2013-11-26 04:20:28.000000000","message":"What does \"raw mode\" mean here? Can we come up with a more descriptive name? Does it mean \"don\u0027t treat the message like an RPC packet, just call the callback with it\"?","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"}],"oslo/messaging/notify/__init__.py":[{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"6de16fe9cb8ccaa141c9241d3261932b45a03c3c","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"__all__ \u003d [\u0027Notifier\u0027,"},{"line_number":17,"context_line":"           \u0027LoggingNotificationHandler\u0027,"},{"line_number":18,"context_line":"           \u0027get_notification_listener\u0027]"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from .notifier import *"},{"line_number":21,"context_line":"from .listener import *"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2FXKQ%3D","line":18,"updated":"2014-01-14 16:53:36.000000000","message":"If I\u0027m importing this as \"from oslo.messaging import notify\" and then calling \"notify.get_notification_listener\" the naming seems redundant. Does the function need to be \"get_notification_listener\" or can it just be \"get_listener\"?","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"d86795922afed55d05a18744e250465eb7179e91","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"__all__ \u003d [\u0027Notifier\u0027,"},{"line_number":17,"context_line":"           \u0027LoggingNotificationHandler\u0027,"},{"line_number":18,"context_line":"           \u0027get_notification_listener\u0027]"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from .notifier import *"},{"line_number":21,"context_line":"from .listener import *"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2BJrQ%3D","line":18,"in_reply_to":"AAAAUH%2F%2BOgA%3D","updated":"2014-01-29 17:16:23.000000000","message":"The latter - all our examples just do\n\n  from oslo import messaging\n\n  messaging...\n\nI\u0027d be tempted to hide the existence of the sub-modules :)","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"8d1d068ceb8c0aa2e2680f6ac30b49bbdab484a0","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"__all__ \u003d [\u0027Notifier\u0027,"},{"line_number":17,"context_line":"           \u0027LoggingNotificationHandler\u0027,"},{"line_number":18,"context_line":"           \u0027get_notification_listener\u0027]"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from .notifier import *"},{"line_number":21,"context_line":"from .listener import *"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2BOgA%3D","line":18,"in_reply_to":"AAAAUH%2F%2FOd4%3D","updated":"2014-01-28 22:03:48.000000000","message":"OK, which is the way we encourage people to import the function?","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"7f04a62bd2d57ca34a3d5b9a101756629007ea62","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"__all__ \u003d [\u0027Notifier\u0027,"},{"line_number":17,"context_line":"           \u0027LoggingNotificationHandler\u0027,"},{"line_number":18,"context_line":"           \u0027get_notification_listener\u0027]"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from .notifier import *"},{"line_number":21,"context_line":"from .listener import *"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2FOd4%3D","line":18,"in_reply_to":"AAAAUH%2F%2FXKQ%3D","updated":"2014-01-16 06:51:55.000000000","message":"Yes but the imporation scheme allow to use oslo.messaging.get_notification_listener too.","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"}],"oslo/messaging/notify/dispatcher.py":[{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"c0ea11f8517cbf8b76fa881ce9ca869ece6beb3e","unresolved":false,"context_lines":[{"line_number":65,"context_line":"                    method(ctxt, publisher_id, event_type, payload,"},{"line_number":66,"context_line":"                           extras\u003dextras)"},{"line_number":67,"context_line":"                finally:"},{"line_number":68,"context_line":"                    localcontext.clear_local_context()"}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAATn%2F9uio%3D","line":68,"updated":"2013-12-06 17:00:52.000000000","message":"What happens if we don\u0027t have any endpoint interested in this?\n\nI think I\u0027d expect it to not be pulled off the queue","commit_id":"0cd4737a26dc764cb57f89f947d5240ca62d189d"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"a54b308601d609c146b3536be7995a5df8d6d685","unresolved":false,"context_lines":[{"line_number":65,"context_line":"                    method(ctxt, publisher_id, event_type, payload,"},{"line_number":66,"context_line":"                           extras\u003dextras)"},{"line_number":67,"context_line":"                finally:"},{"line_number":68,"context_line":"                    localcontext.clear_local_context()"}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAATn%2F9iEo%3D","line":68,"in_reply_to":"AAAATn%2F9uio%3D","updated":"2013-12-12 08:23:35.000000000","message":"If the MessageHandlingServer ask to the dispatcher the list of the priorities that exist on each endpoints to only listen on those one, the dispatcher will always found a method to call.","commit_id":"0cd4737a26dc764cb57f89f947d5240ca62d189d"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"4e5cb8d4c234199050250faad2543213ce19da15","unresolved":false,"context_lines":[{"line_number":36,"context_line":"    @property"},{"line_number":37,"context_line":"    def priorities(self):"},{"line_number":38,"context_line":"        priorities \u003d set()"},{"line_number":39,"context_line":"        for priority in [\u0027audit\u0027, \u0027debug\u0027, \u0027info\u0027, \u0027warn\u0027, \u0027error\u0027,"},{"line_number":40,"context_line":"                         \u0027critical\u0027]:"},{"line_number":41,"context_line":"            for endpoint in self.endpoints:"},{"line_number":42,"context_line":"                if hasattr(endpoint, priority):"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9Fio%3D","line":39,"updated":"2013-12-16 22:46:36.000000000","message":"This list of priorities appeared in the patch on which this one is based, too. Can it move to a constant somewhere?","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":36,"context_line":"    @property"},{"line_number":37,"context_line":"    def priorities(self):"},{"line_number":38,"context_line":"        priorities \u003d set()"},{"line_number":39,"context_line":"        for priority in [\u0027audit\u0027, \u0027debug\u0027, \u0027info\u0027, \u0027warn\u0027, \u0027error\u0027,"},{"line_number":40,"context_line":"                         \u0027critical\u0027]:"},{"line_number":41,"context_line":"            for endpoint in self.endpoints:"},{"line_number":42,"context_line":"                if hasattr(endpoint, priority):"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88yA%3D","line":39,"in_reply_to":"AAAATn%2F9Fio%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"4e5cb8d4c234199050250faad2543213ce19da15","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        publisher_id \u003d message.get(\u0027publisher_id\u0027)"},{"line_number":57,"context_line":"        event_type \u003d message.get(\u0027event_type\u0027)"},{"line_number":58,"context_line":"        priority \u003d message.get(\u0027priority\u0027).lower()"},{"line_number":59,"context_line":"        payload \u003d self.serializer.deserialize_entity(ctxt,"},{"line_number":60,"context_line":"                                                     message.get(\u0027payload\u0027))"},{"line_number":61,"context_line":"        extras \u003d {"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9Fiw%3D","line":58,"updated":"2013-12-16 22:46:36.000000000","message":"If priority is not present, this will generate an error because None doesn\u0027t have a lower() method.","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        publisher_id \u003d message.get(\u0027publisher_id\u0027)"},{"line_number":57,"context_line":"        event_type \u003d message.get(\u0027event_type\u0027)"},{"line_number":58,"context_line":"        priority \u003d message.get(\u0027priority\u0027).lower()"},{"line_number":59,"context_line":"        payload \u003d self.serializer.deserialize_entity(ctxt,"},{"line_number":60,"context_line":"                                                     message.get(\u0027payload\u0027))"},{"line_number":61,"context_line":"        extras \u003d {"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88ow%3D","line":58,"in_reply_to":"AAAATn%2F9Fiw%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        extras \u003d {"},{"line_number":62,"context_line":"            \u0027message_id\u0027: message.get(\u0027message_id\u0027),"},{"line_number":63,"context_line":"            \u0027timestamp\u0027: message.get(\u0027timestamp\u0027)"},{"line_number":64,"context_line":"        }"},{"line_number":65,"context_line":"        for endpoint in self.endpoints:"},{"line_number":66,"context_line":"            if hasattr(endpoint, priority):"},{"line_number":67,"context_line":"                localcontext.set_local_context(ctxt)"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9Cfg%3D","line":64,"updated":"2013-12-17 12:41:47.000000000","message":"As I said elsewhere, let\u0027s leave extras for a separate patch","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        extras \u003d {"},{"line_number":62,"context_line":"            \u0027message_id\u0027: message.get(\u0027message_id\u0027),"},{"line_number":63,"context_line":"            \u0027timestamp\u0027: message.get(\u0027timestamp\u0027)"},{"line_number":64,"context_line":"        }"},{"line_number":65,"context_line":"        for endpoint in self.endpoints:"},{"line_number":66,"context_line":"            if hasattr(endpoint, priority):"},{"line_number":67,"context_line":"                localcontext.set_local_context(ctxt)"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88ws%3D","line":64,"in_reply_to":"AAAATn%2F9Cfg%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"4e5cb8d4c234199050250faad2543213ce19da15","unresolved":false,"context_lines":[{"line_number":66,"context_line":"            if hasattr(endpoint, priority):"},{"line_number":67,"context_line":"                localcontext.set_local_context(ctxt)"},{"line_number":68,"context_line":"                try:"},{"line_number":69,"context_line":"                    method \u003d getattr(endpoint, priority)"},{"line_number":70,"context_line":"                    method(ctxt, publisher_id, event_type, payload,"},{"line_number":71,"context_line":"                           extras\u003dextras)"},{"line_number":72,"context_line":"                finally:"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9Fdo%3D","line":69,"updated":"2013-12-16 22:46:36.000000000","message":"We know all of the priorities, and the list of endpoints is static. We should be able to build a mapping between priorities and the methods on the endpoints that want those priorities so we don\u0027t have to do this hasattr()/getattr() stuff every time a message comes in.\n\nIn __init__(), you can build the mapping between priority names and a list of methods to call on the endpoints. Then it is possible to do one lookup into that dictionary here before calling all of the functions found in the list.","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":66,"context_line":"            if hasattr(endpoint, priority):"},{"line_number":67,"context_line":"                localcontext.set_local_context(ctxt)"},{"line_number":68,"context_line":"                try:"},{"line_number":69,"context_line":"                    method \u003d getattr(endpoint, priority)"},{"line_number":70,"context_line":"                    method(ctxt, publisher_id, event_type, payload,"},{"line_number":71,"context_line":"                           extras\u003dextras)"},{"line_number":72,"context_line":"                finally:"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88xo%3D","line":69,"in_reply_to":"AAAATn%2F9CfY%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":66,"context_line":"            if hasattr(endpoint, priority):"},{"line_number":67,"context_line":"                localcontext.set_local_context(ctxt)"},{"line_number":68,"context_line":"                try:"},{"line_number":69,"context_line":"                    method \u003d getattr(endpoint, priority)"},{"line_number":70,"context_line":"                    method(ctxt, publisher_id, event_type, payload,"},{"line_number":71,"context_line":"                           extras\u003dextras)"},{"line_number":72,"context_line":"                finally:"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9CfY%3D","line":69,"in_reply_to":"AAAATn%2F9Fdo%3D","updated":"2013-12-17 12:41:47.000000000","message":"Agree","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"4e5cb8d4c234199050250faad2543213ce19da15","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                try:"},{"line_number":69,"context_line":"                    method \u003d getattr(endpoint, priority)"},{"line_number":70,"context_line":"                    method(ctxt, publisher_id, event_type, payload,"},{"line_number":71,"context_line":"                           extras\u003dextras)"},{"line_number":72,"context_line":"                finally:"},{"line_number":73,"context_line":"                    localcontext.clear_local_context()"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9FhI%3D","line":71,"updated":"2013-12-16 22:46:36.000000000","message":"The name \"extras\" seems a bit vague for these values. The two items included here seem like message metadata. Can we avoid passing a dictionary, and use a new class (even something based on namedtuple)?","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                try:"},{"line_number":69,"context_line":"                    method \u003d getattr(endpoint, priority)"},{"line_number":70,"context_line":"                    method(ctxt, publisher_id, event_type, payload,"},{"line_number":71,"context_line":"                           extras\u003dextras)"},{"line_number":72,"context_line":"                finally:"},{"line_number":73,"context_line":"                    localcontext.clear_local_context()"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88os%3D","line":71,"in_reply_to":"AAAATn%2F9FhI%3D","updated":"2013-12-18 16:09:57.000000000","message":"Moved in an other review","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"de440c45c84d64267683f1030d87f4736b6c251a","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"PRIORITIES \u003d [\u0027audit\u0027, \u0027debug\u0027, \u0027info\u0027, \u0027warn\u0027, \u0027error\u0027, \u0027critical\u0027, \u0027sample\u0027]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"class NotificationDispatcher(object):"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAATn%2F86oI%3D","line":27,"updated":"2013-12-18 20:39:36.000000000","message":"I imagine sample is going to be used for Ceilometer?\nLooks very specific.","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"6de16fe9cb8ccaa141c9241d3261932b45a03c3c","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"PRIORITIES \u003d [\u0027audit\u0027, \u0027debug\u0027, \u0027info\u0027, \u0027warn\u0027, \u0027error\u0027, \u0027critical\u0027, \u0027sample\u0027]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"class NotificationDispatcher(object):"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2FXKI%3D","line":27,"in_reply_to":"AAAATn%2F86oI%3D","updated":"2014-01-14 16:53:36.000000000","message":"It looks like PRIORITIES is being used to determine something that the endpoint instances should be able to tell us dynamically -- which priorities the dispatcher needs to pay attention to.","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2213141b4a0d11638bd273bf40a20de95059f62f","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"PRIORITIES \u003d [\u0027audit\u0027, \u0027debug\u0027, \u0027info\u0027, \u0027warn\u0027, \u0027error\u0027, \u0027critical\u0027, \u0027sample\u0027]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"class NotificationDispatcher(object):"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2BFm0%3D","line":27,"in_reply_to":"AAAAUH%2F%2FXKI%3D","updated":"2014-01-30 12:40:27.000000000","message":"Sample looks specific, but the notifier already have the \u0027sample\u0027 priorities.","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"d86795922afed55d05a18744e250465eb7179e91","unresolved":false,"context_lines":[{"line_number":39,"context_line":"    \"\"\""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    def __init__(self, targets, endpoints, serializer):"},{"line_number":42,"context_line":"        self.targets \u003d targets"},{"line_number":43,"context_line":"        self.endpoints \u003d endpoints"},{"line_number":44,"context_line":"        self.serializer \u003d serializer or msg_serializer.NoOpSerializer()"},{"line_number":45,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2BJq8%3D","line":42,"updated":"2014-01-29 17:16:23.000000000","message":"Yes, we should support target.exchange too","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2213141b4a0d11638bd273bf40a20de95059f62f","unresolved":false,"context_lines":[{"line_number":39,"context_line":"    \"\"\""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    def __init__(self, targets, endpoints, serializer):"},{"line_number":42,"context_line":"        self.targets \u003d targets"},{"line_number":43,"context_line":"        self.endpoints \u003d endpoints"},{"line_number":44,"context_line":"        self.serializer \u003d serializer or msg_serializer.NoOpSerializer()"},{"line_number":45,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2BFbU%3D","line":42,"in_reply_to":"AAAAUH%2F%2BJq8%3D","updated":"2014-01-30 12:40:27.000000000","message":"Done","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"d86795922afed55d05a18744e250465eb7179e91","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        self._topics \u003d set(itertools.product(topics, priorities))"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    def _listen(self, transport):"},{"line_number":57,"context_line":"        return transport._listen_for_notifications(self._topics)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def __call__(self, ctxt, message):"},{"line_number":60,"context_line":"        \"\"\"Dispatch an RPC message to the appropriate endpoint method."}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2BJqw%3D","line":57,"updated":"2014-01-29 17:16:23.000000000","message":"So, pass tuples of (exchange, topic, priority)? Or (target, priority) ?","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2213141b4a0d11638bd273bf40a20de95059f62f","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        self._topics \u003d set(itertools.product(topics, priorities))"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    def _listen(self, transport):"},{"line_number":57,"context_line":"        return transport._listen_for_notifications(self._topics)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def __call__(self, ctxt, message):"},{"line_number":60,"context_line":"        \"\"\"Dispatch an RPC message to the appropriate endpoint method."}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2BFbY%3D","line":57,"in_reply_to":"AAAAUH%2F%2BJqw%3D","updated":"2014-01-30 12:40:27.000000000","message":"Done","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"d86795922afed55d05a18744e250465eb7179e91","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        ctxt \u003d self.serializer.deserialize_context(ctxt)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"        publisher_id \u003d message.get(\u0027publisher_id\u0027)"},{"line_number":70,"context_line":"        event_type \u003d message.get(\u0027event_type\u0027)"},{"line_number":71,"context_line":"        priority \u003d message.get(\u0027priority\u0027, \u0027\u0027).lower()"},{"line_number":72,"context_line":"        if priority not in PRIORITIES:"},{"line_number":73,"context_line":"            LOG.warning(\u0027Unknown priority \"%s\"\u0027 % priority)"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2BJqc%3D","line":70,"updated":"2014-01-29 17:16:23.000000000","message":"I need to check this properly - but are we ok with KeyError being raised here if this is a malformed message?\n\nI guess that\u0027s what the RPC dispatcher does too - any reason we\u0027d have different semantics with notifications?","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2213141b4a0d11638bd273bf40a20de95059f62f","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        ctxt \u003d self.serializer.deserialize_context(ctxt)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"        publisher_id \u003d message.get(\u0027publisher_id\u0027)"},{"line_number":70,"context_line":"        event_type \u003d message.get(\u0027event_type\u0027)"},{"line_number":71,"context_line":"        priority \u003d message.get(\u0027priority\u0027, \u0027\u0027).lower()"},{"line_number":72,"context_line":"        if priority not in PRIORITIES:"},{"line_number":73,"context_line":"            LOG.warning(\u0027Unknown priority \"%s\"\u0027 % priority)"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2BFjA%3D","line":70,"in_reply_to":"AAAAUH%2F%2BJqc%3D","updated":"2014-01-30 12:40:27.000000000","message":"I have done this because RPC do the same think, I prefer having something like MalformedMessageException, WDYT?","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"}],"oslo/messaging/notify/listener.py":[{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"c0ea11f8517cbf8b76fa881ce9ca869ece6beb3e","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    :type serializer: Serializer"},{"line_number":59,"context_line":"    \"\"\""},{"line_number":60,"context_line":"    dispatcher \u003d notify_dispatcher.NotificationDispatcher(endpoints,"},{"line_number":61,"context_line":"                                                          serializer)"},{"line_number":62,"context_line":"    return msg_server.MessageHandlingServer(transport, targets,"},{"line_number":63,"context_line":"                                            dispatcher, executor,"},{"line_number":64,"context_line":"                                            mode\u003d\u0027notification\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAATn%2F9ui4%3D","line":61,"updated":"2013-12-06 17:00:52.000000000","message":"I\u0027d ask the dispatcher for a list of priorities we\u0027re interested here\n\nThere\u0027s no point in e.g. subscribing to the error topic if the dispatcher knows that we have no endpoints interested in that priority\n\n(ok, maybe that\u0027s an optimization for a future patch)","commit_id":"0cd4737a26dc764cb57f89f947d5240ca62d189d"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"a54b308601d609c146b3536be7995a5df8d6d685","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    :type serializer: Serializer"},{"line_number":59,"context_line":"    \"\"\""},{"line_number":60,"context_line":"    dispatcher \u003d notify_dispatcher.NotificationDispatcher(endpoints,"},{"line_number":61,"context_line":"                                                          serializer)"},{"line_number":62,"context_line":"    return msg_server.MessageHandlingServer(transport, targets,"},{"line_number":63,"context_line":"                                            dispatcher, executor,"},{"line_number":64,"context_line":"                                            mode\u003d\u0027notification\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAATn%2F9iF0%3D","line":61,"in_reply_to":"AAAATn%2F9ui4%3D","updated":"2013-12-12 08:23:35.000000000","message":"done","commit_id":"0cd4737a26dc764cb57f89f947d5240ca62d189d"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":15,"context_line":"#    under the License."},{"line_number":16,"context_line":"\"\"\""},{"line_number":17,"context_line":"A notification listener exposes a number of endpoints, each of which"},{"line_number":18,"context_line":"contain a set of methods. Each mehod corresponds to a notification priority."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"To create an notification listener, you supply a transport, target and a"},{"line_number":21,"context_line":"list of endpoints."}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9C9g%3D","line":18,"updated":"2013-12-17 12:41:47.000000000","message":"method","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":15,"context_line":"#    under the License."},{"line_number":16,"context_line":"\"\"\""},{"line_number":17,"context_line":"A notification listener exposes a number of endpoints, each of which"},{"line_number":18,"context_line":"contain a set of methods. Each mehod corresponds to a notification priority."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"To create an notification listener, you supply a transport, target and a"},{"line_number":21,"context_line":"list of endpoints."}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88oY%3D","line":18,"in_reply_to":"AAAATn%2F9C9g%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":35,"context_line":"handling requests, stop handling requests and wait for all in-process"},{"line_number":36,"context_line":"requests to complete."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"A notification listenerr class is provided for each supported I/O handling"},{"line_number":39,"context_line":"framework. Currently blocking and eventlet are available."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"A simple example of a notification listener with multiple endpoints might be::"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9C9U%3D","line":38,"updated":"2013-12-17 12:41:47.000000000","message":"Looks like you copied and pasted this from the server docs, but it\u0027s wrong - should be e.g.\n\n  Each notification listener is associated with an executor which integrates the listener\n  with a specific I/O handling framework. Currently, there are blocking and eventlet\n  executors available.","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":35,"context_line":"handling requests, stop handling requests and wait for all in-process"},{"line_number":36,"context_line":"requests to complete."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"A notification listenerr class is provided for each supported I/O handling"},{"line_number":39,"context_line":"framework. Currently blocking and eventlet are available."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"A simple example of a notification listener with multiple endpoints might be::"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88oQ%3D","line":38,"in_reply_to":"AAAATn%2F9C9U%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done, thanks for the correction","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    class ErrorEndpoint(object):"},{"line_number":51,"context_line":"        def error(self, ctxt, publisher_id, event_type, payload, extras):"},{"line_number":52,"context_line":"            do_somehting(payload)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    transport \u003d messaging.get_transport(cfg.CONF)"},{"line_number":55,"context_line":"    targets \u003d ["}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9C8s%3D","line":52,"updated":"2013-12-17 12:41:47.000000000","message":"do_something() :)\n\ntypo in both classes","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    class ErrorEndpoint(object):"},{"line_number":51,"context_line":"        def error(self, ctxt, publisher_id, event_type, payload, extras):"},{"line_number":52,"context_line":"            do_somehting(payload)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    transport \u003d messaging.get_transport(cfg.CONF)"},{"line_number":55,"context_line":"    targets \u003d ["}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88oA%3D","line":52,"in_reply_to":"AAAATn%2F9C8s%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done, I have copied/pasted this everywhere :)","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    transport \u003d messaging.get_transport(cfg.CONF)"},{"line_number":55,"context_line":"    targets \u003d ["},{"line_number":56,"context_line":"        messaging.Target(topic\u003d\u0027notification\u0027)"},{"line_number":57,"context_line":"        messaging.Target(topic\u003d\u0027notification_bis\u0027)"},{"line_number":58,"context_line":"    ]"},{"line_number":59,"context_line":"    endpoints \u003d ["}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9C8g%3D","line":56,"updated":"2013-12-17 12:41:47.000000000","message":"Since \u0027notifications\u0027 is the default, let\u0027s use that in the examples to avoid confusion","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    transport \u003d messaging.get_transport(cfg.CONF)"},{"line_number":55,"context_line":"    targets \u003d ["},{"line_number":56,"context_line":"        messaging.Target(topic\u003d\u0027notification\u0027)"},{"line_number":57,"context_line":"        messaging.Target(topic\u003d\u0027notification_bis\u0027)"},{"line_number":58,"context_line":"    ]"},{"line_number":59,"context_line":"    endpoints \u003d ["}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88ns%3D","line":56,"in_reply_to":"AAAATn%2F9C8g%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        messaging.Target(topic\u003d\u0027notification_bis\u0027)"},{"line_number":58,"context_line":"    ]"},{"line_number":59,"context_line":"    endpoints \u003d ["},{"line_number":60,"context_line":"        NotificationEndpoint(self),"},{"line_number":61,"context_line":"        ErrorEndpoint(),"},{"line_number":62,"context_line":"    ]"},{"line_number":63,"context_line":"    server \u003d messaging.get_notification_listener(transport, targets, endpoints)"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9C8U%3D","line":60,"updated":"2013-12-17 12:41:47.000000000","message":"You don\u0027t show it accepting a parameter, so don\u0027t pass self","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        messaging.Target(topic\u003d\u0027notification_bis\u0027)"},{"line_number":58,"context_line":"    ]"},{"line_number":59,"context_line":"    endpoints \u003d ["},{"line_number":60,"context_line":"        NotificationEndpoint(self),"},{"line_number":61,"context_line":"        ErrorEndpoint(),"},{"line_number":62,"context_line":"    ]"},{"line_number":63,"context_line":"    server \u003d messaging.get_notification_listener(transport, targets, endpoints)"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88nw%3D","line":60,"in_reply_to":"AAAATn%2F9C8U%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":64,"context_line":"    server.start()"},{"line_number":65,"context_line":"    server.wait()"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"A notifier send a notification on a topic with a priority, the notification"},{"line_number":68,"context_line":"listener will receive this notification if the topic of this one have been set"},{"line_number":69,"context_line":"in one of the targets and if an endpoint implements the method named like the"},{"line_number":70,"context_line":"priority"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9C8A%3D","line":67,"updated":"2013-12-17 12:41:47.000000000","message":"When a notifier sends ?","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":64,"context_line":"    server.start()"},{"line_number":65,"context_line":"    server.wait()"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"A notifier send a notification on a topic with a priority, the notification"},{"line_number":68,"context_line":"listener will receive this notification if the topic of this one have been set"},{"line_number":69,"context_line":"in one of the targets and if an endpoint implements the method named like the"},{"line_number":70,"context_line":"priority"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88ng%3D","line":67,"in_reply_to":"AAAATn%2F9C8A%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":67,"context_line":"A notifier send a notification on a topic with a priority, the notification"},{"line_number":68,"context_line":"listener will receive this notification if the topic of this one have been set"},{"line_number":69,"context_line":"in one of the targets and if an endpoint implements the method named like the"},{"line_number":70,"context_line":"priority"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"The first parameter to method invocations is always the request context"},{"line_number":73,"context_line":"supplied by the client."}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9C7U%3D","line":70,"updated":"2013-12-17 12:41:47.000000000","message":"I guess this is a bit odd\n\nYou can\u0027t listen for \u0027warn\u0027 priority on \u0027notification\u0027 and \u0027error\u0027 priority on \u0027notification_bis\u0027\n\nMaybe we should associate an endpoint with a target?\n\n  class NotificationEndpoint(object):\n\n        target \u003d messaging.Target(topic\u003d\u0027notifications\u0027)\n\n        def warn(self, ctxt, publisher_id, event_type, payload, extras):\n            do_something(payload)\n\nWDYT?","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":70,"context_line":"priority"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"The first parameter to method invocations is always the request context"},{"line_number":73,"context_line":"supplied by the client."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Parameters to endpoint methods are the request context supplied by the client,"},{"line_number":76,"context_line":"the publisher_id of the notification message, the event_type, the payload, and"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9C68%3D","line":73,"updated":"2013-12-17 12:41:47.000000000","message":"You can delete this line","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":70,"context_line":"priority"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"The first parameter to method invocations is always the request context"},{"line_number":73,"context_line":"supplied by the client."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Parameters to endpoint methods are the request context supplied by the client,"},{"line_number":76,"context_line":"the publisher_id of the notification message, the event_type, the payload, and"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88nQ%3D","line":73,"in_reply_to":"AAAATn%2F9C68%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Parameters to endpoint methods are the request context supplied by the client,"},{"line_number":76,"context_line":"the publisher_id of the notification message, the event_type, the payload, and"},{"line_number":77,"context_line":"a dict of \u0027extras\u0027 informations (timestamp/message_id)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"By supplying a serializer object, a listener can deserialize a request context"},{"line_number":80,"context_line":"and arguments from - and serialize return values to - primitive types."}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9C6w%3D","line":77,"updated":"2013-12-17 12:41:47.000000000","message":"I think we should consider the semantics of \u0027extras\u0027 separately - so please move that to a separate patch\n\ni.e. it\u0027s not an obvious addition, since it\u0027s not in the client API and it\u0027s not clear all drivers will be able to support the same \u0027extras\u0027","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":74,"context_line":""},{"line_number":75,"context_line":"Parameters to endpoint methods are the request context supplied by the client,"},{"line_number":76,"context_line":"the publisher_id of the notification message, the event_type, the payload, and"},{"line_number":77,"context_line":"a dict of \u0027extras\u0027 informations (timestamp/message_id)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"By supplying a serializer object, a listener can deserialize a request context"},{"line_number":80,"context_line":"and arguments from - and serialize return values to - primitive types."}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88nM%3D","line":77,"in_reply_to":"AAAATn%2F9C6w%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"4e5cb8d4c234199050250faad2543213ce19da15","unresolved":false,"context_lines":[{"line_number":84,"context_line":"from oslo.messaging import server as msg_server"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"def get_notification_listener(transport, targets, endpoints,"},{"line_number":88,"context_line":"                              executor\u003d\u0027blocking\u0027, serializer\u003dNone):"},{"line_number":89,"context_line":"    \"\"\"Construct an RPC server."},{"line_number":90,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9FgU%3D","line":87,"updated":"2013-12-16 22:46:36.000000000","message":"This function returns an entire server object, not a listener. Should it be get_notification_server()? See my comment on an earlier patch in the sequence about why a server only has one mode, though. I see Mark made comments on an earlier change in this review about not letting notification and RPC features allow the server to be misconfigured (i.e., no host-specific topic queue) so maybe that\u0027s the reason there are separate modes?","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":84,"context_line":"from oslo.messaging import server as msg_server"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"def get_notification_listener(transport, targets, endpoints,"},{"line_number":88,"context_line":"                              executor\u003d\u0027blocking\u0027, serializer\u003dNone):"},{"line_number":89,"context_line":"    \"\"\"Construct an RPC server."},{"line_number":90,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9C5k%3D","line":87,"in_reply_to":"AAAATn%2F9FgU%3D","updated":"2013-12-17 12:41:47.000000000","message":"For me, \u0027notification listener\u0027 is just what we want to call a \u0027server\u0027 in the context of notifications - it is a server, but you don\u0027t send to think of it that way\n\nWhy a server only has one mode ... you mean a server that can accept both RPCs and notifications?\n\nWhat do you think that API should look like?\n\nDoes it go back to the idea of a server having a listen() method? http://lists.openstack.org/pipermail/openstack-dev/2013-May/008960.html","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"def get_notification_listener(transport, targets, endpoints,"},{"line_number":88,"context_line":"                              executor\u003d\u0027blocking\u0027, serializer\u003dNone):"},{"line_number":89,"context_line":"    \"\"\"Construct an RPC server."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    The executor parameter controls how incoming messages will be received and"},{"line_number":92,"context_line":"    dispatched. By default, the most simple executor is used - the blocking"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9C5g%3D","line":89,"updated":"2013-12-17 12:41:47.000000000","message":"a notification listener","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"def get_notification_listener(transport, targets, endpoints,"},{"line_number":88,"context_line":"                              executor\u003d\u0027blocking\u0027, serializer\u003dNone):"},{"line_number":89,"context_line":"    \"\"\"Construct an RPC server."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    The executor parameter controls how incoming messages will be received and"},{"line_number":92,"context_line":"    dispatched. By default, the most simple executor is used - the blocking"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88nE%3D","line":89,"in_reply_to":"AAAATn%2F9C5g%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    :param transport: the messaging transport"},{"line_number":96,"context_line":"    :type transport: Transport"},{"line_number":97,"context_line":"    :param target: the exchange, topic to listen on"},{"line_number":98,"context_line":"    :type target: Target"},{"line_number":99,"context_line":"    :param endpoints: a list of endpoint objects"},{"line_number":100,"context_line":"    :type endpoints: list"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9C5Y%3D","line":97,"updated":"2013-12-17 12:41:47.000000000","message":"s/,/ and/","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    :param transport: the messaging transport"},{"line_number":96,"context_line":"    :type transport: Transport"},{"line_number":97,"context_line":"    :param target: the exchange, topic to listen on"},{"line_number":98,"context_line":"    :type target: Target"},{"line_number":99,"context_line":"    :param endpoints: a list of endpoint objects"},{"line_number":100,"context_line":"    :type endpoints: list"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88nA%3D","line":97,"in_reply_to":"AAAATn%2F9C5Y%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":104,"context_line":"    :type serializer: Serializer"},{"line_number":105,"context_line":"    \"\"\""},{"line_number":106,"context_line":"    dispatcher \u003d notify_dispatcher.NotificationDispatcher(endpoints,"},{"line_number":107,"context_line":"                                                          serializer)"},{"line_number":108,"context_line":"    return msg_server.MessageHandlingServer(transport, targets,"},{"line_number":109,"context_line":"                                            dispatcher, executor,"},{"line_number":110,"context_line":"                                            mode\u003d\u0027notification\u0027)"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9CeY%3D","line":107,"updated":"2013-12-17 12:41:47.000000000","message":"So, I\u0027m suggesting that the dispatcher takes over responsibility for calling transport.listen()\n\nThat ties in nicely to my idea about associating an endpoint with a target - the dispatcher looks at the endpoints to figure out what to pass to transport.listen_for_notifications()","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":104,"context_line":"    :type serializer: Serializer"},{"line_number":105,"context_line":"    \"\"\""},{"line_number":106,"context_line":"    dispatcher \u003d notify_dispatcher.NotificationDispatcher(endpoints,"},{"line_number":107,"context_line":"                                                          serializer)"},{"line_number":108,"context_line":"    return msg_server.MessageHandlingServer(transport, targets,"},{"line_number":109,"context_line":"                                            dispatcher, executor,"},{"line_number":110,"context_line":"                                            mode\u003d\u0027notification\u0027)"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88mo%3D","line":107,"in_reply_to":"AAAATn%2F9CeY%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"9bccd5bdb1ee4ff090e347fda593a275852d7115","unresolved":false,"context_lines":[{"line_number":107,"context_line":"                                                          serializer)"},{"line_number":108,"context_line":"    return msg_server.MessageHandlingServer(transport, targets,"},{"line_number":109,"context_line":"                                            dispatcher, executor,"},{"line_number":110,"context_line":"                                            mode\u003d\u0027notification\u0027)"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F9CeE%3D","line":110,"updated":"2013-12-17 12:41:47.000000000","message":"... and then you\u0027d just need to pass the dispatcher and executor to the server and there\u0027d be no explicit \u0027mode\u0027","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6eede1c4c2085ff0fe723854433caab53c6a3f04","unresolved":false,"context_lines":[{"line_number":107,"context_line":"                                                          serializer)"},{"line_number":108,"context_line":"    return msg_server.MessageHandlingServer(transport, targets,"},{"line_number":109,"context_line":"                                            dispatcher, executor,"},{"line_number":110,"context_line":"                                            mode\u003d\u0027notification\u0027)"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAATn%2F88mk%3D","line":110,"in_reply_to":"AAAATn%2F9CeE%3D","updated":"2013-12-18 16:09:57.000000000","message":"Done","commit_id":"d50b3da844853d7ec05067a5df2f7c5a4e4ad0df"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"d86795922afed55d05a18744e250465eb7179e91","unresolved":false,"context_lines":[{"line_number":17,"context_line":"A notification listener exposes a number of endpoints, each of which"},{"line_number":18,"context_line":"contain a set of methods. Each method corresponds to a notification priority."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"To create an notification listener, you supply a transport, target and a"},{"line_number":21,"context_line":"list of endpoints."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"A transport can be obtained simply by calling the get_transport() method::"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2BLaY%3D","line":20,"updated":"2014-01-29 17:16:23.000000000","message":"a notification (not \u0027an\u0027)\n\nlist of targets","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2213141b4a0d11638bd273bf40a20de95059f62f","unresolved":false,"context_lines":[{"line_number":17,"context_line":"A notification listener exposes a number of endpoints, each of which"},{"line_number":18,"context_line":"contain a set of methods. Each method corresponds to a notification priority."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"To create an notification listener, you supply a transport, target and a"},{"line_number":21,"context_line":"list of endpoints."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"A transport can be obtained simply by calling the get_transport() method::"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAUH%2F%2BFas%3D","line":20,"in_reply_to":"AAAAUH%2F%2BLaY%3D","updated":"2014-01-30 12:40:27.000000000","message":"Done","commit_id":"8cab51c4246ee032a89e90b18db5bd675a425794"}],"oslo/messaging/notify/subscriber.py":[{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"19d64f041336f26c83c2ce64643c5e5d020a5971","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    \"Raised if there is no endpoint which exposes the requested method.\""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    def __init__(self, method):"},{"line_number":28,"context_line":"        msg \u003d \"Endpoint does not support Notification method %s\" % method"},{"line_number":29,"context_line":"        super(NoSuchMethod, self).__init__(msg)"},{"line_number":30,"context_line":"        self.method \u003d method"},{"line_number":31,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F%2Bxvg%3D","line":28,"updated":"2013-11-20 10:43:14.000000000","message":"_() ?","commit_id":"219cf7c52927a45bc9673cdea5635ff56484191f"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6d3254252f22266f99dd6bf8d01d1953383b910d","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    \"Raised if there is no endpoint which exposes the requested method.\""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    def __init__(self, method):"},{"line_number":28,"context_line":"        msg \u003d \"Endpoint does not support Notification method %s\" % method"},{"line_number":29,"context_line":"        super(NoSuchMethod, self).__init__(msg)"},{"line_number":30,"context_line":"        self.method \u003d method"},{"line_number":31,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F%2Bp1Q%3D","line":28,"in_reply_to":"AAAATn%2F%2Bxvg%3D","updated":"2013-11-21 23:43:03.000000000","message":"All exceptions are not translated","commit_id":"219cf7c52927a45bc9673cdea5635ff56484191f"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"19d64f041336f26c83c2ce64643c5e5d020a5971","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    :param executor: name of a message executor - e.g. \u0027eventlet\u0027, \u0027blocking\u0027"},{"line_number":76,"context_line":"    :type executor: str"},{"line_number":77,"context_line":"    \"\"\""},{"line_number":78,"context_line":"    dispatcher \u003d NotificationDispatcher(endpoints)"},{"line_number":79,"context_line":"    return msg_server.MessageHandlingServer(transport, target,"},{"line_number":80,"context_line":"                                            dispatcher, executor,"},{"line_number":81,"context_line":"                                            raw_mode\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F%2BxtY%3D","line":78,"updated":"2013-11-20 10:43:14.000000000","message":"Might be cool to be able to provide one\u0027s own dispatcher? Do the other parts of oslo.messaging always impose theirs?","commit_id":"219cf7c52927a45bc9673cdea5635ff56484191f"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6d3254252f22266f99dd6bf8d01d1953383b910d","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    :param executor: name of a message executor - e.g. \u0027eventlet\u0027, \u0027blocking\u0027"},{"line_number":76,"context_line":"    :type executor: str"},{"line_number":77,"context_line":"    \"\"\""},{"line_number":78,"context_line":"    dispatcher \u003d NotificationDispatcher(endpoints)"},{"line_number":79,"context_line":"    return msg_server.MessageHandlingServer(transport, target,"},{"line_number":80,"context_line":"                                            dispatcher, executor,"},{"line_number":81,"context_line":"                                            raw_mode\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F%2BqD0%3D","line":78,"in_reply_to":"AAAATn%2F%2BxtY%3D","updated":"2013-11-21 23:43:03.000000000","message":"Yes the rpc server code does the same things. But I have made some changes to call the process_notification method of all endpoints instead of the first one.\n\nThis dispatcher dispatch to process_notification method of each endpoints.","commit_id":"219cf7c52927a45bc9673cdea5635ff56484191f"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"b88394720e79077f9ae83df8ee20a4ec89b5eb20","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class NotificationDispatcher(object):"},{"line_number":34,"context_line":"    \"\"\"A message dispatcher which understands Notification messages."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    A MessageHandlingServer is constructed by passing a callable dispatcher"},{"line_number":37,"context_line":"    which is invoked with context and message dictionaries each time a message"},{"line_number":38,"context_line":"    is received."}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BMPQ%3D","line":35,"updated":"2013-11-29 12:50:01.000000000","message":"We could do with a nice overview and examples like we have in http://docs.openstack.org/developer/oslo.messaging/server.html","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class NotificationDispatcher(object):"},{"line_number":34,"context_line":"    \"\"\"A message dispatcher which understands Notification messages."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    A MessageHandlingServer is constructed by passing a callable dispatcher"},{"line_number":37,"context_line":"    which is invoked with context and message dictionaries each time a message"},{"line_number":38,"context_line":"    is received."}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BLoI%3D","line":35,"in_reply_to":"AAAATn%2F%2BMPQ%3D","updated":"2013-11-29 16:28:10.000000000","message":"Ack","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"b88394720e79077f9ae83df8ee20a4ec89b5eb20","unresolved":false,"context_lines":[{"line_number":41,"context_line":"    message to the endpoints"},{"line_number":42,"context_line":"    \"\"\""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    def __init__(self, endpoints, method\u003d\u0027process_notification\u0027):"},{"line_number":45,"context_line":"        self.endpoints \u003d endpoints"},{"line_number":46,"context_line":"        self.method \u003d method"},{"line_number":47,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BMOM%3D","line":44,"updated":"2013-11-29 12:50:01.000000000","message":"Again, I think we should reflect the sender side API - i.e. look for \u0027info()\u0027 etc. methods","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":41,"context_line":"    message to the endpoints"},{"line_number":42,"context_line":"    \"\"\""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    def __init__(self, endpoints, method\u003d\u0027process_notification\u0027):"},{"line_number":45,"context_line":"        self.endpoints \u003d endpoints"},{"line_number":46,"context_line":"        self.method \u003d method"},{"line_number":47,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BLsk%3D","line":44,"in_reply_to":"AAAATn%2F%2BMOM%3D","updated":"2013-11-29 16:28:10.000000000","message":"yeah great idea I will try to do that.","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"b88394720e79077f9ae83df8ee20a4ec89b5eb20","unresolved":false,"context_lines":[{"line_number":45,"context_line":"        self.endpoints \u003d endpoints"},{"line_number":46,"context_line":"        self.method \u003d method"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def __call__(self, message):"},{"line_number":49,"context_line":"        \"\"\"Dispatch an RPC message to the appropriate endpoint method."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        :param message: the raw notification message"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BMOU%3D","line":48,"updated":"2013-11-29 12:50:01.000000000","message":"We should make sure to get the context here and pass it to the user\n\nAlso, I don\u0027t love that we have a driver-specific object (e.g. AMQPIncomingMessage) being passed to the user. It\u0027s an implementation detail. The main reason you\u0027re doing that is to expose the acknowledge(), reject() and requeue() methods ... so I\u0027m very interested in discussing that design further.","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":45,"context_line":"        self.endpoints \u003d endpoints"},{"line_number":46,"context_line":"        self.method \u003d method"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def __call__(self, message):"},{"line_number":49,"context_line":"        \"\"\"Dispatch an RPC message to the appropriate endpoint method."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        :param message: the raw notification message"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BLrs%3D","line":48,"in_reply_to":"AAAATn%2F%2BMOU%3D","updated":"2013-11-29 16:28:10.000000000","message":"The other idea is  to create 2 exceptions (like: RejectMessage/RequeueMessage) that the callback need to throw to requeue/reject the message, otherwise the message is acknowledged. So only the dispatcher access to the IncomingMessage not the user callback method.","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"cc2759cd569700509623c0efe5aef643f6d71f47","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        :raises: NoSuchMethod"},{"line_number":54,"context_line":"        \"\"\""},{"line_number":55,"context_line":"        found \u003d False"},{"line_number":56,"context_line":"        for endpoint in self.endpoints:"},{"line_number":57,"context_line":"            if hasattr(endpoint, self.method):"},{"line_number":58,"context_line":"                found \u003d True"},{"line_number":59,"context_line":"                getattr(endpoint, self.method)(message)"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2Bb7U%3D","line":56,"updated":"2013-11-26 04:20:28.000000000","message":"The list of valid endpoints can be determined in __init__ and we do not need to wait for a message to come in to report the error. Is the intent for subclasses to change the lookup logic to not use a single method name, but somehow map the notification messages to different methods?","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":53,"context_line":"        :raises: NoSuchMethod"},{"line_number":54,"context_line":"        \"\"\""},{"line_number":55,"context_line":"        found \u003d False"},{"line_number":56,"context_line":"        for endpoint in self.endpoints:"},{"line_number":57,"context_line":"            if hasattr(endpoint, self.method):"},{"line_number":58,"context_line":"                found \u003d True"},{"line_number":59,"context_line":"                getattr(endpoint, self.method)(message)"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BLig%3D","line":56,"in_reply_to":"AAAATn%2F%2Bb7U%3D","updated":"2013-11-29 16:28:10.000000000","message":"I will create the info/debug/error/warn/.. methods.","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"b88394720e79077f9ae83df8ee20a4ec89b5eb20","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    :param transport: the messaging transport"},{"line_number":73,"context_line":"    :type transport: Transport"},{"line_number":74,"context_line":"    :param target: the exchange, topic and server to listen on"},{"line_number":75,"context_line":"    :type target: Target"},{"line_number":76,"context_line":"    :param endpoints: a list of endpoint objects"},{"line_number":77,"context_line":"    :type endpoints: list"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BMPI%3D","line":74,"updated":"2013-11-29 12:50:01.000000000","message":"I *think* we\u0027re just using exchange and topic - don\u0027t need server","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    :param transport: the messaging transport"},{"line_number":73,"context_line":"    :type transport: Transport"},{"line_number":74,"context_line":"    :param target: the exchange, topic and server to listen on"},{"line_number":75,"context_line":"    :type target: Target"},{"line_number":76,"context_line":"    :param endpoints: a list of endpoint objects"},{"line_number":77,"context_line":"    :type endpoints: list"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BLiY%3D","line":74,"in_reply_to":"AAAATn%2F%2BMPI%3D","updated":"2013-11-29 16:28:10.000000000","message":"ack","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"b88394720e79077f9ae83df8ee20a4ec89b5eb20","unresolved":false,"context_lines":[{"line_number":76,"context_line":"    :param endpoints: a list of endpoint objects"},{"line_number":77,"context_line":"    :type endpoints: list"},{"line_number":78,"context_line":"    :param executor: name of a message executor - e.g. \u0027eventlet\u0027, \u0027blocking\u0027"},{"line_number":79,"context_line":"    :type executor: str"},{"line_number":80,"context_line":"    \"\"\""},{"line_number":81,"context_line":"    dispatcher \u003d NotificationDispatcher(endpoints)"},{"line_number":82,"context_line":"    return msg_server.MessageHandlingServer(transport, target,"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BMO8%3D","line":79,"updated":"2013-11-29 12:50:01.000000000","message":"Also need serializer","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":76,"context_line":"    :param endpoints: a list of endpoint objects"},{"line_number":77,"context_line":"    :type endpoints: list"},{"line_number":78,"context_line":"    :param executor: name of a message executor - e.g. \u0027eventlet\u0027, \u0027blocking\u0027"},{"line_number":79,"context_line":"    :type executor: str"},{"line_number":80,"context_line":"    \"\"\""},{"line_number":81,"context_line":"    dispatcher \u003d NotificationDispatcher(endpoints)"},{"line_number":82,"context_line":"    return msg_server.MessageHandlingServer(transport, target,"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BLiU%3D","line":79,"in_reply_to":"AAAATn%2F%2BMO8%3D","updated":"2013-11-29 16:28:10.000000000","message":"sure.","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"}],"oslo/messaging/target.py":[{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"19d64f041336f26c83c2ce64643c5e5d020a5971","unresolved":false,"context_lines":[{"line_number":57,"context_line":"      servers listening on a topic by setting fanout to ``True``, rather than"},{"line_number":58,"context_line":"      just one of them."},{"line_number":59,"context_line":"    :type fanout: bool"},{"line_number":60,"context_line":"    :param no_ack: Server don\u0027t acknowledge automatically the received message"},{"line_number":61,"context_line":"    :type no_ack: bool"},{"line_number":62,"context_line":"    \"\"\""},{"line_number":63,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F%2BxyQ%3D","line":60,"updated":"2013-11-20 10:43:14.000000000","message":"It seems to me it will be simpler to rename this to \u0027ack\u0027 and have ack\u003dTrue by default.\n\nHaving code doing \"if not no_ack\" sounds dumb :)","commit_id":"219cf7c52927a45bc9673cdea5635ff56484191f"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"6d3254252f22266f99dd6bf8d01d1953383b910d","unresolved":false,"context_lines":[{"line_number":57,"context_line":"      servers listening on a topic by setting fanout to ``True``, rather than"},{"line_number":58,"context_line":"      just one of them."},{"line_number":59,"context_line":"    :type fanout: bool"},{"line_number":60,"context_line":"    :param no_ack: Server don\u0027t acknowledge automatically the received message"},{"line_number":61,"context_line":"    :type no_ack: bool"},{"line_number":62,"context_line":"    \"\"\""},{"line_number":63,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F%2BqDw%3D","line":60,"in_reply_to":"AAAATn%2F%2BxyQ%3D","updated":"2013-11-21 23:43:03.000000000","message":"Sure, done :)","commit_id":"219cf7c52927a45bc9673cdea5635ff56484191f"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"b88394720e79077f9ae83df8ee20a4ec89b5eb20","unresolved":false,"context_lines":[{"line_number":58,"context_line":"      just one of them."},{"line_number":59,"context_line":"    :type fanout: bool"},{"line_number":60,"context_line":"    :param ack: Server acknowledge automatically the received message"},{"line_number":61,"context_line":"    :type ack: bool"},{"line_number":62,"context_line":"    \"\"\""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def __init__(self, exchange\u003dNone, topic\u003dNone, namespace\u003dNone,"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BMNY%3D","line":61,"updated":"2013-11-29 12:50:01.000000000","message":"Hmm, this doesn\u0027t immediately seem to obviously be a target property\n\nI think about target as primarily expressing how the sender side addresses where it wants messages to go ... and then we re-use it on the server side to express \"what addresses I want to receive from\"\n\nSo, an attribute which is just used on the server side doesn\u0027t make much sense to me","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"fc2ed61515707064b032369869c0a9fa802fe634","unresolved":false,"context_lines":[{"line_number":58,"context_line":"      just one of them."},{"line_number":59,"context_line":"    :type fanout: bool"},{"line_number":60,"context_line":"    :param ack: Server acknowledge automatically the received message"},{"line_number":61,"context_line":"    :type ack: bool"},{"line_number":62,"context_line":"    \"\"\""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def __init__(self, exchange\u003dNone, topic\u003dNone, namespace\u003dNone,"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F%2BLlM%3D","line":61,"in_reply_to":"AAAATn%2F%2BMNY%3D","updated":"2013-11-29 16:28:10.000000000","message":"Yes, I understand, I think by replacing the manual acknowledgement by the Exception system, I think I can move this in the (new) listen_notification method of the Driver (and perhaps remove it completely).","commit_id":"4413f520041dc080e51ab212f85741a3549d3a09"}],"oslo/messaging/transport.py":[{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"eed01d965587496416ed5f00a9872c83c465cb9e","unresolved":false,"context_lines":[{"line_number":104,"context_line":"            if not target.topic:"},{"line_number":105,"context_line":"                raise exceptions.InvalidTarget(\u0027A target must have \u0027"},{"line_number":106,"context_line":"                                               \u0027topic specified\u0027,"},{"line_number":107,"context_line":"                                               target)"},{"line_number":108,"context_line":"        return self._driver.listen_for_notifications(targets_and_priorities)"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    def cleanup(self):"}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAAUX%2F%2FRXo%3D","line":107,"updated":"2014-02-14 12:00:46.000000000","message":"This check is new between revision 15 and 16, but you didn\u0027t mention it and it\u0027s not in response to a review comment?\n\nPlease call out changes between revisions ... makes the reviewer\u0027s life difficult otherwise\n\n... ah ok, I get it - I pointed out that the no topic test was testing with an RPC server and to fix that you needed this change","commit_id":"e8619d273a572e5763286ab7384713d1813a194a"}],"tests/test_notify_dispatcher.py":[{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"89c927b2dc2f14971b740c4a936ebde52b6304fe","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"class WarnEndpoint(object):"},{"line_number":27,"context_line":"    def warn(self, ctxt, publisher_id, event_type, payload, extras):"},{"line_number":28,"context_line":"        pass"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAATn%2F91UE%3D","line":27,"updated":"2013-12-05 13:24:47.000000000","message":"That should be @staticmethod but well, that\u0027s ok :)","commit_id":"0cd4737a26dc764cb57f89f947d5240ca62d189d"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"a54b308601d609c146b3536be7995a5df8d6d685","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"class WarnEndpoint(object):"},{"line_number":27,"context_line":"    def warn(self, ctxt, publisher_id, event_type, payload, extras):"},{"line_number":28,"context_line":"        pass"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAATn%2F9jbo%3D","line":27,"in_reply_to":"AAAATn%2F91UE%3D","updated":"2013-12-12 08:23:35.000000000","message":"No staticmethod because of a weird mox issue, but fixed now with mock :)","commit_id":"0cd4737a26dc764cb57f89f947d5240ca62d189d"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"89c927b2dc2f14971b740c4a936ebde52b6304fe","unresolved":false,"context_lines":[{"line_number":33,"context_line":"        pass"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"class BothEndpoint(object):"},{"line_number":37,"context_line":"    def warn(self, ctxt, publisher_id, event_type, payload, extras):"},{"line_number":38,"context_line":"        pass"},{"line_number":39,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAATn%2F91UQ%3D","line":36,"updated":"2013-12-05 13:24:47.000000000","message":"I wonder why you didn\u0027t inherited from the two classes above, but why not.","commit_id":"0cd4737a26dc764cb57f89f947d5240ca62d189d"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"a54b308601d609c146b3536be7995a5df8d6d685","unresolved":false,"context_lines":[{"line_number":33,"context_line":"        pass"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"class BothEndpoint(object):"},{"line_number":37,"context_line":"    def warn(self, ctxt, publisher_id, event_type, payload, extras):"},{"line_number":38,"context_line":"        pass"},{"line_number":39,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAATn%2F9jbk%3D","line":36,"in_reply_to":"AAAATn%2F91UQ%3D","updated":"2013-12-12 08:23:35.000000000","message":"Done","commit_id":"0cd4737a26dc764cb57f89f947d5240ca62d189d"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"89c927b2dc2f14971b740c4a936ebde52b6304fe","unresolved":false,"context_lines":[{"line_number":103,"context_line":"            if method_name:"},{"line_number":104,"context_line":"                for endpoint_idx in self.dispatch_to[\u0027endpoints\u0027]:"},{"line_number":105,"context_line":"                    endpoint \u003d endpoints[endpoint_idx]"},{"line_number":106,"context_line":"                    self.mox.StubOutWithMock(endpoint, method_name)"},{"line_number":107,"context_line":"                    method \u003d getattr(endpoint, method_name)"},{"line_number":108,"context_line":"                    method({}, self.msg[\u0027publisher_id\u0027],"},{"line_number":109,"context_line":"                           self.msg[\u0027event_type\u0027],"}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAATn%2F91T8%3D","line":106,"updated":"2013-12-05 13:24:47.000000000","message":"Mox… Hmpf.","commit_id":"0cd4737a26dc764cb57f89f947d5240ca62d189d"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"a54b308601d609c146b3536be7995a5df8d6d685","unresolved":false,"context_lines":[{"line_number":103,"context_line":"            if method_name:"},{"line_number":104,"context_line":"                for endpoint_idx in self.dispatch_to[\u0027endpoints\u0027]:"},{"line_number":105,"context_line":"                    endpoint \u003d endpoints[endpoint_idx]"},{"line_number":106,"context_line":"                    self.mox.StubOutWithMock(endpoint, method_name)"},{"line_number":107,"context_line":"                    method \u003d getattr(endpoint, method_name)"},{"line_number":108,"context_line":"                    method({}, self.msg[\u0027publisher_id\u0027],"},{"line_number":109,"context_line":"                           self.msg[\u0027event_type\u0027],"}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAATn%2F9iHU%3D","line":106,"in_reply_to":"AAAATn%2F91T8%3D","updated":"2013-12-12 08:23:35.000000000","message":"Just a copy/paste of an other test, moved to mock now","commit_id":"0cd4737a26dc764cb57f89f947d5240ca62d189d"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"5c4c48527a9aa01d9ddc215d8afda6fddfb7bef8","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                    self.assertEqual(endpoints[i].call_count, 0)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    @mock.patch(\u0027oslo.messaging.notify.dispatcher.LOG\u0027)"},{"line_number":91,"context_line":"    def test_dispatcher_unknown_prio(self, mylog):"},{"line_number":92,"context_line":"        msg \u003d notification_msg.copy()"},{"line_number":93,"context_line":"        msg[\u0027priority\u0027] \u003d \u0027what???\u0027"},{"line_number":94,"context_line":"        dispatcher \u003d notify_dispatcher.NotificationDispatcher([mock.Mock()],"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAUH%2F99ng%3D","line":91,"updated":"2014-01-31 16:19:58.000000000","message":"Hmm, you don\u0027t want to run this for each of the scenarios - make it a separate test case?","commit_id":"8fa721ba19a5eeb6a194f984de2adf4d99a2deb8"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"bb694140904d86679308cae3246ee4058b51d2d0","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                    self.assertEqual(endpoints[i].call_count, 0)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    @mock.patch(\u0027oslo.messaging.notify.dispatcher.LOG\u0027)"},{"line_number":91,"context_line":"    def test_dispatcher_unknown_prio(self, mylog):"},{"line_number":92,"context_line":"        msg \u003d notification_msg.copy()"},{"line_number":93,"context_line":"        msg[\u0027priority\u0027] \u003d \u0027what???\u0027"},{"line_number":94,"context_line":"        dispatcher \u003d notify_dispatcher.NotificationDispatcher([mock.Mock()],"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAUH%2F9tEk%3D","line":91,"in_reply_to":"AAAAUH%2F99ng%3D","updated":"2014-02-04 20:25:03.000000000","message":"Done","commit_id":"8fa721ba19a5eeb6a194f984de2adf4d99a2deb8"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"eed01d965587496416ed5f00a9872c83c465cb9e","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                    self.assertEqual(endpoints[i].call_count, 0)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    @mock.patch(\u0027oslo.messaging.notify.dispatcher.LOG\u0027)"},{"line_number":91,"context_line":"    def test_dispatcher_unknown_prio(self, mylog):"},{"line_number":92,"context_line":"        msg \u003d notification_msg.copy()"},{"line_number":93,"context_line":"        msg[\u0027priority\u0027] \u003d \u0027what???\u0027"},{"line_number":94,"context_line":"        dispatcher \u003d notify_dispatcher.NotificationDispatcher([mock.Mock()],"}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAAUX%2F%2FRWA%3D","line":91,"updated":"2014-02-14 12:00:46.000000000","message":"Didn\u0027t handle my comment in patch 15 about this:\n\nHmm, you don\u0027t want to run this for each of the scenarios - make it a separate test case?\n\nI\u0027ve pushed I5ad738c79e828f15c43e6da77a68cf8db30d5537 to do this","commit_id":"e8619d273a572e5763286ab7384713d1813a194a"}],"tests/test_notify_listener.py":[{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"5c4c48527a9aa01d9ddc215d8afda6fddfb7bef8","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    def test_no_target_topic(self):"},{"line_number":97,"context_line":"        transport \u003d messaging.get_transport(self.conf, url\u003d\u0027fake:\u0027)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        server \u003d messaging.get_rpc_server(transport,"},{"line_number":100,"context_line":"                                          messaging.Target(),"},{"line_number":101,"context_line":"                                          [])"},{"line_number":102,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAUH%2F99q4%3D","line":99,"updated":"2014-01-31 16:19:58.000000000","message":"Wrong method :)","commit_id":"8fa721ba19a5eeb6a194f984de2adf4d99a2deb8"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"bb694140904d86679308cae3246ee4058b51d2d0","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    def test_no_target_topic(self):"},{"line_number":97,"context_line":"        transport \u003d messaging.get_transport(self.conf, url\u003d\u0027fake:\u0027)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        server \u003d messaging.get_rpc_server(transport,"},{"line_number":100,"context_line":"                                          messaging.Target(),"},{"line_number":101,"context_line":"                                          [])"},{"line_number":102,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAUH%2F9tzM%3D","line":99,"in_reply_to":"AAAAUH%2F99q4%3D","updated":"2014-02-04 20:25:03.000000000","message":"Done","commit_id":"8fa721ba19a5eeb6a194f984de2adf4d99a2deb8"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"5c4c48527a9aa01d9ddc215d8afda6fddfb7bef8","unresolved":false,"context_lines":[{"line_number":128,"context_line":""},{"line_number":129,"context_line":"        notifier.info({}, \u0027an_event.start\u0027, \u0027test message\u0027)"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        time.sleep(0.1)"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"        endpoint.info.assert_called_once_with("},{"line_number":134,"context_line":"            {}, \u0027testpublisher\u0027, \u0027an_event.start\u0027, \u0027test message\u0027)"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAUH%2F99qE%3D","line":131,"updated":"2014-01-31 16:19:58.000000000","message":"I\u0027m not loving that we have to sleep - can we not properly synchronize with the listener thread?","commit_id":"8fa721ba19a5eeb6a194f984de2adf4d99a2deb8"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"bb694140904d86679308cae3246ee4058b51d2d0","unresolved":false,"context_lines":[{"line_number":128,"context_line":""},{"line_number":129,"context_line":"        notifier.info({}, \u0027an_event.start\u0027, \u0027test message\u0027)"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        time.sleep(0.1)"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"        endpoint.info.assert_called_once_with("},{"line_number":134,"context_line":"            {}, \u0027testpublisher\u0027, \u0027an_event.start\u0027, \u0027test message\u0027)"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAUH%2F9tzQ%3D","line":131,"in_reply_to":"AAAAUH%2F99qE%3D","updated":"2014-02-04 20:25:03.000000000","message":"Done","commit_id":"8fa721ba19a5eeb6a194f984de2adf4d99a2deb8"}]}
