)]}'
{"neutron/db/db_base_plugin_v2.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"2e66798b333a7c188fe8a6bcd9c27325aa623178","unresolved":false,"context_lines":[{"line_number":293,"context_line":"                and_(rb_model.object_id \u003d\u003d network.id,"},{"line_number":294,"context_line":"                     rb_model.action \u003d\u003d \u0027access_as_shared\u0027,"},{"line_number":295,"context_line":"                     rb_model.target_tenant !\u003d \"*\"))"},{"line_number":296,"context_line":"        allowed_projects \u003d set("},{"line_number":297,"context_line":"            [entry[\u0027target_tenant\u0027]"},{"line_number":298,"context_line":"             for entry in other_rbac_entries])"},{"line_number":299,"context_line":"        allowed_projects.add(network.project_id)"},{"line_number":300,"context_line":"        if project_ids !\u003d set(allowed_projects):"},{"line_number":301,"context_line":"            raise n_exc.InvalidSharedSetting(network\u003dnetwork.name)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f6a8fd7_49696323","line":298,"range":{"start_line":296,"start_character":27,"end_line":298,"end_character":46},"updated":"2018-04-16 11:50:12.000000000","message":"Instead of creating a list and re-typing to set you can use set comprehension directly:\n\n {entry[\u0027target_tenant\u0027] for entry in other_rbac_entries}","commit_id":"079bb146fc3f277d8bb8d53971f58e8f5248152e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"07ca13dd04ce18dbc6568c3931350561966bb9ca","unresolved":false,"context_lines":[{"line_number":293,"context_line":"                and_(rb_model.object_id \u003d\u003d network.id,"},{"line_number":294,"context_line":"                     rb_model.action \u003d\u003d \u0027access_as_shared\u0027,"},{"line_number":295,"context_line":"                     rb_model.target_tenant !\u003d \"*\"))"},{"line_number":296,"context_line":"        allowed_projects \u003d set("},{"line_number":297,"context_line":"            [entry[\u0027target_tenant\u0027]"},{"line_number":298,"context_line":"             for entry in other_rbac_entries])"},{"line_number":299,"context_line":"        allowed_projects.add(network.project_id)"},{"line_number":300,"context_line":"        if project_ids !\u003d set(allowed_projects):"},{"line_number":301,"context_line":"            raise n_exc.InvalidSharedSetting(network\u003dnetwork.name)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f6a8fd7_490ac326","line":298,"range":{"start_line":296,"start_character":27,"end_line":298,"end_character":46},"in_reply_to":"9f6a8fd7_49696323","updated":"2018-04-16 12:08:21.000000000","message":"Done","commit_id":"079bb146fc3f277d8bb8d53971f58e8f5248152e"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"2e66798b333a7c188fe8a6bcd9c27325aa623178","unresolved":false,"context_lines":[{"line_number":297,"context_line":"            [entry[\u0027target_tenant\u0027]"},{"line_number":298,"context_line":"             for entry in other_rbac_entries])"},{"line_number":299,"context_line":"        allowed_projects.add(network.project_id)"},{"line_number":300,"context_line":"        if project_ids !\u003d set(allowed_projects):"},{"line_number":301,"context_line":"            raise n_exc.InvalidSharedSetting(network\u003dnetwork.name)"},{"line_number":302,"context_line":""},{"line_number":303,"context_line":"    def _validate_ipv6_attributes(self, subnet, cur_subnet):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f6a8fd7_e94e37c0","line":300,"range":{"start_line":300,"start_character":26,"end_line":300,"end_character":30},"updated":"2018-04-16 11:50:12.000000000","message":"It\u0027s already a set","commit_id":"079bb146fc3f277d8bb8d53971f58e8f5248152e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"07ca13dd04ce18dbc6568c3931350561966bb9ca","unresolved":false,"context_lines":[{"line_number":297,"context_line":"            [entry[\u0027target_tenant\u0027]"},{"line_number":298,"context_line":"             for entry in other_rbac_entries])"},{"line_number":299,"context_line":"        allowed_projects.add(network.project_id)"},{"line_number":300,"context_line":"        if project_ids !\u003d set(allowed_projects):"},{"line_number":301,"context_line":"            raise n_exc.InvalidSharedSetting(network\u003dnetwork.name)"},{"line_number":302,"context_line":""},{"line_number":303,"context_line":"    def _validate_ipv6_attributes(self, subnet, cur_subnet):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f6a8fd7_0904cb16","line":300,"range":{"start_line":300,"start_character":26,"end_line":300,"end_character":30},"in_reply_to":"9f6a8fd7_e94e37c0","updated":"2018-04-16 12:08:21.000000000","message":"right. I forgot to remove it :)","commit_id":"079bb146fc3f277d8bb8d53971f58e8f5248152e"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"062d3b9f15425174b15d8241ecdac38252b5f527","unresolved":false,"context_lines":[{"line_number":296,"context_line":"        allowed_projects \u003d {entry[\u0027target_tenant\u0027]"},{"line_number":297,"context_line":"                            for entry in other_rbac_entries}"},{"line_number":298,"context_line":"        allowed_projects.add(network.project_id)"},{"line_number":299,"context_line":"        if project_ids !\u003d allowed_projects:"},{"line_number":300,"context_line":"            raise n_exc.InvalidSharedSetting(network\u003dnetwork.name)"},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"    def _validate_ipv6_attributes(self, subnet, cur_subnet):"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f6a8fd7_9d2d7148","line":299,"range":{"start_line":299,"start_character":0,"end_line":299,"end_character":43},"updated":"2018-04-16 14:02:21.000000000","message":"shouldn\u0027t this be something like \"set(project_ids) - set(allowed_projects)\" ?","commit_id":"cfc502b63809e069e29d3f350b7efe1b7415ce35"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"09275f1b3a03c457b622f1956fbd7a52f088d026","unresolved":false,"context_lines":[{"line_number":296,"context_line":"        allowed_projects \u003d {entry[\u0027target_tenant\u0027]"},{"line_number":297,"context_line":"                            for entry in other_rbac_entries}"},{"line_number":298,"context_line":"        allowed_projects.add(network.project_id)"},{"line_number":299,"context_line":"        if project_ids !\u003d allowed_projects:"},{"line_number":300,"context_line":"            raise n_exc.InvalidSharedSetting(network\u003dnetwork.name)"},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"    def _validate_ipv6_attributes(self, subnet, cur_subnet):"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f6a8fd7_5ee90f7e","line":299,"range":{"start_line":299,"start_character":0,"end_line":299,"end_character":43},"in_reply_to":"9f6a8fd7_9d2d7148","updated":"2018-04-16 15:41:28.000000000","message":"You\u0027re right. I changed it and also updated UT to cover such case :)","commit_id":"cfc502b63809e069e29d3f350b7efe1b7415ce35"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"5561c7b9d479454e1ac5d421361c43ba68783437","unresolved":false,"context_lines":[{"line_number":275,"context_line":"        subnets \u003d subnet_obj.Subnet.get_objects(context, network_id\u003did)"},{"line_number":276,"context_line":"        tenant_ids \u003d set([port[\u0027tenant_id\u0027] for port in ports] +"},{"line_number":277,"context_line":"                         [subnet[\u0027tenant_id\u0027] for subnet in subnets])"},{"line_number":278,"context_line":"        # In case if there is no any port/subnet created by owner of network,"},{"line_number":279,"context_line":"        # owner project should be also added to tenant_ids"},{"line_number":280,"context_line":"        tenant_ids.add(original.project_id)"},{"line_number":281,"context_line":"        # raise if multiple tenants found or if the only tenant found"},{"line_number":282,"context_line":"        # is not the owner of the network"},{"line_number":283,"context_line":"        if (len(tenant_ids) \u003e 1 or len(tenant_ids) \u003d\u003d 1 and"}],"source_content_type":"text/x-python","patch_set":4,"id":"9f6a8fd7_610d413d","line":280,"range":{"start_line":278,"start_character":0,"end_line":280,"end_character":43},"updated":"2018-04-17 11:35:36.000000000","message":"is this still necessary?","commit_id":"02d0b3f4d66abe08ba782b3ba8ba5da0bc35ad95"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"9c62fb3ce1d7c077604ddde42766c50aa8726991","unresolved":false,"context_lines":[{"line_number":275,"context_line":"        subnets \u003d subnet_obj.Subnet.get_objects(context, network_id\u003did)"},{"line_number":276,"context_line":"        tenant_ids \u003d set([port[\u0027tenant_id\u0027] for port in ports] +"},{"line_number":277,"context_line":"                         [subnet[\u0027tenant_id\u0027] for subnet in subnets])"},{"line_number":278,"context_line":"        # In case if there is no any port/subnet created by owner of network,"},{"line_number":279,"context_line":"        # owner project should be also added to tenant_ids"},{"line_number":280,"context_line":"        tenant_ids.add(original.project_id)"},{"line_number":281,"context_line":"        # raise if multiple tenants found or if the only tenant found"},{"line_number":282,"context_line":"        # is not the owner of the network"},{"line_number":283,"context_line":"        if (len(tenant_ids) \u003e 1 or len(tenant_ids) \u003d\u003d 1 and"}],"source_content_type":"text/x-python","patch_set":4,"id":"9f6a8fd7_4e2b85ea","line":280,"range":{"start_line":278,"start_character":0,"end_line":280,"end_character":43},"in_reply_to":"9f6a8fd7_610d413d","updated":"2018-04-17 13:53:21.000000000","message":"no","commit_id":"02d0b3f4d66abe08ba782b3ba8ba5da0bc35ad95"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"5561c7b9d479454e1ac5d421361c43ba68783437","unresolved":false,"context_lines":[{"line_number":281,"context_line":"        # raise if multiple tenants found or if the only tenant found"},{"line_number":282,"context_line":"        # is not the owner of the network"},{"line_number":283,"context_line":"        if (len(tenant_ids) \u003e 1 or len(tenant_ids) \u003d\u003d 1 and"},{"line_number":284,"context_line":"            tenant_ids.pop() !\u003d original.tenant_id):"},{"line_number":285,"context_line":"            self._validate_projects_have_access_to_network("},{"line_number":286,"context_line":"                original, tenant_ids)"},{"line_number":287,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9f6a8fd7_011fa56c","line":284,"range":{"start_line":284,"start_character":22,"end_line":284,"end_character":28},"updated":"2018-04-17 11:35:36.000000000","message":"pop modifies the set. is this intentional to feed the modified list to _validate_projects_have_access_to_network below?","commit_id":"02d0b3f4d66abe08ba782b3ba8ba5da0bc35ad95"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"9c62fb3ce1d7c077604ddde42766c50aa8726991","unresolved":false,"context_lines":[{"line_number":281,"context_line":"        # raise if multiple tenants found or if the only tenant found"},{"line_number":282,"context_line":"        # is not the owner of the network"},{"line_number":283,"context_line":"        if (len(tenant_ids) \u003e 1 or len(tenant_ids) \u003d\u003d 1 and"},{"line_number":284,"context_line":"            tenant_ids.pop() !\u003d original.tenant_id):"},{"line_number":285,"context_line":"            self._validate_projects_have_access_to_network("},{"line_number":286,"context_line":"                original, tenant_ids)"},{"line_number":287,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9f6a8fd7_0e358d46","line":284,"range":{"start_line":284,"start_character":22,"end_line":284,"end_character":28},"in_reply_to":"9f6a8fd7_011fa56c","updated":"2018-04-17 13:53:21.000000000","message":"I don\u0027t know exactly. It was like that before this patch but now I changed it. Thx","commit_id":"02d0b3f4d66abe08ba782b3ba8ba5da0bc35ad95"}]}
