)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"3ddeecb5bedf997c93103ccf27f02251667117f8","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     ZhaoBo \u003czhaobo6@huawei.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2018-07-26 03:00:39 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"[WIP]Add ext_parent policy check"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add common parent owner check for the resources which introduced by"},{"line_number":10,"context_line":"service plugin"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"5f7c97a3_71e141fd","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":5},"updated":"2018-07-26 22:40:08.000000000","message":"We need to remove this","commit_id":"35d3961646855b9eaaca1349a640d15d68f164fa"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"3ddeecb5bedf997c93103ccf27f02251667117f8","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"[WIP]Add ext_parent policy check"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add common parent owner check for the resources which introduced by"},{"line_number":10,"context_line":"service plugin"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I450c674e55ca15e1d9a6a6224138f3305427da68"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"5f7c97a3_31ebc9dd","line":9,"range":{"start_line":9,"start_character":34,"end_line":9,"end_character":54},"updated":"2018-07-26 22:40:08.000000000","message":"resources","commit_id":"35d3961646855b9eaaca1349a640d15d68f164fa"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"3ddeecb5bedf997c93103ccf27f02251667117f8","unresolved":false,"context_lines":[{"line_number":7,"context_line":"[WIP]Add ext_parent policy check"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add common parent owner check for the resources which introduced by"},{"line_number":10,"context_line":"service plugin"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I450c674e55ca15e1d9a6a6224138f3305427da68"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"5f7c97a3_51e68515","line":10,"range":{"start_line":10,"start_character":0,"end_line":10,"end_character":7},"updated":"2018-07-26 22:40:08.000000000","message":"a service","commit_id":"35d3961646855b9eaaca1349a640d15d68f164fa"}],"doc/source/contributor/internals/policy.rst":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fd391cdfbf35fb040da9eb70039abb039179b887","unresolved":false,"context_lines":[{"line_number":180,"context_line":"It uses for those cases where neutron needs to check whether the project"},{"line_number":181,"context_line":"submitting a request for a new resource owns the parent resource of the one"},{"line_number":182,"context_line":"being created. Current usages of ``OwnerCheck`` include, for instance,"},{"line_number":183,"context_line":"creating and updating a subnet. Also this class had been extended to support"},{"line_number":184,"context_line":"extension parent resources owner check which the parent resource introduced by"},{"line_number":185,"context_line":"service plugins, such as, router and floatingip for ``router`` service plugin,"},{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_20e57a07","line":183,"range":{"start_line":183,"start_character":32,"end_line":183,"end_character":41},"updated":"2018-07-30 18:50:32.000000000","message":"s/This","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fd391cdfbf35fb040da9eb70039abb039179b887","unresolved":false,"context_lines":[{"line_number":180,"context_line":"It uses for those cases where neutron needs to check whether the project"},{"line_number":181,"context_line":"submitting a request for a new resource owns the parent resource of the one"},{"line_number":182,"context_line":"being created. Current usages of ``OwnerCheck`` include, for instance,"},{"line_number":183,"context_line":"creating and updating a subnet. Also this class had been extended to support"},{"line_number":184,"context_line":"extension parent resources owner check which the parent resource introduced by"},{"line_number":185,"context_line":"service plugins, such as, router and floatingip for ``router`` service plugin,"},{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_c0b7e6f7","line":183,"range":{"start_line":183,"start_character":48,"end_line":183,"end_character":51},"updated":"2018-07-30 18:50:32.000000000","message":"s/has","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fd391cdfbf35fb040da9eb70039abb039179b887","unresolved":false,"context_lines":[{"line_number":180,"context_line":"It uses for those cases where neutron needs to check whether the project"},{"line_number":181,"context_line":"submitting a request for a new resource owns the parent resource of the one"},{"line_number":182,"context_line":"being created. Current usages of ``OwnerCheck`` include, for instance,"},{"line_number":183,"context_line":"creating and updating a subnet. Also this class had been extended to support"},{"line_number":184,"context_line":"extension parent resources owner check which the parent resource introduced by"},{"line_number":185,"context_line":"service plugins, such as, router and floatingip for ``router`` service plugin,"},{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_40cbd671","line":183,"range":{"start_line":183,"start_character":69,"end_line":183,"end_character":76},"updated":"2018-07-30 18:50:32.000000000","message":"s/support the\n\n(?)","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":180,"context_line":"It uses for those cases where neutron needs to check whether the project"},{"line_number":181,"context_line":"submitting a request for a new resource owns the parent resource of the one"},{"line_number":182,"context_line":"being created. Current usages of ``OwnerCheck`` include, for instance,"},{"line_number":183,"context_line":"creating and updating a subnet. Also this class had been extended to support"},{"line_number":184,"context_line":"extension parent resources owner check which the parent resource introduced by"},{"line_number":185,"context_line":"service plugins, such as, router and floatingip for ``router`` service plugin,"},{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_c3628b3d","line":183,"range":{"start_line":183,"start_character":32,"end_line":183,"end_character":41},"in_reply_to":"5f7c97a3_20e57a07","updated":"2018-07-31 01:18:35.000000000","message":"Done","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":180,"context_line":"It uses for those cases where neutron needs to check whether the project"},{"line_number":181,"context_line":"submitting a request for a new resource owns the parent resource of the one"},{"line_number":182,"context_line":"being created. Current usages of ``OwnerCheck`` include, for instance,"},{"line_number":183,"context_line":"creating and updating a subnet. Also this class had been extended to support"},{"line_number":184,"context_line":"extension parent resources owner check which the parent resource introduced by"},{"line_number":185,"context_line":"service plugins, such as, router and floatingip for ``router`` service plugin,"},{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_e346a7a8","line":183,"range":{"start_line":183,"start_character":69,"end_line":183,"end_character":76},"in_reply_to":"5f7c97a3_40cbd671","updated":"2018-07-31 01:18:35.000000000","message":"Done","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":180,"context_line":"It uses for those cases where neutron needs to check whether the project"},{"line_number":181,"context_line":"submitting a request for a new resource owns the parent resource of the one"},{"line_number":182,"context_line":"being created. Current usages of ``OwnerCheck`` include, for instance,"},{"line_number":183,"context_line":"creating and updating a subnet. Also this class had been extended to support"},{"line_number":184,"context_line":"extension parent resources owner check which the parent resource introduced by"},{"line_number":185,"context_line":"service plugins, such as, router and floatingip for ``router`` service plugin,"},{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_0344039e","line":183,"range":{"start_line":183,"start_character":48,"end_line":183,"end_character":51},"in_reply_to":"5f7c97a3_c0b7e6f7","updated":"2018-07-31 01:18:35.000000000","message":"Done","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fd391cdfbf35fb040da9eb70039abb039179b887","unresolved":false,"context_lines":[{"line_number":182,"context_line":"being created. Current usages of ``OwnerCheck`` include, for instance,"},{"line_number":183,"context_line":"creating and updating a subnet. Also this class had been extended to support"},{"line_number":184,"context_line":"extension parent resources owner check which the parent resource introduced by"},{"line_number":185,"context_line":"service plugins, such as, router and floatingip for ``router`` service plugin,"},{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"},{"line_number":187,"context_line":"extension resource mapping, so developers can register the extension resource"},{"line_number":188,"context_line":"name and service plugin which registered in neutron-lib into"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_00963e4b","line":185,"range":{"start_line":185,"start_character":17,"end_line":185,"end_character":25},"updated":"2018-07-30 18:50:32.000000000","message":"From this point on this sentence becomes confusing to me, I think it needs to be broken into multiple sentences.","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":182,"context_line":"being created. Current usages of ``OwnerCheck`` include, for instance,"},{"line_number":183,"context_line":"creating and updating a subnet. Also this class had been extended to support"},{"line_number":184,"context_line":"extension parent resources owner check which the parent resource introduced by"},{"line_number":185,"context_line":"service plugins, such as, router and floatingip for ``router`` service plugin,"},{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"},{"line_number":187,"context_line":"extension resource mapping, so developers can register the extension resource"},{"line_number":188,"context_line":"name and service plugin which registered in neutron-lib into"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_a3c2ef00","line":185,"range":{"start_line":185,"start_character":17,"end_line":185,"end_character":25},"in_reply_to":"5f7c97a3_00963e4b","updated":"2018-07-31 01:18:35.000000000","message":"Done","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fd391cdfbf35fb040da9eb70039abb039179b887","unresolved":false,"context_lines":[{"line_number":183,"context_line":"creating and updating a subnet. Also this class had been extended to support"},{"line_number":184,"context_line":"extension parent resources owner check which the parent resource introduced by"},{"line_number":185,"context_line":"service plugins, such as, router and floatingip for ``router`` service plugin,"},{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"},{"line_number":187,"context_line":"extension resource mapping, so developers can register the extension resource"},{"line_number":188,"context_line":"name and service plugin which registered in neutron-lib into"},{"line_number":189,"context_line":"``EXT_PARENT_RESOURCE_MAPPING`` which locates in ``neutron.common.constants``"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_a080aaf7","line":186,"range":{"start_line":186,"start_character":64,"end_line":186,"end_character":70},"updated":"2018-07-30 18:50:32.000000000","message":"s/adds\n\n(?)","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":183,"context_line":"creating and updating a subnet. Also this class had been extended to support"},{"line_number":184,"context_line":"extension parent resources owner check which the parent resource introduced by"},{"line_number":185,"context_line":"service plugins, such as, router and floatingip for ``router`` service plugin,"},{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"},{"line_number":187,"context_line":"extension resource mapping, so developers can register the extension resource"},{"line_number":188,"context_line":"name and service plugin which registered in neutron-lib into"},{"line_number":189,"context_line":"``EXT_PARENT_RESOURCE_MAPPING`` which locates in ``neutron.common.constants``"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_c3c7eb10","line":186,"range":{"start_line":186,"start_character":64,"end_line":186,"end_character":70},"in_reply_to":"5f7c97a3_a080aaf7","updated":"2018-07-31 01:18:35.000000000","message":"Done","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fd391cdfbf35fb040da9eb70039abb039179b887","unresolved":false,"context_lines":[{"line_number":185,"context_line":"service plugins, such as, router and floatingip for ``router`` service plugin,"},{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"},{"line_number":187,"context_line":"extension resource mapping, so developers can register the extension resource"},{"line_number":188,"context_line":"name and service plugin which registered in neutron-lib into"},{"line_number":189,"context_line":"``EXT_PARENT_RESOURCE_MAPPING`` which locates in ``neutron.common.constants``"},{"line_number":190,"context_line":"for using it."},{"line_number":191,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_e08f821f","line":188,"range":{"start_line":188,"start_character":24,"end_line":188,"end_character":29},"updated":"2018-07-30 18:50:32.000000000","message":"s/which were\n\n(?)","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":185,"context_line":"service plugins, such as, router and floatingip for ``router`` service plugin,"},{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"},{"line_number":187,"context_line":"extension resource mapping, so developers can register the extension resource"},{"line_number":188,"context_line":"name and service plugin which registered in neutron-lib into"},{"line_number":189,"context_line":"``EXT_PARENT_RESOURCE_MAPPING`` which locates in ``neutron.common.constants``"},{"line_number":190,"context_line":"for using it."},{"line_number":191,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_63c8571f","line":188,"range":{"start_line":188,"start_character":24,"end_line":188,"end_character":29},"in_reply_to":"5f7c97a3_e08f821f","updated":"2018-07-31 01:18:35.000000000","message":"Done","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"3706ff2d71f3a92337334673328deca54d94e394","unresolved":false,"context_lines":[{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"},{"line_number":187,"context_line":"extension resource mapping, so developers can register the extension resource"},{"line_number":188,"context_line":"name and service plugin which registered in neutron-lib into"},{"line_number":189,"context_line":"``EXT_PARENT_RESOURCE_MAPPING`` which locates in ``neutron.common.constants``"},{"line_number":190,"context_line":"for using it."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"The check, performed in the ``__call__`` method, works as follows:"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_e1830da9","line":189,"updated":"2018-07-30 18:40:32.000000000","message":"I am news on this and I find it a bit difficult to digest the content above. Perhaps giving an example could clarify how everything is going to work?","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fd391cdfbf35fb040da9eb70039abb039179b887","unresolved":false,"context_lines":[{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"},{"line_number":187,"context_line":"extension resource mapping, so developers can register the extension resource"},{"line_number":188,"context_line":"name and service plugin which registered in neutron-lib into"},{"line_number":189,"context_line":"``EXT_PARENT_RESOURCE_MAPPING`` which locates in ``neutron.common.constants``"},{"line_number":190,"context_line":"for using it."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"The check, performed in the ``__call__`` method, works as follows:"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_a0950a33","line":189,"range":{"start_line":189,"start_character":38,"end_line":189,"end_character":45},"updated":"2018-07-30 18:50:32.000000000","message":"s/is located","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"},{"line_number":187,"context_line":"extension resource mapping, so developers can register the extension resource"},{"line_number":188,"context_line":"name and service plugin which registered in neutron-lib into"},{"line_number":189,"context_line":"``EXT_PARENT_RESOURCE_MAPPING`` which locates in ``neutron.common.constants``"},{"line_number":190,"context_line":"for using it."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"The check, performed in the ``__call__`` method, works as follows:"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_83cd7330","line":189,"range":{"start_line":189,"start_character":38,"end_line":189,"end_character":45},"in_reply_to":"5f7c97a3_a0950a33","updated":"2018-07-31 01:18:35.000000000","message":"Done","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":186,"context_line":"the ``_EXT_RESOURCE_FOREIGN_KEYS`` introduced for this function to add the"},{"line_number":187,"context_line":"extension resource mapping, so developers can register the extension resource"},{"line_number":188,"context_line":"name and service plugin which registered in neutron-lib into"},{"line_number":189,"context_line":"``EXT_PARENT_RESOURCE_MAPPING`` which locates in ``neutron.common.constants``"},{"line_number":190,"context_line":"for using it."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"The check, performed in the ``__call__`` method, works as follows:"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_23d6dfc5","line":189,"in_reply_to":"5f7c97a3_e1830da9","updated":"2018-07-31 01:18:35.000000000","message":"You will know how to use it by passing through the whole patch.","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fd391cdfbf35fb040da9eb70039abb039179b887","unresolved":false,"context_lines":[{"line_number":187,"context_line":"extension resource mapping, so developers can register the extension resource"},{"line_number":188,"context_line":"name and service plugin which registered in neutron-lib into"},{"line_number":189,"context_line":"``EXT_PARENT_RESOURCE_MAPPING`` which locates in ``neutron.common.constants``"},{"line_number":190,"context_line":"for using it."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"The check, performed in the ``__call__`` method, works as follows:"},{"line_number":193,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_c0b366eb","line":190,"range":{"start_line":190,"start_character":0,"end_line":190,"end_character":12},"updated":"2018-07-30 18:50:32.000000000","message":"?","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":187,"context_line":"extension resource mapping, so developers can register the extension resource"},{"line_number":188,"context_line":"name and service plugin which registered in neutron-lib into"},{"line_number":189,"context_line":"``EXT_PARENT_RESOURCE_MAPPING`` which locates in ``neutron.common.constants``"},{"line_number":190,"context_line":"for using it."},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"The check, performed in the ``__call__`` method, works as follows:"},{"line_number":193,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5f7c97a3_a3ebcf78","line":190,"range":{"start_line":190,"start_character":0,"end_line":190,"end_character":12},"in_reply_to":"5f7c97a3_c0b366eb","updated":"2018-07-31 01:18:35.000000000","message":"Let me remove or refactor it. ;-)","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"}],"neutron/api/v2/base.py":[{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"a62e27408689f33e5bdc39620e11adabcfd1f64d","unresolved":false,"context_lines":[{"line_number":346,"context_line":"        \"\"\"Retrieves and formats a single element of the requested entity.\"\"\""},{"line_number":347,"context_line":"        kwargs \u003d {\u0027fields\u0027: field_list}"},{"line_number":348,"context_line":"        action \u003d self._plugin_handlers[self.SHOW]"},{"line_number":349,"context_line":"        if parent_id:"},{"line_number":350,"context_line":"            kwargs[self._parent_id_name] \u003d parent_id"},{"line_number":351,"context_line":"        obj_getter \u003d getattr(self._plugin, action)"},{"line_number":352,"context_line":"        obj \u003d obj_getter(request.context, id, **kwargs)"},{"line_number":353,"context_line":"        if parent_id:"},{"line_number":354,"context_line":"            self._set_parent_id_into_ext_resources_request("}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_cea182f8","line":351,"range":{"start_line":349,"start_character":0,"end_line":351,"end_character":1},"updated":"2018-07-27 13:17:46.000000000","message":"Could line 350 be moved down under the if statement on line 353, so that we don\u0027t have two \"if parent_id:\" statements within a couple lines of each other?","commit_id":"35ce7f5f70faccfdebabea5c8b229b2a262cd6d4"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"965f4b1c4b2d2a6f56888cb8537bf50c1cbc9f6a","unresolved":false,"context_lines":[{"line_number":346,"context_line":"        \"\"\"Retrieves and formats a single element of the requested entity.\"\"\""},{"line_number":347,"context_line":"        kwargs \u003d {\u0027fields\u0027: field_list}"},{"line_number":348,"context_line":"        action \u003d self._plugin_handlers[self.SHOW]"},{"line_number":349,"context_line":"        if parent_id:"},{"line_number":350,"context_line":"            kwargs[self._parent_id_name] \u003d parent_id"},{"line_number":351,"context_line":"        obj_getter \u003d getattr(self._plugin, action)"},{"line_number":352,"context_line":"        obj \u003d obj_getter(request.context, id, **kwargs)"},{"line_number":353,"context_line":"        if parent_id:"},{"line_number":354,"context_line":"            self._set_parent_id_into_ext_resources_request("}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_f12303a9","line":351,"range":{"start_line":349,"start_character":0,"end_line":351,"end_character":1},"in_reply_to":"5f7c97a3_cea182f8","updated":"2018-07-27 14:01:57.000000000","message":"I think No, L349 the parent_id will pass to backend plugin to process(L352), but L353-355 is for policy enforce based on the result from L352.","commit_id":"35ce7f5f70faccfdebabea5c8b229b2a262cd6d4"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"de4ebdfd6a75be517793f45cb5d2523ca6bd7344","unresolved":false,"context_lines":[{"line_number":346,"context_line":"        \"\"\"Retrieves and formats a single element of the requested entity.\"\"\""},{"line_number":347,"context_line":"        kwargs \u003d {\u0027fields\u0027: field_list}"},{"line_number":348,"context_line":"        action \u003d self._plugin_handlers[self.SHOW]"},{"line_number":349,"context_line":"        if parent_id:"},{"line_number":350,"context_line":"            kwargs[self._parent_id_name] \u003d parent_id"},{"line_number":351,"context_line":"        obj_getter \u003d getattr(self._plugin, action)"},{"line_number":352,"context_line":"        obj \u003d obj_getter(request.context, id, **kwargs)"},{"line_number":353,"context_line":"        if parent_id:"},{"line_number":354,"context_line":"            self._set_parent_id_into_ext_resources_request("}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_e21ecf5c","line":351,"range":{"start_line":349,"start_character":0,"end_line":351,"end_character":1},"in_reply_to":"5f7c97a3_f12303a9","updated":"2018-07-27 16:10:35.000000000","message":"ok","commit_id":"35ce7f5f70faccfdebabea5c8b229b2a262cd6d4"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"a62e27408689f33e5bdc39620e11adabcfd1f64d","unresolved":false,"context_lines":[{"line_number":793,"context_line":"        # Then we arrive here, that means the request or get obj contains"},{"line_number":794,"context_line":"        # ext_parent. If this func is called by list/get, and it contains"},{"line_number":795,"context_line":"        # _parent_id_name. We need to re-add the ex_parent prefix to policy."},{"line_number":796,"context_line":"        if is_get:"},{"line_number":797,"context_line":"            if (not request.context.is_admin or"},{"line_number":798,"context_line":"                    not request.context.is_advsvc and"},{"line_number":799,"context_line":"                    self.parent[\u0027member_name\u0027] in"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_4e49f22c","line":796,"range":{"start_line":796,"start_character":0,"end_line":796,"end_character":18},"updated":"2018-07-27 13:17:46.000000000","message":"The \"if not is_get ... return\" on line 786-791 means that if is_get is True then the function exits immediately.  Therefore \"if is_get\" will never be True here because if it was, the function would have returned already.\n\nThis is all predicated on the assumption that \"is_get\" is a boolean, which is suggested by the \"is_\" prefix.  If that is not true, then the possible kinds of values might need to be documented and the variable name should change.","commit_id":"35ce7f5f70faccfdebabea5c8b229b2a262cd6d4"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"de4ebdfd6a75be517793f45cb5d2523ca6bd7344","unresolved":false,"context_lines":[{"line_number":793,"context_line":"        # Then we arrive here, that means the request or get obj contains"},{"line_number":794,"context_line":"        # ext_parent. If this func is called by list/get, and it contains"},{"line_number":795,"context_line":"        # _parent_id_name. We need to re-add the ex_parent prefix to policy."},{"line_number":796,"context_line":"        if is_get:"},{"line_number":797,"context_line":"            if (not request.context.is_admin or"},{"line_number":798,"context_line":"                    not request.context.is_advsvc and"},{"line_number":799,"context_line":"                    self.parent[\u0027member_name\u0027] in"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_62115f50","line":796,"range":{"start_line":796,"start_character":0,"end_line":796,"end_character":18},"in_reply_to":"5f7c97a3_31897b6f","updated":"2018-07-27 16:10:35.000000000","message":"Ah, I see.  Thanks for the explanation, that helps.","commit_id":"35ce7f5f70faccfdebabea5c8b229b2a262cd6d4"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"965f4b1c4b2d2a6f56888cb8537bf50c1cbc9f6a","unresolved":false,"context_lines":[{"line_number":793,"context_line":"        # Then we arrive here, that means the request or get obj contains"},{"line_number":794,"context_line":"        # ext_parent. If this func is called by list/get, and it contains"},{"line_number":795,"context_line":"        # _parent_id_name. We need to re-add the ex_parent prefix to policy."},{"line_number":796,"context_line":"        if is_get:"},{"line_number":797,"context_line":"            if (not request.context.is_admin or"},{"line_number":798,"context_line":"                    not request.context.is_advsvc and"},{"line_number":799,"context_line":"                    self.parent[\u0027member_name\u0027] in"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_31897b6f","line":796,"range":{"start_line":796,"start_character":0,"end_line":796,"end_character":18},"in_reply_to":"5f7c97a3_4e49f22c","updated":"2018-07-27 14:01:57.000000000","message":"Hi, Nate, No, these terrible may be very confused.\nL786 means this function called by _create/_delete, so the left part of L786 is still True, then we need check the request context is admin, or advsvc or check if the parent resource had been registered in our constants mapping, or there is parent_resource_id already in the policy target. Then the right part in L786 are success, we won\u0027t check anymore.\n\nIf L786 not match the \"if\", that means the request context is a normal tenant, and the parent resource of request subresource had been registered in constants MAPPING, then the logic will go L807 directly for adding parent_resource_id in policy target.\n\nThen we talk about GET/LIST(_item/items), as these funcs are different with (_create/_delete), they will call the backend plugin first, get the subresource objects, then do policy enfore.\nNeed to note that subresource will contain the parent_resource_id in general(The reason is subresource need a relationship towards its prarent resource, also current OVO just map it from db model.) So once we found the got obj has parent_id, that means it must contain a parent_resource_id in returned obj_dict, then generate the response according api definition(which can be show, which can be create and so on). What we want is just add the special key-value into the policy target for owner check, which is \"ext_parent_parent_id\", that\u0027s all.\n\nSo once the func is called by (_item/items), the is_get will be True, so L786 will pass directly, the logic will set into L796, so here, we only check the context is not admin, not advsvc, and its parent resource had been registered, we set the keyvalue into the policy target.","commit_id":"35ce7f5f70faccfdebabea5c8b229b2a262cd6d4"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fd391cdfbf35fb040da9eb70039abb039179b887","unresolved":false,"context_lines":[{"line_number":350,"context_line":"            kwargs[self._parent_id_name] \u003d parent_id"},{"line_number":351,"context_line":"        obj_getter \u003d getattr(self._plugin, action)"},{"line_number":352,"context_line":"        obj \u003d obj_getter(request.context, id, **kwargs)"},{"line_number":353,"context_line":"        if parent_id:"},{"line_number":354,"context_line":"            self._set_parent_id_into_ext_resources_request("},{"line_number":355,"context_line":"                request, obj, parent_id, is_get\u003dTrue)"},{"line_number":356,"context_line":"        # Check authz"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_a0fc2a71","line":353,"updated":"2018-07-30 18:50:32.000000000","message":"nit: could skip this check everywhere and just have _set_parent_id_into_ext_resources_request() do a return on first line if it\u0027s passed as None.","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"e66cdae2b0df06ab31214142f9f935b44c9484ee","unresolved":false,"context_lines":[{"line_number":350,"context_line":"            kwargs[self._parent_id_name] \u003d parent_id"},{"line_number":351,"context_line":"        obj_getter \u003d getattr(self._plugin, action)"},{"line_number":352,"context_line":"        obj \u003d obj_getter(request.context, id, **kwargs)"},{"line_number":353,"context_line":"        if parent_id:"},{"line_number":354,"context_line":"            self._set_parent_id_into_ext_resources_request("},{"line_number":355,"context_line":"                request, obj, parent_id, is_get\u003dTrue)"},{"line_number":356,"context_line":"        # Check authz"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_1bb21606","line":353,"in_reply_to":"5f7c97a3_a0fc2a71","updated":"2018-08-01 03:52:36.000000000","message":"Thanks, Brain. That\u0027s perfect. ;-) I will change it","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"3706ff2d71f3a92337334673328deca54d94e394","unresolved":false,"context_lines":[{"line_number":798,"context_line":"                    not request.context.is_advsvc and"},{"line_number":799,"context_line":"                    self.parent[\u0027member_name\u0027] in"},{"line_number":800,"context_line":"                    n_const.EXT_PARENT_RESOURCE_MAPPING):"},{"line_number":801,"context_line":"                resource_item.setdefault("},{"line_number":802,"context_line":"                    \"%s_%s\" % (n_const.EXT_PARENT_PREFIX,"},{"line_number":803,"context_line":"                               self._parent_id_name),"},{"line_number":804,"context_line":"                    parent_id)"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_3a3ccbbe","line":801,"range":{"start_line":801,"start_character":30,"end_line":801,"end_character":40},"updated":"2018-07-30 18:40:32.000000000","message":"The tox-cover job showed that this method is not well covered by unit tests: http://logs.openstack.org/31/585731/7/check/openstack-tox-cover/f70e8f9/cover/neutron_api_v2_base_py.html","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"e66cdae2b0df06ab31214142f9f935b44c9484ee","unresolved":false,"context_lines":[{"line_number":798,"context_line":"                    not request.context.is_advsvc and"},{"line_number":799,"context_line":"                    self.parent[\u0027member_name\u0027] in"},{"line_number":800,"context_line":"                    n_const.EXT_PARENT_RESOURCE_MAPPING):"},{"line_number":801,"context_line":"                resource_item.setdefault("},{"line_number":802,"context_line":"                    \"%s_%s\" % (n_const.EXT_PARENT_PREFIX,"},{"line_number":803,"context_line":"                               self._parent_id_name),"},{"line_number":804,"context_line":"                    parent_id)"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_dbd25ecf","line":801,"range":{"start_line":801,"start_character":30,"end_line":801,"end_character":40},"in_reply_to":"5f7c97a3_3a3ccbbe","updated":"2018-08-01 03:52:36.000000000","message":"Hmmm, yeah. Let me fix","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"}],"neutron/common/constants.py":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"76c62e41febb23bd3a5c73d55ec9dd6c352195ca","unresolved":false,"context_lines":[{"line_number":244,"context_line":"    l3.FLOATINGIP: plugin_consts.L3"},{"line_number":245,"context_line":"}"},{"line_number":246,"context_line":"EXT_PARENT_PREFIX \u003d \u0027ext_parent\u0027"},{"line_number":247,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_ca98bc77","line":247,"updated":"2018-07-25 21:52:29.000000000","message":"We don\u0027t need this line. That is why you are getting a pep8 error","commit_id":"972d807b2e449c46e706b9e967e9fb4a103d82dd"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"861ebd50fb0b2d45afe87d36a7d04358b0f5078f","unresolved":false,"context_lines":[{"line_number":244,"context_line":"    l3.FLOATINGIP: plugin_consts.L3"},{"line_number":245,"context_line":"}"},{"line_number":246,"context_line":"EXT_PARENT_PREFIX \u003d \u0027ext_parent\u0027"},{"line_number":247,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_fe59ba5b","line":247,"in_reply_to":"5f7c97a3_ca98bc77","updated":"2018-07-26 00:19:53.000000000","message":"Oh, my bad, not check here.","commit_id":"972d807b2e449c46e706b9e967e9fb4a103d82dd"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"b27ffe6642862ca98d9e07e7a22571fc0f94eb21","unresolved":false,"context_lines":[{"line_number":234,"context_line":""},{"line_number":235,"context_line":"# Registered extension parent resource check mapping"},{"line_number":236,"context_line":"# If we want to register some service plugin resources into policy and check"},{"line_number":237,"context_line":"# the owner when operate their subresources. We can write here to use existing"},{"line_number":238,"context_line":"# policy engine for parent resource owner check."},{"line_number":239,"context_line":"# The each entry here should be PARENT_RESOURCE_NAME: SERVICE_PLUGIN_NAME,"},{"line_number":240,"context_line":"# PARENT_RESOURCE_NAME is usually from api definition."}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_d1e4d5e1","line":237,"range":{"start_line":237,"start_character":17,"end_line":237,"end_character":24},"updated":"2018-07-26 22:58:01.000000000","message":"operating","commit_id":"35d3961646855b9eaaca1349a640d15d68f164fa"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"b27ffe6642862ca98d9e07e7a22571fc0f94eb21","unresolved":false,"context_lines":[{"line_number":236,"context_line":"# If we want to register some service plugin resources into policy and check"},{"line_number":237,"context_line":"# the owner when operate their subresources. We can write here to use existing"},{"line_number":238,"context_line":"# policy engine for parent resource owner check."},{"line_number":239,"context_line":"# The each entry here should be PARENT_RESOURCE_NAME: SERVICE_PLUGIN_NAME,"},{"line_number":240,"context_line":"# PARENT_RESOURCE_NAME is usually from api definition."},{"line_number":241,"context_line":"# SERVICE_PLUGIN_NAME is the service plugin which introduce the resource and"},{"line_number":242,"context_line":"# register the service plugin name in neutron-lib."}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_51bbe5bc","line":239,"range":{"start_line":239,"start_character":2,"end_line":239,"end_character":10},"updated":"2018-07-26 22:58:01.000000000","message":"Each","commit_id":"35d3961646855b9eaaca1349a640d15d68f164fa"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"b27ffe6642862ca98d9e07e7a22571fc0f94eb21","unresolved":false,"context_lines":[{"line_number":238,"context_line":"# policy engine for parent resource owner check."},{"line_number":239,"context_line":"# The each entry here should be PARENT_RESOURCE_NAME: SERVICE_PLUGIN_NAME,"},{"line_number":240,"context_line":"# PARENT_RESOURCE_NAME is usually from api definition."},{"line_number":241,"context_line":"# SERVICE_PLUGIN_NAME is the service plugin which introduce the resource and"},{"line_number":242,"context_line":"# register the service plugin name in neutron-lib."},{"line_number":243,"context_line":"EXT_PARENT_RESOURCE_MAPPING \u003d {"},{"line_number":244,"context_line":"    l3.FLOATINGIP: plugin_consts.L3"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_31d509e7","line":241,"range":{"start_line":241,"start_character":50,"end_line":241,"end_character":59},"updated":"2018-07-26 22:58:01.000000000","message":"introduced","commit_id":"35d3961646855b9eaaca1349a640d15d68f164fa"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"b27ffe6642862ca98d9e07e7a22571fc0f94eb21","unresolved":false,"context_lines":[{"line_number":239,"context_line":"# The each entry here should be PARENT_RESOURCE_NAME: SERVICE_PLUGIN_NAME,"},{"line_number":240,"context_line":"# PARENT_RESOURCE_NAME is usually from api definition."},{"line_number":241,"context_line":"# SERVICE_PLUGIN_NAME is the service plugin which introduce the resource and"},{"line_number":242,"context_line":"# register the service plugin name in neutron-lib."},{"line_number":243,"context_line":"EXT_PARENT_RESOURCE_MAPPING \u003d {"},{"line_number":244,"context_line":"    l3.FLOATINGIP: plugin_consts.L3"},{"line_number":245,"context_line":"}"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_f100f16b","line":242,"range":{"start_line":242,"start_character":2,"end_line":242,"end_character":10},"updated":"2018-07-26 22:58:01.000000000","message":"registered","commit_id":"35d3961646855b9eaaca1349a640d15d68f164fa"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"3706ff2d71f3a92337334673328deca54d94e394","unresolved":false,"context_lines":[{"line_number":240,"context_line":"# PARENT_RESOURCE_NAME is usually from api definition."},{"line_number":241,"context_line":"# SERVICE_PLUGIN_NAME is the service plugin which introduced the resource and"},{"line_number":242,"context_line":"# registered the service plugin name in neutron-lib."},{"line_number":243,"context_line":"EXT_PARENT_RESOURCE_MAPPING \u003d {"},{"line_number":244,"context_line":"    l3.FLOATINGIP: plugin_consts.L3"},{"line_number":245,"context_line":"}"},{"line_number":246,"context_line":"EXT_PARENT_PREFIX \u003d \u0027ext_parent\u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_ba9c5b70","line":243,"range":{"start_line":243,"start_character":0,"end_line":243,"end_character":27},"updated":"2018-07-30 18:40:32.000000000","message":"First, a nit. I find the name is a bit confused because I couldn\u0027t figure out it is for mapping what to what by this name.\n\nSecond, I have a feeling that the content of this map should be populated somewhere inside a plugin rather than statically being populating in here?","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":240,"context_line":"# PARENT_RESOURCE_NAME is usually from api definition."},{"line_number":241,"context_line":"# SERVICE_PLUGIN_NAME is the service plugin which introduced the resource and"},{"line_number":242,"context_line":"# registered the service plugin name in neutron-lib."},{"line_number":243,"context_line":"EXT_PARENT_RESOURCE_MAPPING \u003d {"},{"line_number":244,"context_line":"    l3.FLOATINGIP: plugin_consts.L3"},{"line_number":245,"context_line":"}"},{"line_number":246,"context_line":"EXT_PARENT_PREFIX \u003d \u0027ext_parent\u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_6364d720","line":243,"range":{"start_line":243,"start_character":0,"end_line":243,"end_character":27},"in_reply_to":"5f7c97a3_ba9c5b70","updated":"2018-07-31 01:18:35.000000000","message":"When you want to use it, you must read the above comments. Now, you will know what should be done in this constants.\n\nSecond, I\u0027m not sure how to do, as we treat it just a constants mapping, like L3 owns many resources router, floatingip. We register them one by one here, not to break so many api behaviors at once. You may know what I want to do, right?","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"}],"neutron/policy.py":[{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"3706ff2d71f3a92337334673328deca54d94e394","unresolved":false,"context_lines":[{"line_number":224,"context_line":""},{"line_number":225,"context_line":"    @cache.cache_method_results"},{"line_number":226,"context_line":"    def _extract(self, resource_type, resource_id, field):"},{"line_number":227,"context_line":"        # NOTE(salv-orlando): This check currently assumes the parent"},{"line_number":228,"context_line":"        # resource is handled by the core plugin. It might be worth"},{"line_number":229,"context_line":"        # having a way to map resources to plugins so to make this"},{"line_number":230,"context_line":"        # check more general"},{"line_number":231,"context_line":"        plugin \u003d directory.get_plugin()"},{"line_number":232,"context_line":"        if \u0027%ss\u0027 % resource_type in _EXT_RESOURCE_FOREIGN_KEYS:"},{"line_number":233,"context_line":"            plugin \u003d directory.get_plugin("}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_f76d0e30","line":230,"range":{"start_line":227,"start_character":0,"end_line":230,"end_character":28},"updated":"2018-07-30 18:40:32.000000000","message":"I guess this comment is addressed in this patch so it can be removed?","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":224,"context_line":""},{"line_number":225,"context_line":"    @cache.cache_method_results"},{"line_number":226,"context_line":"    def _extract(self, resource_type, resource_id, field):"},{"line_number":227,"context_line":"        # NOTE(salv-orlando): This check currently assumes the parent"},{"line_number":228,"context_line":"        # resource is handled by the core plugin. It might be worth"},{"line_number":229,"context_line":"        # having a way to map resources to plugins so to make this"},{"line_number":230,"context_line":"        # check more general"},{"line_number":231,"context_line":"        plugin \u003d directory.get_plugin()"},{"line_number":232,"context_line":"        if \u0027%ss\u0027 % resource_type in _EXT_RESOURCE_FOREIGN_KEYS:"},{"line_number":233,"context_line":"            plugin \u003d directory.get_plugin("}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_436f5bf9","line":230,"range":{"start_line":227,"start_character":0,"end_line":230,"end_character":28},"in_reply_to":"5f7c97a3_f76d0e30","updated":"2018-07-31 01:18:35.000000000","message":"No, I think not all, when we verify the whole things work as wish, then we can remove it.","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"3706ff2d71f3a92337334673328deca54d94e394","unresolved":false,"context_lines":[{"line_number":229,"context_line":"        # having a way to map resources to plugins so to make this"},{"line_number":230,"context_line":"        # check more general"},{"line_number":231,"context_line":"        plugin \u003d directory.get_plugin()"},{"line_number":232,"context_line":"        if \u0027%ss\u0027 % resource_type in _EXT_RESOURCE_FOREIGN_KEYS:"},{"line_number":233,"context_line":"            plugin \u003d directory.get_plugin("},{"line_number":234,"context_line":"                const.EXT_PARENT_RESOURCE_MAPPING[resource_type])"},{"line_number":235,"context_line":"        f \u003d getattr(plugin, \u0027get_%s\u0027 % resource_type)"},{"line_number":236,"context_line":"        # f *must* exist, if not found it is better to let neutron"},{"line_number":237,"context_line":"        # explode. Check will be performed with admin context"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_bdb3f5eb","line":234,"range":{"start_line":232,"start_character":0,"end_line":234,"end_character":65},"updated":"2018-07-30 18:40:32.000000000","message":"Wouldn\u0027t this the same as:\n\n    if resource_type in const.EXT_PARENT_RESOURCE_MAPPING:\n        plugin \u003d directory.get_plugin(const.EXT_PARENT_RESOURCE_MAPPING[resource_type])\n\nThen, we can remove _EXT_RESOURCE_FOREIGN_KEYS","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"e66cdae2b0df06ab31214142f9f935b44c9484ee","unresolved":false,"context_lines":[{"line_number":229,"context_line":"        # having a way to map resources to plugins so to make this"},{"line_number":230,"context_line":"        # check more general"},{"line_number":231,"context_line":"        plugin \u003d directory.get_plugin()"},{"line_number":232,"context_line":"        if \u0027%ss\u0027 % resource_type in _EXT_RESOURCE_FOREIGN_KEYS:"},{"line_number":233,"context_line":"            plugin \u003d directory.get_plugin("},{"line_number":234,"context_line":"                const.EXT_PARENT_RESOURCE_MAPPING[resource_type])"},{"line_number":235,"context_line":"        f \u003d getattr(plugin, \u0027get_%s\u0027 % resource_type)"},{"line_number":236,"context_line":"        # f *must* exist, if not found it is better to let neutron"},{"line_number":237,"context_line":"        # explode. Check will be performed with admin context"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_fb54fa57","line":234,"range":{"start_line":232,"start_character":0,"end_line":234,"end_character":65},"in_reply_to":"5f7c97a3_235b3f55","updated":"2018-08-01 03:52:36.000000000","message":"You are right, I re-think. Let\u0027s change it.","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":229,"context_line":"        # having a way to map resources to plugins so to make this"},{"line_number":230,"context_line":"        # check more general"},{"line_number":231,"context_line":"        plugin \u003d directory.get_plugin()"},{"line_number":232,"context_line":"        if \u0027%ss\u0027 % resource_type in _EXT_RESOURCE_FOREIGN_KEYS:"},{"line_number":233,"context_line":"            plugin \u003d directory.get_plugin("},{"line_number":234,"context_line":"                const.EXT_PARENT_RESOURCE_MAPPING[resource_type])"},{"line_number":235,"context_line":"        f \u003d getattr(plugin, \u0027get_%s\u0027 % resource_type)"},{"line_number":236,"context_line":"        # f *must* exist, if not found it is better to let neutron"},{"line_number":237,"context_line":"        # explode. Check will be performed with admin context"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_235b3f55","line":234,"range":{"start_line":232,"start_character":0,"end_line":234,"end_character":65},"in_reply_to":"5f7c97a3_bdb3f5eb","updated":"2018-07-31 01:18:35.000000000","message":"Yes, they are same, _EXT_RESOURCE_FOREIGN_KEYS, it exists for good understanding, as I don\u0027t what to write code which somebody is hard to picture what inside. ;-)","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"}],"releasenotes/notes/extend-policy-for-extension-resource-owner-check-4a19b84889660506.yaml":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fd391cdfbf35fb040da9eb70039abb039179b887","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Introduces extension parent resources owner check in current"},{"line_number":5,"context_line":"    ``OwnerCheck``. It can be used by registering extension parent resource"},{"line_number":6,"context_line":"    and service plugin which introduced the corresponding parent resource"},{"line_number":7,"context_line":"    into ``EXT_PARENT_RESOURCE_MAPPING`` locates in"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"5f7c97a3_602052f9","line":4,"range":{"start_line":4,"start_character":57,"end_line":4,"end_character":64},"updated":"2018-07-30 18:50:32.000000000","message":"don\u0027t think you need word \u0027current\u0027","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Introduces extension parent resources owner check in current"},{"line_number":5,"context_line":"    ``OwnerCheck``. It can be used by registering extension parent resource"},{"line_number":6,"context_line":"    and service plugin which introduced the corresponding parent resource"},{"line_number":7,"context_line":"    into ``EXT_PARENT_RESOURCE_MAPPING`` locates in"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"5f7c97a3_e350e72f","line":4,"range":{"start_line":4,"start_character":57,"end_line":4,"end_character":64},"in_reply_to":"5f7c97a3_602052f9","updated":"2018-07-31 01:18:35.000000000","message":"Done","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fd391cdfbf35fb040da9eb70039abb039179b887","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Introduces extension parent resources owner check in current"},{"line_number":5,"context_line":"    ``OwnerCheck``. It can be used by registering extension parent resource"},{"line_number":6,"context_line":"    and service plugin which introduced the corresponding parent resource"},{"line_number":7,"context_line":"    into ``EXT_PARENT_RESOURCE_MAPPING`` locates in"},{"line_number":8,"context_line":"    ``neutron.common.constants``. And introduces an new policy role"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"5f7c97a3_c074c606","line":5,"range":{"start_line":5,"start_character":4,"end_line":5,"end_character":18},"updated":"2018-07-30 18:50:32.000000000","message":"This is a method, so should it be ``neutron.policy.OwnerCheck`` ?","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fd391cdfbf35fb040da9eb70039abb039179b887","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Introduces extension parent resources owner check in current"},{"line_number":5,"context_line":"    ``OwnerCheck``. It can be used by registering extension parent resource"},{"line_number":6,"context_line":"    and service plugin which introduced the corresponding parent resource"},{"line_number":7,"context_line":"    into ``EXT_PARENT_RESOURCE_MAPPING`` locates in"},{"line_number":8,"context_line":"    ``neutron.common.constants``. And introduces an new policy role"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"5f7c97a3_e079c2fa","line":5,"range":{"start_line":5,"start_character":50,"end_line":5,"end_character":59},"updated":"2018-07-30 18:50:32.000000000","message":"s/an extension (?)","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Introduces extension parent resources owner check in current"},{"line_number":5,"context_line":"    ``OwnerCheck``. It can be used by registering extension parent resource"},{"line_number":6,"context_line":"    and service plugin which introduced the corresponding parent resource"},{"line_number":7,"context_line":"    into ``EXT_PARENT_RESOURCE_MAPPING`` locates in"},{"line_number":8,"context_line":"    ``neutron.common.constants``. And introduces an new policy role"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"5f7c97a3_8337b3fd","line":5,"range":{"start_line":5,"start_character":4,"end_line":5,"end_character":18},"in_reply_to":"5f7c97a3_c074c606","updated":"2018-07-31 01:18:35.000000000","message":"Done","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Introduces extension parent resources owner check in current"},{"line_number":5,"context_line":"    ``OwnerCheck``. It can be used by registering extension parent resource"},{"line_number":6,"context_line":"    and service plugin which introduced the corresponding parent resource"},{"line_number":7,"context_line":"    into ``EXT_PARENT_RESOURCE_MAPPING`` locates in"},{"line_number":8,"context_line":"    ``neutron.common.constants``. And introduces an new policy role"}],"source_content_type":"text/x-yaml","patch_set":7,"id":"5f7c97a3_23201fb1","line":5,"range":{"start_line":5,"start_character":50,"end_line":5,"end_character":59},"in_reply_to":"5f7c97a3_e079c2fa","updated":"2018-07-31 01:18:35.000000000","message":"Done","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fd391cdfbf35fb040da9eb70039abb039179b887","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    Introduces extension parent resources owner check in current"},{"line_number":5,"context_line":"    ``OwnerCheck``. It can be used by registering extension parent resource"},{"line_number":6,"context_line":"    and service plugin which introduced the corresponding parent resource"},{"line_number":7,"context_line":"    into ``EXT_PARENT_RESOURCE_MAPPING`` locates in"},{"line_number":8,"context_line":"    ``neutron.common.constants``. And introduces an new policy role"},{"line_number":9,"context_line":"    ``admin_or_ext_parent_owner`` into ``policy.json`` for this function."}],"source_content_type":"text/x-yaml","patch_set":7,"id":"5f7c97a3_006e3e2c","line":7,"range":{"start_line":7,"start_character":41,"end_line":7,"end_character":48},"updated":"2018-07-30 18:50:32.000000000","message":"s/located","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    Introduces extension parent resources owner check in current"},{"line_number":5,"context_line":"    ``OwnerCheck``. It can be used by registering extension parent resource"},{"line_number":6,"context_line":"    and service plugin which introduced the corresponding parent resource"},{"line_number":7,"context_line":"    into ``EXT_PARENT_RESOURCE_MAPPING`` locates in"},{"line_number":8,"context_line":"    ``neutron.common.constants``. And introduces an new policy role"},{"line_number":9,"context_line":"    ``admin_or_ext_parent_owner`` into ``policy.json`` for this function."}],"source_content_type":"text/x-yaml","patch_set":7,"id":"5f7c97a3_431d1b75","line":7,"range":{"start_line":7,"start_character":41,"end_line":7,"end_character":48},"in_reply_to":"5f7c97a3_006e3e2c","updated":"2018-07-31 01:18:35.000000000","message":"Done","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"d753441d1d61bf61b0bd021d976956fdccb2b023","unresolved":false,"context_lines":[{"line_number":5,"context_line":"    ``OwnerCheck``. It can be used by registering extension parent resource"},{"line_number":6,"context_line":"    and service plugin which introduced the corresponding parent resource"},{"line_number":7,"context_line":"    into ``EXT_PARENT_RESOURCE_MAPPING`` locates in"},{"line_number":8,"context_line":"    ``neutron.common.constants``. And introduces an new policy role"},{"line_number":9,"context_line":"    ``admin_or_ext_parent_owner`` into ``policy.json`` for this function."}],"source_content_type":"text/x-yaml","patch_set":7,"id":"5f7c97a3_c68627b8","line":8,"range":{"start_line":8,"start_character":49,"end_line":8,"end_character":51},"updated":"2018-07-30 14:41:55.000000000","message":"nitty nit: a/an/a","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"a727f5845219cd9e4dde4f76f0c5619a636f5466","unresolved":false,"context_lines":[{"line_number":5,"context_line":"    ``OwnerCheck``. It can be used by registering extension parent resource"},{"line_number":6,"context_line":"    and service plugin which introduced the corresponding parent resource"},{"line_number":7,"context_line":"    into ``EXT_PARENT_RESOURCE_MAPPING`` locates in"},{"line_number":8,"context_line":"    ``neutron.common.constants``. And introduces an new policy role"},{"line_number":9,"context_line":"    ``admin_or_ext_parent_owner`` into ``policy.json`` for this function."}],"source_content_type":"text/x-yaml","patch_set":7,"id":"5f7c97a3_e32547c1","line":8,"range":{"start_line":8,"start_character":49,"end_line":8,"end_character":51},"in_reply_to":"5f7c97a3_c68627b8","updated":"2018-07-31 01:18:35.000000000","message":"Done","commit_id":"42a0edfb3d1f47d444be636071288666ac055eaf"}]}
