)]}'
{"searchlight/listener.py":[{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"7789c4fa2dd16887cfb4aaae4df8f48ece247249","unresolved":false,"context_lines":[{"line_number":84,"context_line":"            LOG.debug(\"Processing event \u0027%s\u0027 with plugin \u0027%s\u0027\","},{"line_number":85,"context_line":"                      event_type_l, plugin.name)"},{"line_number":86,"context_line":"            handler \u003d plugin.get_notification_handler()"},{"line_number":87,"context_line":"            data \u003d handler.process("},{"line_number":88,"context_line":"                ctxt,"},{"line_number":89,"context_line":"                publisher_id,"},{"line_number":90,"context_line":"                event_type,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_01d0e2c7","line":87,"range":{"start_line":87,"start_character":16,"end_line":87,"end_character":17},"updated":"2016-01-25 15:55:18.000000000","message":"It would be cleaner, conceptually, if indexing in elasticsearch was a publisher plugin. Internally, the plugin might first serialize/format the payload, and then run through the list of publishers for an event (or maybe that logic is performed here). Otherwise the internals of the elasticsearch indexing process are too entangled with other consumers.","commit_id":"32f042a1cb1ad61247cfa3332deb7053195e05db"},{"author":{"_account_id":11189,"name":"yuntongjin","email":"yuntong.jin@intel.com","username":"yuntong"},"change_message_id":"8885c70f1be09ce789a5801519d01e8b78213ef6","unresolved":false,"context_lines":[{"line_number":84,"context_line":"            LOG.debug(\"Processing event \u0027%s\u0027 with plugin \u0027%s\u0027\","},{"line_number":85,"context_line":"                      event_type_l, plugin.name)"},{"line_number":86,"context_line":"            handler \u003d plugin.get_notification_handler()"},{"line_number":87,"context_line":"            data \u003d handler.process("},{"line_number":88,"context_line":"                ctxt,"},{"line_number":89,"context_line":"                publisher_id,"},{"line_number":90,"context_line":"                event_type,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_30b50e31","line":87,"range":{"start_line":87,"start_character":16,"end_line":87,"end_character":17},"in_reply_to":"9a68dd71_01d0e2c7","updated":"2016-01-26 07:50:38.000000000","message":"That\u0027s true, that\u0027s what i had in plan.\nThe problem is that the publish message relay on handler.process in searchlight plugin(nova/neutron....),\nthe processed message will have additional info besides original notification and compatible with API call(to nova/neutron...).\nso, to workaround this is to decouple handler.process with index in searchlight plugin.\nIn that way, data from handler.process will go into pipeline, and then will be published in differently way like outside(to zaqar, to webhook...) or inside (to index).","commit_id":"32f042a1cb1ad61247cfa3332deb7053195e05db"},{"author":{"_account_id":16150,"name":"Lei Zhang","email":"lei.a.zhang@intel.com","username":"leizhang"},"change_message_id":"2c54596561354cba7b63a8e285df5394efb3404b","unresolved":false,"context_lines":[{"line_number":84,"context_line":"            LOG.debug(\"Processing event \u0027%s\u0027 with plugin \u0027%s\u0027\","},{"line_number":85,"context_line":"                      event_type_l, plugin.name)"},{"line_number":86,"context_line":"            handler \u003d plugin.get_notification_handler()"},{"line_number":87,"context_line":"            data \u003d handler.process("},{"line_number":88,"context_line":"                ctxt,"},{"line_number":89,"context_line":"                publisher_id,"},{"line_number":90,"context_line":"                event_type,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_b6aed696","line":87,"range":{"start_line":87,"start_character":16,"end_line":87,"end_character":17},"in_reply_to":"9a68dd71_30b50e31","updated":"2016-01-26 09:00:34.000000000","message":"Is that means extract a data enhancement module(serialize/format the payload) here, and treat elasticsearch plugins and zaqar plugins as the same, pass enhanced data to plugins subscribed the event","commit_id":"32f042a1cb1ad61247cfa3332deb7053195e05db"}]}
