)]}'
{"devstack/Vagrantfile":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":74,"context_line":"ADMIN_PASSWORD\u003dsecretadmin"},{"line_number":75,"context_line":"SERVICE_PASSWORD\u003dsecretservice"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"APACHE_MIRROR\u003dhttp://www-us.apache.org/dist/"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"LOGFILE\u003d$DEST/logs/stack.sh.log"},{"line_number":80,"context_line":"LOGDIR\u003d$DEST/logs"}],"source_content_type":"application/octet-stream","patch_set":16,"id":"7f515b1d_65bb9dc4","line":77,"range":{"start_line":77,"start_character":0,"end_line":77,"end_character":44},"updated":"2017-09-29 12:16:18.000000000","message":"Remove","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":74,"context_line":"ADMIN_PASSWORD\u003dsecretadmin"},{"line_number":75,"context_line":"SERVICE_PASSWORD\u003dsecretservice"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"APACHE_MIRROR\u003dhttp://www-us.apache.org/dist/"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"LOGFILE\u003d$DEST/logs/stack.sh.log"},{"line_number":80,"context_line":"LOGDIR\u003d$DEST/logs"}],"source_content_type":"application/octet-stream","patch_set":34,"id":"1f485f77_e426a1ce","line":77,"range":{"start_line":77,"start_character":0,"end_line":77,"end_character":44},"updated":"2017-11-16 11:27:03.000000000","message":"remove","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":74,"context_line":"ADMIN_PASSWORD\u003dsecretadmin"},{"line_number":75,"context_line":"SERVICE_PASSWORD\u003dsecretservice"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"APACHE_MIRROR\u003dhttp://www-us.apache.org/dist/"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"LOGFILE\u003d$DEST/logs/stack.sh.log"},{"line_number":80,"context_line":"LOGDIR\u003d$DEST/logs"}],"source_content_type":"application/octet-stream","patch_set":34,"id":"df87a7cf_4bb2494b","line":77,"range":{"start_line":77,"start_character":0,"end_line":77,"end_character":44},"in_reply_to":"1f485f77_e426a1ce","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"}],"devstack/post_test_hook.sh":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":15,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":16,"context_line":"# limitations under the License."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"# Sleep some time until all services are starting"},{"line_number":19,"context_line":"sleep 6"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"function load_devstack_utilities {"}],"source_content_type":"text/x-sh","patch_set":34,"id":"1f485f77_04177d53","line":18,"range":{"start_line":18,"start_character":41,"end_line":18,"end_character":49},"updated":"2017-11-16 11:27:03.000000000","message":"started","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":15,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":16,"context_line":"# limitations under the License."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"# Sleep some time until all services are starting"},{"line_number":19,"context_line":"sleep 6"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"function load_devstack_utilities {"}],"source_content_type":"text/x-sh","patch_set":34,"id":"df87a7cf_eb847d60","line":18,"range":{"start_line":18,"start_character":41,"end_line":18,"end_character":49},"in_reply_to":"1f485f77_04177d53","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"}],"etc/monasca/events-api-paste.ini":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":18,"context_line":"[composite:main]"},{"line_number":19,"context_line":"use \u003d egg:Paste#urlmap"},{"line_number":20,"context_line":"/: events_version"},{"line_number":21,"context_line":"/v1.0: en_api_v1"},{"line_number":22,"context_line":"/healtcheck: events_healthcheck"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"[pipeline:en_api_v1]"}],"source_content_type":"text/x-properties","patch_set":16,"id":"7f515b1d_e5d30d03","line":21,"range":{"start_line":21,"start_character":7,"end_line":21,"end_character":9},"updated":"2017-09-29 12:16:18.000000000","message":"events","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":18,"context_line":"[composite:main]"},{"line_number":19,"context_line":"use \u003d egg:Paste#urlmap"},{"line_number":20,"context_line":"/: events_version"},{"line_number":21,"context_line":"/v1.0: en_api_v1"},{"line_number":22,"context_line":"/healtcheck: events_healthcheck"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"[pipeline:en_api_v1]"}],"source_content_type":"text/x-properties","patch_set":16,"id":"7f515b1d_09a84dd9","line":21,"range":{"start_line":21,"start_character":7,"end_line":21,"end_character":9},"in_reply_to":"7f515b1d_e5d30d03","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":21,"context_line":"/v1.0: en_api_v1"},{"line_number":22,"context_line":"/healtcheck: events_healthcheck"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"[pipeline:en_api_v1]"},{"line_number":25,"context_line":"pipeline \u003d error_trap request_id auth middleware api_v1_app"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"[pipeline:events_version]"}],"source_content_type":"text/x-properties","patch_set":16,"id":"7f515b1d_450c21a4","line":24,"range":{"start_line":24,"start_character":10,"end_line":24,"end_character":12},"updated":"2017-09-29 12:16:18.000000000","message":"events","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":21,"context_line":"/v1.0: en_api_v1"},{"line_number":22,"context_line":"/healtcheck: events_healthcheck"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"[pipeline:en_api_v1]"},{"line_number":25,"context_line":"pipeline \u003d error_trap request_id auth middleware api_v1_app"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"[pipeline:events_version]"}],"source_content_type":"text/x-properties","patch_set":16,"id":"7f515b1d_e9acd1ef","line":24,"range":{"start_line":24,"start_character":10,"end_line":24,"end_character":12},"in_reply_to":"7f515b1d_450c21a4","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":55,"context_line":"[server:main]"},{"line_number":56,"context_line":"chdir \u003d /opt/stack/monasca-events-api"},{"line_number":57,"context_line":"use \u003d egg:gunicorn#main"},{"line_number":58,"context_line":"bind \u003d 192.168.10.6:5670"},{"line_number":59,"context_line":"workers \u003d 1"},{"line_number":60,"context_line":"worker-connections \u003d 2000"},{"line_number":61,"context_line":"worker-class \u003d eventlet"}],"source_content_type":"text/x-properties","patch_set":16,"id":"7f515b1d_2d535119","line":58,"updated":"2017-09-29 05:54:46.000000000","message":"127.0.0.1 - must be neutral\nalso 5670 is I guess reserved for log-api","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":55,"context_line":"[server:main]"},{"line_number":56,"context_line":"chdir \u003d /opt/stack/monasca-events-api"},{"line_number":57,"context_line":"use \u003d egg:gunicorn#main"},{"line_number":58,"context_line":"bind \u003d 192.168.10.6:5670"},{"line_number":59,"context_line":"workers \u003d 1"},{"line_number":60,"context_line":"worker-connections \u003d 2000"},{"line_number":61,"context_line":"worker-class \u003d eventlet"}],"source_content_type":"text/x-properties","patch_set":16,"id":"7f515b1d_85ed79b8","line":58,"range":{"start_line":58,"start_character":20,"end_line":58,"end_character":24},"updated":"2017-09-29 12:16:18.000000000","message":"Log api is 5607, it\u0027s gonna by confusing","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":55,"context_line":"[server:main]"},{"line_number":56,"context_line":"chdir \u003d /opt/stack/monasca-events-api"},{"line_number":57,"context_line":"use \u003d egg:gunicorn#main"},{"line_number":58,"context_line":"bind \u003d 192.168.10.6:5670"},{"line_number":59,"context_line":"workers \u003d 1"},{"line_number":60,"context_line":"worker-connections \u003d 2000"},{"line_number":61,"context_line":"worker-class \u003d eventlet"}],"source_content_type":"text/x-properties","patch_set":16,"id":"7f515b1d_a9b6d93d","line":58,"in_reply_to":"7f515b1d_2d535119","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":55,"context_line":"[server:main]"},{"line_number":56,"context_line":"chdir \u003d /opt/stack/monasca-events-api"},{"line_number":57,"context_line":"use \u003d egg:gunicorn#main"},{"line_number":58,"context_line":"bind \u003d 192.168.10.6:5670"},{"line_number":59,"context_line":"workers \u003d 1"},{"line_number":60,"context_line":"worker-connections \u003d 2000"},{"line_number":61,"context_line":"worker-class \u003d eventlet"}],"source_content_type":"text/x-properties","patch_set":16,"id":"7f515b1d_c9a915de","line":58,"range":{"start_line":58,"start_character":20,"end_line":58,"end_character":24},"in_reply_to":"7f515b1d_85ed79b8","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":19,"context_line":"use \u003d egg:Paste#urlmap"},{"line_number":20,"context_line":"/: events_version"},{"line_number":21,"context_line":"/v1.0: events_api_v1"},{"line_number":22,"context_line":"/healtcheck: events_healthcheck"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"[pipeline:events_api_v1]"},{"line_number":25,"context_line":"pipeline \u003d error_trap request_id auth sizelimit middleware api_v1_app"}],"source_content_type":"text/x-properties","patch_set":34,"id":"1f485f77_a7e42b3d","line":22,"range":{"start_line":22,"start_character":1,"end_line":22,"end_character":11},"updated":"2017-11-16 11:27:03.000000000","message":"healthcheck (you ate `h`)","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":19,"context_line":"use \u003d egg:Paste#urlmap"},{"line_number":20,"context_line":"/: events_version"},{"line_number":21,"context_line":"/v1.0: events_api_v1"},{"line_number":22,"context_line":"/healtcheck: events_healthcheck"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"[pipeline:events_api_v1]"},{"line_number":25,"context_line":"pipeline \u003d error_trap request_id auth sizelimit middleware api_v1_app"}],"source_content_type":"text/x-properties","patch_set":34,"id":"df87a7cf_0b8a0169","line":22,"range":{"start_line":22,"start_character":1,"end_line":22,"end_character":11},"in_reply_to":"1f485f77_a7e42b3d","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":58,"context_line":"chdir \u003d /opt/stack/monasca-events-api"},{"line_number":59,"context_line":"use \u003d egg:gunicorn#main"},{"line_number":60,"context_line":"bind \u003d 127.0.0.1:5656"},{"line_number":61,"context_line":"workers \u003d 1"},{"line_number":62,"context_line":"worker-connections \u003d 2000"},{"line_number":63,"context_line":"worker-class \u003d eventlet"},{"line_number":64,"context_line":"timeout \u003d 30"}],"source_content_type":"text/x-properties","patch_set":34,"id":"1f485f77_a700abac","line":61,"range":{"start_line":61,"start_character":10,"end_line":61,"end_character":11},"updated":"2017-11-16 11:27:03.000000000","message":"set 2 as default","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":58,"context_line":"chdir \u003d /opt/stack/monasca-events-api"},{"line_number":59,"context_line":"use \u003d egg:gunicorn#main"},{"line_number":60,"context_line":"bind \u003d 127.0.0.1:5656"},{"line_number":61,"context_line":"workers \u003d 1"},{"line_number":62,"context_line":"worker-connections \u003d 2000"},{"line_number":63,"context_line":"worker-class \u003d eventlet"},{"line_number":64,"context_line":"timeout \u003d 30"}],"source_content_type":"text/x-properties","patch_set":34,"id":"df87a7cf_ab7af573","line":61,"range":{"start_line":61,"start_character":10,"end_line":61,"end_character":11},"in_reply_to":"1f485f77_a700abac","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"}],"monasca-events-api.log":[{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":1,"context_line":"2017-09-28 09:15:54,719.719 13582 WARNING kafka.producer [req-815c4c32-24d4-4a45-a3c4-f4b194b91b92 92f81077d6df4b1a94b65f6dd9cd994c bd94a44f05354d5db09b185459b4bafe - default default] producer.stop() called, but producer is not async"},{"line_number":2,"context_line":"2017-09-28 09:15:56,368.368 13832 DEBUG monasca_events_api.conf [-] Found 6 modules that contain configuration load_conf_modules /opt/stack/monasca-events-api/monasca_events_api/conf/__init__.py:51"},{"line_number":3,"context_line":"2017-09-28 09:15:56,369.369 13832 INFO monasca_events_api.app.controller.api.events_api [-] Initializing EventsAPI v1.0!"},{"line_number":4,"context_line":"2017-09-28 09:15:56,370.370 13832 DEBUG monasca_common.kafka_lib.client [-] Request 1: [] _send_broker_unaware_request /usr/local/lib/python2.7/dist-packages/monasca_common/kafka_lib/client.py:134"}],"source_content_type":"text/plain","patch_set":16,"id":"7f515b1d_0d565507","line":1,"updated":"2017-09-29 05:54:46.000000000","message":"Rotfl, I suggest addding all *.log files in the repo to .gitignore","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"2017-09-28 09:15:54,719.719 13582 WARNING kafka.producer [req-815c4c32-24d4-4a45-a3c4-f4b194b91b92 92f81077d6df4b1a94b65f6dd9cd994c bd94a44f05354d5db09b185459b4bafe - default default] producer.stop() called, but producer is not async"},{"line_number":2,"context_line":"2017-09-28 09:15:56,368.368 13832 DEBUG monasca_events_api.conf [-] Found 6 modules that contain configuration load_conf_modules /opt/stack/monasca-events-api/monasca_events_api/conf/__init__.py:51"},{"line_number":3,"context_line":"2017-09-28 09:15:56,369.369 13832 INFO monasca_events_api.app.controller.api.events_api [-] Initializing EventsAPI v1.0!"},{"line_number":4,"context_line":"2017-09-28 09:15:56,370.370 13832 DEBUG monasca_common.kafka_lib.client [-] Request 1: [] _send_broker_unaware_request /usr/local/lib/python2.7/dist-packages/monasca_common/kafka_lib/client.py:134"}],"source_content_type":"text/plain","patch_set":16,"id":"7f515b1d_25348549","line":1,"in_reply_to":"7f515b1d_0d565507","updated":"2017-09-29 12:16:18.000000000","message":"+1","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":1,"context_line":"2017-09-28 09:15:54,719.719 13582 WARNING kafka.producer [req-815c4c32-24d4-4a45-a3c4-f4b194b91b92 92f81077d6df4b1a94b65f6dd9cd994c bd94a44f05354d5db09b185459b4bafe - default default] producer.stop() called, but producer is not async"},{"line_number":2,"context_line":"2017-09-28 09:15:56,368.368 13832 DEBUG monasca_events_api.conf [-] Found 6 modules that contain configuration load_conf_modules /opt/stack/monasca-events-api/monasca_events_api/conf/__init__.py:51"},{"line_number":3,"context_line":"2017-09-28 09:15:56,369.369 13832 INFO monasca_events_api.app.controller.api.events_api [-] Initializing EventsAPI v1.0!"},{"line_number":4,"context_line":"2017-09-28 09:15:56,370.370 13832 DEBUG monasca_common.kafka_lib.client [-] Request 1: [] _send_broker_unaware_request /usr/local/lib/python2.7/dist-packages/monasca_common/kafka_lib/client.py:134"}],"source_content_type":"text/plain","patch_set":16,"id":"7f515b1d_89878762","line":1,"in_reply_to":"7f515b1d_25348549","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"}],"monasca_events_api/app/api.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"\"\"\""},{"line_number":16,"context_line":"Module contains factories to initializes various applications"},{"line_number":17,"context_line":"of monasca-events-api"},{"line_number":18,"context_line":"\"\"\""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"import six"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_a52075f8","line":17,"updated":"2017-09-29 12:16:18.000000000","message":"dot","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"\"\"\""},{"line_number":16,"context_line":"Module contains factories to initializes various applications"},{"line_number":17,"context_line":"of monasca-events-api"},{"line_number":18,"context_line":"\"\"\""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"import six"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_49876563","line":17,"in_reply_to":"7f515b1d_a52075f8","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":109,"context_line":"    \"\"\""},{"line_number":110,"context_line":"    controllers \u003d {}"},{"line_number":111,"context_line":"    api_version \u003d global_conf.get(\u0027api_version\u0027)"},{"line_number":112,"context_line":"    if api_version \u003d\u003d \u0027v1.0\u0027:"},{"line_number":113,"context_line":"        controllers.update({"},{"line_number":114,"context_line":"            \u0027/events\u0027: v1_events.Events()"},{"line_number":115,"context_line":"        })"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_ad3e21b5","line":112,"updated":"2017-09-29 05:54:46.000000000","message":"We have only single version now, so there\u0027s no point in having this if as well as defining api_version inside the Paste file","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":109,"context_line":"    \"\"\""},{"line_number":110,"context_line":"    controllers \u003d {}"},{"line_number":111,"context_line":"    api_version \u003d global_conf.get(\u0027api_version\u0027)"},{"line_number":112,"context_line":"    if api_version \u003d\u003d \u0027v1.0\u0027:"},{"line_number":113,"context_line":"        controllers.update({"},{"line_number":114,"context_line":"            \u0027/events\u0027: v1_events.Events()"},{"line_number":115,"context_line":"        })"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_1ef2fa06","line":112,"in_reply_to":"7f515b1d_ad3e21b5","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":18,"context_line":"\"\"\""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"import six"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"import falcon"},{"line_number":23,"context_line":"from oslo_log import log"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_27db9b4f","line":21,"updated":"2017-11-16 11:27:03.000000000","message":"remove this empty line","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":18,"context_line":"\"\"\""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"import six"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"import falcon"},{"line_number":23,"context_line":"from oslo_log import log"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"df87a7cf_cb7f3964","line":21,"in_reply_to":"1f485f77_27db9b4f","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":84,"context_line":"    return wsgi_app"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"@error_trap(\u0027healtcheck\u0027)"},{"line_number":88,"context_line":"def create_healthcheck_app(global_conf, **local_conf):"},{"line_number":89,"context_line":"    \"\"\"Create Healtcheck application\"\"\""},{"line_number":90,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_82023d0a","line":87,"range":{"start_line":87,"start_character":13,"end_line":87,"end_character":23},"updated":"2017-11-16 11:27:03.000000000","message":"healthcheck","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":84,"context_line":"    return wsgi_app"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"@error_trap(\u0027healtcheck\u0027)"},{"line_number":88,"context_line":"def create_healthcheck_app(global_conf, **local_conf):"},{"line_number":89,"context_line":"    \"\"\"Create Healtcheck application\"\"\""},{"line_number":90,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"df87a7cf_6b986dbf","line":87,"range":{"start_line":87,"start_character":13,"end_line":87,"end_character":23},"in_reply_to":"1f485f77_82023d0a","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"@error_trap(\u0027healtcheck\u0027)"},{"line_number":88,"context_line":"def create_healthcheck_app(global_conf, **local_conf):"},{"line_number":89,"context_line":"    \"\"\"Create Healtcheck application\"\"\""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    controllers \u003d {"},{"line_number":92,"context_line":"        \u0027/\u0027: healthchecks.HealthChecks(),"}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_5d01c404","line":89,"range":{"start_line":89,"start_character":14,"end_line":89,"end_character":24},"updated":"2017-11-16 11:27:03.000000000","message":"Healthcheck","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"@error_trap(\u0027healtcheck\u0027)"},{"line_number":88,"context_line":"def create_healthcheck_app(global_conf, **local_conf):"},{"line_number":89,"context_line":"    \"\"\"Create Healtcheck application\"\"\""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    controllers \u003d {"},{"line_number":92,"context_line":"        \u0027/\u0027: healthchecks.HealthChecks(),"}],"source_content_type":"text/x-python","patch_set":34,"id":"df87a7cf_8b95b189","line":89,"range":{"start_line":89,"start_character":14,"end_line":89,"end_character":24},"in_reply_to":"1f485f77_5d01c404","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":101,"context_line":"@error_trap(\u0027api\u0027)"},{"line_number":102,"context_line":"@singleton_config"},{"line_number":103,"context_line":"def create_api_app(global_conf, **local_conf):"},{"line_number":104,"context_line":"    \"\"\"Create MainApi application."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    :param global_conf: Global config"},{"line_number":107,"context_line":"    :param local_conf: Local config"}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_5d4f846a","line":104,"range":{"start_line":104,"start_character":14,"end_line":104,"end_character":18},"updated":"2017-11-16 11:27:03.000000000","message":"Main Events","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":101,"context_line":"@error_trap(\u0027api\u0027)"},{"line_number":102,"context_line":"@singleton_config"},{"line_number":103,"context_line":"def create_api_app(global_conf, **local_conf):"},{"line_number":104,"context_line":"    \"\"\"Create MainApi application."},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    :param global_conf: Global config"},{"line_number":107,"context_line":"    :param local_conf: Local config"}],"source_content_type":"text/x-python","patch_set":34,"id":"df87a7cf_2b8ee578","line":104,"range":{"start_line":104,"start_character":14,"end_line":104,"end_character":18},"in_reply_to":"1f485f77_5d4f846a","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"}],"monasca_events_api/app/common/events_publisher.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":11,"context_line":"# distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT"},{"line_number":12,"context_line":"# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":13,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"# under the License."},{"line_number":15,"context_line":"import time"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import falcon"},{"line_number":18,"context_line":"from monasca_common.kafka import producer"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_fb361051","line":15,"range":{"start_line":14,"start_character":0,"end_line":15,"end_character":11},"updated":"2017-09-29 12:16:18.000000000","message":"Add empty line","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":11,"context_line":"# distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT"},{"line_number":12,"context_line":"# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":13,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"# under the License."},{"line_number":15,"context_line":"import time"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import falcon"},{"line_number":18,"context_line":"from monasca_common.kafka import producer"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_e995f189","line":15,"range":{"start_line":14,"start_character":0,"end_line":15,"end_character":11},"in_reply_to":"7f515b1d_fb361051","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    def __init__(self):"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        self._topics \u003d CONF.events_publisher.topics"},{"line_number":63,"context_line":"        self.max_message_size \u003d CONF.events_publisher.max_message_size"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"        self._kafka_publisher \u003d producer.KafkaProducer("},{"line_number":66,"context_line":"            url\u003dCONF.events_publisher.kafka_url"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_cd6cbdcf","line":63,"updated":"2017-09-29 05:54:46.000000000","message":"I don\u0027t think we want this...after all events are not logs and we should not split them, like never ever ever.","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    def __init__(self):"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        self._topics \u003d CONF.events_publisher.topics"},{"line_number":63,"context_line":"        self.max_message_size \u003d CONF.events_publisher.max_message_size"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"        self._kafka_publisher \u003d producer.KafkaProducer("},{"line_number":66,"context_line":"            url\u003dCONF.events_publisher.kafka_url"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_1ecb1aa5","line":63,"in_reply_to":"7f515b1d_7b4220ad","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    def __init__(self):"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        self._topics \u003d CONF.events_publisher.topics"},{"line_number":63,"context_line":"        self.max_message_size \u003d CONF.events_publisher.max_message_size"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"        self._kafka_publisher \u003d producer.KafkaProducer("},{"line_number":66,"context_line":"            url\u003dCONF.events_publisher.kafka_url"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_7b4220ad","line":63,"in_reply_to":"7f515b1d_cd6cbdcf","updated":"2017-09-29 12:16:18.000000000","message":"+1","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"608d3449f817ceafafcee27111b640f4553f97f2","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    def __init__(self):"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        self._topics \u003d CONF.events_publisher.topics"},{"line_number":63,"context_line":"        self.max_message_size \u003d CONF.events_publisher.max_message_size"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"        self._kafka_publisher \u003d producer.KafkaProducer("},{"line_number":66,"context_line":"            url\u003dCONF.events_publisher.kafka_url"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_8567b9b7","line":63,"in_reply_to":"7f515b1d_cd6cbdcf","updated":"2017-09-29 11:40:55.000000000","message":"Agree,  this variable is defined but unused.\nThis should be deleted from config.","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":66,"context_line":"            url\u003dCONF.events_publisher.kafka_url"},{"line_number":67,"context_line":"        )"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"        LOG.info(\u0027Initializing LogPublisher \u003c%s\u003e\u0027, self)"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    def send_message(self, messages):"},{"line_number":72,"context_line":"        \"\"\"Sends message to each configured topic."}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_0d6f75c5","line":69,"updated":"2017-09-29 05:54:46.000000000","message":"EventPublisher","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":66,"context_line":"            url\u003dCONF.events_publisher.kafka_url"},{"line_number":67,"context_line":"        )"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"        LOG.info(\u0027Initializing LogPublisher \u003c%s\u003e\u0027, self)"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    def send_message(self, messages):"},{"line_number":72,"context_line":"        \"\"\"Sends message to each configured topic."}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_dec8e2a6","line":69,"in_reply_to":"7f515b1d_0d6f75c5","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":71,"context_line":"    def send_message(self, messages):"},{"line_number":72,"context_line":"        \"\"\"Sends message to each configured topic."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        Note:"},{"line_number":75,"context_line":"            Falsy messages (i.e. empty) are not shipped to kafka"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        See also"},{"line_number":78,"context_line":"            * :py:class:`monasca_event_api.common.model.Envelope`"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_7b70e008","line":75,"range":{"start_line":74,"start_character":0,"end_line":75,"end_character":64},"updated":"2017-09-29 12:16:18.000000000","message":"This note is not what is done in the code.","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":71,"context_line":"    def send_message(self, messages):"},{"line_number":72,"context_line":"        \"\"\"Sends message to each configured topic."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        Note:"},{"line_number":75,"context_line":"            Falsy messages (i.e. empty) are not shipped to kafka"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"        See also"},{"line_number":78,"context_line":"            * :py:class:`monasca_event_api.common.model.Envelope`"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_69e7c148","line":75,"range":{"start_line":74,"start_character":0,"end_line":75,"end_character":64},"in_reply_to":"7f515b1d_7b70e008","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":107,"context_line":"        finally:"},{"line_number":108,"context_line":"            self._after_publish(sent_counter, num_of_msgs)"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    def _transform_message(self, message):"},{"line_number":111,"context_line":"        \"\"\"Transforms message into JSON."},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        Method executes transformation operation for"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_5bf3e474","line":110,"range":{"start_line":110,"start_character":9,"end_line":110,"end_character":26},"updated":"2017-09-29 12:16:18.000000000","message":"I think better name would be `message_to_json`","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":107,"context_line":"        finally:"},{"line_number":108,"context_line":"            self._after_publish(sent_counter, num_of_msgs)"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    def _transform_message(self, message):"},{"line_number":111,"context_line":"        \"\"\"Transforms message into JSON."},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        Method executes transformation operation for"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_49ec0529","line":110,"range":{"start_line":110,"start_character":9,"end_line":110,"end_character":26},"in_reply_to":"7f515b1d_5bf3e474","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        Method executes transformation operation for"},{"line_number":114,"context_line":"        single element. Operation is set of following"},{"line_number":115,"context_line":"        operations:"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        * checking if message is valid"},{"line_number":118,"context_line":"            (:py:func:`.EventPublisher._is_message_valid`)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        :param str message: instance of message"},{"line_number":121,"context_line":"        :return: serialized message"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_1bd0ccc8","line":118,"range":{"start_line":116,"start_character":0,"end_line":118,"end_character":58},"updated":"2017-09-29 12:16:18.000000000","message":"Where it\u0027s in code?","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        Method executes transformation operation for"},{"line_number":114,"context_line":"        single element. Operation is set of following"},{"line_number":115,"context_line":"        operations:"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        * checking if message is valid"},{"line_number":118,"context_line":"            (:py:func:`.EventPublisher._is_message_valid`)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        :param str message: instance of message"},{"line_number":121,"context_line":"        :return: serialized message"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_29f1c902","line":118,"range":{"start_line":116,"start_character":0,"end_line":118,"end_character":58},"in_reply_to":"7f515b1d_1bd0ccc8","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":128,"context_line":"    def _ensure_type_bytes(self, message):"},{"line_number":129,"context_line":"        \"\"\"Ensures that message will have proper type."},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        Kafka client expects that messages being"},{"line_number":132,"context_line":"        posted have certain data type (:py:func:`six.binary_type`)."},{"line_number":133,"context_line":"        This method ensures by the means of encoding that such type"},{"line_number":134,"context_line":"        will always be a case regardless if codebase runs under"},{"line_number":135,"context_line":"        :py:data:`six.PY2` or :py:data:`six.PY3`"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        \"\"\""},{"line_number":138,"context_line":"        message \u003d message.encode(\u0027utf-8\u0027)"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_bb01b83a","line":135,"range":{"start_line":131,"start_character":0,"end_line":135,"end_character":48},"updated":"2017-09-29 12:16:18.000000000","message":"Where in code?","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":14,"context_line":"# under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import time"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"import falcon"},{"line_number":19,"context_line":"from monasca_common.kafka import producer"},{"line_number":20,"context_line":"from monasca_common.rest import utils as rest_utils"},{"line_number":21,"context_line":"from oslo_log import log"}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_7d5ec012","line":18,"range":{"start_line":17,"start_character":0,"end_line":18,"end_character":13},"updated":"2017-11-16 11:27:03.000000000","message":"move `import falcon` under `import time`","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":14,"context_line":"# under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import time"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"import falcon"},{"line_number":19,"context_line":"from monasca_common.kafka import producer"},{"line_number":20,"context_line":"from monasca_common.rest import utils as rest_utils"},{"line_number":21,"context_line":"from oslo_log import log"}],"source_content_type":"text/x-python","patch_set":34,"id":"df87a7cf_4b8b2967","line":18,"range":{"start_line":17,"start_character":0,"end_line":18,"end_character":13},"in_reply_to":"1f485f77_7d5ec012","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":29,"context_line":"_RETRY_AFTER \u003d 60"},{"line_number":30,"context_line":"_TIMESTAMP_KEY_SIZE \u003d len("},{"line_number":31,"context_line":"    bytearray(str(int(time.time() * 1000)).encode(\u0027utf-8\u0027)))"},{"line_number":32,"context_line":"_TRUNCATED_PROPERTY_SIZE \u003d len("},{"line_number":33,"context_line":"    bytearray(\u0027\"truncated\": true\u0027.encode(\u0027utf-8\u0027)))"},{"line_number":34,"context_line":"_KAFKA_META_DATA_SIZE \u003d 32"},{"line_number":35,"context_line":"_TRUNCATION_SAFE_OFFSET \u003d 1"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_5d866468","line":33,"range":{"start_line":32,"start_character":0,"end_line":33,"end_character":51},"updated":"2017-11-16 11:27:03.000000000","message":"where is this used? and what for?","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":29,"context_line":"_RETRY_AFTER \u003d 60"},{"line_number":30,"context_line":"_TIMESTAMP_KEY_SIZE \u003d len("},{"line_number":31,"context_line":"    bytearray(str(int(time.time() * 1000)).encode(\u0027utf-8\u0027)))"},{"line_number":32,"context_line":"_TRUNCATED_PROPERTY_SIZE \u003d len("},{"line_number":33,"context_line":"    bytearray(\u0027\"truncated\": true\u0027.encode(\u0027utf-8\u0027)))"},{"line_number":34,"context_line":"_KAFKA_META_DATA_SIZE \u003d 32"},{"line_number":35,"context_line":"_TRUNCATION_SAFE_OFFSET \u003d 1"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"df87a7cf_ebe9dd19","line":33,"range":{"start_line":32,"start_character":0,"end_line":33,"end_character":51},"in_reply_to":"1f485f77_5d866468","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    Note:"},{"line_number":53,"context_line":"        Uses :py:class:`monasca_common.kafka.producer.KafkaProducer`"},{"line_number":54,"context_line":"        to ship events to kafka. For more details"},{"line_number":55,"context_line":"        see `monasca_common`_ github repository."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    .. _monasca_common: https://github.com/openstack/monasca-common"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_ddded46b","line":55,"range":{"start_line":55,"start_character":20,"end_line":55,"end_character":21},"updated":"2017-11-16 11:27:03.000000000","message":"monasca-common","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    Note:"},{"line_number":53,"context_line":"        Uses :py:class:`monasca_common.kafka.producer.KafkaProducer`"},{"line_number":54,"context_line":"        to ship events to kafka. For more details"},{"line_number":55,"context_line":"        see `monasca_common`_ github repository."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    .. _monasca_common: https://github.com/openstack/monasca-common"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"df87a7cf_0bef611e","line":55,"range":{"start_line":55,"start_character":20,"end_line":55,"end_character":21},"in_reply_to":"1f485f77_ddded46b","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":100,"context_line":"            LOG.exception(\u0027Failure in publishing messages to kafka\u0027)"},{"line_number":101,"context_line":"            raise ex"},{"line_number":102,"context_line":"        finally:"},{"line_number":103,"context_line":"            self._after_publish(sent_counter, num_of_msgs)"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    def _transform_message_to_json(self, message):"},{"line_number":106,"context_line":"        \"\"\"Transforms message into JSON."}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_ddcdb466","line":103,"range":{"start_line":103,"start_character":32,"end_line":103,"end_character":57},"updated":"2017-11-16 11:27:03.000000000","message":"when actually `sent_counter` and `num_of_msgs` could differ? If `self._publish` fail `sent_counter` will never change","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":112,"context_line":"        :rtype: str"},{"line_number":113,"context_line":"        \"\"\""},{"line_number":114,"context_line":"        msg_json \u003d rest_utils.as_json(message)"},{"line_number":115,"context_line":"        proper \u003d msg_json.encode(\u0027utf-8\u0027)"},{"line_number":116,"context_line":"        return proper"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    def _transform_request_body_to_right_format(self, body):"},{"line_number":119,"context_line":"        \"\"\"Transform_body_to_right_format"}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_1d58ecf7","line":116,"range":{"start_line":115,"start_character":0,"end_line":116,"end_character":21},"updated":"2017-11-16 11:27:03.000000000","message":"return msg_json.encode(\u0027utf-8\u0027)","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":112,"context_line":"        :rtype: str"},{"line_number":113,"context_line":"        \"\"\""},{"line_number":114,"context_line":"        msg_json \u003d rest_utils.as_json(message)"},{"line_number":115,"context_line":"        proper \u003d msg_json.encode(\u0027utf-8\u0027)"},{"line_number":116,"context_line":"        return proper"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    def _transform_request_body_to_right_format(self, body):"},{"line_number":119,"context_line":"        \"\"\"Transform_body_to_right_format"}],"source_content_type":"text/x-python","patch_set":34,"id":"df87a7cf_cbf419f4","line":116,"range":{"start_line":115,"start_character":0,"end_line":116,"end_character":21},"in_reply_to":"1f485f77_1d58ecf7","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        return proper"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    def _transform_request_body_to_right_format(self, body):"},{"line_number":119,"context_line":"        \"\"\"Transform_body_to_right_format"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"        Method transform massage to"},{"line_number":122,"context_line":"        proper format acceptable by event-persister"}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_fd119005","line":119,"range":{"start_line":119,"start_character":11,"end_line":119,"end_character":41},"updated":"2017-11-16 11:27:03.000000000","message":"Bad doc","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":131,"context_line":"            final_body.append(ev)"},{"line_number":132,"context_line":"        return final_body"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    def _ensure_type_bytes(self, message):"},{"line_number":135,"context_line":"        \"\"\"Ensures that message will have proper type."},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_dd237455","line":134,"range":{"start_line":134,"start_character":33,"end_line":134,"end_character":40},"updated":"2017-11-16 11:27:03.000000000","message":"add param to doc describing `message`","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":131,"context_line":"            final_body.append(ev)"},{"line_number":132,"context_line":"        return final_body"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    def _ensure_type_bytes(self, message):"},{"line_number":135,"context_line":"        \"\"\"Ensures that message will have proper type."},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":34,"id":"df87a7cf_ebd23d5c","line":134,"range":{"start_line":134,"start_character":33,"end_line":134,"end_character":40},"in_reply_to":"1f485f77_dd237455","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":135,"context_line":"        \"\"\"Ensures that message will have proper type."},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        \"\"\""},{"line_number":138,"context_line":"        message \u003d message.encode(\u0027utf-8\u0027)"},{"line_number":139,"context_line":"        return message"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def _publish(self, messages):"},{"line_number":142,"context_line":"        \"\"\"Publishes messages to kafka."}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_1d26ac69","line":139,"range":{"start_line":138,"start_character":8,"end_line":139,"end_character":22},"updated":"2017-11-16 11:27:03.000000000","message":"return message.encode(\u0027utf-8\u0027)","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":135,"context_line":"        \"\"\"Ensures that message will have proper type."},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        \"\"\""},{"line_number":138,"context_line":"        message \u003d message.encode(\u0027utf-8\u0027)"},{"line_number":139,"context_line":"        return message"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def _publish(self, messages):"},{"line_number":142,"context_line":"        \"\"\"Publishes messages to kafka."}],"source_content_type":"text/x-python","patch_set":34,"id":"df87a7cf_abc8b5a7","line":139,"range":{"start_line":138,"start_character":8,"end_line":139,"end_character":22},"in_reply_to":"1f485f77_1d26ac69","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":159,"context_line":"            raise falcon.HTTPServiceUnavailable(\u0027Service unavailable\u0027,"},{"line_number":160,"context_line":"                                                str(ex), 60)"},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"    def _after_publish(self, send_count, to_send_count):"},{"line_number":163,"context_line":"        \"\"\"Executed after publishing to sent metrics."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"        :param int send_count: how many messages have been sent"}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_1de58cdc","line":162,"range":{"start_line":162,"start_character":8,"end_line":162,"end_character":22},"updated":"2017-11-16 11:27:03.000000000","message":"Function only check one small difference between numbers, so name is wrong, and doesn\u0027t indicate what will happen when execute","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":159,"context_line":"            raise falcon.HTTPServiceUnavailable(\u0027Service unavailable\u0027,"},{"line_number":160,"context_line":"                                                str(ex), 60)"},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"    def _after_publish(self, send_count, to_send_count):"},{"line_number":163,"context_line":"        \"\"\"Executed after publishing to sent metrics."},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"        :param int send_count: how many messages have been sent"}],"source_content_type":"text/x-python","patch_set":34,"id":"df87a7cf_8bc37189","line":162,"range":{"start_line":162,"start_character":8,"end_line":162,"end_character":22},"in_reply_to":"1f485f77_1de58cdc","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"}],"monasca_events_api/app/common/helpers.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"def read_json_msg_body(req):"},{"line_number":27,"context_line":"    \"\"\"Read the json_msg from the http request body and return the as JSON."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    :param req: HTTP request object."},{"line_number":30,"context_line":"    :return: Returns the metrics as a JSON object."}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_fba05044","line":27,"range":{"start_line":27,"start_character":63,"end_line":27,"end_character":67},"updated":"2017-09-29 12:16:18.000000000","message":"remove","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"def read_json_msg_body(req):"},{"line_number":27,"context_line":"    \"\"\"Read the json_msg from the http request body and return the as JSON."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    :param req: HTTP request object."},{"line_number":30,"context_line":"    :return: Returns the metrics as a JSON object."}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_09f60dfb","line":27,"range":{"start_line":27,"start_character":63,"end_line":27,"end_character":67},"in_reply_to":"7f515b1d_fba05044","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"}],"monasca_events_api/app/controller/api/events_api.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":29,"context_line":"        LOG.info(\u0027Initializing EventsAPI {0}!\u0027.format(self.version))"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def on_post(self, req, res):"},{"line_number":32,"context_line":"        \"\"\"Accepts sent events as test or json."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"        Accepts events sent to resource which should be sent"},{"line_number":35,"context_line":"        to Kafka queue."}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_1b456c70","line":32,"range":{"start_line":32,"start_character":34,"end_line":32,"end_character":38},"updated":"2017-09-29 12:16:18.000000000","message":"text","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":29,"context_line":"        LOG.info(\u0027Initializing EventsAPI {0}!\u0027.format(self.version))"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def on_post(self, req, res):"},{"line_number":32,"context_line":"        \"\"\"Accepts sent events as test or json."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"        Accepts events sent to resource which should be sent"},{"line_number":35,"context_line":"        to Kafka queue."}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_89bafd07","line":32,"range":{"start_line":32,"start_character":34,"end_line":32,"end_character":38},"in_reply_to":"7f515b1d_1b456c70","updated":"2017-10-04 08:21:10.000000000","message":"I decide to remove this class, at this point this class is unnecessary","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    def __init__(self):"},{"line_number":29,"context_line":"        LOG.info(\u0027Initializing EventsAPI {0}!\u0027.format(self.version))"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def on_post(self, req, res):"},{"line_number":32,"context_line":"        \"\"\"Accepts sent events as test or json."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"        Accepts events sent to resource which should be sent"},{"line_number":35,"context_line":"        to Kafka queue."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"        :param req: current request"},{"line_number":38,"context_line":"        :param res: current response"},{"line_number":39,"context_line":"        \"\"\""},{"line_number":40,"context_line":"        res.status \u003d falcon.HTTP_501  # pragma: no cover"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    @property"},{"line_number":43,"context_line":"    def version(self):"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_3b52683c","line":40,"range":{"start_line":31,"start_character":0,"end_line":40,"end_character":56},"updated":"2017-09-29 12:16:18.000000000","message":"If not used should be removed or add `TODO` to use it (like when for what)","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    def __init__(self):"},{"line_number":29,"context_line":"        LOG.info(\u0027Initializing EventsAPI {0}!\u0027.format(self.version))"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    def on_post(self, req, res):"},{"line_number":32,"context_line":"        \"\"\"Accepts sent events as test or json."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"        Accepts events sent to resource which should be sent"},{"line_number":35,"context_line":"        to Kafka queue."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"        :param req: current request"},{"line_number":38,"context_line":"        :param res: current response"},{"line_number":39,"context_line":"        \"\"\""},{"line_number":40,"context_line":"        res.status \u003d falcon.HTTP_501  # pragma: no cover"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    @property"},{"line_number":43,"context_line":"    def version(self):"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_e9f611d9","line":40,"range":{"start_line":31,"start_character":0,"end_line":40,"end_character":56},"in_reply_to":"7f515b1d_3b52683c","updated":"2017-10-04 08:21:10.000000000","message":"see comment above","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"}],"monasca_events_api/app/controller/api/healthcheck_api.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016 FUJITSU LIMITED"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_9baa7c16","line":1,"range":{"start_line":1,"start_character":15,"end_line":1,"end_character":16},"updated":"2017-09-29 12:16:18.000000000","message":"7","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016 FUJITSU LIMITED"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_2949b331","line":1,"range":{"start_line":1,"start_character":15,"end_line":1,"end_character":16},"in_reply_to":"7f515b1d_9baa7c16","updated":"2017-10-04 08:21:10.000000000","message":"See comment below","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    def on_get(self, req, res):"},{"line_number":39,"context_line":"        \"\"\"Complex healthcheck report on GET."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        Returns complex report regarding API well being"},{"line_number":42,"context_line":"        and all dependent services."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"        :param falcon.Request req: current request"},{"line_number":45,"context_line":"        :param falcon.Response res: current response"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_9b2ddca9","line":42,"range":{"start_line":41,"start_character":0,"end_line":42,"end_character":35},"updated":"2017-09-29 12:16:18.000000000","message":"Where is this complex report?","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    def on_get(self, req, res):"},{"line_number":39,"context_line":"        \"\"\"Complex healthcheck report on GET."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        Returns complex report regarding API well being"},{"line_number":42,"context_line":"        and all dependent services."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"        :param falcon.Request req: current request"},{"line_number":45,"context_line":"        :param falcon.Response res: current response"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_893ae795","line":42,"range":{"start_line":41,"start_character":0,"end_line":42,"end_character":35},"in_reply_to":"7f515b1d_9b2ddca9","updated":"2017-10-04 08:21:10.000000000","message":"See comment below","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        :param falcon.Request req: current request"},{"line_number":45,"context_line":"        :param falcon.Response res: current response"},{"line_number":46,"context_line":"        \"\"\""},{"line_number":47,"context_line":"        res.status \u003d falcon.HTTP_501"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def on_head(self, req, res):"},{"line_number":50,"context_line":"        \"\"\"Simple healthcheck report on HEAD."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"        In opposite to :py:meth:`.HealthChecksApi.on_get`, this"},{"line_number":53,"context_line":"        method is supposed to execute ASAP to inform user that"},{"line_number":54,"context_line":"        API is up and running."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        :param falcon.Request req: current request"},{"line_number":57,"context_line":"        :param falcon.Response res: current response"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"        \"\"\""},{"line_number":60,"context_line":"        res.status \u003d falcon.HTTP_501"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_fb15f049","line":60,"range":{"start_line":47,"start_character":0,"end_line":60,"end_character":36},"updated":"2017-09-29 12:16:18.000000000","message":"Add TODO to all 501 to easier find it in code later.","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        :param falcon.Request req: current request"},{"line_number":45,"context_line":"        :param falcon.Response res: current response"},{"line_number":46,"context_line":"        \"\"\""},{"line_number":47,"context_line":"        res.status \u003d falcon.HTTP_501"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def on_head(self, req, res):"},{"line_number":50,"context_line":"        \"\"\"Simple healthcheck report on HEAD."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"        In opposite to :py:meth:`.HealthChecksApi.on_get`, this"},{"line_number":53,"context_line":"        method is supposed to execute ASAP to inform user that"},{"line_number":54,"context_line":"        API is up and running."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        :param falcon.Request req: current request"},{"line_number":57,"context_line":"        :param falcon.Response res: current response"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"        \"\"\""},{"line_number":60,"context_line":"        res.status \u003d falcon.HTTP_501"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_a935a3aa","line":60,"range":{"start_line":47,"start_character":0,"end_line":60,"end_character":36},"in_reply_to":"7f515b1d_fb15f049","updated":"2017-10-04 08:21:10.000000000","message":"I move filed from this class to  HealthCheck file, and remove this file.  I think this ways is easier to understated code.","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"}],"monasca_events_api/app/controller/api/versions_api.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 kornicameister@gmail.com"},{"line_number":2,"context_line":"# Copyright 2015 FUJITSU LIMITED"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":5,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_5e02b20b","line":2,"range":{"start_line":2,"start_character":12,"end_line":2,"end_character":16},"updated":"2017-09-29 12:16:18.000000000","message":"date","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 kornicameister@gmail.com"},{"line_number":2,"context_line":"# Copyright 2015 FUJITSU LIMITED"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":5,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_e9003bae","line":2,"range":{"start_line":2,"start_character":12,"end_line":2,"end_character":16},"in_reply_to":"7f515b1d_5e02b20b","updated":"2017-10-04 08:21:10.000000000","message":"See comment in healthcheck_api","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":30,"context_line":"        super(VersionsAPI, self).__init__()"},{"line_number":31,"context_line":"        LOG.info(\u0027Initializing VersionsAPI!\u0027)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def on_get(self, req, res, version_id):"},{"line_number":34,"context_line":"        res.status \u003d falcon.HTTP_501"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_bb0bf827","line":34,"range":{"start_line":33,"start_character":0,"end_line":34,"end_character":36},"updated":"2017-09-29 12:16:18.000000000","message":"Add TODO","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":30,"context_line":"        super(VersionsAPI, self).__init__()"},{"line_number":31,"context_line":"        LOG.info(\u0027Initializing VersionsAPI!\u0027)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def on_get(self, req, res, version_id):"},{"line_number":34,"context_line":"        res.status \u003d falcon.HTTP_501"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_e96b9b82","line":34,"range":{"start_line":33,"start_character":0,"end_line":34,"end_character":36},"in_reply_to":"7f515b1d_bb0bf827","updated":"2017-10-04 08:21:10.000000000","message":"See comment in healthcheck_api","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"}],"monasca_events_api/app/controller/healthchecks.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2017FUJITSU LIMITED"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_fe0a7e1d","line":1,"range":{"start_line":1,"start_character":13,"end_line":1,"end_character":22},"updated":"2017-09-29 12:16:18.000000000","message":"Add space","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2017FUJITSU LIMITED"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_a92c834a","line":1,"range":{"start_line":1,"start_character":13,"end_line":1,"end_character":22},"in_reply_to":"7f515b1d_fe0a7e1d","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"d36596e3f23834a2d5aecec5334771e104eac326","unresolved":false,"context_lines":[{"line_number":12,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import collections"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"import falcon"}],"source_content_type":"text/x-python","patch_set":27,"id":"5f4e5783_638e8779","line":15,"updated":"2017-10-11 12:54:11.000000000","message":"Remove one empty line","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"d67a2b42d18b3efd08d0600c896288ba06080bd0","unresolved":false,"context_lines":[{"line_number":12,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import collections"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"import falcon"}],"source_content_type":"text/x-python","patch_set":27,"id":"3f4b6375_5c9faf5e","line":15,"in_reply_to":"5f4e5783_638e8779","updated":"2017-10-23 13:25:11.000000000","message":"Done","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import collections"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import falcon"},{"line_number":18,"context_line":"from monasca_common.rest import utils as rest_utils"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from monasca_events_api.app.healthcheck import kafka_check"}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_7d4360b0","line":17,"range":{"start_line":16,"start_character":0,"end_line":17,"end_character":13},"updated":"2017-11-16 11:27:03.000000000","message":"move `import falcon` under `import collections`","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import collections"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import falcon"},{"line_number":18,"context_line":"from monasca_common.rest import utils as rest_utils"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from monasca_events_api.app.healthcheck import kafka_check"}],"source_content_type":"text/x-python","patch_set":34,"id":"ff82abbf_4f5ed212","line":17,"range":{"start_line":16,"start_character":0,"end_line":17,"end_character":13},"in_reply_to":"1f485f77_7d4360b0","updated":"2017-12-18 11:20:37.000000000","message":"pep8 documentation:\n\nImports should be grouped in the following order:\n\n    standard library imports\n    related third party imports\n    local application/library specific imports\n\nYou should put a blank line between each group of imports.","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"}],"monasca_events_api/app/controller/v1/body_validation.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"d36596e3f23834a2d5aecec5334771e104eac326","unresolved":false,"context_lines":[{"line_number":11,"context_line":"# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":"import six"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"from oslo_log import log"},{"line_number":17,"context_line":"from voluptuous import Any"}],"source_content_type":"text/x-python","patch_set":27,"id":"5f4e5783_03f3530c","line":14,"updated":"2017-10-11 12:54:11.000000000","message":"Add empty line","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"d67a2b42d18b3efd08d0600c896288ba06080bd0","unresolved":false,"context_lines":[{"line_number":11,"context_line":"# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":"import six"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"from oslo_log import log"},{"line_number":17,"context_line":"from voluptuous import Any"}],"source_content_type":"text/x-python","patch_set":27,"id":"3f4b6375_3c9ab36d","line":14,"in_reply_to":"5f4e5783_03f3530c","updated":"2017-10-23 13:25:11.000000000","message":"Done","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":31,"context_line":"def validate_body(request_body):"},{"line_number":32,"context_line":"    \"\"\"Validate body."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"     Method validate if body contain all required filed,"},{"line_number":35,"context_line":"     and check if all value have correct type."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_3d9cc80d","line":34,"range":{"start_line":34,"start_character":50,"end_line":34,"end_character":55},"updated":"2017-11-16 11:27:03.000000000","message":"fields","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":31,"context_line":"def validate_body(request_body):"},{"line_number":32,"context_line":"    \"\"\"Validate body."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"     Method validate if body contain all required filed,"},{"line_number":35,"context_line":"     and check if all value have correct type."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"df87a7cf_2bbca504","line":34,"range":{"start_line":34,"start_character":50,"end_line":34,"end_character":55},"in_reply_to":"1f485f77_3d9cc80d","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"}],"monasca_events_api/app/controller/v1/bulk_processor.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016 FUJITSU LIMITED"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_fe239ea5","line":1,"range":{"start_line":1,"start_character":15,"end_line":1,"end_character":16},"updated":"2017-09-29 12:16:18.000000000","message":"date","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016 FUJITSU LIMITED"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_69268b6b","line":1,"range":{"start_line":1,"start_character":15,"end_line":1,"end_character":16},"in_reply_to":"7f515b1d_fe239ea5","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":21,"context_line":"CONF \u003d conf.CONF"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"class BulkProcessor(events_publisher.EventPublisher):"},{"line_number":25,"context_line":"    \"\"\"BulkProcessor for effective events processing and publishing."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    BulkProcessor is customized version of"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_0dff7567","line":24,"updated":"2017-09-29 05:54:46.000000000","message":"EventsBulkProcessor","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":21,"context_line":"CONF \u003d conf.CONF"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"class BulkProcessor(events_publisher.EventPublisher):"},{"line_number":25,"context_line":"    \"\"\"BulkProcessor for effective events processing and publishing."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    BulkProcessor is customized version of"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_de3ea2bf","line":24,"in_reply_to":"7f515b1d_0dff7567","updated":"2017-09-29 12:16:18.000000000","message":"+1","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":21,"context_line":"CONF \u003d conf.CONF"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"class BulkProcessor(events_publisher.EventPublisher):"},{"line_number":25,"context_line":"    \"\"\"BulkProcessor for effective events processing and publishing."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    BulkProcessor is customized version of"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_fe427e0e","line":24,"in_reply_to":"7f515b1d_de3ea2bf","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    \"\"\""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def __init__(self):"},{"line_number":34,"context_line":"        \"\"\"Initializes BulkProcessor."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"        \"\"\""},{"line_number":37,"context_line":"        super(BulkProcessor, self).__init__()"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def send_message(self, events):"},{"line_number":40,"context_line":"        \"\"\"Sends bulk package to kafka"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_adf7418b","line":37,"range":{"start_line":33,"start_character":3,"end_line":37,"end_character":45},"updated":"2017-09-29 05:54:46.000000000","message":"Does nothing apart calling super, redundant","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    \"\"\""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def __init__(self):"},{"line_number":34,"context_line":"        \"\"\"Initializes BulkProcessor."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"        \"\"\""},{"line_number":37,"context_line":"        super(BulkProcessor, self).__init__()"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def send_message(self, events):"},{"line_number":40,"context_line":"        \"\"\"Sends bulk package to kafka"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_de4d823e","line":37,"range":{"start_line":33,"start_character":3,"end_line":37,"end_character":45},"in_reply_to":"7f515b1d_adf7418b","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"        \"\"\""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"        num_of_msgs \u003d len(events) if events else 0"},{"line_number":47,"context_line":"        sent_count \u003d 0"},{"line_number":48,"context_line":"        to_send_msgs \u003d []"},{"line_number":49,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_7e444e47","line":46,"range":{"start_line":46,"start_character":8,"end_line":46,"end_character":19},"updated":"2017-09-29 12:16:18.000000000","message":"Where it is used beside debug msg?","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"        \"\"\""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"        num_of_msgs \u003d len(events) if events else 0"},{"line_number":47,"context_line":"        sent_count \u003d 0"},{"line_number":48,"context_line":"        to_send_msgs \u003d []"},{"line_number":49,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_1e567a07","line":46,"range":{"start_line":46,"start_character":49,"end_line":46,"end_character":50},"updated":"2017-09-29 12:16:18.000000000","message":"exit on 0","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":65,"context_line":"            LOG.exception(ex)"},{"line_number":66,"context_line":"            raise ex"},{"line_number":67,"context_line":"        finally:"},{"line_number":68,"context_line":"            self._after_publish(sent_count, len(to_send_msgs))"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_fe715ea9","line":68,"range":{"start_line":68,"start_character":32,"end_line":68,"end_character":61},"updated":"2017-09-29 12:16:18.000000000","message":"You are comparing same values:\nsent_count \u003d len(to_send_msgs)","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                    to_send_msgs.append(t_el)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"            self._publish(to_send_msgs)"},{"line_number":53,"context_line":"            sent_count \u003d len(to_send_msgs)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        except Exception as ex:"},{"line_number":56,"context_line":"            LOG.error(\u0027Failed to send bulk package \u003cevents\u003d%d, dimensions\u003d%s\u003e\u0027,"}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_f76acc17","line":53,"range":{"start_line":53,"start_character":12,"end_line":53,"end_character":42},"updated":"2017-11-16 11:27:03.000000000","message":"same as previously, how `sent_count` could be different than `num_of_msgs`?","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"}],"monasca_events_api/app/controller/v1/events.py":[{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    def on_post(self, req, res):"},{"line_number":35,"context_line":"        try:"},{"line_number":36,"context_line":"            request_body \u003d helpers.read_json_msg_body(req)"},{"line_number":37,"context_line":"            req.can(\u0027events_api:agent_required\u0027)"},{"line_number":38,"context_line":"            events_list \u003d self._get_events(request_body)"},{"line_number":39,"context_line":"            self._get_timestamp(request_body)"},{"line_number":40,"context_line":"            self._processor.send_message(events_list)"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_adf621d6","line":37,"updated":"2017-09-29 05:54:46.000000000","message":"This should happen prior to any body reading etc etc etc.\nI suggest something adding this as @falcon.before. I will try and find if there are some decorators inside oslo_context that we could use to annotate methods that needs authorization prior to calling.","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        res.status \u003d falcon.HTTP_200"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    @staticmethod"},{"line_number":50,"context_line":"    def _get_events(request_body):"},{"line_number":51,"context_line":"        \"\"\"Get the event from HTTP request body."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        :param request_body:  Request body"},{"line_number":54,"context_line":"        :type request_body: dict"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        :exception: :py:class:`falcon.HTTPUnprocessableEntity`"},{"line_number":57,"context_line":"        :return: dict with events"},{"line_number":58,"context_line":"        \"\"\""},{"line_number":59,"context_line":"        if \u0027events\u0027 not in request_body:"},{"line_number":60,"context_line":"            raise falcon.HTTPUnprocessableEntity("},{"line_number":61,"context_line":"                \u0027Unprocessable Entity. Events not found.\u0027"},{"line_number":62,"context_line":"            )"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"        return request_body[\u0027events\u0027]"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    @staticmethod"},{"line_number":67,"context_line":"    def _get_timestamp(request_body):"},{"line_number":68,"context_line":"        \"\"\"Get the timestamp from HTTP request body."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        :param request_body:  Request body"},{"line_number":71,"context_line":"        :type request_body: dict"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"        :exception: :py:class:`falcon.HTTPUnprocessableEntity`"},{"line_number":74,"context_line":"        :return: timestamp"},{"line_number":75,"context_line":"        \"\"\""},{"line_number":76,"context_line":"        if \u0027timestamp\u0027 not in request_body:"},{"line_number":77,"context_line":"            raise falcon.HTTPUnprocessableEntity("},{"line_number":78,"context_line":"                \u0027Unprocessable Entity. Timestamp not found.\u0027"},{"line_number":79,"context_line":"            )"},{"line_number":80,"context_line":"        return request_body[\u0027timestamp\u0027]"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_edb779f4","line":80,"range":{"start_line":49,"start_character":4,"end_line":80,"end_character":40},"updated":"2017-09-29 05:54:46.000000000","message":"In overall, ok - but on the other hand I think it might be a little bit better to use `voluptuous` library. The event payload (or rather body) will have a standardized structure anyway therefore we could have the schema that would validate it. Having that said, we could go even couple steps further and validate per specific event source (i,e, glance, nova).","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"608d3449f817ceafafcee27111b640f4553f97f2","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        res.status \u003d falcon.HTTP_200"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    @staticmethod"},{"line_number":50,"context_line":"    def _get_events(request_body):"},{"line_number":51,"context_line":"        \"\"\"Get the event from HTTP request body."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        :param request_body:  Request body"},{"line_number":54,"context_line":"        :type request_body: dict"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        :exception: :py:class:`falcon.HTTPUnprocessableEntity`"},{"line_number":57,"context_line":"        :return: dict with events"},{"line_number":58,"context_line":"        \"\"\""},{"line_number":59,"context_line":"        if \u0027events\u0027 not in request_body:"},{"line_number":60,"context_line":"            raise falcon.HTTPUnprocessableEntity("},{"line_number":61,"context_line":"                \u0027Unprocessable Entity. Events not found.\u0027"},{"line_number":62,"context_line":"            )"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"        return request_body[\u0027events\u0027]"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    @staticmethod"},{"line_number":67,"context_line":"    def _get_timestamp(request_body):"},{"line_number":68,"context_line":"        \"\"\"Get the timestamp from HTTP request body."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        :param request_body:  Request body"},{"line_number":71,"context_line":"        :type request_body: dict"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"        :exception: :py:class:`falcon.HTTPUnprocessableEntity`"},{"line_number":74,"context_line":"        :return: timestamp"},{"line_number":75,"context_line":"        \"\"\""},{"line_number":76,"context_line":"        if \u0027timestamp\u0027 not in request_body:"},{"line_number":77,"context_line":"            raise falcon.HTTPUnprocessableEntity("},{"line_number":78,"context_line":"                \u0027Unprocessable Entity. Timestamp not found.\u0027"},{"line_number":79,"context_line":"            )"},{"line_number":80,"context_line":"        return request_body[\u0027timestamp\u0027]"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_85a699aa","line":80,"range":{"start_line":49,"start_character":4,"end_line":80,"end_character":40},"in_reply_to":"7f515b1d_edb779f4","updated":"2017-09-29 11:40:55.000000000","message":"Good point, I think is good idea to try \u0027voluptuous\u0027.","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"}],"monasca_events_api/app/controller/versions.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"627a6a918e69447ad387a95af6de8535e31498b4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 kornicameister@gmail.com"},{"line_number":2,"context_line":"# Copyright 2016 FUJITSU LIMITED"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":5,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_3ea136f9","line":2,"range":{"start_line":2,"start_character":11,"end_line":2,"end_character":16},"updated":"2017-09-29 12:16:18.000000000","message":"date","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 kornicameister@gmail.com"},{"line_number":2,"context_line":"# Copyright 2016 FUJITSU LIMITED"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":5,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_69db2b4f","line":2,"range":{"start_line":2,"start_character":11,"end_line":2,"end_character":16},"in_reply_to":"7f515b1d_3ea136f9","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"}],"monasca_events_api/app/core/error_handlers.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"e494be88663ec372ffd1bdf8b15b6a1642ea9d9c","unresolved":false,"context_lines":[{"line_number":11,"context_line":"# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import falcon"},{"line_number":17,"context_line":""}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_7e4e8e38","line":14,"range":{"start_line":14,"start_character":0,"end_line":14,"end_character":0},"updated":"2017-09-29 13:02:48.000000000","message":"too many empty lines","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"62412e15456182927575a4c570b1adf1ee2eb820","unresolved":false,"context_lines":[{"line_number":11,"context_line":"# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import falcon"},{"line_number":17,"context_line":""}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_0faa7418","line":14,"range":{"start_line":14,"start_character":0,"end_line":14,"end_character":0},"in_reply_to":"7f515b1d_7e4e8e38","updated":"2017-10-04 11:43:58.000000000","message":"Done","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"}],"monasca_events_api/app/core/model.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"def prepare_message_to_sent(body):"},{"line_number":17,"context_line":"    \"\"\"prepare_message_to_sent prepare message to proper format, actapable"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    :param dict body: original request body"},{"line_number":20,"context_line":"    :return dict: prepared message for publish to kafka"}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_1ab0ed42","line":17,"range":{"start_line":17,"start_character":65,"end_line":17,"end_character":74},"updated":"2017-11-16 11:27:03.000000000","message":"?","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"def prepare_message_to_sent(body):"},{"line_number":17,"context_line":"    \"\"\"prepare_message_to_sent prepare message to proper format, actapable"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    :param dict body: original request body"},{"line_number":20,"context_line":"    :return dict: prepared message for publish to kafka"}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_3a804946","line":17,"range":{"start_line":17,"start_character":31,"end_line":17,"end_character":63},"updated":"2017-11-16 11:27:03.000000000","message":"convert message to proper format","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"def prepare_message_to_sent(body):"},{"line_number":17,"context_line":"    \"\"\"prepare_message_to_sent prepare message to proper format, actapable"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    :param dict body: original request body"},{"line_number":20,"context_line":"    :return dict: prepared message for publish to kafka"}],"source_content_type":"text/x-python","patch_set":34,"id":"df87a7cf_4bb9e912","line":17,"range":{"start_line":17,"start_character":31,"end_line":17,"end_character":63},"in_reply_to":"1f485f77_3a804946","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"}],"monasca_events_api/app/core/request.py":[{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        if self.is_admin is None:"},{"line_number":40,"context_line":"            self.is_admin \u003d policy.check_is_admin(self)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def to_policy_values(self):"},{"line_number":43,"context_line":"        policy \u003d self.context.to_policy_values()"},{"line_number":44,"context_line":"        policy[\u0027is_admin\u0027] \u003d self.is_admin"},{"line_number":45,"context_line":"        return policy"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def can(self, action, target\u003dNone):"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        if target is None:"},{"line_number":50,"context_line":"            target \u003d {\u0027project_id\u0027: self.context.project_id,"},{"line_number":51,"context_line":"                      \u0027user_id\u0027: self.context.user_id}"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        return policy.authorize(self, action\u003daction, target\u003dtarget)"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_8d5365e2","line":53,"range":{"start_line":42,"start_character":4,"end_line":53,"end_character":67},"updated":"2017-09-29 05:54:46.000000000","message":"To be honest, the way this is done is slightly wrong. We actually should have these inside context. Having that said, let\u0027s subclass the context class (i.e. oslo_context.context.RequestContext) to our own instance that would have these methods defined there.","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"51348c24193ad29d353bcce665f21e723cdd83f4","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        if self.is_admin is None:"},{"line_number":40,"context_line":"            self.is_admin \u003d policy.check_is_admin(self)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def to_policy_values(self):"},{"line_number":43,"context_line":"        policy \u003d self.context.to_policy_values()"},{"line_number":44,"context_line":"        policy[\u0027is_admin\u0027] \u003d self.is_admin"},{"line_number":45,"context_line":"        return policy"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def can(self, action, target\u003dNone):"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        if target is None:"},{"line_number":50,"context_line":"            target \u003d {\u0027project_id\u0027: self.context.project_id,"},{"line_number":51,"context_line":"                      \u0027user_id\u0027: self.context.user_id}"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        return policy.authorize(self, action\u003daction, target\u003dtarget)"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"5f4e5783_2b33cbad","line":53,"range":{"start_line":42,"start_character":4,"end_line":53,"end_character":67},"in_reply_to":"7f515b1d_8d5365e2","updated":"2017-10-11 08:59:05.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from monasca_events_api.app.core import request_contex"},{"line_number":18,"context_line":"from monasca_events_api import policy"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from oslo_log import log"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_dabc9507","line":20,"range":{"start_line":20,"start_character":0,"end_line":20,"end_character":24},"updated":"2017-11-16 11:27:03.000000000","message":"should be before monasca imports","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from monasca_events_api.app.core import request_contex"},{"line_number":18,"context_line":"from monasca_events_api import policy"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from oslo_log import log"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"df87a7cf_ab3d158f","line":20,"range":{"start_line":20,"start_character":0,"end_line":20,"end_character":24},"in_reply_to":"1f485f77_dabc9507","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"}],"monasca_events_api/app/core/request_contex.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"d36596e3f23834a2d5aecec5334771e104eac326","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class RequestContext(context.RequestContext):"},{"line_number":21,"context_line":"    \"\"\"CustomRequestContext."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    CustomRequestContext is customized version of"},{"line_number":24,"context_line":"    :py:class:oslo_context.context.RequestContext."},{"line_number":25,"context_line":"    \"\"\""},{"line_number":26,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"5f4e5783_36056fc3","line":23,"range":{"start_line":21,"start_character":7,"end_line":23,"end_character":24},"updated":"2017-10-11 12:54:11.000000000","message":"should be RequestContext","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"d67a2b42d18b3efd08d0600c896288ba06080bd0","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class RequestContext(context.RequestContext):"},{"line_number":21,"context_line":"    \"\"\"CustomRequestContext."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    CustomRequestContext is customized version of"},{"line_number":24,"context_line":"    :py:class:oslo_context.context.RequestContext."},{"line_number":25,"context_line":"    \"\"\""},{"line_number":26,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"3f4b6375_fc8d3b31","line":23,"range":{"start_line":21,"start_character":7,"end_line":23,"end_character":24},"in_reply_to":"5f4e5783_36056fc3","updated":"2017-10-23 13:25:11.000000000","message":"Done","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"}],"monasca_events_api/app/model/envelope.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"e494be88663ec372ffd1bdf8b15b6a1642ea9d9c","unresolved":false,"context_lines":[{"line_number":11,"context_line":"# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"class EventsEnvelopeException(Exception):"},{"line_number":17,"context_line":"    pass"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_7e67aeb8","line":14,"range":{"start_line":14,"start_character":0,"end_line":14,"end_character":0},"updated":"2017-09-29 13:02:48.000000000","message":"too many empty lines","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"62412e15456182927575a4c570b1adf1ee2eb820","unresolved":false,"context_lines":[{"line_number":11,"context_line":"# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"class EventsEnvelopeException(Exception):"},{"line_number":17,"context_line":"    pass"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_6fa2084e","line":14,"range":{"start_line":14,"start_character":0,"end_line":14,"end_character":0},"in_reply_to":"7f515b1d_7e67aeb8","updated":"2017-10-04 11:43:58.000000000","message":"Class should be preceded by two empty line","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"}],"monasca_events_api/conf/events_publisher.py":[{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":24,"context_line":"    cfg.MultiStrOpt(\u0027topics\u0027,"},{"line_number":25,"context_line":"                    default\u003d[\u0027monevents\u0027],"},{"line_number":26,"context_line":"                    help\u003d\u0027Consumer topics\u0027),"},{"line_number":27,"context_line":"    cfg.IntOpt(\u0027max_message_size\u0027,"},{"line_number":28,"context_line":"               default\u003d_MAX_MESSAGE_SIZE,"},{"line_number":29,"context_line":"               required\u003dTrue,"},{"line_number":30,"context_line":"               help\u003d(\u0027Message max size that can be sent \u0027"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_2d959133","line":27,"updated":"2017-09-29 05:54:46.000000000","message":"See comment in event_publisher about that bit.","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":24,"context_line":"    cfg.MultiStrOpt(\u0027topics\u0027,"},{"line_number":25,"context_line":"                    default\u003d[\u0027monevents\u0027],"},{"line_number":26,"context_line":"                    help\u003d\u0027Consumer topics\u0027),"},{"line_number":27,"context_line":"    cfg.IntOpt(\u0027max_message_size\u0027,"},{"line_number":28,"context_line":"               default\u003d_MAX_MESSAGE_SIZE,"},{"line_number":29,"context_line":"               required\u003dTrue,"},{"line_number":30,"context_line":"               help\u003d(\u0027Message max size that can be sent \u0027"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_fe103e02","line":27,"in_reply_to":"7f515b1d_2d959133","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"e494be88663ec372ffd1bdf8b15b6a1642ea9d9c","unresolved":false,"context_lines":[{"line_number":22,"context_line":"               help\u003d\u0027Url to kafka server\u0027,"},{"line_number":23,"context_line":"               default\u003d\"127.0.0.1:9092\"),"},{"line_number":24,"context_line":"    cfg.MultiStrOpt(\u0027topics\u0027,"},{"line_number":25,"context_line":"                    default\u003d[\u0027monevents\u0027],"},{"line_number":26,"context_line":"                    help\u003d\u0027Consumer topics\u0027)"},{"line_number":27,"context_line":"]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"events_publisher_group \u003d cfg.OptGroup(name\u003d\u0027events_publisher\u0027,"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_5ed6322a","line":26,"range":{"start_line":25,"start_character":20,"end_line":26,"end_character":42},"updated":"2017-09-29 13:02:48.000000000","message":"move default under help","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"62412e15456182927575a4c570b1adf1ee2eb820","unresolved":false,"context_lines":[{"line_number":22,"context_line":"               help\u003d\u0027Url to kafka server\u0027,"},{"line_number":23,"context_line":"               default\u003d\"127.0.0.1:9092\"),"},{"line_number":24,"context_line":"    cfg.MultiStrOpt(\u0027topics\u0027,"},{"line_number":25,"context_line":"                    default\u003d[\u0027monevents\u0027],"},{"line_number":26,"context_line":"                    help\u003d\u0027Consumer topics\u0027)"},{"line_number":27,"context_line":"]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"events_publisher_group \u003d cfg.OptGroup(name\u003d\u0027events_publisher\u0027,"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_efa6f853","line":26,"range":{"start_line":25,"start_character":20,"end_line":26,"end_character":42},"in_reply_to":"7f515b1d_5ed6322a","updated":"2017-10-04 11:43:58.000000000","message":"Done","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"e494be88663ec372ffd1bdf8b15b6a1642ea9d9c","unresolved":false,"context_lines":[{"line_number":27,"context_line":"]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"events_publisher_group \u003d cfg.OptGroup(name\u003d\u0027events_publisher\u0027,"},{"line_number":30,"context_line":"                                      title\u003d\u0027event_publisher\u0027)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"def register_opts(conf):"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_fedefe3b","line":30,"updated":"2017-09-29 13:02:48.000000000","message":"s","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"62412e15456182927575a4c570b1adf1ee2eb820","unresolved":false,"context_lines":[{"line_number":27,"context_line":"]"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"events_publisher_group \u003d cfg.OptGroup(name\u003d\u0027events_publisher\u0027,"},{"line_number":30,"context_line":"                                      title\u003d\u0027event_publisher\u0027)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"def register_opts(conf):"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_cf61fc13","line":30,"in_reply_to":"7f515b1d_fedefe3b","updated":"2017-10-04 11:43:58.000000000","message":"Done","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"}],"monasca_events_api/conf/service.py":[{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":"service_opts \u003d ["},{"line_number":19,"context_line":"    cfg.StrOpt(\u0027region\u0027,"},{"line_number":20,"context_line":"               default\u003dNone,"},{"line_number":21,"context_line":"               help\u003d\u0027Region\u0027)"},{"line_number":22,"context_line":"]"},{"line_number":23,"context_line":"service_group \u003d cfg.OptGroup(name\u003d\u0027service\u0027, title\u003d\u0027service\u0027)"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_8dab6573","line":20,"updated":"2017-09-29 05:54:46.000000000","message":"default\u003dos.environ.get(OS_REGION, None)\nsample_default\u003dNone","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":15,"context_line":"from oslo_config import cfg"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"service_opts \u003d ["},{"line_number":19,"context_line":"    cfg.StrOpt(\u0027region\u0027,"},{"line_number":20,"context_line":"               default\u003dNone,"},{"line_number":21,"context_line":"               help\u003d\u0027Region\u0027)"},{"line_number":22,"context_line":"]"},{"line_number":23,"context_line":"service_group \u003d cfg.OptGroup(name\u003d\u0027service\u0027, title\u003d\u0027service\u0027)"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"def register_opts(conf):"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_4d09ed93","line":23,"range":{"start_line":18,"start_character":1,"end_line":23,"end_character":61},"updated":"2017-09-29 05:54:46.000000000","message":"Hmm...I didn\u0027t check where it is used or so and this comment might be just useless but:\n\n1st: Shouldn\u0027t the region be retrieved from the event to also point to the one event comes from and if its not there use this option.\n\n2nd: I think, might be wrong, that this option will be used only during processing the events in BulkProcessor or somewhere there therefore should be placed in options under group related to that service. Instead of the default one. \n\n3rd: I would call this option default_region","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"51348c24193ad29d353bcce665f21e723cdd83f4","unresolved":false,"context_lines":[{"line_number":15,"context_line":"from oslo_config import cfg"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"service_opts \u003d ["},{"line_number":19,"context_line":"    cfg.StrOpt(\u0027region\u0027,"},{"line_number":20,"context_line":"               default\u003dNone,"},{"line_number":21,"context_line":"               help\u003d\u0027Region\u0027)"},{"line_number":22,"context_line":"]"},{"line_number":23,"context_line":"service_group \u003d cfg.OptGroup(name\u003d\u0027service\u0027, title\u003d\u0027service\u0027)"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"def register_opts(conf):"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f4e5783_ab70db73","line":23,"range":{"start_line":18,"start_character":1,"end_line":23,"end_character":61},"in_reply_to":"7f515b1d_4d09ed93","updated":"2017-10-11 08:59:05.000000000","message":"I remove this configuration option, in my opinion it not make sanes to add default_ragion to event","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"e494be88663ec372ffd1bdf8b15b6a1642ea9d9c","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":"service_opts \u003d ["},{"line_number":19,"context_line":"    cfg.StrOpt(\u0027region\u0027,"},{"line_number":20,"context_line":"               default\u003dNone,"},{"line_number":21,"context_line":"               help\u003d\u0027Region\u0027)"},{"line_number":22,"context_line":"]"},{"line_number":23,"context_line":"service_group \u003d cfg.OptGroup(name\u003d\u0027service\u0027, title\u003d\u0027service\u0027)"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_7eea0ed8","line":21,"range":{"start_line":20,"start_character":15,"end_line":21,"end_character":28},"updated":"2017-09-29 13:02:48.000000000","message":"move default under help","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"62412e15456182927575a4c570b1adf1ee2eb820","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":"service_opts \u003d ["},{"line_number":19,"context_line":"    cfg.StrOpt(\u0027region\u0027,"},{"line_number":20,"context_line":"               default\u003dNone,"},{"line_number":21,"context_line":"               help\u003d\u0027Region\u0027)"},{"line_number":22,"context_line":"]"},{"line_number":23,"context_line":"service_group \u003d cfg.OptGroup(name\u003d\u0027service\u0027, title\u003d\u0027service\u0027)"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_4f750ccc","line":21,"range":{"start_line":20,"start_character":15,"end_line":21,"end_character":28},"in_reply_to":"7f515b1d_7eea0ed8","updated":"2017-10-04 11:43:58.000000000","message":"Done","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"}],"monasca_events_api/conf/validation.py":[{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":23,"context_line":"                    \u0027API will throw an error\u0027)"},{"line_number":24,"context_line":"]"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"validation_m_group \u003d cfg.OptGroup(name\u003d\u0027validation_middleware\u0027,"},{"line_number":27,"context_line":"                                  title\u003d\u0027validation_middleware\u0027)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_ad3ce12e","line":26,"updated":"2017-09-29 05:54:46.000000000","message":"Hmm...I think that this kind of validation can be easily replaced by the oslo middleware that will validate the size of the request prior to entering the API. If log-api does the same, well I think this is the flaw we can have fixed later on as well.","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"a52cfc963271d62e4776e41e6f2a075c17d1e687","unresolved":false,"context_lines":[{"line_number":23,"context_line":"                    \u0027API will throw an error\u0027)"},{"line_number":24,"context_line":"]"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"validation_m_group \u003d cfg.OptGroup(name\u003d\u0027validation_middleware\u0027,"},{"line_number":27,"context_line":"                                  title\u003d\u0027validation_middleware\u0027)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_c09f8963","line":26,"in_reply_to":"7f515b1d_5b09a493","updated":"2017-10-04 13:38:47.000000000","message":"Validation of event request body size now is done by oslo middleware, so this file is removed : )","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"608d3449f817ceafafcee27111b640f4553f97f2","unresolved":false,"context_lines":[{"line_number":23,"context_line":"                    \u0027API will throw an error\u0027)"},{"line_number":24,"context_line":"]"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"validation_m_group \u003d cfg.OptGroup(name\u003d\u0027validation_middleware\u0027,"},{"line_number":27,"context_line":"                                  title\u003d\u0027validation_middleware\u0027)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_5b09a493","line":26,"in_reply_to":"7f515b1d_ad3ce12e","updated":"2017-09-29 11:40:55.000000000","message":"I will check if it possible to use osslo middleware to validate the request size.","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":24,"context_line":"]"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"validation_m_group \u003d cfg.OptGroup(name\u003d\u0027validation_middleware\u0027,"},{"line_number":27,"context_line":"                                  title\u003d\u0027validation_middleware\u0027)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"def register_opts(conf):"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_2d1a31cb","line":27,"updated":"2017-09-29 05:54:46.000000000","message":"Validation middleware options","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"4fb245dcdcc74c7230ddc1ba41e687c984f15da8","unresolved":false,"context_lines":[{"line_number":24,"context_line":"]"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"validation_m_group \u003d cfg.OptGroup(name\u003d\u0027validation_middleware\u0027,"},{"line_number":27,"context_line":"                                  title\u003d\u0027validation_middleware\u0027)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"def register_opts(conf):"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_fe295e36","line":27,"in_reply_to":"7f515b1d_2d1a31cb","updated":"2017-10-04 08:21:10.000000000","message":"Done","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"e494be88663ec372ffd1bdf8b15b6a1642ea9d9c","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"validation_m_opts \u003d ["},{"line_number":20,"context_line":"    cfg.IntOpt(name\u003d\u0027max_event_size\u0027,"},{"line_number":21,"context_line":"               default\u003d_DEFAULT_MAX_EVENT_SIZE,"},{"line_number":22,"context_line":"               help\u003d\u0027Refers to payload/envelope size. If either is exceeded\u0027"},{"line_number":23,"context_line":"                    \u0027API will throw an error\u0027)"},{"line_number":24,"context_line":"]"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"validation_m_group \u003d cfg.OptGroup(name\u003d\u0027validation_middleware\u0027,"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_feb71ef4","line":23,"range":{"start_line":21,"start_character":15,"end_line":23,"end_character":45},"updated":"2017-09-29 13:02:48.000000000","message":"move default under help","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"62412e15456182927575a4c570b1adf1ee2eb820","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"validation_m_opts \u003d ["},{"line_number":20,"context_line":"    cfg.IntOpt(name\u003d\u0027max_event_size\u0027,"},{"line_number":21,"context_line":"               default\u003d_DEFAULT_MAX_EVENT_SIZE,"},{"line_number":22,"context_line":"               help\u003d\u0027Refers to payload/envelope size. If either is exceeded\u0027"},{"line_number":23,"context_line":"                    \u0027API will throw an error\u0027)"},{"line_number":24,"context_line":"]"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"validation_m_group \u003d cfg.OptGroup(name\u003d\u0027validation_middleware\u0027,"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_0f7f14ac","line":23,"range":{"start_line":21,"start_character":15,"end_line":23,"end_character":45},"in_reply_to":"7f515b1d_feb71ef4","updated":"2017-10-04 11:43:58.000000000","message":"Done","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"}],"monasca_events_api/middleware/validation_middleware.py":[{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        )"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"class ValidationMiddleware(base.ConfigurableMiddleware):"},{"line_number":93,"context_line":"    \"\"\"Middleware that validates request content."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_ad6aa116","line":92,"updated":"2017-09-29 05:54:46.000000000","message":"Please check if these cannot be replaced by middleware from oslo.middleware library.","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"608d3449f817ceafafcee27111b640f4553f97f2","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        )"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"class ValidationMiddleware(base.ConfigurableMiddleware):"},{"line_number":93,"context_line":"    \"\"\"Middleware that validates request content."},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_3be388db","line":92,"in_reply_to":"7f515b1d_ad6aa116","updated":"2017-09-29 11:40:55.000000000","message":"I will check that.","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"e494be88663ec372ffd1bdf8b15b6a1642ea9d9c","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    If Content-Type cannot be established (i.e. header is missing),"},{"line_number":32,"context_line":"    :py:class:`falcon.HTTPMissingHeader` is thrown."},{"line_number":33,"context_line":"    If Content-Type is not **application/json** or **test/plain**,"},{"line_number":34,"context_line":"    :py:class:`falcon.HTTPUnsupportedMediaType` is thrown."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    :param falcon.Request req: current request"},{"line_number":37,"context_line":""}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_be92c655","line":34,"range":{"start_line":33,"start_character":0,"end_line":34,"end_character":58},"updated":"2017-09-29 13:02:48.000000000","message":"Documentation is wrong, user provide supported content types.","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"62412e15456182927575a4c570b1adf1ee2eb820","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    If Content-Type cannot be established (i.e. header is missing),"},{"line_number":32,"context_line":"    :py:class:`falcon.HTTPMissingHeader` is thrown."},{"line_number":33,"context_line":"    If Content-Type is not **application/json** or **test/plain**,"},{"line_number":34,"context_line":"    :py:class:`falcon.HTTPUnsupportedMediaType` is thrown."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    :param falcon.Request req: current request"},{"line_number":37,"context_line":""}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_8f442476","line":34,"range":{"start_line":33,"start_character":0,"end_line":34,"end_character":58},"in_reply_to":"7f515b1d_be92c655","updated":"2017-10-04 11:43:58.000000000","message":"Done","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"e494be88663ec372ffd1bdf8b15b6a1642ea9d9c","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    Payload size is being compared with:"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        [validation_middleware]"},{"line_number":63,"context_line":"        max_event_size \u003d 1048576"},{"line_number":64,"context_line":"    If sent payload exceeds maximum allowed content length"},{"line_number":65,"context_line":"    :py:class:`falcon.HTTPRequestEntityTooLarge` is thrown."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    :param falcon.Request req: current request"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_7e98ce73","line":64,"range":{"start_line":63,"start_character":0,"end_line":64,"end_character":5},"updated":"2017-09-29 13:02:48.000000000","message":"add empty line","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"62412e15456182927575a4c570b1adf1ee2eb820","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    Payload size is being compared with:"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        [validation_middleware]"},{"line_number":63,"context_line":"        max_event_size \u003d 1048576"},{"line_number":64,"context_line":"    If sent payload exceeds maximum allowed content length"},{"line_number":65,"context_line":"    :py:class:`falcon.HTTPRequestEntityTooLarge` is thrown."},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    :param falcon.Request req: current request"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_4f5e2c46","line":64,"range":{"start_line":63,"start_character":0,"end_line":64,"end_character":5},"in_reply_to":"7f515b1d_7e98ce73","updated":"2017-10-04 11:43:58.000000000","message":"Done","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"d36596e3f23834a2d5aecec5334771e104eac326","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    If Content-Type cannot be established (i.e. header is missing),"},{"line_number":34,"context_line":"    :py:class:`falcon.HTTPMissingHeader` is thrown."},{"line_number":35,"context_line":"    If Content-Type is not **application/json**( supported contents"},{"line_number":36,"context_line":"    types are define in SUPPORTED_CONTENT_TYPES variable),"},{"line_number":37,"context_line":"    :py:class:`falcon.HTTPUnsupportedMediaType` is thrown."},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"5f4e5783_76f087ca","line":35,"updated":"2017-10-11 12:54:11.000000000","message":"add space","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"d36596e3f23834a2d5aecec5334771e104eac326","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    If Content-Type cannot be established (i.e. header is missing),"},{"line_number":34,"context_line":"    :py:class:`falcon.HTTPMissingHeader` is thrown."},{"line_number":35,"context_line":"    If Content-Type is not **application/json**( supported contents"},{"line_number":36,"context_line":"    types are define in SUPPORTED_CONTENT_TYPES variable),"},{"line_number":37,"context_line":"    :py:class:`falcon.HTTPUnsupportedMediaType` is thrown."},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"5f4e5783_56ed8bed","line":35,"range":{"start_line":35,"start_character":48,"end_line":35,"end_character":49},"updated":"2017-10-11 12:54:11.000000000","message":"remove space","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"d67a2b42d18b3efd08d0600c896288ba06080bd0","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    If Content-Type cannot be established (i.e. header is missing),"},{"line_number":34,"context_line":"    :py:class:`falcon.HTTPMissingHeader` is thrown."},{"line_number":35,"context_line":"    If Content-Type is not **application/json**( supported contents"},{"line_number":36,"context_line":"    types are define in SUPPORTED_CONTENT_TYPES variable),"},{"line_number":37,"context_line":"    :py:class:`falcon.HTTPUnsupportedMediaType` is thrown."},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"3f4b6375_dc84bf0e","line":35,"range":{"start_line":35,"start_character":48,"end_line":35,"end_character":49},"in_reply_to":"5f4e5783_56ed8bed","updated":"2017-10-23 13:25:11.000000000","message":"Done","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"d36596e3f23834a2d5aecec5334771e104eac326","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    If Content-Type cannot be established (i.e. header is missing),"},{"line_number":34,"context_line":"    :py:class:`falcon.HTTPMissingHeader` is thrown."},{"line_number":35,"context_line":"    If Content-Type is not **application/json**( supported contents"},{"line_number":36,"context_line":"    types are define in SUPPORTED_CONTENT_TYPES variable),"},{"line_number":37,"context_line":"    :py:class:`falcon.HTTPUnsupportedMediaType` is thrown."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    :param falcon.Request req: current request"}],"source_content_type":"text/x-python","patch_set":27,"id":"5f4e5783_16c15355","line":36,"updated":"2017-10-11 12:54:11.000000000","message":"d","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":16,"context_line":"from oslo_log import log"},{"line_number":17,"context_line":"from oslo_middleware import base"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from monasca_events_api import config"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"CONF \u003d config.CONF"}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_face3158","line":19,"updated":"2017-11-16 11:27:03.000000000","message":"remove one empty line","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    If Content-Type cannot be established (i.e. header is missing),"},{"line_number":34,"context_line":"    :py:class:`falcon.HTTPMissingHeader` is thrown."},{"line_number":35,"context_line":"    If Content-Type is not **application/json**(supported contents"},{"line_number":36,"context_line":"    types are define in SUPPORTED_CONTENT_TYPES variable),"},{"line_number":37,"context_line":"    :py:class:`falcon.HTTPUnsupportedMediaType` is thrown."},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_5afd456c","line":35,"updated":"2017-11-16 11:27:03.000000000","message":"add space","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    If Content-Type cannot be established (i.e. header is missing),"},{"line_number":34,"context_line":"    :py:class:`falcon.HTTPMissingHeader` is thrown."},{"line_number":35,"context_line":"    If Content-Type is not **application/json**(supported contents"},{"line_number":36,"context_line":"    types are define in SUPPORTED_CONTENT_TYPES variable),"},{"line_number":37,"context_line":"    :py:class:`falcon.HTTPUnsupportedMediaType` is thrown."},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"df87a7cf_8b48512d","line":35,"in_reply_to":"1f485f77_5afd456c","updated":"2017-12-18 11:20:37.000000000","message":"Done","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"}],"monasca_events_api/policies/agent.py":[{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":18,"context_line":"agent_policies \u003d ["},{"line_number":19,"context_line":"    policy.DocumentedRuleDefault("},{"line_number":20,"context_line":"        name\u003d\u0027events_api:agent_required\u0027,"},{"line_number":21,"context_line":"        check_str\u003d\u0027role:monasca or role:admin\u0027,"},{"line_number":22,"context_line":"        description\u003d\u0027Send events to api\u0027,"},{"line_number":23,"context_line":"        operations\u003d[{\u0027path\u0027: \u0027/v1.0/events\u0027, \u0027method\u0027: \u0027POST\u0027}]"},{"line_number":24,"context_line":"    )"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_cd583d89","line":21,"updated":"2017-09-29 05:54:46.000000000","message":"Why this change ?","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"608d3449f817ceafafcee27111b640f4553f97f2","unresolved":false,"context_lines":[{"line_number":18,"context_line":"agent_policies \u003d ["},{"line_number":19,"context_line":"    policy.DocumentedRuleDefault("},{"line_number":20,"context_line":"        name\u003d\u0027events_api:agent_required\u0027,"},{"line_number":21,"context_line":"        check_str\u003d\u0027role:monasca or role:admin\u0027,"},{"line_number":22,"context_line":"        description\u003d\u0027Send events to api\u0027,"},{"line_number":23,"context_line":"        operations\u003d[{\u0027path\u0027: \u0027/v1.0/events\u0027, \u0027method\u0027: \u0027POST\u0027}]"},{"line_number":24,"context_line":"    )"}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_5b8d2430","line":21,"in_reply_to":"7f515b1d_cd583d89","updated":"2017-09-29 11:40:55.000000000","message":"To allow admin role also push events, maybe it\u0027s better if only monasca role can push event\u0027s.","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":16168,"name":"Tomasz Trębski","email":"kornicameister@gmail.com","username":"trebskit"},"change_message_id":"91d2f4fccad84984d49d54cad80f1c9e2fcb6bc5","unresolved":false,"context_lines":[{"line_number":20,"context_line":"        name\u003d\u0027events_api:agent_required\u0027,"},{"line_number":21,"context_line":"        check_str\u003d\u0027role:monasca or role:admin\u0027,"},{"line_number":22,"context_line":"        description\u003d\u0027Send events to api\u0027,"},{"line_number":23,"context_line":"        operations\u003d[{\u0027path\u0027: \u0027/v1.0/events\u0027, \u0027method\u0027: \u0027POST\u0027}]"},{"line_number":24,"context_line":"    )"},{"line_number":25,"context_line":"]"},{"line_number":26,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_ed5d3979","line":23,"updated":"2017-09-29 05:54:46.000000000","message":"Ok, but do we really have to use /v1.0/ in here ? I know it is Artur\u0027s code we could ask him once he\u0027s back from holiday. But that seems like if we ever go with newer API version we will have to duplicate the code here or add newer version. Can\u0027t it be completed without /v1.0/","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"608d3449f817ceafafcee27111b640f4553f97f2","unresolved":false,"context_lines":[{"line_number":20,"context_line":"        name\u003d\u0027events_api:agent_required\u0027,"},{"line_number":21,"context_line":"        check_str\u003d\u0027role:monasca or role:admin\u0027,"},{"line_number":22,"context_line":"        description\u003d\u0027Send events to api\u0027,"},{"line_number":23,"context_line":"        operations\u003d[{\u0027path\u0027: \u0027/v1.0/events\u0027, \u0027method\u0027: \u0027POST\u0027}]"},{"line_number":24,"context_line":"    )"},{"line_number":25,"context_line":"]"},{"line_number":26,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"7f515b1d_5be084cd","line":23,"in_reply_to":"7f515b1d_ed5d3979","updated":"2017-09-29 11:40:55.000000000","message":"I think is not possible to do that, it\u0027s required full path","commit_id":"193e872a6c0f3c3014d0a412aad95e8ad5ed0a87"}],"monasca_events_api/tests/unit/base.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import os"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import falcon"},{"line_number":18,"context_line":"from falcon import testing"},{"line_number":19,"context_line":"import fixtures"},{"line_number":20,"context_line":"from oslo_config import cfg"},{"line_number":21,"context_line":"from oslo_config import fixture as config_fixture"},{"line_number":22,"context_line":"from oslo_context import fixture as oc_fixture"}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_3a85e9cf","line":19,"range":{"start_line":17,"start_character":0,"end_line":19,"end_character":15},"updated":"2017-11-16 11:27:03.000000000","message":"import falcon and import fixtures should be together with import os","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import os"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import falcon"},{"line_number":18,"context_line":"from falcon import testing"},{"line_number":19,"context_line":"import fixtures"},{"line_number":20,"context_line":"from oslo_config import cfg"},{"line_number":21,"context_line":"from oslo_config import fixture as config_fixture"},{"line_number":22,"context_line":"from oslo_context import fixture as oc_fixture"}],"source_content_type":"text/x-python","patch_set":34,"id":"ff82abbf_6fb39699","line":19,"range":{"start_line":17,"start_character":0,"end_line":19,"end_character":15},"in_reply_to":"1f485f77_3a85e9cf","updated":"2017-12-18 11:20:37.000000000","message":"pep8 documentation:\n\nImports should be grouped in the following order:\n\n    standard library imports\n    related third party imports\n    local application/library specific imports\n\nYou should put a blank line between each group of imports.","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"}],"monasca_events_api/tests/unit/test_body_valodiation.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"d36596e3f23834a2d5aecec5334771e104eac326","unresolved":false,"context_lines":[{"line_number":11,"context_line":"# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":"from voluptuous import MultipleInvalid"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"from monasca_events_api.app.controller.v1.body_validation import validate_body"},{"line_number":17,"context_line":"from monasca_events_api.tests.unit import base"}],"source_content_type":"text/x-python","patch_set":27,"id":"5f4e5783_96cc238a","line":14,"updated":"2017-10-11 12:54:11.000000000","message":"Add empty line","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"d67a2b42d18b3efd08d0600c896288ba06080bd0","unresolved":false,"context_lines":[{"line_number":11,"context_line":"# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"# License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":"from voluptuous import MultipleInvalid"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"from monasca_events_api.app.controller.v1.body_validation import validate_body"},{"line_number":17,"context_line":"from monasca_events_api.tests.unit import base"}],"source_content_type":"text/x-python","patch_set":27,"id":"3f4b6375_7c794b2d","line":14,"in_reply_to":"5f4e5783_96cc238a","updated":"2017-10-23 13:25:11.000000000","message":"Done","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"d36596e3f23834a2d5aecec5334771e104eac326","unresolved":false,"context_lines":[{"line_number":42,"context_line":"    def test_correct_body(self):"},{"line_number":43,"context_line":"        body \u003d {\u0027events\u0027: [], \u0027timestamp\u0027: \u00272012-10-29T13:42:11Z+0200\u0027}"},{"line_number":44,"context_line":"        validate_body(body)"},{"line_number":45,"context_line":"        body \u003d {\u0027events\u0027: {}, \u0027timestamp\u0027: u\u00272012-10-29T13:42:11Z+0200\u0027}"},{"line_number":46,"context_line":"        validate_body(body)"}],"source_content_type":"text/x-python","patch_set":27,"id":"5f4e5783_d69dfb59","line":45,"range":{"start_line":45,"start_character":8,"end_line":45,"end_character":12},"updated":"2017-10-11 12:54:11.000000000","message":"use different variable name\nor\nuse table driven test here","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"d67a2b42d18b3efd08d0600c896288ba06080bd0","unresolved":false,"context_lines":[{"line_number":42,"context_line":"    def test_correct_body(self):"},{"line_number":43,"context_line":"        body \u003d {\u0027events\u0027: [], \u0027timestamp\u0027: \u00272012-10-29T13:42:11Z+0200\u0027}"},{"line_number":44,"context_line":"        validate_body(body)"},{"line_number":45,"context_line":"        body \u003d {\u0027events\u0027: {}, \u0027timestamp\u0027: u\u00272012-10-29T13:42:11Z+0200\u0027}"},{"line_number":46,"context_line":"        validate_body(body)"}],"source_content_type":"text/x-python","patch_set":27,"id":"3f4b6375_5c78cf28","line":45,"range":{"start_line":45,"start_character":8,"end_line":45,"end_character":12},"in_reply_to":"5f4e5783_d69dfb59","updated":"2017-10-23 13:25:11.000000000","message":"Done","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"}],"monasca_events_api/tests/unit/test_events_v1.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"e494be88663ec372ffd1bdf8b15b6a1642ea9d9c","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        events_resource._processor \u003d bulk_processor"},{"line_number":41,"context_line":"        unit_test_patch \u003d os.path.dirname(__file__)"},{"line_number":42,"context_line":"        json_file_path \u003d \u0027event_template_json/req_simple_event.json\u0027"},{"line_number":43,"context_line":"        req_multiple_events_json \u003d os.path.join(unit_test_patch,"},{"line_number":44,"context_line":"                                                json_file_path)"},{"line_number":45,"context_line":"        with open(req_multiple_events_json, \u0027r\u0027) as fi:"},{"line_number":46,"context_line":"            body \u003d fi.read()"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_9eab8a73","line":43,"range":{"start_line":43,"start_character":8,"end_line":43,"end_character":32},"updated":"2017-09-29 13:02:48.000000000","message":"wrong name","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"62412e15456182927575a4c570b1adf1ee2eb820","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        events_resource._processor \u003d bulk_processor"},{"line_number":41,"context_line":"        unit_test_patch \u003d os.path.dirname(__file__)"},{"line_number":42,"context_line":"        json_file_path \u003d \u0027event_template_json/req_simple_event.json\u0027"},{"line_number":43,"context_line":"        req_multiple_events_json \u003d os.path.join(unit_test_patch,"},{"line_number":44,"context_line":"                                                json_file_path)"},{"line_number":45,"context_line":"        with open(req_multiple_events_json, \u0027r\u0027) as fi:"},{"line_number":46,"context_line":"            body \u003d fi.read()"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_af3480fc","line":43,"range":{"start_line":43,"start_character":8,"end_line":43,"end_character":32},"in_reply_to":"7f515b1d_9eab8a73","updated":"2017-10-04 11:43:58.000000000","message":"Done","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"e494be88663ec372ffd1bdf8b15b6a1642ea9d9c","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        events_resource._processor \u003d bulk_processor"},{"line_number":95,"context_line":"        unit_test_patch \u003d os.path.dirname(__file__)"},{"line_number":96,"context_line":"        json_file_path \u003d \u0027event_template_json/req_simple_event.json\u0027"},{"line_number":97,"context_line":"        req_multiple_events_json \u003d os.path.join(unit_test_patch,"},{"line_number":98,"context_line":"                                                json_file_path)"},{"line_number":99,"context_line":"        with open(req_multiple_events_json, \u0027r\u0027) as fi:"},{"line_number":100,"context_line":"            events \u003d json.load(fi)[\u0027events\u0027]"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_bea08691","line":97,"range":{"start_line":97,"start_character":8,"end_line":97,"end_character":32},"updated":"2017-09-29 13:02:48.000000000","message":"wrong name","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"62412e15456182927575a4c570b1adf1ee2eb820","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        events_resource._processor \u003d bulk_processor"},{"line_number":95,"context_line":"        unit_test_patch \u003d os.path.dirname(__file__)"},{"line_number":96,"context_line":"        json_file_path \u003d \u0027event_template_json/req_simple_event.json\u0027"},{"line_number":97,"context_line":"        req_multiple_events_json \u003d os.path.join(unit_test_patch,"},{"line_number":98,"context_line":"                                                json_file_path)"},{"line_number":99,"context_line":"        with open(req_multiple_events_json, \u0027r\u0027) as fi:"},{"line_number":100,"context_line":"            events \u003d json.load(fi)[\u0027events\u0027]"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_6f3e88db","line":97,"range":{"start_line":97,"start_character":8,"end_line":97,"end_character":32},"in_reply_to":"7f515b1d_bea08691","updated":"2017-10-04 11:43:58.000000000","message":"Done","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"bd59a3dd36defa713be69e2195e7849ca6935b42","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import os"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import falcon"},{"line_number":18,"context_line":"import mock"},{"line_number":19,"context_line":"import ujson as json"}],"source_content_type":"text/x-python","patch_set":34,"id":"1f485f77_9a63bd42","line":16,"updated":"2017-11-16 11:27:03.000000000","message":"remove space","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"bb5cb8a86ecaa9da02867b20f975897feefcb5b0","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import os"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import falcon"},{"line_number":18,"context_line":"import mock"},{"line_number":19,"context_line":"import ujson as json"}],"source_content_type":"text/x-python","patch_set":34,"id":"ff82abbf_723dbdc2","line":16,"in_reply_to":"1f485f77_9a63bd42","updated":"2017-12-18 11:20:37.000000000","message":"Pleas check comment in healthchecks.py file","commit_id":"daad77925373918786dd4a1f6c585d9ef267b620"}],"monasca_events_api/tests/unit/test_healthchecks.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"e494be88663ec372ffd1bdf8b15b6a1642ea9d9c","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import falcon"},{"line_number":16,"context_line":"import mock"},{"line_number":17,"context_line":"import simplejson as json"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from monasca_events_api.app.controller import healthchecks"},{"line_number":20,"context_line":"from monasca_events_api.app.healthcheck import kafka_check as healthcheck"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_3ebed6b3","line":17,"range":{"start_line":17,"start_character":7,"end_line":17,"end_character":17},"updated":"2017-09-29 13:02:48.000000000","message":"ujson?","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"62412e15456182927575a4c570b1adf1ee2eb820","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"import falcon"},{"line_number":16,"context_line":"import mock"},{"line_number":17,"context_line":"import simplejson as json"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from monasca_events_api.app.controller import healthchecks"},{"line_number":20,"context_line":"from monasca_events_api.app.healthcheck import kafka_check as healthcheck"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_0f2dd4a7","line":17,"range":{"start_line":17,"start_character":7,"end_line":17,"end_character":17},"in_reply_to":"7f515b1d_3ebed6b3","updated":"2017-10-04 11:43:58.000000000","message":"Done","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"e494be88663ec372ffd1bdf8b15b6a1642ea9d9c","unresolved":false,"context_lines":[{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    @mock.patch(\u0027monasca_events_api.app.healthcheck.\u0027"},{"line_number":59,"context_line":"                \u0027kafka_check.KafkaHealthCheck\u0027)"},{"line_number":60,"context_line":"    def test_should_report_unhealthy_if_kafka_healthy(self, kafka_check):"},{"line_number":61,"context_line":"        url \u003d \u0027localhost:8200\u0027"},{"line_number":62,"context_line":"        err_str \u003d \u0027Could not connect to kafka at %s\u0027 % url"},{"line_number":63,"context_line":"        kafka_check.healthcheck.return_value \u003d healthcheck.CheckResult(False,"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_9ec4aa41","line":60,"updated":"2017-09-29 13:02:48.000000000","message":"un","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"62412e15456182927575a4c570b1adf1ee2eb820","unresolved":false,"context_lines":[{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    @mock.patch(\u0027monasca_events_api.app.healthcheck.\u0027"},{"line_number":59,"context_line":"                \u0027kafka_check.KafkaHealthCheck\u0027)"},{"line_number":60,"context_line":"    def test_should_report_unhealthy_if_kafka_healthy(self, kafka_check):"},{"line_number":61,"context_line":"        url \u003d \u0027localhost:8200\u0027"},{"line_number":62,"context_line":"        err_str \u003d \u0027Could not connect to kafka at %s\u0027 % url"},{"line_number":63,"context_line":"        kafka_check.healthcheck.return_value \u003d healthcheck.CheckResult(False,"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_0f06f421","line":60,"in_reply_to":"7f515b1d_9ec4aa41","updated":"2017-10-04 11:43:58.000000000","message":"Done","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"}],"monasca_events_api/tests/unit/test_versions.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"e494be88663ec372ffd1bdf8b15b6a1642ea9d9c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016 FUJITSU LIMITED"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":17,"id":"7f515b1d_9ed94a23","line":1,"range":{"start_line":1,"start_character":12,"end_line":1,"end_character":16},"updated":"2017-09-29 13:02:48.000000000","message":"date","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"}],"policy-sample.yaml":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"e494be88663ec372ffd1bdf8b15b6a1642ea9d9c","unresolved":false,"context_lines":[{"line_number":5,"context_line":"# Send events to api"},{"line_number":6,"context_line":"# POST  /v1.0/events"},{"line_number":7,"context_line":"#\"events_api:agent_required\": \"role:monasca_events_agent\""},{"line_number":8,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":17,"id":"7f515b1d_bef7668b","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":0},"updated":"2017-09-29 13:02:48.000000000","message":"too many empty lines at the end of file","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"}],"requirements.txt":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"e494be88663ec372ffd1bdf8b15b6a1642ea9d9c","unresolved":false,"context_lines":[{"line_number":14,"context_line":"oslo.serialization\u003e\u003d1.10.0,!\u003d2.19.1 # Apache-2.0"},{"line_number":15,"context_line":"oslo.utils\u003e\u003d3.20.0 # Apache-2.0"},{"line_number":16,"context_line":"PasteDeploy\u003e\u003d1.5.0 # MIT"},{"line_number":17,"context_line":"monasca-common\u003e\u003d1.4.0 # Apache-2.0"},{"line_number":18,"context_line":"eventlet!\u003d0.18.3,!\u003d0.20.1,\u003c0.21.0,\u003e\u003d0.18.2 # MIT"}],"source_content_type":"text/plain","patch_set":17,"id":"7f515b1d_5e2e32fb","line":17,"range":{"start_line":17,"start_character":0,"end_line":17,"end_character":34},"updated":"2017-09-29 13:02:48.000000000","message":"move to the end","commit_id":"6a8881625629cd7a23d6a5eb71ae0938141ed914"},{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"d36596e3f23834a2d5aecec5334771e104eac326","unresolved":false,"context_lines":[{"line_number":1,"context_line":"voluptuous"},{"line_number":2,"context_line":"# The order of packages is significant, because pip processes them in the order"},{"line_number":3,"context_line":"# of appearance. Changing the order has an impact on the overall integration"},{"line_number":4,"context_line":"# process, which may cause wedges in the gate later."}],"source_content_type":"text/plain","patch_set":27,"id":"5f4e5783_d64a9b7e","line":1,"range":{"start_line":1,"start_character":0,"end_line":1,"end_character":10},"updated":"2017-10-11 12:54:11.000000000","message":"remove","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"},{"author":{"_account_id":26141,"name":"Adrian Czarnecki","email":"adrian.czarnecki@ts.fujitsu.com","username":"czarneckia"},"change_message_id":"d67a2b42d18b3efd08d0600c896288ba06080bd0","unresolved":false,"context_lines":[{"line_number":1,"context_line":"voluptuous"},{"line_number":2,"context_line":"# The order of packages is significant, because pip processes them in the order"},{"line_number":3,"context_line":"# of appearance. Changing the order has an impact on the overall integration"},{"line_number":4,"context_line":"# process, which may cause wedges in the gate later."}],"source_content_type":"text/plain","patch_set":27,"id":"3f4b6375_1c901743","line":1,"range":{"start_line":1,"start_character":0,"end_line":1,"end_character":10},"in_reply_to":"5f4e5783_d64a9b7e","updated":"2017-10-23 13:25:11.000000000","message":"Done","commit_id":"908b53df37cb8647d45c5081be45b2fcfbddc323"}]}
