)]}'
{"searchlight/api/v1/search.py":[{"author":{"_account_id":15888,"name":"Zhenyu Zheng","email":"zheng.zhenyu@outlook.com","username":"Kevin_Zheng"},"change_message_id":"ea5c09b46c9cf2da5c57cea0a5b52e7c912710ff","unresolved":false,"context_lines":[{"line_number":307,"context_line":"            # at the top level, so we only need to check that level"},{"line_number":308,"context_line":"            for agg_name, agg_definition in aggregations.items():"},{"line_number":309,"context_line":"                if \u0027global\u0027 in agg_definition:"},{"line_number":310,"context_line":"                    msg \u003d _LE("},{"line_number":311,"context_line":"                        \"Aggregation \u0027%s\u0027 contains the \u0027global\u0027 aggregation \""},{"line_number":312,"context_line":"                        \"which is not allowed\") % agg_name"},{"line_number":313,"context_line":"                    LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"ffe62b97_582b6893","side":"PARENT","line":310,"range":{"start_line":310,"start_character":26,"end_line":310,"end_character":29},"updated":"2017-03-25 06:16:23.000000000","message":"Here, should be _()","commit_id":"a0ca06a4df8129ac7e2e25226fca60f9eda2b3c5"},{"author":{"_account_id":15888,"name":"Zhenyu Zheng","email":"zheng.zhenyu@outlook.com","username":"Kevin_Zheng"},"change_message_id":"d1315749ef7c3ee82e29cb755c05e340b1230edb","unresolved":false,"context_lines":[{"line_number":307,"context_line":"            # at the top level, so we only need to check that level"},{"line_number":308,"context_line":"            for agg_name, agg_definition in aggregations.items():"},{"line_number":309,"context_line":"                if \u0027global\u0027 in agg_definition:"},{"line_number":310,"context_line":"                    msg \u003d ("},{"line_number":311,"context_line":"                        \"Aggregation \u0027%s\u0027 contains the \u0027global\u0027 aggregation \""},{"line_number":312,"context_line":"                        \"which is not allowed\") % agg_name"},{"line_number":313,"context_line":"                    LOG.error(msg)"},{"line_number":314,"context_line":"                    raise webob.exc.HTTPForbidden(explanation\u003dmsg)"},{"line_number":315,"context_line":"        return aggregations"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"    def _get_es_query(self, context, query, resource_types,"}],"source_content_type":"text/x-python","patch_set":3,"id":"ffe62b97_2e872912","line":314,"range":{"start_line":310,"start_character":20,"end_line":314,"end_character":66},"updated":"2017-03-27 01:28:08.000000000","message":"Actually, if we are get rid of translation in Log, maybe we should rework this so that ms is logged first(without translation) then translated and raised.","commit_id":"3b1039fe27b7e318231f08ca3eaf7a9b83d921a6"},{"author":{"_account_id":22299,"name":"lihaijing","email":"lihaijing@fiberhome.com","username":"lihaijing"},"change_message_id":"adc4637b00b059675370b040d84fa11c80ed0b31","unresolved":false,"context_lines":[{"line_number":307,"context_line":"            # at the top level, so we only need to check that level"},{"line_number":308,"context_line":"            for agg_name, agg_definition in aggregations.items():"},{"line_number":309,"context_line":"                if \u0027global\u0027 in agg_definition:"},{"line_number":310,"context_line":"                    msg \u003d ("},{"line_number":311,"context_line":"                        \"Aggregation \u0027%s\u0027 contains the \u0027global\u0027 aggregation \""},{"line_number":312,"context_line":"                        \"which is not allowed\") % agg_name"},{"line_number":313,"context_line":"                    LOG.error(msg)"},{"line_number":314,"context_line":"                    raise webob.exc.HTTPForbidden(explanation\u003dmsg)"},{"line_number":315,"context_line":"        return aggregations"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"    def _get_es_query(self, context, query, resource_types,"}],"source_content_type":"text/x-python","patch_set":3,"id":"ffe62b97_ee7141e0","line":314,"range":{"start_line":310,"start_character":20,"end_line":314,"end_character":66},"in_reply_to":"ffe62b97_2e872912","updated":"2017-03-27 01:50:09.000000000","message":"Yeah, this is a reasonable method.","commit_id":"3b1039fe27b7e318231f08ca3eaf7a9b83d921a6"},{"author":{"_account_id":22299,"name":"lihaijing","email":"lihaijing@fiberhome.com","username":"lihaijing"},"change_message_id":"3444afbdcc7d363d269bd4dd74ce4b55978d3c0d","unresolved":false,"context_lines":[{"line_number":307,"context_line":"            # at the top level, so we only need to check that level"},{"line_number":308,"context_line":"            for agg_name, agg_definition in aggregations.items():"},{"line_number":309,"context_line":"                if \u0027global\u0027 in agg_definition:"},{"line_number":310,"context_line":"                    msg \u003d _("},{"line_number":311,"context_line":"                        \"Aggregation \u0027%s\u0027 contains the \u0027global\u0027 aggregation \""},{"line_number":312,"context_line":"                        \"which is not allowed\") % agg_name"},{"line_number":313,"context_line":"                    LOG.error(msg)"},{"line_number":314,"context_line":"                    raise webob.exc.HTTPForbidden(explanation\u003dmsg)"},{"line_number":315,"context_line":"        return aggregations"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"    def _get_es_query(self, context, query, resource_types,"}],"source_content_type":"text/x-python","patch_set":5,"id":"ffe62b97_a5634f1a","line":314,"range":{"start_line":310,"start_character":19,"end_line":314,"end_character":66},"updated":"2017-03-27 07:54:22.000000000","message":"This part, I modified according to similar usage in cinder.","commit_id":"f00d30d10cfcb030342627f36bc6d944bc0ad8dd"}],"searchlight/cmd/manage.py":[{"author":{"_account_id":22299,"name":"lihaijing","email":"lihaijing@fiberhome.com","username":"lihaijing"},"change_message_id":"b167f267ea880ca8aed6c1da54bcc172c9e46cd8","unresolved":false,"context_lines":[{"line_number":78,"context_line":"            LOG.warning(\"Service is not available for plugin: \""},{"line_number":79,"context_line":"                        \"%(doc)s\" % {\"doc\": doc})"},{"line_number":80,"context_line":"        except Exception as e:"},{"line_number":81,"context_line":"            LOG.exception(\"Failed to setup index extension \""},{"line_number":82,"context_line":"                          \"%(ex)s: %(e)s\" % {\u0027ex\u0027: index_name, \u0027e\u0027: e})"},{"line_number":83,"context_line":"            raise"},{"line_number":84,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"ffe62b97_cb6d4f99","line":81,"updated":"2017-03-26 23:56:13.000000000","message":"Should be _()","commit_id":"3b1039fe27b7e318231f08ca3eaf7a9b83d921a6"}],"searchlight/common/property_utils.py":[{"author":{"_account_id":15888,"name":"Zhenyu Zheng","email":"zheng.zhenyu@outlook.com","username":"Kevin_Zheng"},"change_message_id":"ea5c09b46c9cf2da5c57cea0a5b52e7c912710ff","unresolved":false,"context_lines":[{"line_number":82,"context_line":"            conf_file \u003d CONF.find_file(CONF.property_protection_file)"},{"line_number":83,"context_line":"            CONFIG.read(conf_file)"},{"line_number":84,"context_line":"        except Exception as e:"},{"line_number":85,"context_line":"            msg \u003d (_LE(\"Couldn\u0027t find property protection file %(file)s: \""},{"line_number":86,"context_line":"                       \"%(error)s.\") % {\u0027file\u0027: CONF.property_protection_file,"},{"line_number":87,"context_line":"                                        \u0027error\u0027: e})"},{"line_number":88,"context_line":"            LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"ffe62b97_f8135c65","side":"PARENT","line":85,"range":{"start_line":85,"start_character":18,"end_line":85,"end_character":23},"updated":"2017-03-25 06:16:23.000000000","message":"should be _()","commit_id":"a0ca06a4df8129ac7e2e25226fca60f9eda2b3c5"},{"author":{"_account_id":15888,"name":"Zhenyu Zheng","email":"zheng.zhenyu@outlook.com","username":"Kevin_Zheng"},"change_message_id":"1cfd6c5ee386da081f1772767cc96cc669604384","unresolved":false,"context_lines":[{"line_number":82,"context_line":"            conf_file \u003d CONF.find_file(CONF.property_protection_file)"},{"line_number":83,"context_line":"            CONFIG.read(conf_file)"},{"line_number":84,"context_line":"        except Exception as e:"},{"line_number":85,"context_line":"            msg \u003d (_LE(\"Couldn\u0027t find property protection file %(file)s: \""},{"line_number":86,"context_line":"                       \"%(error)s.\") % {\u0027file\u0027: CONF.property_protection_file,"},{"line_number":87,"context_line":"                                        \u0027error\u0027: e})"},{"line_number":88,"context_line":"            LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"ffe62b97_9a08c5d9","side":"PARENT","line":85,"range":{"start_line":85,"start_character":18,"end_line":85,"end_character":23},"in_reply_to":"ffe62b97_f8135c65","updated":"2017-03-25 06:35:29.000000000","message":"Sorry, this one is OK","commit_id":"a0ca06a4df8129ac7e2e25226fca60f9eda2b3c5"},{"author":{"_account_id":15888,"name":"Zhenyu Zheng","email":"zheng.zhenyu@outlook.com","username":"Kevin_Zheng"},"change_message_id":"ea5c09b46c9cf2da5c57cea0a5b52e7c912710ff","unresolved":false,"context_lines":[{"line_number":89,"context_line":"            raise InvalidPropProtectConf()"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        if self.prop_prot_rule_format not in [\u0027policies\u0027, \u0027roles\u0027]:"},{"line_number":92,"context_line":"            msg \u003d _LE(\"Invalid value \u0027%s\u0027 for \""},{"line_number":93,"context_line":"                      \"\u0027property_protection_rule_format\u0027. \""},{"line_number":94,"context_line":"                      \"The permitted values are \""},{"line_number":95,"context_line":"                      \"\u0027roles\u0027 and \u0027policies\u0027\") % self.prop_prot_rule_format"}],"source_content_type":"text/x-python","patch_set":3,"id":"ffe62b97_78074c1e","side":"PARENT","line":92,"range":{"start_line":92,"start_character":17,"end_line":92,"end_character":22},"updated":"2017-03-25 06:16:23.000000000","message":"ditto","commit_id":"a0ca06a4df8129ac7e2e25226fca60f9eda2b3c5"},{"author":{"_account_id":15888,"name":"Zhenyu Zheng","email":"zheng.zhenyu@outlook.com","username":"Kevin_Zheng"},"change_message_id":"1cfd6c5ee386da081f1772767cc96cc669604384","unresolved":false,"context_lines":[{"line_number":89,"context_line":"            raise InvalidPropProtectConf()"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        if self.prop_prot_rule_format not in [\u0027policies\u0027, \u0027roles\u0027]:"},{"line_number":92,"context_line":"            msg \u003d _LE(\"Invalid value \u0027%s\u0027 for \""},{"line_number":93,"context_line":"                      \"\u0027property_protection_rule_format\u0027. \""},{"line_number":94,"context_line":"                      \"The permitted values are \""},{"line_number":95,"context_line":"                      \"\u0027roles\u0027 and \u0027policies\u0027\") % self.prop_prot_rule_format"}],"source_content_type":"text/x-python","patch_set":3,"id":"ffe62b97_3af9b9c7","side":"PARENT","line":92,"range":{"start_line":92,"start_character":17,"end_line":92,"end_character":22},"in_reply_to":"ffe62b97_78074c1e","updated":"2017-03-25 06:35:29.000000000","message":"This one is OK","commit_id":"a0ca06a4df8129ac7e2e25226fca60f9eda2b3c5"},{"author":{"_account_id":15888,"name":"Zhenyu Zheng","email":"zheng.zhenyu@outlook.com","username":"Kevin_Zheng"},"change_message_id":"ea5c09b46c9cf2da5c57cea0a5b52e7c912710ff","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                        permissions \u003d [permission.strip() for permission in"},{"line_number":122,"context_line":"                                       permissions.split(\u0027,\u0027)]"},{"line_number":123,"context_line":"                        if \u0027@\u0027 in permissions and \u0027!\u0027 in permissions:"},{"line_number":124,"context_line":"                            msg \u003d (_LE("},{"line_number":125,"context_line":"                                \"Malformed property protection rule in \""},{"line_number":126,"context_line":"                                \"[%(prop)s] %(op)s\u003d%(perm)s: \u0027@\u0027 and \u0027!\u0027 \""},{"line_number":127,"context_line":"                                \"are mutually exclusive\") %"}],"source_content_type":"text/x-python","patch_set":3,"id":"ffe62b97_baff0900","side":"PARENT","line":124,"range":{"start_line":124,"start_character":35,"end_line":124,"end_character":38},"updated":"2017-03-25 06:16:23.000000000","message":"ditto","commit_id":"a0ca06a4df8129ac7e2e25226fca60f9eda2b3c5"},{"author":{"_account_id":15888,"name":"Zhenyu Zheng","email":"zheng.zhenyu@outlook.com","username":"Kevin_Zheng"},"change_message_id":"1cfd6c5ee386da081f1772767cc96cc669604384","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                        permissions \u003d [permission.strip() for permission in"},{"line_number":122,"context_line":"                                       permissions.split(\u0027,\u0027)]"},{"line_number":123,"context_line":"                        if \u0027@\u0027 in permissions and \u0027!\u0027 in permissions:"},{"line_number":124,"context_line":"                            msg \u003d (_LE("},{"line_number":125,"context_line":"                                \"Malformed property protection rule in \""},{"line_number":126,"context_line":"                                \"[%(prop)s] %(op)s\u003d%(perm)s: \u0027@\u0027 and \u0027!\u0027 \""},{"line_number":127,"context_line":"                                \"are mutually exclusive\") %"}],"source_content_type":"text/x-python","patch_set":3,"id":"ffe62b97_5a123d0b","side":"PARENT","line":124,"range":{"start_line":124,"start_character":35,"end_line":124,"end_character":38},"in_reply_to":"ffe62b97_baff0900","updated":"2017-03-25 06:35:29.000000000","message":"This one is ok","commit_id":"a0ca06a4df8129ac7e2e25226fca60f9eda2b3c5"},{"author":{"_account_id":15888,"name":"Zhenyu Zheng","email":"zheng.zhenyu@outlook.com","username":"Kevin_Zheng"},"change_message_id":"ea5c09b46c9cf2da5c57cea0a5b52e7c912710ff","unresolved":false,"context_lines":[{"line_number":146,"context_line":"        try:"},{"line_number":147,"context_line":"            return re.compile(rule)"},{"line_number":148,"context_line":"        except Exception as e:"},{"line_number":149,"context_line":"            msg \u003d (_LE(\"Encountered a malformed property protection rule\""},{"line_number":150,"context_line":"                       \" %(rule)s: %(error)s.\") % {\u0027rule\u0027: rule,"},{"line_number":151,"context_line":"                                                   \u0027error\u0027: e})"},{"line_number":152,"context_line":"            LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"ffe62b97_3a13f95e","side":"PARENT","line":149,"range":{"start_line":149,"start_character":19,"end_line":149,"end_character":24},"updated":"2017-03-25 06:16:23.000000000","message":"ditto","commit_id":"a0ca06a4df8129ac7e2e25226fca60f9eda2b3c5"},{"author":{"_account_id":15888,"name":"Zhenyu Zheng","email":"zheng.zhenyu@outlook.com","username":"Kevin_Zheng"},"change_message_id":"1cfd6c5ee386da081f1772767cc96cc669604384","unresolved":false,"context_lines":[{"line_number":146,"context_line":"        try:"},{"line_number":147,"context_line":"            return re.compile(rule)"},{"line_number":148,"context_line":"        except Exception as e:"},{"line_number":149,"context_line":"            msg \u003d (_LE(\"Encountered a malformed property protection rule\""},{"line_number":150,"context_line":"                       \" %(rule)s: %(error)s.\") % {\u0027rule\u0027: rule,"},{"line_number":151,"context_line":"                                                   \u0027error\u0027: e})"},{"line_number":152,"context_line":"            LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"ffe62b97_1af4b5ce","side":"PARENT","line":149,"range":{"start_line":149,"start_character":19,"end_line":149,"end_character":24},"in_reply_to":"ffe62b97_3a13f95e","updated":"2017-03-25 06:35:29.000000000","message":"This one is OK","commit_id":"a0ca06a4df8129ac7e2e25226fca60f9eda2b3c5"}],"searchlight/common/utils.py":[{"author":{"_account_id":15888,"name":"Zhenyu Zheng","email":"zheng.zhenyu@outlook.com","username":"Kevin_Zheng"},"change_message_id":"ea5c09b46c9cf2da5c57cea0a5b52e7c912710ff","unresolved":false,"context_lines":[{"line_number":214,"context_line":""},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"def setup_remote_pydev_debug(host, port):"},{"line_number":217,"context_line":"    error_msg \u003d _LE(\u0027Error setting up the debug environment. Verify that the\u0027"},{"line_number":218,"context_line":"                    \u0027 option pydev_worker_debug_host is pointing to a valid \u0027"},{"line_number":219,"context_line":"                    \u0027hostname or IP on which a pydev server is listening on\u0027"},{"line_number":220,"context_line":"                    \u0027 the port indicated by pydev_worker_debug_port.\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"ffe62b97_fa1c716b","side":"PARENT","line":217,"range":{"start_line":217,"start_character":16,"end_line":217,"end_character":20},"updated":"2017-03-25 06:16:23.000000000","message":"ditto","commit_id":"a0ca06a4df8129ac7e2e25226fca60f9eda2b3c5"},{"author":{"_account_id":15888,"name":"Zhenyu Zheng","email":"zheng.zhenyu@outlook.com","username":"Kevin_Zheng"},"change_message_id":"1cfd6c5ee386da081f1772767cc96cc669604384","unresolved":false,"context_lines":[{"line_number":214,"context_line":""},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"def setup_remote_pydev_debug(host, port):"},{"line_number":217,"context_line":"    error_msg \u003d _LE(\u0027Error setting up the debug environment. Verify that the\u0027"},{"line_number":218,"context_line":"                    \u0027 option pydev_worker_debug_host is pointing to a valid \u0027"},{"line_number":219,"context_line":"                    \u0027hostname or IP on which a pydev server is listening on\u0027"},{"line_number":220,"context_line":"                    \u0027 the port indicated by pydev_worker_debug_port.\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"ffe62b97_ba2ee940","side":"PARENT","line":217,"range":{"start_line":217,"start_character":16,"end_line":217,"end_character":20},"in_reply_to":"ffe62b97_fa1c716b","updated":"2017-03-25 06:35:29.000000000","message":"This one is also OK","commit_id":"a0ca06a4df8129ac7e2e25226fca60f9eda2b3c5"}],"searchlight/listener.py":[{"author":{"_account_id":22299,"name":"lihaijing","email":"lihaijing@fiberhome.com","username":"lihaijing"},"change_message_id":"b167f267ea880ca8aed6c1da54bcc172c9e46cd8","unresolved":false,"context_lines":[{"line_number":146,"context_line":"                    for plugin_topic in topic_exchanges:"},{"line_number":147,"context_line":"                        if isinstance(plugin_topic, six.string_types):"},{"line_number":148,"context_line":"                            raise Exception("},{"line_number":149,"context_line":"                                (\"Plugin %s should return a list of topic\""},{"line_number":150,"context_line":"                                 \"exchange pairs\") %"},{"line_number":151,"context_line":"                                plugin.__class__.__name__)"},{"line_number":152,"context_line":"                        topics_exchanges.add(plugin_topic)"}],"source_content_type":"text/x-python","patch_set":3,"id":"ffe62b97_eb6ed394","line":149,"updated":"2017-03-26 23:56:13.000000000","message":"Should be _()","commit_id":"3b1039fe27b7e318231f08ca3eaf7a9b83d921a6"}]}
