)]}'
{"doc/source/configuration/index.rst":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9b1602ae42f84f514653c90c4f63fa7b43d7f73b","unresolved":false,"context_lines":[{"line_number":235,"context_line":"----------------"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"Default: ``{}``"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"Specifies a list of policy directories per service types.  The directories"},{"line_number":240,"context_line":"are relative to ``POLICY_FILES_PATH``.  A matching policy file needs to be"},{"line_number":241,"context_line":"defined and found in ``POLICY_FILES`` for additional policy directories"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9f436f4f_5c362053","line":238,"updated":"2017-08-16 16:37:25.000000000","message":"It is nice if some examples is available here.","commit_id":"45a5cf6c7a5829cc74ce3c718e4e52cc7052a36c"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"96b7eb46979f54bbb7786aeb17e18e0b42e50c10","unresolved":false,"context_lines":[{"line_number":235,"context_line":"----------------"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"Default: ``{}``"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"Specifies a list of policy directories per service types.  The directories"},{"line_number":240,"context_line":"are relative to ``POLICY_FILES_PATH``.  A matching policy file needs to be"},{"line_number":241,"context_line":"defined and found in ``POLICY_FILES`` for additional policy directories"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9f436f4f_328025f5","line":238,"in_reply_to":"9f436f4f_5c362053","updated":"2017-08-16 17:29:31.000000000","message":"Done","commit_id":"45a5cf6c7a5829cc74ce3c718e4e52cc7052a36c"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9b1602ae42f84f514653c90c4f63fa7b43d7f73b","unresolved":false,"context_lines":[{"line_number":237,"context_line":"Default: ``{}``"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"Specifies a list of policy directories per service types.  The directories"},{"line_number":240,"context_line":"are relative to ``POLICY_FILES_PATH``.  A matching policy file needs to be"},{"line_number":241,"context_line":"defined and found in ``POLICY_FILES`` for additional policy directories"},{"line_number":242,"context_line":"to be loaded."},{"line_number":243,"context_line":""},{"line_number":244,"context_line":"``POLICY_FILES_PATH``"},{"line_number":245,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9f436f4f_bf917e49","line":242,"range":{"start_line":240,"start_character":40,"end_line":242,"end_character":13},"updated":"2017-08-16 16:37:25.000000000","message":"This description is correct, but when I read it it is a bit difficult to understand. Some idea in my mind is \"Services whose additional policies are defined here must be defined in POLICY_FILES too. Otherwise, additional policies specified in POLICY_DIRS are not loaded.\" Thought? (I am not a native speaker, so my suggestion might not be suitable)","commit_id":"45a5cf6c7a5829cc74ce3c718e4e52cc7052a36c"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"96b7eb46979f54bbb7786aeb17e18e0b42e50c10","unresolved":false,"context_lines":[{"line_number":237,"context_line":"Default: ``{}``"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"Specifies a list of policy directories per service types.  The directories"},{"line_number":240,"context_line":"are relative to ``POLICY_FILES_PATH``.  A matching policy file needs to be"},{"line_number":241,"context_line":"defined and found in ``POLICY_FILES`` for additional policy directories"},{"line_number":242,"context_line":"to be loaded."},{"line_number":243,"context_line":""},{"line_number":244,"context_line":"``POLICY_FILES_PATH``"},{"line_number":245,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9f436f4f_d270b942","line":242,"range":{"start_line":240,"start_character":40,"end_line":242,"end_character":13},"in_reply_to":"9f436f4f_bf917e49","updated":"2017-08-16 17:29:31.000000000","message":"Done","commit_id":"45a5cf6c7a5829cc74ce3c718e4e52cc7052a36c"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8becc734d993a101252bb47fd9f54ee30c17b95d","unresolved":false,"context_lines":[{"line_number":231,"context_line":"to service types.  When policy.json files are added to ``POLICY_FILES_PATH``,"},{"line_number":232,"context_line":"they should be included here too."},{"line_number":233,"context_line":""},{"line_number":234,"context_line":"``POLICY_DIRS``"},{"line_number":235,"context_line":"----------------"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"Default: ``{}``"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9f436f4f_9a4ebb94","line":234,"updated":"2017-08-17 15:48:36.000000000","message":"Move this before POLICY_FILES. They are sorted alphabetically.","commit_id":"4c1d61a5c73836d2f118317bc96ca9a10bda7f36"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"b6f8d77a65764da4a94c72eef65781635c7c3dac","unresolved":false,"context_lines":[{"line_number":231,"context_line":"to service types.  When policy.json files are added to ``POLICY_FILES_PATH``,"},{"line_number":232,"context_line":"they should be included here too."},{"line_number":233,"context_line":""},{"line_number":234,"context_line":"``POLICY_DIRS``"},{"line_number":235,"context_line":"----------------"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"Default: ``{}``"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9f436f4f_a9f81149","line":234,"in_reply_to":"9f436f4f_9a4ebb94","updated":"2017-08-17 16:24:59.000000000","message":"Done","commit_id":"4c1d61a5c73836d2f118317bc96ca9a10bda7f36"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8becc734d993a101252bb47fd9f54ee30c17b95d","unresolved":false,"context_lines":[{"line_number":236,"context_line":""},{"line_number":237,"context_line":"Default: ``{}``"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"Specifies a list of policy directories per service types.  The directories"},{"line_number":240,"context_line":"are relative to ``POLICY_FILES_PATH``. Services whose additional policies"},{"line_number":241,"context_line":"are defined here must be defined in POLICY_FILES too. Otherwise,"},{"line_number":242,"context_line":"additional policies specified in POLICY_DIRS are not loaded."}],"source_content_type":"text/x-rst","patch_set":2,"id":"9f436f4f_baa4df4b","line":239,"range":{"start_line":239,"start_character":57,"end_line":239,"end_character":59},"updated":"2017-08-17 15:48:36.000000000","message":"Two spaces -\u003e one space","commit_id":"4c1d61a5c73836d2f118317bc96ca9a10bda7f36"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"b6f8d77a65764da4a94c72eef65781635c7c3dac","unresolved":false,"context_lines":[{"line_number":236,"context_line":""},{"line_number":237,"context_line":"Default: ``{}``"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"Specifies a list of policy directories per service types.  The directories"},{"line_number":240,"context_line":"are relative to ``POLICY_FILES_PATH``. Services whose additional policies"},{"line_number":241,"context_line":"are defined here must be defined in POLICY_FILES too. Otherwise,"},{"line_number":242,"context_line":"additional policies specified in POLICY_DIRS are not loaded."}],"source_content_type":"text/x-rst","patch_set":2,"id":"9f436f4f_6998e91a","line":239,"range":{"start_line":239,"start_character":57,"end_line":239,"end_character":59},"in_reply_to":"9f436f4f_baa4df4b","updated":"2017-08-17 16:24:59.000000000","message":"Done","commit_id":"4c1d61a5c73836d2f118317bc96ca9a10bda7f36"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8becc734d993a101252bb47fd9f54ee30c17b95d","unresolved":false,"context_lines":[{"line_number":238,"context_line":""},{"line_number":239,"context_line":"Specifies a list of policy directories per service types.  The directories"},{"line_number":240,"context_line":"are relative to ``POLICY_FILES_PATH``. Services whose additional policies"},{"line_number":241,"context_line":"are defined here must be defined in POLICY_FILES too. Otherwise,"},{"line_number":242,"context_line":"additional policies specified in POLICY_DIRS are not loaded."},{"line_number":243,"context_line":""},{"line_number":244,"context_line":"Example::"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9f436f4f_3a6eafff","line":241,"range":{"start_line":241,"start_character":36,"end_line":241,"end_character":48},"updated":"2017-08-17 15:48:36.000000000","message":"Could you quote it by `` (double backquotes)?","commit_id":"4c1d61a5c73836d2f118317bc96ca9a10bda7f36"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"b6f8d77a65764da4a94c72eef65781635c7c3dac","unresolved":false,"context_lines":[{"line_number":238,"context_line":""},{"line_number":239,"context_line":"Specifies a list of policy directories per service types.  The directories"},{"line_number":240,"context_line":"are relative to ``POLICY_FILES_PATH``. Services whose additional policies"},{"line_number":241,"context_line":"are defined here must be defined in POLICY_FILES too. Otherwise,"},{"line_number":242,"context_line":"additional policies specified in POLICY_DIRS are not loaded."},{"line_number":243,"context_line":""},{"line_number":244,"context_line":"Example::"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9f436f4f_499d2509","line":241,"range":{"start_line":241,"start_character":36,"end_line":241,"end_character":48},"in_reply_to":"9f436f4f_3a6eafff","updated":"2017-08-17 16:24:59.000000000","message":"Done","commit_id":"4c1d61a5c73836d2f118317bc96ca9a10bda7f36"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8becc734d993a101252bb47fd9f54ee30c17b95d","unresolved":false,"context_lines":[{"line_number":239,"context_line":"Specifies a list of policy directories per service types.  The directories"},{"line_number":240,"context_line":"are relative to ``POLICY_FILES_PATH``. Services whose additional policies"},{"line_number":241,"context_line":"are defined here must be defined in POLICY_FILES too. Otherwise,"},{"line_number":242,"context_line":"additional policies specified in POLICY_DIRS are not loaded."},{"line_number":243,"context_line":""},{"line_number":244,"context_line":"Example::"},{"line_number":245,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"9f436f4f_1a79abc6","line":242,"range":{"start_line":242,"start_character":33,"end_line":242,"end_character":44},"updated":"2017-08-17 15:48:36.000000000","message":"ditto","commit_id":"4c1d61a5c73836d2f118317bc96ca9a10bda7f36"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"b6f8d77a65764da4a94c72eef65781635c7c3dac","unresolved":false,"context_lines":[{"line_number":239,"context_line":"Specifies a list of policy directories per service types.  The directories"},{"line_number":240,"context_line":"are relative to ``POLICY_FILES_PATH``. Services whose additional policies"},{"line_number":241,"context_line":"are defined here must be defined in POLICY_FILES too. Otherwise,"},{"line_number":242,"context_line":"additional policies specified in POLICY_DIRS are not loaded."},{"line_number":243,"context_line":""},{"line_number":244,"context_line":"Example::"},{"line_number":245,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"9f436f4f_29a2e14c","line":242,"range":{"start_line":242,"start_character":33,"end_line":242,"end_character":44},"in_reply_to":"9f436f4f_1a79abc6","updated":"2017-08-17 16:24:59.000000000","message":"Done","commit_id":"4c1d61a5c73836d2f118317bc96ca9a10bda7f36"}],"openstack_auth/policy.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9b1602ae42f84f514653c90c4f63fa7b43d7f73b","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        policy_dirs \u003d getattr(settings, \u0027POLICY_DIRS\u0027, {})"},{"line_number":56,"context_line":"        for service in policy_files.keys():"},{"line_number":57,"context_line":"            policy_file \u003d os.path.join(_BASE_PATH, policy_files[service])"},{"line_number":58,"context_line":"            conf \u003d _get_policy_conf(policy_dirs\u003dpolicy_dirs.get(service, []))"},{"line_number":59,"context_line":"            enforcer \u003d policy.Enforcer(conf, policy_file)"},{"line_number":60,"context_line":"            # Ensure enforcer.policy_path is populated."},{"line_number":61,"context_line":"            enforcer.load_rules()"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f436f4f_fc75d432","line":58,"updated":"2017-08-16 16:37:25.000000000","message":"policy_opts.set_defaults() takes policy_file as an argument.\nIt looks better to refactor _get_policy_conf() to pass policy_file too.\n\nIt is better to handle _BASE_PATH in _get_policy_file as well.\nIf we pass policy_file in the oslo.config object, we don\u0027t need to pass policy_file in the next line.","commit_id":"45a5cf6c7a5829cc74ce3c718e4e52cc7052a36c"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"96b7eb46979f54bbb7786aeb17e18e0b42e50c10","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        policy_dirs \u003d getattr(settings, \u0027POLICY_DIRS\u0027, {})"},{"line_number":56,"context_line":"        for service in policy_files.keys():"},{"line_number":57,"context_line":"            policy_file \u003d os.path.join(_BASE_PATH, policy_files[service])"},{"line_number":58,"context_line":"            conf \u003d _get_policy_conf(policy_dirs\u003dpolicy_dirs.get(service, []))"},{"line_number":59,"context_line":"            enforcer \u003d policy.Enforcer(conf, policy_file)"},{"line_number":60,"context_line":"            # Ensure enforcer.policy_path is populated."},{"line_number":61,"context_line":"            enforcer.load_rules()"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f436f4f_f2905def","line":58,"in_reply_to":"9f436f4f_fc75d432","updated":"2017-08-16 17:29:31.000000000","message":"Done","commit_id":"45a5cf6c7a5829cc74ce3c718e4e52cc7052a36c"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8becc734d993a101252bb47fd9f54ee30c17b95d","unresolved":false,"context_lines":[{"line_number":30,"context_line":"_BASE_PATH \u003d getattr(settings, \u0027POLICY_FILES_PATH\u0027, \u0027\u0027)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"def _get_policy_conf(policy_file, policy_dirs\u003dNone):"},{"line_number":34,"context_line":"    conf \u003d cfg.ConfigOpts()"},{"line_number":35,"context_line":"    # Passing [] is required. Otherwise oslo.config looks up sys.argv."},{"line_number":36,"context_line":"    conf([])"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f436f4f_e90df935","line":33,"updated":"2017-08-17 15:48:36.000000000","message":"(just my preference) personally my vote is that _get_policy_conf() just takes \u0027service\u0027 as an argument and more information are retrieved in this function.","commit_id":"4c1d61a5c73836d2f118317bc96ca9a10bda7f36"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"514378cd0065616c5405e097057817dbdcd0e68e","unresolved":false,"context_lines":[{"line_number":30,"context_line":"_BASE_PATH \u003d getattr(settings, \u0027POLICY_FILES_PATH\u0027, \u0027\u0027)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"def _get_policy_conf(policy_file, policy_dirs\u003dNone):"},{"line_number":34,"context_line":"    conf \u003d cfg.ConfigOpts()"},{"line_number":35,"context_line":"    # Passing [] is required. Otherwise oslo.config looks up sys.argv."},{"line_number":36,"context_line":"    conf([])"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f436f4f_de61b213","line":33,"in_reply_to":"9f436f4f_c92c75ae","updated":"2017-08-18 09:23:03.000000000","message":"Fair enough. Thanks for checking. I personally would like to look up settings in this function, but we already looks up settings.POLICY_FILES to get the service list. Let\u0027s keep it as-is.","commit_id":"4c1d61a5c73836d2f118317bc96ca9a10bda7f36"},{"author":{"_account_id":7156,"name":"Mathieu Gagné","email":"mgagne@calavera.ca","username":"mgagne"},"change_message_id":"b6f8d77a65764da4a94c72eef65781635c7c3dac","unresolved":false,"context_lines":[{"line_number":30,"context_line":"_BASE_PATH \u003d getattr(settings, \u0027POLICY_FILES_PATH\u0027, \u0027\u0027)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"def _get_policy_conf(policy_file, policy_dirs\u003dNone):"},{"line_number":34,"context_line":"    conf \u003d cfg.ConfigOpts()"},{"line_number":35,"context_line":"    # Passing [] is required. Otherwise oslo.config looks up sys.argv."},{"line_number":36,"context_line":"    conf([])"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f436f4f_c92c75ae","line":33,"in_reply_to":"9f436f4f_e90df935","updated":"2017-08-17 16:24:59.000000000","message":"I would still need to iterate on policy_files below.\n\nAt this point, I prefer having the settings retrieval all in one place at lines 56-57 so we won\u0027t spread settings logic across too many functions.","commit_id":"4c1d61a5c73836d2f118317bc96ca9a10bda7f36"}]}
