)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"5f79ec87d70768eeaeabc9fb3a2037d5f2da4e5e","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Co-Authored-By: daniel-a-nguyen \u003cdan.nguyens.mail@gmail.com\u003e"},{"line_number":17,"context_line":"Co-Authored-By: woomatt \u003cmatt.wood@hp.com\u003e"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Closes-Bug: #1413851"},{"line_number":20,"context_line":"Change-Id: Iaa19bfef9b0c70304ff81d083c62b218b2d02479"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"ba7be1f8_c7c31536","line":18,"updated":"2015-02-25 18:23:14.000000000","message":"I think this should be tied to\nblueprint domain-scoped-tokens\nas well.","commit_id":"e0c30d10bc1bb6f8f60271698763c92dde493cb8"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"71c08303ea713cc4af76bad6798a470a1b3b4f92","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Co-Authored-By: daniel-a-nguyen \u003cdan.nguyens.mail@gmail.com\u003e"},{"line_number":17,"context_line":"Co-Authored-By: woomatt \u003cmatt.wood@hp.com\u003e"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Closes-Bug: #1413851"},{"line_number":20,"context_line":"Change-Id: Iaa19bfef9b0c70304ff81d083c62b218b2d02479"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"ba7be1f8_80b2e349","line":18,"in_reply_to":"ba7be1f8_c7c31536","updated":"2015-02-25 18:57:28.000000000","message":"Thanks Doug!\n\nWill do it soon.","commit_id":"e0c30d10bc1bb6f8f60271698763c92dde493cb8"}],"horizon/static/horizon/js/horizon.forms.js":[{"author":{"_account_id":13805,"name":"Shaoquan Chen","email":"sean.chen2@hp.com","username":"SeanChen"},"change_message_id":"f1e9c1fef12b13b7e0635313148120859cbe7045","unresolved":false,"context_lines":[{"line_number":121,"context_line":"  toggle_domains: function() {"},{"line_number":122,"context_line":"    $(\"#id_domain_name\").change(function () {"},{"line_number":123,"context_line":"      $(\"#id_domain_id\").val($(\"#id_domain_name\").children(\":selected\").attr(\"value\"));"},{"line_number":124,"context_line":"    });"},{"line_number":125,"context_line":"  }"},{"line_number":126,"context_line":"};"},{"line_number":127,"context_line":""}],"source_content_type":"text/javascript","patch_set":69,"id":"5afe65bd_bc7895c5","line":124,"updated":"2015-06-03 01:22:17.000000000","message":"For a little bit better performance, it can be:\n\nvar foo \u003d $(\"#id_domain_name\");\n\nfoo.change(function () {\n  $(\"#id_domain_id\").val(foo.children(\":selected\").attr(\"value\"));\n});\n\ngive a name for `foo` that you like.","commit_id":"3b979f59ef728eb6b2aa2675298fc671c30a84a5"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"c930e6d4f6362c0e36e13081571a7a1be147b271","unresolved":false,"context_lines":[{"line_number":121,"context_line":"  toggle_domains: function() {"},{"line_number":122,"context_line":"    $(\"#id_domain_name\").change(function () {"},{"line_number":123,"context_line":"      $(\"#id_domain_id\").val($(\"#id_domain_name\").children(\":selected\").attr(\"value\"));"},{"line_number":124,"context_line":"    });"},{"line_number":125,"context_line":"  }"},{"line_number":126,"context_line":"};"},{"line_number":127,"context_line":""}],"source_content_type":"text/javascript","patch_set":69,"id":"5afe65bd_0c5e0412","line":124,"in_reply_to":"5afe65bd_bc7895c5","updated":"2015-07-23 00:38:33.000000000","message":"thx Sean!\n\nI\u0027ll come back around to this soon.","commit_id":"3b979f59ef728eb6b2aa2675298fc671c30a84a5"}],"openstack_dashboard/api/keystone.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"3c1d85efb01e7db58bfec746e1a3318e374a9cbe","unresolved":false,"context_lines":[{"line_number":166,"context_line":"    else:"},{"line_number":167,"context_line":"        token_id \u003d user.token.id"},{"line_number":168,"context_line":"        if api_version \u003e\u003d 3:"},{"line_number":169,"context_line":"            # TODO(esp): rename domain_context to domain scoped token"},{"line_number":170,"context_line":"            domain_context \u003d request.session.get(\u0027domain_context\u0027, None)"},{"line_number":171,"context_line":"            if domain_context and hasattr(domain_context, \u0027id\u0027):"},{"line_number":172,"context_line":"                token_id \u003d domain_context.id"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a930d6b_470e913c","line":169,"updated":"2015-01-24 00:17:02.000000000","message":"this comment is very important, because what is here is wrong!","commit_id":"d077f9c7f71feac32db9a150cad02706180cf8e1"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"b2b878972ef94625adbfcc0dbbcf3f860cdf96e3","unresolved":false,"context_lines":[{"line_number":166,"context_line":"    else:"},{"line_number":167,"context_line":"        token_id \u003d user.token.id"},{"line_number":168,"context_line":"        if api_version \u003e\u003d 3:"},{"line_number":169,"context_line":"            # TODO(esp): rename domain_context to domain scoped token"},{"line_number":170,"context_line":"            domain_context \u003d request.session.get(\u0027domain_context\u0027, None)"},{"line_number":171,"context_line":"            if domain_context and hasattr(domain_context, \u0027id\u0027):"},{"line_number":172,"context_line":"                token_id \u003d domain_context.id"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a930d6b_9a8b6c67","line":169,"in_reply_to":"1a930d6b_470e913c","updated":"2015-01-24 01:27:13.000000000","message":"agreed, we need to rename these everywhere.\nI\u0027ll address it in a following review.","commit_id":"d077f9c7f71feac32db9a150cad02706180cf8e1"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"3c1d85efb01e7db58bfec746e1a3318e374a9cbe","unresolved":false,"context_lines":[{"line_number":250,"context_line":""},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"# TODO(esp): there maybe a better way to do this"},{"line_number":253,"context_line":"def is_cloud_admin(request):"},{"line_number":254,"context_line":"    \"\"\"V3 Cloud Admin.\"\"\""},{"line_number":255,"context_line":"    cloud_admin \u003d False"},{"line_number":256,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a930d6b_07b5697d","line":253,"updated":"2015-01-24 00:17:02.000000000","message":"this needs to be a policy test not a hard-coded test for \u0027admin\u0027. I could easily use any name for \u0027admin\u0027 type role in my installation and this fails. As well as there may be additional roles capable of this type of check beyond just admin.","commit_id":"d077f9c7f71feac32db9a150cad02706180cf8e1"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"b2b878972ef94625adbfcc0dbbcf3f860cdf96e3","unresolved":false,"context_lines":[{"line_number":250,"context_line":""},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"# TODO(esp): there maybe a better way to do this"},{"line_number":253,"context_line":"def is_cloud_admin(request):"},{"line_number":254,"context_line":"    \"\"\"V3 Cloud Admin.\"\"\""},{"line_number":255,"context_line":"    cloud_admin \u003d False"},{"line_number":256,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a930d6b_faf1d001","line":253,"in_reply_to":"1a930d6b_07b5697d","updated":"2015-01-24 01:27:13.000000000","message":"makes sense.","commit_id":"d077f9c7f71feac32db9a150cad02706180cf8e1"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"3c1d85efb01e7db58bfec746e1a3318e374a9cbe","unresolved":false,"context_lines":[{"line_number":263,"context_line":"        if DEFAULT_DOMAIN:"},{"line_number":264,"context_line":"            if DEFAULT_DOMAIN \u003d\u003d domain_id and \u0027admin\u0027 in roles:"},{"line_number":265,"context_line":"                cloud_admin \u003d True"},{"line_number":266,"context_line":""},{"line_number":267,"context_line":"    return cloud_admin"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a930d6b_87a87921","line":266,"updated":"2015-01-24 00:17:02.000000000","message":"I think this whole method can likely go away.","commit_id":"d077f9c7f71feac32db9a150cad02706180cf8e1"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"b2b878972ef94625adbfcc0dbbcf3f860cdf96e3","unresolved":false,"context_lines":[{"line_number":263,"context_line":"        if DEFAULT_DOMAIN:"},{"line_number":264,"context_line":"            if DEFAULT_DOMAIN \u003d\u003d domain_id and \u0027admin\u0027 in roles:"},{"line_number":265,"context_line":"                cloud_admin \u003d True"},{"line_number":266,"context_line":""},{"line_number":267,"context_line":"    return cloud_admin"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a930d6b_7ae5e036","line":266,"in_reply_to":"1a930d6b_87a87921","updated":"2015-01-24 01:27:13.000000000","message":"yep","commit_id":"d077f9c7f71feac32db9a150cad02706180cf8e1"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"3c1d85efb01e7db58bfec746e1a3318e374a9cbe","unresolved":false,"context_lines":[{"line_number":302,"context_line":"    # V3 API"},{"line_number":303,"context_line":"    else:"},{"line_number":304,"context_line":"        # Cloud Admin"},{"line_number":305,"context_line":"        if is_cloud_admin(request):"},{"line_number":306,"context_line":"            tenants \u003d manager.list()"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"        # Domain Admin and User"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a930d6b_47b21195","line":305,"updated":"2015-01-24 00:17:02.000000000","message":"straight policy test here.","commit_id":"d077f9c7f71feac32db9a150cad02706180cf8e1"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"b2b878972ef94625adbfcc0dbbcf3f860cdf96e3","unresolved":false,"context_lines":[{"line_number":302,"context_line":"    # V3 API"},{"line_number":303,"context_line":"    else:"},{"line_number":304,"context_line":"        # Cloud Admin"},{"line_number":305,"context_line":"        if is_cloud_admin(request):"},{"line_number":306,"context_line":"            tenants \u003d manager.list()"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"        # Domain Admin and User"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a930d6b_9ae28c2d","line":305,"in_reply_to":"1a930d6b_47b21195","updated":"2015-01-24 01:27:13.000000000","message":"ditto","commit_id":"d077f9c7f71feac32db9a150cad02706180cf8e1"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"b427481b571c6cb0b0bd96e5679d494830e98d34","unresolved":false,"context_lines":[{"line_number":167,"context_line":"        token_id \u003d user.token.id"},{"line_number":168,"context_line":"        if api_version \u003e\u003d 3:"},{"line_number":169,"context_line":"            # TODO(esp): rename domain_context to domain scoped token"},{"line_number":170,"context_line":"            domain_context \u003d request.session.get(\u0027domain_context\u0027, None)"},{"line_number":171,"context_line":"            if domain_context and hasattr(domain_context, \u0027id\u0027):"},{"line_number":172,"context_line":"                token_id \u003d domain_context.id"},{"line_number":173,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa81d914_fb075b1b","line":170,"updated":"2015-01-28 22:28:18.000000000","message":"The None is unnecessary from this get.  (Is the default.)","commit_id":"2299848d672e8f2ba0b027d4bafb4358e3389ffb"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"98f57d6131040fd30a0de0bf762fe666ed0d29ae","unresolved":false,"context_lines":[{"line_number":167,"context_line":"        token_id \u003d user.token.id"},{"line_number":168,"context_line":"        if api_version \u003e\u003d 3:"},{"line_number":169,"context_line":"            # TODO(esp): rename domain_context to domain scoped token"},{"line_number":170,"context_line":"            domain_context \u003d request.session.get(\u0027domain_context\u0027, None)"},{"line_number":171,"context_line":"            if domain_context and hasattr(domain_context, \u0027id\u0027):"},{"line_number":172,"context_line":"                token_id \u003d domain_context.id"},{"line_number":173,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa81d914_ecca3f4e","line":170,"in_reply_to":"fa81d914_fb075b1b","updated":"2015-01-28 23:25:32.000000000","message":"Done","commit_id":"2299848d672e8f2ba0b027d4bafb4358e3389ffb"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"b427481b571c6cb0b0bd96e5679d494830e98d34","unresolved":false,"context_lines":[{"line_number":237,"context_line":"    domain_id \u003d None"},{"line_number":238,"context_line":"    domain_name \u003d None"},{"line_number":239,"context_line":"    if domain_context:"},{"line_number":240,"context_line":"        domain \u003d getattr(domain_context, \"domain\", None)"},{"line_number":241,"context_line":"        if domain:"},{"line_number":242,"context_line":"            domain_id \u003d domain[\u0027id\u0027]"},{"line_number":243,"context_line":"            domain_name \u003d domain[\u0027name\u0027]"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa81d914_e696de93","line":240,"updated":"2015-01-28 22:28:18.000000000","message":"The None is unnecessary from this get. (Is the default.)","commit_id":"2299848d672e8f2ba0b027d4bafb4358e3389ffb"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"98f57d6131040fd30a0de0bf762fe666ed0d29ae","unresolved":false,"context_lines":[{"line_number":237,"context_line":"    domain_id \u003d None"},{"line_number":238,"context_line":"    domain_name \u003d None"},{"line_number":239,"context_line":"    if domain_context:"},{"line_number":240,"context_line":"        domain \u003d getattr(domain_context, \"domain\", None)"},{"line_number":241,"context_line":"        if domain:"},{"line_number":242,"context_line":"            domain_id \u003d domain[\u0027id\u0027]"},{"line_number":243,"context_line":"            domain_name \u003d domain[\u0027name\u0027]"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa81d914_4ceeebb5","line":240,"in_reply_to":"fa81d914_e696de93","updated":"2015-01-28 23:25:32.000000000","message":"Done","commit_id":"2299848d672e8f2ba0b027d4bafb4358e3389ffb"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"b427481b571c6cb0b0bd96e5679d494830e98d34","unresolved":false,"context_lines":[{"line_number":240,"context_line":"        domain \u003d getattr(domain_context, \"domain\", None)"},{"line_number":241,"context_line":"        if domain:"},{"line_number":242,"context_line":"            domain_id \u003d domain[\u0027id\u0027]"},{"line_number":243,"context_line":"            domain_name \u003d domain[\u0027name\u0027]"},{"line_number":244,"context_line":""},{"line_number":245,"context_line":"    # if running in Keystone V3 or later"},{"line_number":246,"context_line":"    if VERSIONS.active \u003e\u003d 3 and not domain_id:"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa81d914_66890e26","line":243,"updated":"2015-01-28 22:28:18.000000000","message":"Are the keys \u0027id\u0027 and \u0027name\u0027 guaranteed to be in the domain?  Or should these calls be converted to domain.get(...)?  \n\nI genuinely don\u0027t know.","commit_id":"2299848d672e8f2ba0b027d4bafb4358e3389ffb"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"98f57d6131040fd30a0de0bf762fe666ed0d29ae","unresolved":false,"context_lines":[{"line_number":240,"context_line":"        domain \u003d getattr(domain_context, \"domain\", None)"},{"line_number":241,"context_line":"        if domain:"},{"line_number":242,"context_line":"            domain_id \u003d domain[\u0027id\u0027]"},{"line_number":243,"context_line":"            domain_name \u003d domain[\u0027name\u0027]"},{"line_number":244,"context_line":""},{"line_number":245,"context_line":"    # if running in Keystone V3 or later"},{"line_number":246,"context_line":"    if VERSIONS.active \u003e\u003d 3 and not domain_id:"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa81d914_0cc6b349","line":243,"in_reply_to":"fa81d914_66890e26","updated":"2015-01-28 23:25:32.000000000","message":"Done","commit_id":"2299848d672e8f2ba0b027d4bafb4358e3389ffb"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"b6b9a4f88fe914e358976cbfc38bfa1b9459f634","unresolved":false,"context_lines":[{"line_number":150,"context_line":"    if api_version \u003e\u003d 3:"},{"line_number":151,"context_line":"        # TODO(esp): rename domain_context to domain scoped token"},{"line_number":152,"context_line":"        domain_context \u003d request.session.get(\u0027domain_context\u0027)"},{"line_number":153,"context_line":"        if domain_context and hasattr(domain_context, \u0027id\u0027):"},{"line_number":154,"context_line":"            token_id \u003d domain_context.id"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    if admin:"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_c22e8dfa","line":153,"updated":"2015-02-05 21:21:35.000000000","message":"Based on the latest patch in https://review.openstack.org/#/c/141153/ , I think these two lines now need to be:\n\nif domain_context and hasattr(domain_context, \u0027auth_token\u0027):\n\n    token_id \u003d domain_context.auth_token\n\nAlso, a cloud admin going to Admin-\u003eSystem-\u003eOverview in the left nav now results in an \"Unable to retrieve project list.\"  error displayed in Horizon, even with the above change made.\n\nI think that worked when using the previous patchset from 141153, so I\u0027m looking into that now.","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"4e338edf0a98bf05dfc3f08e3f9778a650f0471d","unresolved":false,"context_lines":[{"line_number":150,"context_line":"    if api_version \u003e\u003d 3:"},{"line_number":151,"context_line":"        # TODO(esp): rename domain_context to domain scoped token"},{"line_number":152,"context_line":"        domain_context \u003d request.session.get(\u0027domain_context\u0027)"},{"line_number":153,"context_line":"        if domain_context and hasattr(domain_context, \u0027id\u0027):"},{"line_number":154,"context_line":"            token_id \u003d domain_context.id"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    if admin:"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_e6df2038","line":153,"in_reply_to":"da86d52c_c22e8dfa","updated":"2015-02-05 23:40:36.000000000","message":"NM on the concern about \"Unable to retrieve project list.\"  I had forgotten to pull in this change:  https://github.com/openstack/keystone/commit/d02035f57cbc3d869db4c6d56a557b096fdbc4a8","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"b8874848ea6d28026a2381433a677ddf7cd6e1c7","unresolved":false,"context_lines":[{"line_number":150,"context_line":"    if api_version \u003e\u003d 3:"},{"line_number":151,"context_line":"        # TODO(esp): rename domain_context to domain scoped token"},{"line_number":152,"context_line":"        domain_context \u003d request.session.get(\u0027domain_context\u0027)"},{"line_number":153,"context_line":"        if domain_context and hasattr(domain_context, \u0027id\u0027):"},{"line_number":154,"context_line":"            token_id \u003d domain_context.id"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    if admin:"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_bc5c547e","line":153,"in_reply_to":"da86d52c_c22e8dfa","updated":"2015-02-06 05:31:42.000000000","message":"Thanks Brad :)  I\u0027m folding in new changes for DOA patch above now.  The lines you specified above will change indeed.","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"b8874848ea6d28026a2381433a677ddf7cd6e1c7","unresolved":false,"context_lines":[{"line_number":150,"context_line":"    if api_version \u003e\u003d 3:"},{"line_number":151,"context_line":"        # TODO(esp): rename domain_context to domain scoped token"},{"line_number":152,"context_line":"        domain_context \u003d request.session.get(\u0027domain_context\u0027)"},{"line_number":153,"context_line":"        if domain_context and hasattr(domain_context, \u0027id\u0027):"},{"line_number":154,"context_line":"            token_id \u003d domain_context.id"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    if admin:"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_5cca781b","line":153,"in_reply_to":"da86d52c_e6df2038","updated":"2015-02-06 05:31:42.000000000","message":"I think I have the latest keystone v3 policy file but I will double check.","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"d920e8013bff2990c080a3423995c46527e919b8","unresolved":false,"context_lines":[{"line_number":145,"context_line":"    \"\"\""},{"line_number":146,"context_line":"    api_version \u003d VERSIONS.get_active_version()"},{"line_number":147,"context_line":"    user \u003d request.user"},{"line_number":148,"context_line":"    token_id \u003d user.token.id"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    if api_version \u003e\u003d 3 and not use_project_token:"},{"line_number":151,"context_line":"        domain_token \u003d request.session.get(\u0027domain_token\u0027)"}],"source_content_type":"text/x-python","patch_set":24,"id":"ba7be1f8_a038c7d3","line":148,"updated":"2015-02-25 18:56:01.000000000","message":"Based on my read of the code (I haven\u0027t ran it yet), I expect request.user.token to be the domain token anyway.  Have you verified this works the way you expect?","commit_id":"cb57e7a5ccedbf9e701afc1dd0c2af22f2b604f5"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"65437bcffa4f89b2f2400a052303ea99e2644e28","unresolved":false,"context_lines":[{"line_number":527,"context_line":"                                  \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT\u0027,"},{"line_number":528,"context_line":"                                  False)"},{"line_number":529,"context_line":""},{"line_number":530,"context_line":"    single_domain \u003d VERSIONS.active \u003c\u003d 3 and multidomain_support is False"},{"line_number":531,"context_line":""},{"line_number":532,"context_line":"    # Only use project token if Domain Admin or using a Domain Context."},{"line_number":533,"context_line":"    # Cloud Admin in the default Domain will pass domain"}],"source_content_type":"text/x-python","patch_set":31,"id":"9a80dd14_8cd56c45","line":530,"updated":"2015-03-04 18:03:52.000000000","message":"Was this check meant to be \"VERSIONS.active \u003e\u003d 3\"?  Identity API versions less than 3 don\u0027t have the concept of domains.  There\u0027s also a \"VERSIONS.active \u003c 3\" check above.","commit_id":"7257b1931a56284a9c2af159a2a77ee7be1791a7"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"87aa52d6d9164b4034870f499c6fe6d3059fbc67","unresolved":false,"context_lines":[{"line_number":527,"context_line":"                                  \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT\u0027,"},{"line_number":528,"context_line":"                                  False)"},{"line_number":529,"context_line":""},{"line_number":530,"context_line":"    single_domain \u003d VERSIONS.active \u003c\u003d 3 and multidomain_support is False"},{"line_number":531,"context_line":""},{"line_number":532,"context_line":"    # Only use project token if Domain Admin or using a Domain Context."},{"line_number":533,"context_line":"    # Cloud Admin in the default Domain will pass domain"}],"source_content_type":"text/x-python","patch_set":31,"id":"9a80dd14_bdc7b311","line":530,"in_reply_to":"9a80dd14_8cd56c45","updated":"2015-03-04 21:20:14.000000000","message":"yeah, good catch!  I\u0027ll take care of it.\n\nThx :)","commit_id":"7257b1931a56284a9c2af159a2a77ee7be1791a7"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"710e969cca4f2554c98546b47273e77e113a8c5f","unresolved":false,"context_lines":[{"line_number":308,"context_line":"            has_more_data \u003d True"},{"line_number":309,"context_line":"    # V3 API"},{"line_number":310,"context_line":"    else:"},{"line_number":311,"context_line":"        kwargs \u003d {"},{"line_number":312,"context_line":"            \"domain\": domain,"},{"line_number":313,"context_line":"            \"user\": user"},{"line_number":314,"context_line":"        }"}],"source_content_type":"text/x-python","patch_set":34,"id":"9a80dd14_6392b4a0","line":311,"updated":"2015-03-06 01:49:52.000000000","message":"There was a merge conflict here with the latest master code when I submitted my dependent review, so I had to resolve the conflict to submit my patch.","commit_id":"49a0ae3ce680aff0627bbb15b70db207578cdfd5"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"a476fe6fc5cdbf63efa4a67bc6719ff43ef3d211","unresolved":false,"context_lines":[{"line_number":308,"context_line":"            has_more_data \u003d True"},{"line_number":309,"context_line":"    # V3 API"},{"line_number":310,"context_line":"    else:"},{"line_number":311,"context_line":"        kwargs \u003d {"},{"line_number":312,"context_line":"            \"domain\": domain,"},{"line_number":313,"context_line":"            \"user\": user"},{"line_number":314,"context_line":"        }"}],"source_content_type":"text/x-python","patch_set":34,"id":"9a80dd14_cc354df8","line":311,"in_reply_to":"9a80dd14_6392b4a0","updated":"2015-03-06 04:19:47.000000000","message":"thx Brad!","commit_id":"49a0ae3ce680aff0627bbb15b70db207578cdfd5"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"80b12d422530f1d3cfefe2e27c461da535d8dae5","unresolved":false,"context_lines":[{"line_number":145,"context_line":"    \"\"\""},{"line_number":146,"context_line":"    api_version \u003d VERSIONS.get_active_version()"},{"line_number":147,"context_line":"    user \u003d request.user"},{"line_number":148,"context_line":"    token_id \u003d user.token.id"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    if api_version \u003e\u003d 3 and not use_project_token:"},{"line_number":151,"context_line":"        domain_token \u003d request.session.get(\u0027domain_token\u0027)"}],"source_content_type":"text/x-python","patch_set":36,"id":"9a80dd14_bf929049","line":148,"updated":"2015-03-09 22:49:21.000000000","message":"As I read the code, at first login if domains are being used then user.token.id is going to be the domain token.  Yet we seem to be keeping track of this token and the domain token as separate things.\n\nIt seems to me there should be only one scoped token in use at a time: either the project scoped or domain scoped.  Is that the intent?","commit_id":"899303a8c728852becade086c2af494bb7bf8319"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"88a3429093900dc879da6c59c13c8351f18c0782","unresolved":false,"context_lines":[{"line_number":145,"context_line":"    \"\"\""},{"line_number":146,"context_line":"    api_version \u003d VERSIONS.get_active_version()"},{"line_number":147,"context_line":"    user \u003d request.user"},{"line_number":148,"context_line":"    token_id \u003d user.token.id"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    if api_version \u003e\u003d 3 and not use_project_token:"},{"line_number":151,"context_line":"        domain_token \u003d request.session.get(\u0027domain_token\u0027)"}],"source_content_type":"text/x-python","patch_set":36,"id":"9a80dd14_7fdc6a47","line":148,"in_reply_to":"9a80dd14_bf929049","updated":"2015-03-10 17:58:46.000000000","message":"This is a bit confusing but I think David explains it best.  We do indeed keep track of two tokens for now.\n\nA longer term solution where we only have one scoped token to deal with will is in the works.","commit_id":"899303a8c728852becade086c2af494bb7bf8319"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"d31bac377b063131b1e7b776200df1b9de02f4f0","unresolved":false,"context_lines":[{"line_number":230,"context_line":"                              enabled\u003denabled, **kwargs)"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"def get_default_domain(request):"},{"line_number":234,"context_line":"    \"\"\"Gets the default domain object to use when creating Identity object."},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"    Returns the domain context if is set, otherwise return the domain"}],"source_content_type":"text/x-python","patch_set":37,"id":"9a80dd14_39edadf0","line":233,"updated":"2015-03-10 19:01:21.000000000","message":"I think you need to check OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT here","commit_id":"d16e32d652244a0452e64522d8e3047834d1b675"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac8eed71bb51834ec323375ff80b829c535e9bcf","unresolved":false,"context_lines":[{"line_number":230,"context_line":"                              enabled\u003denabled, **kwargs)"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"def get_default_domain(request):"},{"line_number":234,"context_line":"    \"\"\"Gets the default domain object to use when creating Identity object."},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"    Returns the domain context if is set, otherwise return the domain"}],"source_content_type":"text/x-python","patch_set":37,"id":"9a80dd14_8578e7f9","line":233,"in_reply_to":"9a80dd14_39edadf0","updated":"2015-03-10 22:48:22.000000000","message":"I think might be right, I need to check though because when OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT \u003d False\n\nEverything ends up in the \"default\" domain and we check the session for a domain_context (aka domain_id) and domain_context_name.  It\u0027s yet another thing in the session to check for :(","commit_id":"d16e32d652244a0452e64522d8e3047834d1b675"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"d31bac377b063131b1e7b776200df1b9de02f4f0","unresolved":false,"context_lines":[{"line_number":289,"context_line":""},{"line_number":290,"context_line":"def tenant_list_with_domain_check(request):"},{"line_number":291,"context_line":"    \"\"\"This method checks for domain support before listing tenants\"\"\""},{"line_number":292,"context_line":"    if VERSIONS.active \u003e\u003d 3:"},{"line_number":293,"context_line":"        domain_id \u003d get_effective_domain_id(request)"},{"line_number":294,"context_line":"        return tenant_list(request, domain\u003ddomain_id)"},{"line_number":295,"context_line":"    else:"}],"source_content_type":"text/x-python","patch_set":37,"id":"9a80dd14_f5d95b23","line":292,"updated":"2015-03-10 19:01:21.000000000","message":"Maybe check OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT here","commit_id":"d16e32d652244a0452e64522d8e3047834d1b675"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac8eed71bb51834ec323375ff80b829c535e9bcf","unresolved":false,"context_lines":[{"line_number":289,"context_line":""},{"line_number":290,"context_line":"def tenant_list_with_domain_check(request):"},{"line_number":291,"context_line":"    \"\"\"This method checks for domain support before listing tenants\"\"\""},{"line_number":292,"context_line":"    if VERSIONS.active \u003e\u003d 3:"},{"line_number":293,"context_line":"        domain_id \u003d get_effective_domain_id(request)"},{"line_number":294,"context_line":"        return tenant_list(request, domain\u003ddomain_id)"},{"line_number":295,"context_line":"    else:"}],"source_content_type":"text/x-python","patch_set":37,"id":"9a80dd14_651cd3c2","line":292,"in_reply_to":"9a80dd14_f5d95b23","updated":"2015-03-10 22:48:22.000000000","message":"I think might be right, I need to check though because when OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT \u003d False\n\nEverything ends up in the \"default\" domain and we check the session for a domain_context (aka domain_id) and domain_context_name.  It\u0027s yet another thing in the session to check for :(","commit_id":"d16e32d652244a0452e64522d8e3047834d1b675"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"d31bac377b063131b1e7b776200df1b9de02f4f0","unresolved":false,"context_lines":[{"line_number":543,"context_line":"                                  \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT\u0027,"},{"line_number":544,"context_line":"                                  False)"},{"line_number":545,"context_line":""},{"line_number":546,"context_line":"    single_domain \u003d VERSIONS.active \u003e\u003d 3 and multidomain_support is False"},{"line_number":547,"context_line":""},{"line_number":548,"context_line":"    # Only use project token if Domain Admin or using a Domain Context."},{"line_number":549,"context_line":"    # Cloud Admin in the default Domain will pass domain"}],"source_content_type":"text/x-python","patch_set":37,"id":"9a80dd14_597341b4","line":546,"updated":"2015-03-10 19:01:21.000000000","message":"no need to check VERSION \u003e\u003d 3 at this point.  Line 538 guarantees it.","commit_id":"d16e32d652244a0452e64522d8e3047834d1b675"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac8eed71bb51834ec323375ff80b829c535e9bcf","unresolved":false,"context_lines":[{"line_number":543,"context_line":"                                  \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT\u0027,"},{"line_number":544,"context_line":"                                  False)"},{"line_number":545,"context_line":""},{"line_number":546,"context_line":"    single_domain \u003d VERSIONS.active \u003e\u003d 3 and multidomain_support is False"},{"line_number":547,"context_line":""},{"line_number":548,"context_line":"    # Only use project token if Domain Admin or using a Domain Context."},{"line_number":549,"context_line":"    # Cloud Admin in the default Domain will pass domain"}],"source_content_type":"text/x-python","patch_set":37,"id":"9a80dd14_05f7978d","line":546,"in_reply_to":"9a80dd14_597341b4","updated":"2015-03-10 22:48:22.000000000","message":"nice catch!  will do","commit_id":"d16e32d652244a0452e64522d8e3047834d1b675"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"056058def33b93a50649462e01e4649edc04a18e","unresolved":false,"context_lines":[{"line_number":214,"context_line":"    try:"},{"line_number":215,"context_line":"        response \u003d manager.update(domain_id, name\u003dname,"},{"line_number":216,"context_line":"                                  description\u003ddescription, enabled\u003denabled)"},{"line_number":217,"context_line":"    except Exception:"},{"line_number":218,"context_line":"        LOG.warning(\"Unable to update Domain: %s\" % domain_id)"},{"line_number":219,"context_line":"    return response"},{"line_number":220,"context_line":""}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_ab3ab695","line":217,"updated":"2015-03-12 18:19:35.000000000","message":"I don\u0027t think you want to eat this exception - calling code needs to know it failed to show some (hopefully helpful) message to the user.","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"2b150aba247cd5f90a2e6d9227904ef788d4e119","unresolved":false,"context_lines":[{"line_number":214,"context_line":"    try:"},{"line_number":215,"context_line":"        response \u003d manager.update(domain_id, name\u003dname,"},{"line_number":216,"context_line":"                                  description\u003ddescription, enabled\u003denabled)"},{"line_number":217,"context_line":"    except Exception:"},{"line_number":218,"context_line":"        LOG.warning(\"Unable to update Domain: %s\" % domain_id)"},{"line_number":219,"context_line":"    return response"},{"line_number":220,"context_line":""}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_a0148be9","line":217,"in_reply_to":"9a80dd14_ab3ab695","updated":"2015-03-12 21:46:13.000000000","message":"I\u0027ll rethrow it and see what happens :)","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"056058def33b93a50649462e01e4649edc04a18e","unresolved":false,"context_lines":[{"line_number":561,"context_line":"                                  False)"},{"line_number":562,"context_line":""},{"line_number":563,"context_line":"    if multidomain_support is False:"},{"line_number":564,"context_line":"        use_ptoken \u003d False"},{"line_number":565,"context_line":""},{"line_number":566,"context_line":"    manager \u003d keystoneclient("},{"line_number":567,"context_line":"        request, admin\u003dTrue, use_project_token\u003duse_ptoken).role_assignments"}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_2bf406ce","line":564,"updated":"2015-03-12 18:19:35.000000000","message":"I\u0027m trying to think through this, but it seems backward to me: if we aren\u0027t using multidomain support, use_project_token will be False?","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"2b150aba247cd5f90a2e6d9227904ef788d4e119","unresolved":false,"context_lines":[{"line_number":561,"context_line":"                                  False)"},{"line_number":562,"context_line":""},{"line_number":563,"context_line":"    if multidomain_support is False:"},{"line_number":564,"context_line":"        use_ptoken \u003d False"},{"line_number":565,"context_line":""},{"line_number":566,"context_line":"    manager \u003d keystoneclient("},{"line_number":567,"context_line":"        request, admin\u003dTrue, use_project_token\u003duse_ptoken).role_assignments"}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_00cf172a","line":564,"in_reply_to":"9a80dd14_2bf406ce","updated":"2015-03-12 21:46:13.000000000","message":"I need to check that case!  Thx for catching it.","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"7900e7c320908a1890369231126940ffe1dd24fe","unresolved":false,"context_lines":[{"line_number":297,"context_line":"        domain_id \u003d get_effective_domain_id(request)"},{"line_number":298,"context_line":"        return tenant_list(request, domain\u003ddomain_id)"},{"line_number":299,"context_line":"    else:"},{"line_number":300,"context_line":"        return tenant_list(request)"},{"line_number":301,"context_line":""},{"line_number":302,"context_line":""},{"line_number":303,"context_line":"# NOTE(esp): domain is really domain_id"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_88d81f55","line":300,"updated":"2015-04-13 12:23:39.000000000","message":"Does this method not need to pass through the rest of the kwargs to tenant_list? If you just take in **kwargs and then pass that through it means you do not lose any of tenant_list\u0027s functionality for pagination and filters etc.","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac33eb452015cff6dbfd02f87ca20af3fbf17e23","unresolved":false,"context_lines":[{"line_number":297,"context_line":"        domain_id \u003d get_effective_domain_id(request)"},{"line_number":298,"context_line":"        return tenant_list(request, domain\u003ddomain_id)"},{"line_number":299,"context_line":"    else:"},{"line_number":300,"context_line":"        return tenant_list(request)"},{"line_number":301,"context_line":""},{"line_number":302,"context_line":""},{"line_number":303,"context_line":"# NOTE(esp): domain is really domain_id"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_16be54d4","line":300,"in_reply_to":"7aaa499b_88d81f55","updated":"2015-04-14 18:01:31.000000000","message":"Done","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"7900e7c320908a1890369231126940ffe1dd24fe","unresolved":false,"context_lines":[{"line_number":318,"context_line":"        tenants \u003d request.user.authorized_tenants"},{"line_number":319,"context_line":""},{"line_number":320,"context_line":"    elif VERSIONS.active \u003c 3:"},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"        tenants \u003d manager.list(limit, marker)"},{"line_number":323,"context_line":"        if paginate and len(tenants) \u003e page_size:"},{"line_number":324,"context_line":"            tenants.pop(-1)"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_c803c70e","line":321,"updated":"2015-04-13 12:23:39.000000000","message":"NIT: unnecessary white space","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac33eb452015cff6dbfd02f87ca20af3fbf17e23","unresolved":false,"context_lines":[{"line_number":318,"context_line":"        tenants \u003d request.user.authorized_tenants"},{"line_number":319,"context_line":""},{"line_number":320,"context_line":"    elif VERSIONS.active \u003c 3:"},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"        tenants \u003d manager.list(limit, marker)"},{"line_number":323,"context_line":"        if paginate and len(tenants) \u003e page_size:"},{"line_number":324,"context_line":"            tenants.pop(-1)"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_d6290c39","line":321,"in_reply_to":"7aaa499b_c803c70e","updated":"2015-04-14 18:01:31.000000000","message":"Done","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"7900e7c320908a1890369231126940ffe1dd24fe","unresolved":false,"context_lines":[{"line_number":324,"context_line":"            tenants.pop(-1)"},{"line_number":325,"context_line":"            has_more_data \u003d True"},{"line_number":326,"context_line":"    # V3 API"},{"line_number":327,"context_line":"    else:"},{"line_number":328,"context_line":"        kwargs \u003d {"},{"line_number":329,"context_line":"            \"domain\": domain,"},{"line_number":330,"context_line":"            \"user\": user"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_4b87b10f","line":327,"updated":"2015-04-13 12:23:39.000000000","message":"As far as I can tell you\u0027ve replaced many calls to tenant_list with your tenant_list_with_domain_check function, is it not possible to take the functionality you have defined in that function and move it into this else block like this?:\n\nelse:\n    if domain is None: \n        domain \u003d get_effective_domain_id(request) \n    ...\n \nSurly then you don\u0027t have to change so many uses of tenant_list?","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac33eb452015cff6dbfd02f87ca20af3fbf17e23","unresolved":false,"context_lines":[{"line_number":324,"context_line":"            tenants.pop(-1)"},{"line_number":325,"context_line":"            has_more_data \u003d True"},{"line_number":326,"context_line":"    # V3 API"},{"line_number":327,"context_line":"    else:"},{"line_number":328,"context_line":"        kwargs \u003d {"},{"line_number":329,"context_line":"            \"domain\": domain,"},{"line_number":330,"context_line":"            \"user\": user"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_990f372e","line":327,"in_reply_to":"7aaa499b_4b87b10f","updated":"2015-04-14 18:01:31.000000000","message":"nice catch, I think I need to check get_effective_domain_id this.\nI\u0027ll see if I can clean this up!","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"7900e7c320908a1890369231126940ffe1dd24fe","unresolved":false,"context_lines":[{"line_number":332,"context_line":"        if filters is not None:"},{"line_number":333,"context_line":"            kwargs.update(filters)"},{"line_number":334,"context_line":"        tenants \u003d manager.list(**kwargs)"},{"line_number":335,"context_line":""},{"line_number":336,"context_line":"    return tenants, has_more_data"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":""}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_ab2635b8","line":335,"updated":"2015-04-13 12:23:39.000000000","message":"NIT: unnecessary white space","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac33eb452015cff6dbfd02f87ca20af3fbf17e23","unresolved":false,"context_lines":[{"line_number":332,"context_line":"        if filters is not None:"},{"line_number":333,"context_line":"            kwargs.update(filters)"},{"line_number":334,"context_line":"        tenants \u003d manager.list(**kwargs)"},{"line_number":335,"context_line":""},{"line_number":336,"context_line":"    return tenants, has_more_data"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":""}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_56161cf2","line":335,"in_reply_to":"7aaa499b_ab2635b8","updated":"2015-04-14 18:01:31.000000000","message":"Done","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"7900e7c320908a1890369231126940ffe1dd24fe","unresolved":false,"context_lines":[{"line_number":344,"context_line":"    else:"},{"line_number":345,"context_line":"        return manager.update(project, name\u003dname, domain\u003ddomain,"},{"line_number":346,"context_line":"                              description\u003ddescription,"},{"line_number":347,"context_line":"                              enabled\u003denabled, **kwargs)"},{"line_number":348,"context_line":""},{"line_number":349,"context_line":""},{"line_number":350,"context_line":"def user_list(request, project\u003dNone, domain\u003dNone, group\u003dNone, filters\u003dNone):"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_887edfe2","line":347,"updated":"2015-04-13 12:23:39.000000000","message":"Is there a reason this has been reordered? Surly kwargs ordering doesn\u0027t make a difference, and this just adds another line?","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac33eb452015cff6dbfd02f87ca20af3fbf17e23","unresolved":false,"context_lines":[{"line_number":344,"context_line":"    else:"},{"line_number":345,"context_line":"        return manager.update(project, name\u003dname, domain\u003ddomain,"},{"line_number":346,"context_line":"                              description\u003ddescription,"},{"line_number":347,"context_line":"                              enabled\u003denabled, **kwargs)"},{"line_number":348,"context_line":""},{"line_number":349,"context_line":""},{"line_number":350,"context_line":"def user_list(request, project\u003dNone, domain\u003dNone, group\u003dNone, filters\u003dNone):"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_96e38405","line":347,"in_reply_to":"7aaa499b_887edfe2","updated":"2015-04-14 18:01:31.000000000","message":"the keystone project manager has a decorator that enforces ordering.  I think it\u0027s just a warning but I decided to correct it anyway.","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"0c9c2f9c57ccb72b0200ae72c09482a8f8a7b5ce","unresolved":false,"context_lines":[{"line_number":290,"context_line":"        ((\"identity\", \"admin_and_matching_domain_id\"),), request)"},{"line_number":291,"context_line":""},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"# def is_domain_and_project_admin(request):"},{"line_number":294,"context_line":"#     # TODO(esp): when policy.py merges in doa we can use that copy of this"},{"line_number":295,"context_line":"#     from openstack_dashboard.policy_backend import _is_project_admin"},{"line_number":296,"context_line":"#     return _is_project_admin(request) and is_domain_admin(request)"}],"source_content_type":"text/x-python","patch_set":84,"id":"fa1b9901_58092f83","line":293,"updated":"2015-08-25 18:31:54.000000000","message":"I need to discard this in the next push.","commit_id":"57520375a19d00d1f064c949e2e04c42366b44e2"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"3390d6cf3f748f1d333d3accb35f25cd16f30468","unresolved":false,"context_lines":[{"line_number":192,"context_line":""},{"line_number":193,"context_line":"def domain_create(request, name, description\u003dNone, enabled\u003dNone):"},{"line_number":194,"context_line":"    manager \u003d keystoneclient(request, admin\u003dTrue).domains"},{"line_number":195,"context_line":"    return manager.create(name\u003dname,"},{"line_number":196,"context_line":"                          description\u003ddescription,"},{"line_number":197,"context_line":"                          enabled\u003denabled)"},{"line_number":198,"context_line":""}],"source_content_type":"text/x-python","patch_set":85,"id":"fa80f949_9f7d9f1e","line":195,"updated":"2015-11-04 18:29:38.000000000","message":"I had to add this in the new PS, as the latest keystone client was complaining about too many positional arguments.","commit_id":"33f87b3923c019afa7fad718fcf006a08354d893"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"4d333998109bb89c27b8de8728d79f463e408176","unresolved":false,"context_lines":[{"line_number":251,"context_line":"        raise exceptions.Conflict()"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"def get_default_domain(request, get_name\u003dTrue):"},{"line_number":255,"context_line":"    \"\"\"Gets the default domain object to use when creating Identity object."},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    Returns the domain context if is set, otherwise return the domain"}],"source_content_type":"text/x-python","patch_set":94,"id":"5a710552_59cf4d7f","line":254,"updated":"2015-12-15 22:28:34.000000000","message":"Updated this function to specify whether the domain name is needed.  If it\u0027s not needed, we can often prevent an unnecessary call to Keystone.","commit_id":"6f19e82e39dbeed303e49a2bf9bf5bd4e4f3d3d8"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"6a087225ac7649a8d2db8b2438af7888d0c517c8","unresolved":false,"context_lines":[{"line_number":251,"context_line":"        raise exceptions.Conflict()"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":""},{"line_number":254,"context_line":"def get_default_domain(request, get_name\u003dTrue):"},{"line_number":255,"context_line":"    \"\"\"Gets the default domain object to use when creating Identity object."},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    Returns the domain context if is set, otherwise return the domain"}],"source_content_type":"text/x-python","patch_set":94,"id":"5a710552_f5ff15ff","line":254,"in_reply_to":"5a710552_59cf4d7f","updated":"2015-12-16 02:42:16.000000000","message":"Good work :)","commit_id":"6f19e82e39dbeed303e49a2bf9bf5bd4e4f3d3d8"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"52bc5a577714233a87d24057c8ebdf68f58f1f61","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":42,"context_line":"DEFAULT_ROLE \u003d None"},{"line_number":43,"context_line":"DEFAULT_DOMAIN \u003d getattr(settings, \u0027OPENSTACK_KEYSTONE_DEFAULT_DOMAIN\u0027, None)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"# Set up our data structure for managing Identity API versions, and"}],"source_content_type":"text/x-python","patch_set":101,"id":"9a68dd71_83474476","line":43,"range":{"start_line":43,"start_character":72,"end_line":43,"end_character":76},"updated":"2016-01-22 17:57:00.000000000","message":"default to \u0027Default\u0027 instead of None","commit_id":"e22a40de5f9999979047e9cde0332334d5f1b938"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"56b66528f0fb4980bafb26125ad7714e3f4388c4","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":42,"context_line":"DEFAULT_ROLE \u003d None"},{"line_number":43,"context_line":"DEFAULT_DOMAIN \u003d getattr(settings, \u0027OPENSTACK_KEYSTONE_DEFAULT_DOMAIN\u0027, None)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"# Set up our data structure for managing Identity API versions, and"}],"source_content_type":"text/x-python","patch_set":101,"id":"9a68dd71_597b18be","line":43,"range":{"start_line":43,"start_character":72,"end_line":43,"end_character":76},"in_reply_to":"9a68dd71_3324785c","updated":"2016-01-26 00:47:06.000000000","message":"Done","commit_id":"e22a40de5f9999979047e9cde0332334d5f1b938"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"3078390aa7216016d3bf5f5c38d32b887c3b7da0","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":42,"context_line":"DEFAULT_ROLE \u003d None"},{"line_number":43,"context_line":"DEFAULT_DOMAIN \u003d getattr(settings, \u0027OPENSTACK_KEYSTONE_DEFAULT_DOMAIN\u0027, None)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"# Set up our data structure for managing Identity API versions, and"}],"source_content_type":"text/x-python","patch_set":101,"id":"9a68dd71_3324785c","line":43,"range":{"start_line":43,"start_character":72,"end_line":43,"end_character":76},"in_reply_to":"9a68dd71_83474476","updated":"2016-01-25 02:24:19.000000000","message":"Thanks Lin, well come back to this soon.  We might have changed it to \u0027default\u0027 lowercase at some point as well.","commit_id":"e22a40de5f9999979047e9cde0332334d5f1b938"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":354,"context_line":"            return manager.update(project, name, description, enabled,"},{"line_number":355,"context_line":"                                  **kwargs)"},{"line_number":356,"context_line":"        else:"},{"line_number":357,"context_line":"            return manager.update(project, name\u003dname, domain\u003ddomain,"},{"line_number":358,"context_line":"                                  description\u003ddescription,"},{"line_number":359,"context_line":"                                  enabled\u003denabled, **kwargs)"},{"line_number":360,"context_line":"    except keystone_exceptions.Conflict:"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_5511dc5c","line":357,"updated":"2016-02-25 01:01:44.000000000","message":"why randomly change kwarg order? unnecessary.","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":354,"context_line":"            return manager.update(project, name, description, enabled,"},{"line_number":355,"context_line":"                                  **kwargs)"},{"line_number":356,"context_line":"        else:"},{"line_number":357,"context_line":"            return manager.update(project, name\u003dname, domain\u003ddomain,"},{"line_number":358,"context_line":"                                  description\u003ddescription,"},{"line_number":359,"context_line":"                                  enabled\u003denabled, **kwargs)"},{"line_number":360,"context_line":"    except keystone_exceptions.Conflict:"}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_ab773401","line":357,"in_reply_to":"bae84128_5511dc5c","updated":"2016-02-26 02:21:57.000000000","message":"https://github.com/openstack/python-keystoneclient/blob/master/keystoneclient/v3/projects.py#L168\n\nThere was a silly warning that kept showing up.  I will remove it though.","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":569,"context_line":"    \"\"\""},{"line_number":570,"context_line":"    groups_roles \u003d collections.defaultdict(list)"},{"line_number":571,"context_line":""},{"line_number":572,"context_line":"    if VERSIONS.active \u003c 3:"},{"line_number":573,"context_line":"        project_role_assignments \u003d role_assignments_list("},{"line_number":574,"context_line":"            request, project\u003dproject)"},{"line_number":575,"context_line":"    else:"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_385b6f30","line":572,"updated":"2016-02-25 01:01:44.000000000","message":"the if and else are identical. There is no need for the logic here. Fix please\n\nOr are you intending to pass the domain as well?","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":569,"context_line":"    \"\"\""},{"line_number":570,"context_line":"    groups_roles \u003d collections.defaultdict(list)"},{"line_number":571,"context_line":""},{"line_number":572,"context_line":"    if VERSIONS.active \u003c 3:"},{"line_number":573,"context_line":"        project_role_assignments \u003d role_assignments_list("},{"line_number":574,"context_line":"            request, project\u003dproject)"},{"line_number":575,"context_line":"    else:"}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_ab4e14bf","line":572,"in_reply_to":"bae84128_385b6f30","updated":"2016-02-26 02:21:57.000000000","message":"Good catch, removing the madness.","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":602,"context_line":""},{"line_number":603,"context_line":"    return manager.list(project\u003dproject, user\u003duser, role\u003drole, group\u003dgroup,"},{"line_number":604,"context_line":"                        domain\u003ddomain, effective\u003deffective,"},{"line_number":605,"context_line":"                        include_subtree\u003dinclude_subtree)"},{"line_number":606,"context_line":""},{"line_number":607,"context_line":""},{"line_number":608,"context_line":"def role_create(request, name):"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_fbcaa119","line":605,"updated":"2016-02-25 01:01:44.000000000","message":"python-keystoneclient minimal version supported \u003d 1.6 in horizon. Minimum supported version for include_subtree is 2.1. In lower versions, what\u0027s the behavior?","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":602,"context_line":""},{"line_number":603,"context_line":"    return manager.list(project\u003dproject, user\u003duser, role\u003drole, group\u003dgroup,"},{"line_number":604,"context_line":"                        domain\u003ddomain, effective\u003deffective,"},{"line_number":605,"context_line":"                        include_subtree\u003dinclude_subtree)"},{"line_number":606,"context_line":""},{"line_number":607,"context_line":""},{"line_number":608,"context_line":"def role_create(request, name):"}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_60cb7e73","line":605,"in_reply_to":"bae84128_fbcaa119","updated":"2016-02-26 02:21:57.000000000","message":"In python-keystoneclient 1.6.0 Cloud Admin can not log into Horizon with keystone v3 enabled.  We can document this or perhaps explore back porting.","commit_id":"8866e3df7278289278d73aff49417644878909a0"}],"openstack_dashboard/dashboards/admin/dashboard.py":[{"author":{"_account_id":11098,"name":"Brian Tully","email":"brian.tully@hpe.com","username":"btully"},"change_message_id":"6c832b5f25887c9a60f9164a2b5fdf8c2621f948","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    default_panel \u003d \u0027overview\u0027"},{"line_number":33,"context_line":"    permissions \u003d (\u0027openstack.roles.admin\u0027,)"},{"line_number":34,"context_line":"    policy_rules \u003d ((\"identity\", \"cloud_admin\"),)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"horizon.register(Admin)"}],"source_content_type":"text/x-python","patch_set":76,"id":"ba3cc151_69b3640b","line":35,"updated":"2015-07-06 19:09:32.000000000","message":"Since we are removing the can_access method with the latest patch, will this be handled somewhere else in the codebase in a later patch? Otherwise won\u0027t domain and project admins start seeing the Admin dashboard?","commit_id":"a341e549c14017abf5bcf9a6176701a1525cc522"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"9727406807755ab033cdcca6f5bdbd40bd422972","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    default_panel \u003d \u0027overview\u0027"},{"line_number":33,"context_line":"    permissions \u003d (\u0027openstack.roles.admin\u0027,)"},{"line_number":34,"context_line":"    policy_rules \u003d ((\"identity\", \"cloud_admin\"),)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"horizon.register(Admin)"}],"source_content_type":"text/x-python","patch_set":76,"id":"9a41bdd9_5001d536","line":35,"in_reply_to":"ba3cc151_69b3640b","updated":"2015-07-15 15:54:18.000000000","message":"The policy rule above restricts the admin dashboard to cloud admin only.  This is more correct than our can_access method before.","commit_id":"a341e549c14017abf5bcf9a6176701a1525cc522"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":21,"context_line":"    name \u003d _(\"Admin\")"},{"line_number":22,"context_line":"    slug \u003d \"admin\""},{"line_number":23,"context_line":"    permissions \u003d (\u0027openstack.roles.admin\u0027,)"},{"line_number":24,"context_line":"    policy_rules \u003d ((\"identity\", \"cloud_admin\"),)"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"horizon.register(Admin)"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_5b43cd6c","line":24,"updated":"2016-02-25 01:01:44.000000000","message":"not a gripe just a note, with v2 policy file, this will not find the cloud_admin rule and use the default rule which is admin_required.","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":21,"context_line":"    name \u003d _(\"Admin\")"},{"line_number":22,"context_line":"    slug \u003d \"admin\""},{"line_number":23,"context_line":"    permissions \u003d (\u0027openstack.roles.admin\u0027,)"},{"line_number":24,"context_line":"    policy_rules \u003d ((\"identity\", \"cloud_admin\"),)"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"horizon.register(Admin)"}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_e0930e4e","line":24,"in_reply_to":"bae84128_5b43cd6c","updated":"2016-02-26 02:21:57.000000000","message":"good call.","commit_id":"8866e3df7278289278d73aff49417644878909a0"}],"openstack_dashboard/dashboards/admin/instances/views.py":[{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"80b12d422530f1d3cfefe2e27c461da535d8dae5","unresolved":false,"context_lines":[{"line_number":79,"context_line":"            if api.keystone.VERSIONS.active \u003e\u003d 3:"},{"line_number":80,"context_line":"                domain_id \u003d api.keystone.get_effective_domain_id(self.request)"},{"line_number":81,"context_line":"                tenants, has_more \u003d api.keystone.tenant_list(self.request,"},{"line_number":82,"context_line":"                                                             domain\u003ddomain_id)"},{"line_number":83,"context_line":"            else:"},{"line_number":84,"context_line":"                tenants, has_more \u003d api.keystone.tenant_list(self.request)"},{"line_number":85,"context_line":""}],"source_content_type":"text/x-python","patch_set":36,"id":"9a80dd14_df7f44de","line":82,"updated":"2015-03-09 22:49:21.000000000","message":"I\u0027m confused about the expected behavior here (I\u0027m reading code, not trying it, so forgive me if I\u0027m off!) - it seems like an admin will be able to list all of the instances in a region, but only be able to resolve the project names for instance in their domains.  Is that the intent?\n\nIn any case, I still think this can be hidden inside the api.keystone implementation","commit_id":"899303a8c728852becade086c2af494bb7bf8319"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"88a3429093900dc879da6c59c13c8351f18c0782","unresolved":false,"context_lines":[{"line_number":79,"context_line":"            if api.keystone.VERSIONS.active \u003e\u003d 3:"},{"line_number":80,"context_line":"                domain_id \u003d api.keystone.get_effective_domain_id(self.request)"},{"line_number":81,"context_line":"                tenants, has_more \u003d api.keystone.tenant_list(self.request,"},{"line_number":82,"context_line":"                                                             domain\u003ddomain_id)"},{"line_number":83,"context_line":"            else:"},{"line_number":84,"context_line":"                tenants, has_more \u003d api.keystone.tenant_list(self.request)"},{"line_number":85,"context_line":""}],"source_content_type":"text/x-python","patch_set":36,"id":"9a80dd14_7fe62aea","line":82,"in_reply_to":"9a80dd14_df7f44de","updated":"2015-03-10 17:58:46.000000000","message":"I\u0027ve abstracted this out to another method as you suggested.\nI played around with trying to make it part of the tenant_list method but we call that some many different ways it just got messy.\n\nHere is what the behavior we were going for with the patch.\n\nCloud Admin (super user) - can see all projects across all domains.\n\nDomain Admin - can only see projects in the domain they currently logged into.\n\nFor the tenant_list call, if you pass a domain_id it filters the results.","commit_id":"899303a8c728852becade086c2af494bb7bf8319"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"d31bac377b063131b1e7b776200df1b9de02f4f0","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        # Gather our tenants to correlate against IDs"},{"line_number":78,"context_line":"        try:"},{"line_number":79,"context_line":"            tenants, has_more \u003d api.keystone.tenant_list_with_domain_check("},{"line_number":80,"context_line":"                self.request)"},{"line_number":81,"context_line":"        except Exception:"},{"line_number":82,"context_line":"            tenants \u003d []"},{"line_number":83,"context_line":"            msg \u003d _(\u0027Unable to retrieve instance project information.\u0027)"}],"source_content_type":"text/x-python","patch_set":37,"id":"9a80dd14_55bea7d5","line":80,"updated":"2015-03-10 19:01:21.000000000","message":"Thanks for the refactor on this.  The name might be a bit long but certainly does a good job of self documenting!\n\nIf I read + understand correctly this update is going to make sure that on the admin/instances panel no project will be listed on an instance that is outside the current user\u0027s domain.  However, all of the instances across any domains will still be listed, right?  There is no concept of restricting the admin nova listing to only projects in the domain.\n\nIs that a useful update?  Am I missing something?","commit_id":"d16e32d652244a0452e64522d8e3047834d1b675"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac8eed71bb51834ec323375ff80b829c535e9bcf","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        # Gather our tenants to correlate against IDs"},{"line_number":78,"context_line":"        try:"},{"line_number":79,"context_line":"            tenants, has_more \u003d api.keystone.tenant_list_with_domain_check("},{"line_number":80,"context_line":"                self.request)"},{"line_number":81,"context_line":"        except Exception:"},{"line_number":82,"context_line":"            tenants \u003d []"},{"line_number":83,"context_line":"            msg \u003d _(\u0027Unable to retrieve instance project information.\u0027)"}],"source_content_type":"text/x-python","patch_set":37,"id":"9a80dd14_0576b7d8","line":80,"in_reply_to":"9a80dd14_55bea7d5","updated":"2015-03-10 22:48:22.000000000","message":"I think you got it right.  I actually have a bug from QA and our Usability person that says a Domain Admin can list instances that don\u0027t belong to it\u0027s domain.\n\nI believe I can fix it by checking if the current in domain (from the session) \u003d\u003d \"default\" because that\u0027s kinda how we define a Cloud Admin.  If the above is False then they are either a Domain Admin or Member.","commit_id":"d16e32d652244a0452e64522d8e3047834d1b675"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"f40916c106eccd9b07d27bdfbc869c95c9769be4","unresolved":false,"context_lines":[{"line_number":94,"context_line":"                return []"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"        try:"},{"line_number":97,"context_line":"            all_tenants \u003d True"},{"line_number":98,"context_line":"            if api.keystone.VERSIONS.active \u003e\u003d 3:"},{"line_number":99,"context_line":"                all_tenants \u003d api.keystone.is_v3_cloud_admin(self.request)"},{"line_number":100,"context_line":""}],"source_content_type":"text/x-python","patch_set":38,"id":"9a80dd14_03820b00","line":97,"updated":"2015-03-11 16:00:00.000000000","message":"I think this relies on passing a project scoped token to nova to limit the instances seen.  I don\u0027t think nova will accept a domain scoped token as authorization (maybe it does?), so I\u0027m concerned it will break in the case where only a domain scoped token is issued.  Maybe this works because the cloud admin won\u0027t see this panel unless they have the right role on the project?\n\nI\u0027m concerned about this from a security perspective.  If it\u0027s insecure to let the cloud admin see projects from another domain we haven\u0027t solved this in a broad sense: a knowledgeable user can use either the CLI or direct REST API calls to defeat this check and see everything.  If your scenario involves making endpoints publicly available, I can\u0027t imagine this is good enough.\n\nIf this really does work with project scoping, and it really isn\u0027t a concern from a security perspective, similar updates will be needed for other objects (volumes, networks, etc)","commit_id":"aa2f898b15a86330420e9b664eb44750cf83bea0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"276b9d799789550824dafa4b90e04e1e6863d115","unresolved":false,"context_lines":[{"line_number":94,"context_line":"                return []"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"        try:"},{"line_number":97,"context_line":"            all_tenants \u003d True"},{"line_number":98,"context_line":"            if api.keystone.VERSIONS.active \u003e\u003d 3:"},{"line_number":99,"context_line":"                all_tenants \u003d api.keystone.is_v3_cloud_admin(self.request)"},{"line_number":100,"context_line":""}],"source_content_type":"text/x-python","patch_set":38,"id":"9a80dd14_119ec754","line":97,"in_reply_to":"9a80dd14_03820b00","updated":"2015-03-11 19:56:55.000000000","message":"thanks Doug!  \n\nnova, swift, etc *should* be able to handle a domain scoped token. \n\nI can see an argument or not allowing cloud admin to view instances, networks, volumes across projects.  I need to ask around and see what the expected behavior is.\n\nI was leaning on doing the same thing for volumes, networks as you suggested.\n\nFYI,  I need to change the way I check for cloud admin but that\u0027s a separate issue.","commit_id":"aa2f898b15a86330420e9b664eb44750cf83bea0"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"056058def33b93a50649462e01e4649edc04a18e","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"        try:"},{"line_number":97,"context_line":"            all_tenants \u003d True"},{"line_number":98,"context_line":"            if api.keystone.VERSIONS.active \u003e\u003d 3:"},{"line_number":99,"context_line":"                all_tenants \u003d api.keystone.is_v3_cloud_admin(self.request)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"            instances, self._more \u003d api.nova.server_list("}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_cbdd2a44","line":98,"updated":"2015-03-12 18:19:35.000000000","message":"How about putting the version check inside is_v3_cloud_admin?","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"2b150aba247cd5f90a2e6d9227904ef788d4e119","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"        try:"},{"line_number":97,"context_line":"            all_tenants \u003d True"},{"line_number":98,"context_line":"            if api.keystone.VERSIONS.active \u003e\u003d 3:"},{"line_number":99,"context_line":"                all_tenants \u003d api.keystone.is_v3_cloud_admin(self.request)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"            instances, self._more \u003d api.nova.server_list("}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_c6d6fc4e","line":98,"in_reply_to":"9a80dd14_cbdd2a44","updated":"2015-03-12 21:46:13.000000000","message":"Yeah I think we can do that.  Can\u0027t recall why I didn\u0027t in the first place.","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"056058def33b93a50649462e01e4649edc04a18e","unresolved":false,"context_lines":[{"line_number":101,"context_line":"            instances, self._more \u003d api.nova.server_list("},{"line_number":102,"context_line":"                self.request,"},{"line_number":103,"context_line":"                search_opts\u003dsearch_opts,"},{"line_number":104,"context_line":"                all_tenants\u003dall_tenants)"},{"line_number":105,"context_line":"        except Exception:"},{"line_number":106,"context_line":"            self._more \u003d False"},{"line_number":107,"context_line":"            exceptions.handle(self.request,"}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_2bc5e63c","line":104,"updated":"2015-03-12 18:19:35.000000000","message":"I\u0027m still concerned about this for reasons I\u0027ve noted before: I don\u0027t think nova will accept a domain scoped token + I\u0027m concerned about the security implication of this (we\u0027re providing a new scope of access that really isn\u0027t supported by the underlying APIs)","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"7c87ba1426d7c20a873e7cb1815fe6c7d2cb0a01","unresolved":false,"context_lines":[{"line_number":101,"context_line":"            instances, self._more \u003d api.nova.server_list("},{"line_number":102,"context_line":"                self.request,"},{"line_number":103,"context_line":"                search_opts\u003dsearch_opts,"},{"line_number":104,"context_line":"                all_tenants\u003dall_tenants)"},{"line_number":105,"context_line":"        except Exception:"},{"line_number":106,"context_line":"            self._more \u003d False"},{"line_number":107,"context_line":"            exceptions.handle(self.request,"}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_6049b330","line":104,"in_reply_to":"9a80dd14_2bc5e63c","updated":"2015-03-12 21:27:54.000000000","message":"Good concern.  However, this change doesn\u0027t send domain scoped tokens to nova.  You\u0027re right that nova won\u0027t accept a domain scoped token - you\u0027d probably get an unauthorized error since nova doesn\u0027t understand domains.  This commit enables sending a domain scoped token to keystone - the changes to api/keystone.py enable this.  To send a domain scoped token to nova, we\u0027d have to modify api.nova.py.\n\nThe changes in lines 97-104 only change the conditions for whether API call asks for info about all tenants.  But the project scoped token will still be used.","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"2b150aba247cd5f90a2e6d9227904ef788d4e119","unresolved":false,"context_lines":[{"line_number":101,"context_line":"            instances, self._more \u003d api.nova.server_list("},{"line_number":102,"context_line":"                self.request,"},{"line_number":103,"context_line":"                search_opts\u003dsearch_opts,"},{"line_number":104,"context_line":"                all_tenants\u003dall_tenants)"},{"line_number":105,"context_line":"        except Exception:"},{"line_number":106,"context_line":"            self._more \u003d False"},{"line_number":107,"context_line":"            exceptions.handle(self.request,"}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_e064c3ba","line":104,"in_reply_to":"9a80dd14_2bc5e63c","updated":"2015-03-12 21:46:13.000000000","message":"Thanks Doug and Brad!\n\nYeah I\u0027m not sure if nova can take a domain scoped token, I can test tho.  Brad is correct that we are still using a project scoped token here.\n\nThe scope of access hasn\u0027t really changed.  Keystone v3 introduces the idea of a Domain Admin which I don\u0027t believe has made it to the other services yet.  So we have this distinction of a Cloud Admin vs Domain Admin.\n\nCloud Admin is root and do anything across Domains.\nDomain Admin can only manager resources in it\u0027s domain.\n\nThe nova API call doesn\u0027t take this into account.  I\u0027m hoping in the future the nova policy file will have a rule for this.","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"e80ec825e4870438d01b0a84bff4b66e5cd6c212","unresolved":false,"context_lines":[{"line_number":101,"context_line":"            instances, self._more \u003d api.nova.server_list("},{"line_number":102,"context_line":"                self.request,"},{"line_number":103,"context_line":"                search_opts\u003dsearch_opts,"},{"line_number":104,"context_line":"                all_tenants\u003dall_tenants)"},{"line_number":105,"context_line":"        except Exception:"},{"line_number":106,"context_line":"            self._more \u003d False"},{"line_number":107,"context_line":"            exceptions.handle(self.request,"}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_abca884c","line":104,"in_reply_to":"9a80dd14_e064c3ba","updated":"2015-03-13 14:35:34.000000000","message":"FWIW I keep thinking about domain scoped tokens going to the services because if the user doesn\u0027t have access to any projects, the domain scoped token becomes the primary scoped token:\nhttps://review.openstack.org/#/c/141153/7/openstack_auth/backend.py   line 196\n\nI guess proper setup of Horizon\u0027s nova policy file should prevent this. Users with only domain level access shouldn\u0027t even see the panel.\n\nPart of my confusion on this is coming about because the interface we are being provided with seems one step off:  project scoped token are used for specifying the lowest level of access (single project access), as well as the highest level of access (admin level - across all projects access), but we have a separate authentication token for specifying a medium level access (access to stuff in some of the projects).  Not something I expect us to solve here, but I think that\u0027s part of the reason I\u0027m having a hard time settling in on this.\n\nTo bring this rambling back to the code at hand:\nwhy are we giving this user access to the admin level instances panel?  it seems like their level of access should give them access to the project level instances panel.","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"df34f5d91d925e181e6fcffae413d972b76074c5","unresolved":false,"context_lines":[{"line_number":101,"context_line":"            instances, self._more \u003d api.nova.server_list("},{"line_number":102,"context_line":"                self.request,"},{"line_number":103,"context_line":"                search_opts\u003dsearch_opts,"},{"line_number":104,"context_line":"                all_tenants\u003dall_tenants)"},{"line_number":105,"context_line":"        except Exception:"},{"line_number":106,"context_line":"            self._more \u003d False"},{"line_number":107,"context_line":"            exceptions.handle(self.request,"}],"source_content_type":"text/x-python","patch_set":42,"id":"9a80dd14_06c2ab52","line":104,"updated":"2015-03-13 14:52:38.000000000","message":"This looks like we are creating project level access on the admin screen.  Why aren\u0027t we using the project level screen to accomplish this?  If this user really has admin level API access to list all projects we shouldn\u0027t stop them because have a domain level authority; if they don\u0027t have admin level API access it seems to me they should be working on the project/instances screen.","commit_id":"0d72c263557ae102e66fe3d7b2012cce1a42bb66"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"89b09449085fb9b6ceb3e51097ff040440b635a5","unresolved":false,"context_lines":[{"line_number":101,"context_line":"            instances, self._more \u003d api.nova.server_list("},{"line_number":102,"context_line":"                self.request,"},{"line_number":103,"context_line":"                search_opts\u003dsearch_opts,"},{"line_number":104,"context_line":"                all_tenants\u003dall_tenants)"},{"line_number":105,"context_line":"        except Exception:"},{"line_number":106,"context_line":"            self._more \u003d False"},{"line_number":107,"context_line":"            exceptions.handle(self.request,"}],"source_content_type":"text/x-python","patch_set":42,"id":"9a80dd14_6866d1bc","line":104,"in_reply_to":"9a80dd14_06c2ab52","updated":"2015-03-13 15:34:54.000000000","message":"I agree this needs to be thought over more.  I\u0027m wondering if we should just hide the admin dash but I\u0027m not sure.\n\nThanks for sticking on this with me.  I still have to address a few more of your concerns but keep me honest on this!","commit_id":"0d72c263557ae102e66fe3d7b2012cce1a42bb66"},{"author":{"_account_id":1916,"name":"Guang Yee","email":"gyee@suse.com","username":"guang-yee"},"change_message_id":"9a09e5bc098112629cfce2f26c8def12a176ed81","unresolved":false,"context_lines":[{"line_number":101,"context_line":"            instances, self._more \u003d api.nova.server_list("},{"line_number":102,"context_line":"                self.request,"},{"line_number":103,"context_line":"                search_opts\u003dsearch_opts,"},{"line_number":104,"context_line":"                all_tenants\u003dall_tenants)"},{"line_number":105,"context_line":"        except Exception:"},{"line_number":106,"context_line":"            self._more \u003d False"},{"line_number":107,"context_line":"            exceptions.handle(self.request,"}],"source_content_type":"text/x-python","patch_set":42,"id":"9a80dd14_80286c98","line":104,"in_reply_to":"9a80dd14_6866d1bc","updated":"2015-03-18 22:38:39.000000000","message":"I think we need to remove this hack. Currently \"cloud admin\" is a domain-scoped token, scoped to the cloud admin domain, assuming we are deploying V3 policy.\n\nhttps://github.com/openstack/keystone/blob/master/etc/policy.v3cloudsample.json#L3\n\nI\u0027ve just confirmed it with devstack, a domain-scoped token can\u0027t access the protected Nova resources. Not even list all instances. \n\nCloud admin is not the same as Nova admin. Currently, to be a Nova admin, one just need to be able to obtain a project-scoped token which have the \u0027admin\u0027 role assigned.\n\nCloud Admin is designed to manage all things Keystone while service admin is designed to manage all things related to the services.","commit_id":"0d72c263557ae102e66fe3d7b2012cce1a42bb66"}],"openstack_dashboard/dashboards/admin/networks/views.py":[{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"48532c3a3c58358876cdaa956864ca75d32055a9","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            if api.keystone.VERSIONS.active \u003e\u003d 3:"},{"line_number":48,"context_line":"                domain_id \u003d api.keystone.get_effective_domain_id(self.request)"},{"line_number":49,"context_line":"                tenants, has_more \u003d api.keystone.tenant_list(self.request,"},{"line_number":50,"context_line":"                                                             domain\u003ddomain_id)"},{"line_number":51,"context_line":"            else:"},{"line_number":52,"context_line":"                tenants, has_more \u003d api.keystone.tenant_list(self.request)"}],"source_content_type":"text/x-python","patch_set":35,"id":"9a80dd14_537b908b","line":49,"updated":"2015-03-06 21:36:21.000000000","message":"I see this pattern repeated in several places.  Can this be accomplished by changing api.keystone.tenant_list to conditionally add the domain id instead of pushing the check out to all of the callers?","commit_id":"966a130ada672b70fb55d92e5acadf6ac4464ff2"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"fbd932ffeb771a6005e02e193869c5b71002f3f3","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            if api.keystone.VERSIONS.active \u003e\u003d 3:"},{"line_number":48,"context_line":"                domain_id \u003d api.keystone.get_effective_domain_id(self.request)"},{"line_number":49,"context_line":"                tenants, has_more \u003d api.keystone.tenant_list(self.request,"},{"line_number":50,"context_line":"                                                             domain\u003ddomain_id)"},{"line_number":51,"context_line":"            else:"},{"line_number":52,"context_line":"                tenants, has_more \u003d api.keystone.tenant_list(self.request)"}],"source_content_type":"text/x-python","patch_set":35,"id":"9a80dd14_bc42d93b","line":49,"in_reply_to":"9a80dd14_537b908b","updated":"2015-03-06 22:58:08.000000000","message":"Good point, let me see if I can clean this up soon.\nThx!","commit_id":"966a130ada672b70fb55d92e5acadf6ac4464ff2"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"56f009f7f6fbe46c415eaac59263154b2273beec","unresolved":false,"context_lines":[{"line_number":81,"context_line":"                if not cloud_admin:"},{"line_number":82,"context_line":"                    tenant_list \u003d self._get_tenant_list()"},{"line_number":83,"context_line":"                    networks \u003d [n for n in networks"},{"line_number":84,"context_line":"                                if n.tenant_id in tenant_list.keys()]"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        except Exception:"},{"line_number":87,"context_line":"            networks \u003d []"}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_d11eb46f","line":84,"updated":"2015-03-12 21:01:29.000000000","message":"I\u0027m pretty certain that the .keys() is not necessary, and also slows things down.\n\nNIT:  I\u0027d rather not make the cloud_admin variable at all, but that\u0027s shockingly minor.  :-)","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"2b150aba247cd5f90a2e6d9227904ef788d4e119","unresolved":false,"context_lines":[{"line_number":81,"context_line":"                if not cloud_admin:"},{"line_number":82,"context_line":"                    tenant_list \u003d self._get_tenant_list()"},{"line_number":83,"context_line":"                    networks \u003d [n for n in networks"},{"line_number":84,"context_line":"                                if n.tenant_id in tenant_list.keys()]"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        except Exception:"},{"line_number":87,"context_line":"            networks \u003d []"}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_20125b09","line":84,"in_reply_to":"9a80dd14_d11eb46f","updated":"2015-03-12 21:46:13.000000000","message":"Good catch!  Will fix this soon.","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"7900e7c320908a1890369231126940ffe1dd24fe","unresolved":false,"context_lines":[{"line_number":74,"context_line":"    def get_data(self):"},{"line_number":75,"context_line":"        try:"},{"line_number":76,"context_line":"            networks \u003d api.neutron.network_list(self.request)"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        except Exception:"},{"line_number":79,"context_line":"            networks \u003d []"},{"line_number":80,"context_line":"            msg \u003d _(\u0027Network list can not be retrieved.\u0027)"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_2b40e5a4","line":77,"updated":"2015-04-13 12:23:39.000000000","message":"NIT: white space","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac33eb452015cff6dbfd02f87ca20af3fbf17e23","unresolved":false,"context_lines":[{"line_number":74,"context_line":"    def get_data(self):"},{"line_number":75,"context_line":"        try:"},{"line_number":76,"context_line":"            networks \u003d api.neutron.network_list(self.request)"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        except Exception:"},{"line_number":79,"context_line":"            networks \u003d []"},{"line_number":80,"context_line":"            msg \u003d _(\u0027Network list can not be retrieved.\u0027)"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_3c3b74d3","line":77,"in_reply_to":"7aaa499b_2b40e5a4","updated":"2015-04-14 18:01:31.000000000","message":"Done","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"}],"openstack_dashboard/dashboards/admin/overview/tests.py":[{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"460432011a25e243d4cfc017ae29c35fe16e40dd","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        now \u003d timezone.now()"},{"line_number":71,"context_line":"        usage_list \u003d [api.nova.NovaUsage(u) for u in self.usages.list()]"},{"line_number":72,"context_line":"        if tenant_deleted:"},{"line_number":73,"context_line":"                api.keystone.tenant_list(IsA(http.HttpRequest)).AndReturn("},{"line_number":74,"context_line":"                    [[self.tenants.first()], False])"},{"line_number":75,"context_line":"        else:"},{"line_number":76,"context_line":"            api.keystone.tenant_list(IsA(http.HttpRequest)).AndReturn("}],"source_content_type":"text/x-python","patch_set":63,"id":"3acd31a7_280d3a37","line":73,"updated":"2015-05-05 01:14:24.000000000","message":"Remove extra indent spaces here.","commit_id":"be2c51493bceb43392ce0d10edecf223cdb72ce8"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"8383aaaf5edf73f33d62bdb9d774fa9add2c02f1","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        now \u003d timezone.now()"},{"line_number":71,"context_line":"        usage_list \u003d [api.nova.NovaUsage(u) for u in self.usages.list()]"},{"line_number":72,"context_line":"        if tenant_deleted:"},{"line_number":73,"context_line":"                api.keystone.tenant_list(IsA(http.HttpRequest)).AndReturn("},{"line_number":74,"context_line":"                    [[self.tenants.first()], False])"},{"line_number":75,"context_line":"        else:"},{"line_number":76,"context_line":"            api.keystone.tenant_list(IsA(http.HttpRequest)).AndReturn("}],"source_content_type":"text/x-python","patch_set":63,"id":"7a016987_f4412464","line":73,"in_reply_to":"3acd31a7_280d3a37","updated":"2015-05-20 17:26:46.000000000","message":"Done","commit_id":"be2c51493bceb43392ce0d10edecf223cdb72ce8"}],"openstack_dashboard/dashboards/admin/routers/views.py":[{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"56f009f7f6fbe46c415eaac59263154b2273beec","unresolved":false,"context_lines":[{"line_number":43,"context_line":"                if not cloud_admin:"},{"line_number":44,"context_line":"                    tenant_list \u003d self._get_tenant_list()"},{"line_number":45,"context_line":"                    routers \u003d [r for r in routers"},{"line_number":46,"context_line":"                               if r.tenant_id in tenant_list.keys()]"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        except Exception:"},{"line_number":49,"context_line":"            routers \u003d []"}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_ac2727b5","line":46,"updated":"2015-03-12 21:01:29.000000000","message":"I\u0027m pretty certain that the .keys() is not necessary, and also slows things down.\nNIT: I\u0027d rather not make the cloud_admin variable at all, but that\u0027s shockingly minor. :-)","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"2b150aba247cd5f90a2e6d9227904ef788d4e119","unresolved":false,"context_lines":[{"line_number":43,"context_line":"                if not cloud_admin:"},{"line_number":44,"context_line":"                    tenant_list \u003d self._get_tenant_list()"},{"line_number":45,"context_line":"                    routers \u003d [r for r in routers"},{"line_number":46,"context_line":"                               if r.tenant_id in tenant_list.keys()]"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        except Exception:"},{"line_number":49,"context_line":"            routers \u003d []"}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_e0f4c35c","line":46,"in_reply_to":"9a80dd14_ac2727b5","updated":"2015-03-12 21:46:13.000000000","message":"yep, will pull that one too.  thx!","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"7900e7c320908a1890369231126940ffe1dd24fe","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        try:"},{"line_number":37,"context_line":"            routers \u003d api.neutron.router_list(self.request,"},{"line_number":38,"context_line":"                                              search_opts\u003dsearch_opts)"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"        except Exception:"},{"line_number":41,"context_line":"            routers \u003d []"},{"line_number":42,"context_line":"            exceptions.handle(self.request,"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_2b8a25c0","line":39,"updated":"2015-04-13 12:23:39.000000000","message":"Unnecessary white space is adding this file which is otherwise untouched to the diff","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac33eb452015cff6dbfd02f87ca20af3fbf17e23","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        try:"},{"line_number":37,"context_line":"            routers \u003d api.neutron.router_list(self.request,"},{"line_number":38,"context_line":"                                              search_opts\u003dsearch_opts)"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"        except Exception:"},{"line_number":41,"context_line":"            routers \u003d []"},{"line_number":42,"context_line":"            exceptions.handle(self.request,"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_1c3f98b5","line":39,"in_reply_to":"7aaa499b_2b8a25c0","updated":"2015-04-14 18:01:31.000000000","message":"Done","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"}],"openstack_dashboard/dashboards/admin/volumes/tabs.py":[{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"56f009f7f6fbe46c415eaac59263154b2273beec","unresolved":false,"context_lines":[{"line_number":41,"context_line":"    def get_volumes_data(self):"},{"line_number":42,"context_line":"        all_tenants \u003d True"},{"line_number":43,"context_line":"        if api.keystone.VERSIONS.active \u003e\u003d 3:"},{"line_number":44,"context_line":"            all_tenants \u003d api.keystone.is_v3_cloud_admin(self.request)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"        volumes \u003d self._get_volumes(search_opts\u003d{\u0027all_tenants\u0027: all_tenants})"},{"line_number":47,"context_line":"        instances \u003d self._get_instances(search_opts\u003d{"}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_8c5c231b","line":44,"updated":"2015-03-12 21:01:29.000000000","message":"I\u0027d rather see a search_opts variable, instead of re-creating the dictionary 3 times.","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"2b150aba247cd5f90a2e6d9227904ef788d4e119","unresolved":false,"context_lines":[{"line_number":41,"context_line":"    def get_volumes_data(self):"},{"line_number":42,"context_line":"        all_tenants \u003d True"},{"line_number":43,"context_line":"        if api.keystone.VERSIONS.active \u003e\u003d 3:"},{"line_number":44,"context_line":"            all_tenants \u003d api.keystone.is_v3_cloud_admin(self.request)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"        volumes \u003d self._get_volumes(search_opts\u003d{\u0027all_tenants\u0027: all_tenants})"},{"line_number":47,"context_line":"        instances \u003d self._get_instances(search_opts\u003d{"}],"source_content_type":"text/x-python","patch_set":40,"id":"9a80dd14_00b47780","line":44,"in_reply_to":"9a80dd14_8c5c231b","updated":"2015-03-12 21:46:13.000000000","message":"makes sense.","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"}],"openstack_dashboard/dashboards/admin/volumes/tests.py":[{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"7fe9f0a81e53ad4deae0e68630523fe276aa2a8f","unresolved":false,"context_lines":[{"line_number":26,"context_line":"class VolumeTests(test.BaseAdminViewTests):"},{"line_number":27,"context_line":"    @test.create_stubs({api.nova: (\u0027server_list\u0027,),"},{"line_number":28,"context_line":"                        cinder: (\u0027volume_list\u0027,"},{"line_number":29,"context_line":"                                 \u0027volume_snapshot_list\u0027),"},{"line_number":30,"context_line":"                        keystone: (\u0027tenant_list\u0027,"},{"line_number":31,"context_line":"                                   \u0027get_effective_domain_id\u0027)})"},{"line_number":32,"context_line":"    def test_index(self):"}],"source_content_type":"text/x-python","patch_set":43,"id":"1a6ced46_87f1abcf","line":29,"updated":"2015-03-24 02:20:53.000000000","message":"Resolved a merge conflict with master at this line.","commit_id":"78735b39adb57ab70270dad349283c7d77d74e59"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"f58b6ca3c39ff091a3b7c712e4a410d65cf820da","unresolved":false,"context_lines":[{"line_number":26,"context_line":"class VolumeTests(test.BaseAdminViewTests):"},{"line_number":27,"context_line":"    @test.create_stubs({api.nova: (\u0027server_list\u0027,),"},{"line_number":28,"context_line":"                        cinder: (\u0027volume_list\u0027,"},{"line_number":29,"context_line":"                                 \u0027volume_snapshot_list\u0027),"},{"line_number":30,"context_line":"                        keystone: (\u0027tenant_list\u0027,"},{"line_number":31,"context_line":"                                   \u0027get_effective_domain_id\u0027)})"},{"line_number":32,"context_line":"    def test_index(self):"}],"source_content_type":"text/x-python","patch_set":43,"id":"1a6ced46_fce576a8","line":29,"in_reply_to":"1a6ced46_87f1abcf","updated":"2015-03-24 17:57:31.000000000","message":"thanks Brad.  I\u0027ll take a look at this.","commit_id":"78735b39adb57ab70270dad349283c7d77d74e59"}],"openstack_dashboard/dashboards/identity/domains/tables.py":[{"author":{"_account_id":12355,"name":"Vlad Okhrimenko","email":"vokhrimenko@mirantis.com","username":"vokhrimenko"},"change_message_id":"f295e1e1e4055a1125b600cc5f926f2bc375bee2","unresolved":false,"context_lines":[{"line_number":172,"context_line":"                domain \u003d api.keystone.domain_get(request, obj_id)"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":""},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"                # request.session[\u0027domain_context\u0027] \u003d obj_id"},{"line_number":177,"context_line":"                # request.session[\u0027domain_context_name\u0027] \u003d domain.name"},{"line_number":178,"context_line":"                # messages.success(request,"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_66cbfe1e","line":175,"updated":"2015-02-07 16:10:57.000000000","message":"not need blank lines","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":230,"context_line":""},{"line_number":231,"context_line":"    def allowed(self, request, datum):"},{"line_number":232,"context_line":"        multidomain_support \u003d getattr("},{"line_number":233,"context_line":"            settings, \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT\u0027, False)"},{"line_number":234,"context_line":"        if not multidomain_support:"},{"line_number":235,"context_line":"            return False"},{"line_number":236,"context_line":""}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_a6ff60a9","line":233,"updated":"2016-02-25 01:01:44.000000000","message":"no need for format change","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":230,"context_line":""},{"line_number":231,"context_line":"    def allowed(self, request, datum):"},{"line_number":232,"context_line":"        multidomain_support \u003d getattr("},{"line_number":233,"context_line":"            settings, \u0027OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT\u0027, False)"},{"line_number":234,"context_line":"        if not multidomain_support:"},{"line_number":235,"context_line":"            return False"},{"line_number":236,"context_line":""}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_201176ad","line":233,"in_reply_to":"bae84128_a6ff60a9","updated":"2016-02-26 02:21:57.000000000","message":"Done","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":234,"context_line":"        if not multidomain_support:"},{"line_number":235,"context_line":"            return False"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"        domain_context \u003d request.session.get(\"domain_context\")"},{"line_number":238,"context_line":"        if domain_context and datum.id \u003d\u003d domain_context:"},{"line_number":239,"context_line":"            return False"},{"line_number":240,"context_line":"        return True"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_661c3814","line":237,"updated":"2016-02-25 01:01:44.000000000","message":"no need for rename","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":234,"context_line":"        if not multidomain_support:"},{"line_number":235,"context_line":"            return False"},{"line_number":236,"context_line":""},{"line_number":237,"context_line":"        domain_context \u003d request.session.get(\"domain_context\")"},{"line_number":238,"context_line":"        if domain_context and datum.id \u003d\u003d domain_context:"},{"line_number":239,"context_line":"            return False"},{"line_number":240,"context_line":"        return True"}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_80268214","line":237,"in_reply_to":"bae84128_661c3814","updated":"2016-02-26 02:21:57.000000000","message":"Done","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":263,"context_line":"    policy_rules \u003d ((\u0027identity\u0027, \u0027identity:update_domain\u0027),)"},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"    def allowed(self, request, datum):"},{"line_number":266,"context_line":"        domain_context \u003d request.session.get(\u0027domain_context\u0027)"},{"line_number":267,"context_line":"        if domain_context is None:"},{"line_number":268,"context_line":"            return False"},{"line_number":269,"context_line":""}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_46aad486","line":266,"updated":"2016-02-25 01:01:44.000000000","message":"unnecessary rename","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":263,"context_line":"    policy_rules \u003d ((\u0027identity\u0027, \u0027identity:update_domain\u0027),)"},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"    def allowed(self, request, datum):"},{"line_number":266,"context_line":"        domain_context \u003d request.session.get(\u0027domain_context\u0027)"},{"line_number":267,"context_line":"        if domain_context is None:"},{"line_number":268,"context_line":"            return False"},{"line_number":269,"context_line":""}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_c0936af9","line":266,"in_reply_to":"bae84128_46aad486","updated":"2016-02-26 02:21:57.000000000","message":"Done","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":267,"context_line":"        if domain_context is None:"},{"line_number":268,"context_line":"            return False"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"        domain_id \u003d api.keystone.get_default_domain(request, False).get(\u0027id\u0027)"},{"line_number":271,"context_line":"        return domain_id is not None"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"    def single(self, table, request, obj_id):"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_4698146b","line":270,"updated":"2016-02-25 01:01:44.000000000","message":"how is this ever not true, this seems unnecessary. Default domain is set even when non-multidomain.","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":267,"context_line":"        if domain_context is None:"},{"line_number":268,"context_line":"            return False"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"        domain_id \u003d api.keystone.get_default_domain(request, False).get(\u0027id\u0027)"},{"line_number":271,"context_line":"        return domain_id is not None"},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"    def single(self, table, request, obj_id):"}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_60741ecf","line":270,"in_reply_to":"bae84128_4698146b","updated":"2016-02-26 02:21:57.000000000","message":"Removed.","commit_id":"8866e3df7278289278d73aff49417644878909a0"}],"openstack_dashboard/dashboards/identity/domains/tests.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":356,"context_line":""},{"line_number":357,"context_line":"        # handle"},{"line_number":358,"context_line":"        api.keystone.domain_update(IsA(http.HttpRequest),"},{"line_number":359,"context_line":"                                   domain.id,"},{"line_number":360,"context_line":"                                   name\u003ddomain.name,"},{"line_number":361,"context_line":"                                   description\u003dtest_description,"},{"line_number":362,"context_line":"                                   enabled\u003ddomain.enabled).AndReturn(None)"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_a6c0002c","line":359,"updated":"2016-02-25 01:01:44.000000000","message":"random reorder, unnecessary","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":356,"context_line":""},{"line_number":357,"context_line":"        # handle"},{"line_number":358,"context_line":"        api.keystone.domain_update(IsA(http.HttpRequest),"},{"line_number":359,"context_line":"                                   domain.id,"},{"line_number":360,"context_line":"                                   name\u003ddomain.name,"},{"line_number":361,"context_line":"                                   description\u003dtest_description,"},{"line_number":362,"context_line":"                                   enabled\u003ddomain.enabled).AndReturn(None)"}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_8b6863bc","line":359,"in_reply_to":"bae84128_a6c0002c","updated":"2016-02-26 02:21:57.000000000","message":"Done","commit_id":"8866e3df7278289278d73aff49417644878909a0"}],"openstack_dashboard/dashboards/identity/domains/views.py":[{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"87e532e74257ea57f1036523b7c096154395f580","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"        # Cloud Admin - list all domains"},{"line_number":44,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"},{"line_number":45,"context_line":"            domain_id \u003d None"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        if policy.check(((\"identity\", \"identity:list_domains\"),),"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_20d920f3","line":44,"updated":"2015-02-05 22:49:32.000000000","message":"Suggest making this compare to the domain name.","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"b8874848ea6d28026a2381433a677ddf7cd6e1c7","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"        # Cloud Admin - list all domains"},{"line_number":44,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"},{"line_number":45,"context_line":"            domain_id \u003d None"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        if policy.check(((\"identity\", \"identity:list_domains\"),),"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_dcdd88e1","line":44,"in_reply_to":"da86d52c_20d920f3","updated":"2015-02-06 05:31:42.000000000","message":"Agreed.  I need to figure a better way to do this.","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"5455d01a19ed9bfa2594107de5affb0de1f11d8f","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"        # Cloud Admin - list all domains"},{"line_number":44,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"},{"line_number":45,"context_line":"            domain_id \u003d None"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        if policy.check(((\"identity\", \"identity:list_domains\"),),"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_6bdd5514","line":44,"in_reply_to":"da86d52c_dcdd88e1","updated":"2015-02-09 19:57:17.000000000","message":"Per Dave Lyle, Guang Yee and some others, Keystone Domain names aren\u0027t necessarily unique, so comparing on name is a bad idea.  Instead, we\u0027ll put a note in the settings file to clarify that it needs to be an ID not a name.","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"}],"openstack_dashboard/dashboards/identity/domains/workflows.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":492,"context_line":"        try:"},{"line_number":493,"context_line":"            LOG.info(\u0027Updating domain with name \"%s\"\u0027 % data[\u0027name\u0027])"},{"line_number":494,"context_line":"            api.keystone.domain_update(request,"},{"line_number":495,"context_line":"                                       domain_id,"},{"line_number":496,"context_line":"                                       name\u003ddata[\u0027name\u0027],"},{"line_number":497,"context_line":"                                       description\u003ddata[\u0027description\u0027],"},{"line_number":498,"context_line":"                                       enabled\u003ddata[\u0027enabled\u0027])"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_668558ac","line":495,"updated":"2016-02-25 01:01:44.000000000","message":"fixes a mismatch. good","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":492,"context_line":"        try:"},{"line_number":493,"context_line":"            LOG.info(\u0027Updating domain with name \"%s\"\u0027 % data[\u0027name\u0027])"},{"line_number":494,"context_line":"            api.keystone.domain_update(request,"},{"line_number":495,"context_line":"                                       domain_id,"},{"line_number":496,"context_line":"                                       name\u003ddata[\u0027name\u0027],"},{"line_number":497,"context_line":"                                       description\u003ddata[\u0027description\u0027],"},{"line_number":498,"context_line":"                                       enabled\u003ddata[\u0027enabled\u0027])"}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_2baaf7d4","line":495,"in_reply_to":"bae84128_668558ac","updated":"2016-02-26 02:21:57.000000000","message":"thx!","commit_id":"8866e3df7278289278d73aff49417644878909a0"}],"openstack_dashboard/dashboards/identity/groups/forms.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        try:"},{"line_number":37,"context_line":"            LOG.info(\u0027Creating group with name \"%s\"\u0027 % data[\u0027name\u0027])"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"            domain \u003d api.keystone.get_default_domain(self.request, False)"},{"line_number":40,"context_line":"            domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"            api.keystone.group_create("}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_6608b82e","line":39,"updated":"2016-02-25 01:01:44.000000000","message":"we\u0027re breaking domain context again here. Why in the default domain rather than the desired domain as set by context?","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"c507bc876a9364a7a3398d97b3c8aefe1bf2dcdc","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        try:"},{"line_number":37,"context_line":"            LOG.info(\u0027Creating group with name \"%s\"\u0027 % data[\u0027name\u0027])"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"            domain \u003d api.keystone.get_default_domain(self.request, False)"},{"line_number":40,"context_line":"            domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"            api.keystone.group_create("}],"source_content_type":"text/x-python","patch_set":107,"id":"5aef4532_56acf133","line":39,"in_reply_to":"9aed3d3a_abbba70d","updated":"2016-03-08 23:21:36.000000000","message":"will work this in.","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"fc57cb22148c54585867aaf5fefa89a976f4fe0c","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        try:"},{"line_number":37,"context_line":"            LOG.info(\u0027Creating group with name \"%s\"\u0027 % data[\u0027name\u0027])"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"            domain \u003d api.keystone.get_default_domain(self.request, False)"},{"line_number":40,"context_line":"            domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"            api.keystone.group_create("}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_c9dd1b16","line":39,"in_reply_to":"9aed3d3a_abbba70d","updated":"2016-02-26 18:35:53.000000000","message":"wondering if getting effective domain is the correct fix rather than revert.","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        try:"},{"line_number":37,"context_line":"            LOG.info(\u0027Creating group with name \"%s\"\u0027 % data[\u0027name\u0027])"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"            domain \u003d api.keystone.get_default_domain(self.request, False)"},{"line_number":40,"context_line":"            domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"            api.keystone.group_create("}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_abbba70d","line":39,"in_reply_to":"bae84128_6608b82e","updated":"2016-02-26 02:21:57.000000000","message":"makes sense.  will revert.","commit_id":"8866e3df7278289278d73aff49417644878909a0"}],"openstack_dashboard/dashboards/identity/groups/panel.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        if keystone.VERSIONS.active \u003c 3:"},{"line_number":33,"context_line":"            return super(Groups, self).can_access(context)"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"        request \u003d context[\u0027request\u0027]"},{"line_number":36,"context_line":"        domain_token \u003d request.session.get(\u0027domain_token\u0027)"},{"line_number":37,"context_line":"        return super(Groups, self).can_access(context) and domain_token"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_c11c0e6d","line":35,"updated":"2016-02-25 01:01:44.000000000","message":"what about non-multidomain?","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        if keystone.VERSIONS.active \u003c 3:"},{"line_number":33,"context_line":"            return super(Groups, self).can_access(context)"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"        request \u003d context[\u0027request\u0027]"},{"line_number":36,"context_line":"        domain_token \u003d request.session.get(\u0027domain_token\u0027)"},{"line_number":37,"context_line":"        return super(Groups, self).can_access(context) and domain_token"}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_4b6dbb03","line":35,"in_reply_to":"bae84128_c11c0e6d","updated":"2016-02-26 02:21:57.000000000","message":"will include it in the check","commit_id":"8866e3df7278289278d73aff49417644878909a0"}],"openstack_dashboard/dashboards/identity/groups/tests.py":[{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"2de8d47a64bc91c49146bffe295dc6bd5a76cf8a","unresolved":false,"context_lines":[{"line_number":77,"context_line":"    def test_index_with_domain(self):"},{"line_number":78,"context_line":"        domain \u003d self.domains.get(id\u003d\"1\")"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        token \u003d self.mox.CreateMock(auth_user.Token)"},{"line_number":81,"context_line":"        token_domain \u003d {\"id\": domain.id, \"name\": domain.name}"},{"line_number":82,"context_line":"        token.domain \u003d token_domain"},{"line_number":83,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"da86d52c_45915445","line":80,"updated":"2015-02-16 16:53:09.000000000","message":"I think we need to change this mock object because this is no longer a Token object.","commit_id":"d18b4efd2ed72ec05f6e94b182369a0324b8b625"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"2de8d47a64bc91c49146bffe295dc6bd5a76cf8a","unresolved":false,"context_lines":[{"line_number":151,"context_line":"        domain \u003d self.domains.get(id\u003d\"1\")"},{"line_number":152,"context_line":"        group \u003d self.groups.get(id\u003d\"1\")"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"        token \u003d self.mox.CreateMock(auth_user.Token)"},{"line_number":155,"context_line":"        token_domain \u003d {\"id\": domain.id, \"name\": domain.name}"},{"line_number":156,"context_line":"        token.domain \u003d token_domain"},{"line_number":157,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"da86d52c_859b4c65","line":154,"updated":"2015-02-16 16:53:09.000000000","message":"I think we need to change this mock object because this is no longer a Token object.","commit_id":"d18b4efd2ed72ec05f6e94b182369a0324b8b625"}],"openstack_dashboard/dashboards/identity/projects/tables.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":146,"context_line":"    url \u003d \"horizon:identity:projects:update\""},{"line_number":147,"context_line":"    classes \u003d (\"ajax-modal\",)"},{"line_number":148,"context_line":"    icon \u003d \"pencil\""},{"line_number":149,"context_line":"    policy_rules \u003d ((\u0027compute\u0027, \u0027compute_extension:quotas:update\u0027),)"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def allowed(self, request, datum):"},{"line_number":152,"context_line":"        if api.keystone.VERSIONS.active \u003c 3:"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_21b85ae5","line":149,"updated":"2016-02-25 01:01:44.000000000","message":"gratuitous change","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":146,"context_line":"    url \u003d \"horizon:identity:projects:update\""},{"line_number":147,"context_line":"    classes \u003d (\"ajax-modal\",)"},{"line_number":148,"context_line":"    icon \u003d \"pencil\""},{"line_number":149,"context_line":"    policy_rules \u003d ((\u0027compute\u0027, \u0027compute_extension:quotas:update\u0027),)"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def allowed(self, request, datum):"},{"line_number":152,"context_line":"        if api.keystone.VERSIONS.active \u003c 3:"}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_66ac36ee","line":149,"in_reply_to":"bae84128_21b85ae5","updated":"2016-02-26 02:21:57.000000000","message":"will revert and come back one day to change them all :)","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":185,"context_line":"        if api.keystone.is_multi_domain_enabled():"},{"line_number":186,"context_line":"            # domain admin or cloud admin \u003d True"},{"line_number":187,"context_line":"            # project admin or member \u003d False"},{"line_number":188,"context_line":"            return api.keystone.is_domain_admin(request)"},{"line_number":189,"context_line":"        else:"},{"line_number":190,"context_line":"            return api.keystone.keystone_can_edit_project()"},{"line_number":191,"context_line":""}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_6191c252","line":188,"updated":"2016-02-25 01:01:44.000000000","message":"is this check sufficient? the api.keytone.keystone_can_edit_project reads from a setting that maps to the keystone backend properties. I think maybe:\n\n    if api.keystone.is_multi_domain_enabled() and not api.keystone.is_domain_admin(request):\n        return False\n\n    return api.keystone.keystone_can_edit_project()","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":185,"context_line":"        if api.keystone.is_multi_domain_enabled():"},{"line_number":186,"context_line":"            # domain admin or cloud admin \u003d True"},{"line_number":187,"context_line":"            # project admin or member \u003d False"},{"line_number":188,"context_line":"            return api.keystone.is_domain_admin(request)"},{"line_number":189,"context_line":"        else:"},{"line_number":190,"context_line":"            return api.keystone.keystone_can_edit_project()"},{"line_number":191,"context_line":""}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_1a301a56","line":188,"in_reply_to":"bae84128_6191c252","updated":"2016-02-26 02:21:57.000000000","message":"Done","commit_id":"8866e3df7278289278d73aff49417644878909a0"}],"openstack_dashboard/dashboards/identity/projects/tests.py":[{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"2de8d47a64bc91c49146bffe295dc6bd5a76cf8a","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    def test_index_with_domain_context(self):"},{"line_number":69,"context_line":"        domain \u003d self.domains.get(id\u003d\"1\")"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"        token \u003d self.mox.CreateMock(auth_user.Token)"},{"line_number":72,"context_line":"        token_domain \u003d {\"id\": domain.id, \"name\": domain.name}"},{"line_number":73,"context_line":"        token.domain \u003d token_domain"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"da86d52c_a5c85057","line":71,"updated":"2015-02-16 16:53:09.000000000","message":"I think we need to change this mock object because this is no longer a Token object.","commit_id":"d18b4efd2ed72ec05f6e94b182369a0324b8b625"}],"openstack_dashboard/dashboards/identity/projects/views.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"3c1d85efb01e7db58bfec746e1a3318e374a9cbe","unresolved":false,"context_lines":[{"line_number":89,"context_line":"            try:"},{"line_number":90,"context_line":"                tenants, self._more \u003d api.keystone.tenant_list("},{"line_number":91,"context_line":"                    self.request,"},{"line_number":92,"context_line":"                    domain\u003ddomain_id,"},{"line_number":93,"context_line":"                    paginate\u003dTrue,"},{"line_number":94,"context_line":"                    marker\u003dmarker)"},{"line_number":95,"context_line":"            except Exception:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a930d6b_8756b928","line":92,"updated":"2015-01-24 00:17:02.000000000","message":"not sure this is necessary to change as the domain_context is on the session. I need to think about this one more","commit_id":"d077f9c7f71feac32db9a150cad02706180cf8e1"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"b2b878972ef94625adbfcc0dbbcf3f860cdf96e3","unresolved":false,"context_lines":[{"line_number":89,"context_line":"            try:"},{"line_number":90,"context_line":"                tenants, self._more \u003d api.keystone.tenant_list("},{"line_number":91,"context_line":"                    self.request,"},{"line_number":92,"context_line":"                    domain\u003ddomain_id,"},{"line_number":93,"context_line":"                    paginate\u003dTrue,"},{"line_number":94,"context_line":"                    marker\u003dmarker)"},{"line_number":95,"context_line":"            except Exception:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a930d6b_7a6a4082","line":92,"in_reply_to":"1a930d6b_8756b928","updated":"2015-01-24 01:27:13.000000000","message":"I know that in my testing I never saw a domain_context being set.  We have a domain_token in the session from the DOA patch tho.","commit_id":"d077f9c7f71feac32db9a150cad02706180cf8e1"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"befb76b3b33e6bc591bf4811e9b879c5102471db","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            project_tables.TenantsTable._meta.pagination_param, None)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        domain \u003d keystone.get_default_domain(self.request)"},{"line_number":80,"context_line":"        domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        # Cloud Admin - list all projects"},{"line_number":83,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_80772c9f","line":80,"updated":"2015-02-05 22:29:59.000000000","message":"Suggest changing this to get the name of the domain, as most administrators will put the default domain name in the config file, rather than the domain ID.","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"5455d01a19ed9bfa2594107de5affb0de1f11d8f","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            project_tables.TenantsTable._meta.pagination_param, None)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        domain \u003d keystone.get_default_domain(self.request)"},{"line_number":80,"context_line":"        domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        # Cloud Admin - list all projects"},{"line_number":83,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_abb02dde","line":80,"in_reply_to":"da86d52c_3cf6a45d","updated":"2015-02-09 19:57:17.000000000","message":"Per Dave Lyle, Guang Yee and some others, Keystone Domain names aren\u0027t necessarily unique, so comparing on name is a bad idea.  Instead, we\u0027ll put a note in the settings file to clarify that it needs to be an ID not a name.","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"eaada59c1f4254b42a78fd20c507bd0bc1479b04","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            project_tables.TenantsTable._meta.pagination_param, None)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        domain \u003d keystone.get_default_domain(self.request)"},{"line_number":80,"context_line":"        domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        # Cloud Admin - list all projects"},{"line_number":83,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_d038ad3f","line":80,"in_reply_to":"da86d52c_50a83d77","updated":"2015-02-09 20:56:22.000000000","message":"I did make that change in patch-set 16 here.  But good idea!  ;-)","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"87e532e74257ea57f1036523b7c096154395f580","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            project_tables.TenantsTable._meta.pagination_param, None)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        domain \u003d keystone.get_default_domain(self.request)"},{"line_number":80,"context_line":"        domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        # Cloud Admin - list all projects"},{"line_number":83,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_40761407","line":80,"in_reply_to":"da86d52c_80772c9f","updated":"2015-02-05 22:49:32.000000000","message":"I should have said \"get the domain name here also\", as the domain_id is needed further below.","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"b8874848ea6d28026a2381433a677ddf7cd6e1c7","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            project_tables.TenantsTable._meta.pagination_param, None)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        domain \u003d keystone.get_default_domain(self.request)"},{"line_number":80,"context_line":"        domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        # Cloud Admin - list all projects"},{"line_number":83,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_3cf6a45d","line":80,"in_reply_to":"da86d52c_80772c9f","updated":"2015-02-06 05:31:42.000000000","message":"This call will change a bit in the next patch.\nI like the idea of using the name instead of the id but some of the calls that ultimately use keystone client expect and id.\n\nI\u0027ll check this again tho.","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"dbe18da5ba5051d167ce60dbcef46d6abdbd4a11","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            project_tables.TenantsTable._meta.pagination_param, None)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        domain \u003d keystone.get_default_domain(self.request)"},{"line_number":80,"context_line":"        domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        # Cloud Admin - list all projects"},{"line_number":83,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_50a83d77","line":80,"in_reply_to":"da86d52c_abb02dde","updated":"2015-02-09 20:53:13.000000000","message":"Makes sense.  We should also make the default value in the settings file \"default\", rather than \"Default\" in that case, as most installations use \"default\" for the ID.  I\u0027ll propose a patch for this.","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"a7bca4976b015235b9d8b3df5904e4e5ffd98e88","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            project_tables.TenantsTable._meta.pagination_param, None)"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        domain \u003d keystone.get_default_domain(self.request)"},{"line_number":80,"context_line":"        domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        # Cloud Admin - list all projects"},{"line_number":83,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_53720712","line":80,"in_reply_to":"da86d52c_d038ad3f","updated":"2015-02-09 21:23:05.000000000","message":"Sounds good!","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"befb76b3b33e6bc591bf4811e9b879c5102471db","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        # Cloud Admin - list all projects"},{"line_number":83,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"},{"line_number":84,"context_line":"            domain_id \u003d None"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        if policy.check(((\"identity\", \"identity:list_projects\"),),"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_a07a7085","line":83,"updated":"2015-02-05 22:29:59.000000000","message":"Same comment as above.","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"b8874848ea6d28026a2381433a677ddf7cd6e1c7","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        # Cloud Admin - list all projects"},{"line_number":83,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"},{"line_number":84,"context_line":"            domain_id \u003d None"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        if policy.check(((\"identity\", \"identity:list_projects\"),),"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_bcb8d475","line":83,"in_reply_to":"da86d52c_404d34c3","updated":"2015-02-06 05:31:42.000000000","message":"I think that could work.  Will test it out.","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"87e532e74257ea57f1036523b7c096154395f580","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        # Cloud Admin - list all projects"},{"line_number":83,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"},{"line_number":84,"context_line":"            domain_id \u003d None"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        if policy.check(((\"identity\", \"identity:list_projects\"),),"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_404d34c3","line":83,"in_reply_to":"da86d52c_a07a7085","updated":"2015-02-05 22:49:32.000000000","message":"And I should have said \"compare to the domain name\" here.","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"5455d01a19ed9bfa2594107de5affb0de1f11d8f","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        domain_id \u003d domain.get(\u0027id\u0027)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        # Cloud Admin - list all projects"},{"line_number":83,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"},{"line_number":84,"context_line":"            domain_id \u003d None"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        if policy.check(((\"identity\", \"identity:list_projects\"),),"}],"source_content_type":"text/x-python","patch_set":13,"id":"da86d52c_2bc43d3f","line":83,"in_reply_to":"da86d52c_bcb8d475","updated":"2015-02-09 19:57:17.000000000","message":"Per Dave Lyle, Guang Yee and some others, Keystone Domain names aren\u0027t necessarily unique, so comparing on name is a bad idea.  Instead, we\u0027ll put a note in the settings file to clarify that it needs to be an ID not a name.","commit_id":"11e6d4e74ecaf2e0b08ad0d6eaf4a19ccbbf87e2"},{"author":{"_account_id":4264,"name":"Matthias Runge","email":"mrunge@redhat.com","username":"mrunge"},"change_message_id":"80ddd5dddb065c3960463ca189b22fd79b2de9dd","unresolved":false,"context_lines":[{"line_number":125,"context_line":"                _(\"Insufficient privilege level to view project information.\")"},{"line_number":126,"context_line":"            messages.info(self.request, msg)"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"        domain_lookup \u003d api.keystone.domain_lookup(self.request)"},{"line_number":129,"context_line":"        if domain_lookup:"},{"line_number":130,"context_line":"            for t in tenants:"},{"line_number":131,"context_line":"                t.domain_name \u003d domain_lookup.get(t.domain_id)"}],"source_content_type":"text/x-python","patch_set":101,"id":"9a68dd71_6b7c27ec","line":128,"updated":"2016-01-25 12:13:47.000000000","message":"This here should be guarded somehow. This will fail, if not running with domains enabled.","commit_id":"e22a40de5f9999979047e9cde0332334d5f1b938"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"56b66528f0fb4980bafb26125ad7714e3f4388c4","unresolved":false,"context_lines":[{"line_number":125,"context_line":"                _(\"Insufficient privilege level to view project information.\")"},{"line_number":126,"context_line":"            messages.info(self.request, msg)"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"        domain_lookup \u003d api.keystone.domain_lookup(self.request)"},{"line_number":129,"context_line":"        if domain_lookup:"},{"line_number":130,"context_line":"            for t in tenants:"},{"line_number":131,"context_line":"                t.domain_name \u003d domain_lookup.get(t.domain_id)"}],"source_content_type":"text/x-python","patch_set":101,"id":"9a68dd71_19504031","line":128,"in_reply_to":"9a68dd71_6b7c27ec","updated":"2016-01-26 00:47:06.000000000","message":"Done","commit_id":"e22a40de5f9999979047e9cde0332334d5f1b938"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":82,"context_line":""},{"line_number":83,"context_line":"        if policy.check(((\"identity\", \"identity:list_projects\"),),"},{"line_number":84,"context_line":"                        self.request):"},{"line_number":85,"context_line":"            domain_id \u003d api.keystone.get_effective_domain_id(self.request)"},{"line_number":86,"context_line":"            try:"},{"line_number":87,"context_line":"                tenants, self._more \u003d api.keystone.tenant_list("},{"line_number":88,"context_line":"                    self.request,"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_6108a22e","line":85,"updated":"2016-02-25 01:01:44.000000000","message":"gratuitous rename again","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":82,"context_line":""},{"line_number":83,"context_line":"        if policy.check(((\"identity\", \"identity:list_projects\"),),"},{"line_number":84,"context_line":"                        self.request):"},{"line_number":85,"context_line":"            domain_id \u003d api.keystone.get_effective_domain_id(self.request)"},{"line_number":86,"context_line":"            try:"},{"line_number":87,"context_line":"                tenants, self._more \u003d api.keystone.tenant_list("},{"line_number":88,"context_line":"                    self.request,"}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_9a51ca65","line":85,"in_reply_to":"bae84128_6108a22e","updated":"2016-02-26 02:21:57.000000000","message":"will revert the name :)","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":90,"context_line":"                    paginate\u003dTrue,"},{"line_number":91,"context_line":"                    marker\u003dmarker)"},{"line_number":92,"context_line":"            except Exception:"},{"line_number":93,"context_line":"                # pure project admin has no domain token"},{"line_number":94,"context_line":"                if policy.check(((\"identity\", \"identity:list_user_projects\"),),"},{"line_number":95,"context_line":"                                self.request):"},{"line_number":96,"context_line":"                    try:"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_4cfdd56d","line":93,"updated":"2016-02-25 01:01:44.000000000","message":"seems like the policy rule should have caught this already, or at the minimum we check for a domain token before the previous call. Then we can be more DRY and use the existing else.","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":90,"context_line":"                    paginate\u003dTrue,"},{"line_number":91,"context_line":"                    marker\u003dmarker)"},{"line_number":92,"context_line":"            except Exception:"},{"line_number":93,"context_line":"                # pure project admin has no domain token"},{"line_number":94,"context_line":"                if policy.check(((\"identity\", \"identity:list_user_projects\"),),"},{"line_number":95,"context_line":"                                self.request):"},{"line_number":96,"context_line":"                    try:"}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_9ad8aaf1","line":93,"in_reply_to":"bae84128_4cfdd56d","updated":"2016-02-26 02:21:57.000000000","message":"Yeah, I think you are right.  This was written before we made the policy check aware of the domain scoped token.  Will remove it and see how it goes.","commit_id":"8866e3df7278289278d73aff49417644878909a0"}],"openstack_dashboard/dashboards/identity/projects/workflows.py":[{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"7900e7c320908a1890369231126940ffe1dd24fe","unresolved":false,"context_lines":[{"line_number":276,"context_line":"        if data:"},{"line_number":277,"context_line":"            try:"},{"line_number":278,"context_line":"                roles \u003d api.keystone.role_list(self.workflow.request)"},{"line_number":279,"context_line":""},{"line_number":280,"context_line":"            except Exception:"},{"line_number":281,"context_line":"                exceptions.handle(self.workflow.request,"},{"line_number":282,"context_line":"                                  _(\u0027Unable to retrieve user list.\u0027))"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_1711ca52","line":279,"updated":"2015-04-13 12:23:39.000000000","message":"White space","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac33eb452015cff6dbfd02f87ca20af3fbf17e23","unresolved":false,"context_lines":[{"line_number":276,"context_line":"        if data:"},{"line_number":277,"context_line":"            try:"},{"line_number":278,"context_line":"                roles \u003d api.keystone.role_list(self.workflow.request)"},{"line_number":279,"context_line":""},{"line_number":280,"context_line":"            except Exception:"},{"line_number":281,"context_line":"                exceptions.handle(self.workflow.request,"},{"line_number":282,"context_line":"                                  _(\u0027Unable to retrieve user list.\u0027))"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_56ff3caa","line":279,"in_reply_to":"7aaa499b_1711ca52","updated":"2015-04-14 18:01:31.000000000","message":"Done","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"7900e7c320908a1890369231126940ffe1dd24fe","unresolved":false,"context_lines":[{"line_number":395,"context_line":"    success_message \u003d _(\u0027Created new project \"%s\".\u0027)"},{"line_number":396,"context_line":"    failure_message \u003d _(\u0027Unable to create project \"%s\".\u0027)"},{"line_number":397,"context_line":"    success_url \u003d \"horizon:identity:projects:index\""},{"line_number":398,"context_line":"    default_steps \u003d None"},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"    def __init__(self, request\u003dNone, context_seed\u003dNone, entry_point\u003dNone,"},{"line_number":401,"context_line":"                 *args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_7c5a3585","line":398,"updated":"2015-04-13 12:23:39.000000000","message":"This will get a default value from the parent class so you don\u0027t need to set it equal to None here.","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac33eb452015cff6dbfd02f87ca20af3fbf17e23","unresolved":false,"context_lines":[{"line_number":395,"context_line":"    success_message \u003d _(\u0027Created new project \"%s\".\u0027)"},{"line_number":396,"context_line":"    failure_message \u003d _(\u0027Unable to create project \"%s\".\u0027)"},{"line_number":397,"context_line":"    success_url \u003d \"horizon:identity:projects:index\""},{"line_number":398,"context_line":"    default_steps \u003d None"},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"    def __init__(self, request\u003dNone, context_seed\u003dNone, entry_point\u003dNone,"},{"line_number":401,"context_line":"                 *args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_3c97f491","line":398,"in_reply_to":"7aaa499b_7c5a3585","updated":"2015-04-14 18:01:31.000000000","message":"I\u0027ll check this, I needed it to be None initially.  let me see what the  super class sets it too.","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"7900e7c320908a1890369231126940ffe1dd24fe","unresolved":false,"context_lines":[{"line_number":413,"context_line":"            self.default_steps \u003d (CreateProjectInfo,"},{"line_number":414,"context_line":"                                  UpdateProjectMembers,"},{"line_number":415,"context_line":"                                  UpdateProjectGroups,"},{"line_number":416,"context_line":"                                  CreateProjectQuota)"},{"line_number":417,"context_line":""},{"line_number":418,"context_line":"        super(CreateProject, self).__init__(request\u003drequest,"},{"line_number":419,"context_line":"                                            context_seed\u003dcontext_seed,"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_fc49a5d1","line":416,"updated":"2015-04-13 12:23:39.000000000","message":"self.default_steps can be a list instead of a set. So it\u0027s possible to make it a list then use .append instead of repeating the Info/Members items.","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac33eb452015cff6dbfd02f87ca20af3fbf17e23","unresolved":false,"context_lines":[{"line_number":413,"context_line":"            self.default_steps \u003d (CreateProjectInfo,"},{"line_number":414,"context_line":"                                  UpdateProjectMembers,"},{"line_number":415,"context_line":"                                  UpdateProjectGroups,"},{"line_number":416,"context_line":"                                  CreateProjectQuota)"},{"line_number":417,"context_line":""},{"line_number":418,"context_line":"        super(CreateProject, self).__init__(request\u003drequest,"},{"line_number":419,"context_line":"                                            context_seed\u003dcontext_seed,"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_bc82e450","line":416,"in_reply_to":"7aaa499b_fc49a5d1","updated":"2015-04-14 18:01:31.000000000","message":"Will give is a shot, I was wondering about this too. thx!","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"7900e7c320908a1890369231126940ffe1dd24fe","unresolved":false,"context_lines":[{"line_number":619,"context_line":""},{"line_number":620,"context_line":"    def _update_project(self, request, data):"},{"line_number":621,"context_line":"        \"\"\"Update project info"},{"line_number":622,"context_line":"        \"\"\""},{"line_number":623,"context_line":""},{"line_number":624,"context_line":"        domain_id \u003d api.keystone.get_effective_domain_id(self.request)"},{"line_number":625,"context_line":""}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_77200e9c","line":622,"updated":"2015-04-13 12:23:39.000000000","message":"Does the second \"\"\" need to be on a new line? Is that something that\u0027s enforced by pep8?","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac33eb452015cff6dbfd02f87ca20af3fbf17e23","unresolved":false,"context_lines":[{"line_number":619,"context_line":""},{"line_number":620,"context_line":"    def _update_project(self, request, data):"},{"line_number":621,"context_line":"        \"\"\"Update project info"},{"line_number":622,"context_line":"        \"\"\""},{"line_number":623,"context_line":""},{"line_number":624,"context_line":"        domain_id \u003d api.keystone.get_effective_domain_id(self.request)"},{"line_number":625,"context_line":""}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_760478bf","line":622,"in_reply_to":"7aaa499b_77200e9c","updated":"2015-04-14 18:01:31.000000000","message":"Done","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":211,"context_line":"        # Use the domain_id from the project"},{"line_number":212,"context_line":"        domain_id \u003d self.initial.get(\"domain_id\", None)"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"        # Cloud Admin"},{"line_number":215,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"},{"line_number":216,"context_line":"            domain_id \u003d None"},{"line_number":217,"context_line":""}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_4c11555d","line":214,"updated":"2016-02-25 01:01:44.000000000","message":"a better comment wouldn\u0027t hurt here, not sure why cloud admin requires passing the domain_id as None.","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"fc57cb22148c54585867aaf5fefa89a976f4fe0c","unresolved":false,"context_lines":[{"line_number":211,"context_line":"        # Use the domain_id from the project"},{"line_number":212,"context_line":"        domain_id \u003d self.initial.get(\"domain_id\", None)"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"        # Cloud Admin"},{"line_number":215,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"},{"line_number":216,"context_line":"            domain_id \u003d None"},{"line_number":217,"context_line":""}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_498aabc0","line":214,"in_reply_to":"9aed3d3a_b0ddcf72","updated":"2016-02-26 18:35:53.000000000","message":"users can have cross domain role assignments, I\u0027m just trying to determine what None is doing for us. I admit I haven\u0027t gone and dug through the API for this comment. It\u0027s just really unclear what None accomplishes.","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":211,"context_line":"        # Use the domain_id from the project"},{"line_number":212,"context_line":"        domain_id \u003d self.initial.get(\"domain_id\", None)"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"        # Cloud Admin"},{"line_number":215,"context_line":"        if domain_id \u003d\u003d keystone.DEFAULT_DOMAIN:"},{"line_number":216,"context_line":"            domain_id \u003d None"},{"line_number":217,"context_line":""}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_b0ddcf72","line":214,"in_reply_to":"bae84128_4c11555d","updated":"2016-02-26 02:21:57.000000000","message":"Will drop this.  initially we thought it was a good idea to allow cloud admin to move users across domains.","commit_id":"8866e3df7278289278d73aff49417644878909a0"}],"openstack_dashboard/dashboards/identity/roles/panel.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":28,"context_line":"        if keystone.VERSIONS.active \u003c 3:"},{"line_number":29,"context_line":"            return super(Roles, self).can_access(context)"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"        request \u003d context[\u0027request\u0027]"},{"line_number":32,"context_line":"        domain_token \u003d request.session.get(\u0027domain_token\u0027)"},{"line_number":33,"context_line":"        return super(Roles, self).can_access(context) and domain_token"},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_47080e29","line":31,"updated":"2016-02-25 01:01:44.000000000","message":"single domain v3? seems like we miss that case","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":28,"context_line":"        if keystone.VERSIONS.active \u003c 3:"},{"line_number":29,"context_line":"            return super(Roles, self).can_access(context)"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"        request \u003d context[\u0027request\u0027]"},{"line_number":32,"context_line":"        domain_token \u003d request.session.get(\u0027domain_token\u0027)"},{"line_number":33,"context_line":"        return super(Roles, self).can_access(context) and domain_token"},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_3d9b58cb","line":31,"in_reply_to":"bae84128_47080e29","updated":"2016-02-26 02:21:57.000000000","message":"will consider multi domain support \u003d False","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"b69d67571f12fb20fce758aa30db60e0a92849f8","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"        request \u003d context[\u0027request\u0027]"},{"line_number":32,"context_line":"        if keystone.is_multi_domain_enabled() \\"},{"line_number":33,"context_line":"                and not keystone.is_domain_admin(request):"},{"line_number":34,"context_line":"            return False"},{"line_number":35,"context_line":"        return super(Roles, self).can_access(context)"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":108,"id":"9aed3d3a_a94d379b","line":33,"updated":"2016-02-26 18:35:41.000000000","message":"not excited about this call, but not sure I have a better answer.","commit_id":"f5d0b762679305bd453143446ee0b6b142acc5c9"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"98ec787aabec57466df5f38e3c03e0db6be0be43","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"        request \u003d context[\u0027request\u0027]"},{"line_number":32,"context_line":"        if keystone.is_multi_domain_enabled() \\"},{"line_number":33,"context_line":"                and not keystone.is_domain_admin(request):"},{"line_number":34,"context_line":"            return False"},{"line_number":35,"context_line":"        return super(Roles, self).can_access(context)"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":108,"id":"7af24918_04b57a7d","line":33,"in_reply_to":"9aed3d3a_a94d379b","updated":"2016-03-04 17:57:37.000000000","message":"agreed, I\u0027ll mull it over maybe I can abstract it out to a method to replace later.","commit_id":"f5d0b762679305bd453143446ee0b6b142acc5c9"}],"openstack_dashboard/dashboards/identity/users/panel.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":34,"context_line":"                not keystone.is_multi_domain_enabled()):"},{"line_number":35,"context_line":"            return super(Users, self).can_access(context)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"        request \u003d context[\u0027request\u0027]"},{"line_number":38,"context_line":"        domain_token \u003d request.session.get(\u0027domain_token\u0027)"},{"line_number":39,"context_line":"        return super(Users, self).can_access(context) and domain_token"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_476daecb","line":37,"updated":"2016-02-25 01:01:44.000000000","message":"single domain v3?","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":34,"context_line":"                not keystone.is_multi_domain_enabled()):"},{"line_number":35,"context_line":"            return super(Users, self).can_access(context)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"        request \u003d context[\u0027request\u0027]"},{"line_number":38,"context_line":"        domain_token \u003d request.session.get(\u0027domain_token\u0027)"},{"line_number":39,"context_line":"        return super(Users, self).can_access(context) and domain_token"}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_9dac24ef","line":37,"in_reply_to":"bae84128_476daecb","updated":"2016-02-26 02:21:57.000000000","message":"ditto","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":20772,"name":"Sergei Chipiga","email":"schipiga@mirantis.com","username":"schipiga"},"change_message_id":"6e8175820b63eef5b48030558f17c70e058a80cd","unresolved":false,"context_lines":[{"line_number":30,"context_line":"                    (\"identity\", \"identity:list_users\"))"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    def can_access(self, context):"},{"line_number":33,"context_line":"        if keystone.VERSIONS.active \u003c 3:"},{"line_number":34,"context_line":"            return super(Users, self).can_access(context)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"        request \u003d context[\u0027request\u0027]"},{"line_number":37,"context_line":"        if keystone.is_multi_domain_enabled() \\"},{"line_number":38,"context_line":"                and not keystone.is_domain_admin(request):"},{"line_number":39,"context_line":"            return False"},{"line_number":40,"context_line":"        return super(Users, self).can_access(context)"}],"source_content_type":"text/x-python","patch_set":108,"id":"7af24918_e4e4eaac","line":40,"range":{"start_line":33,"start_character":0,"end_line":40,"end_character":53},"updated":"2016-03-04 10:12:42.000000000","message":"how about to reduce duplicate code and redundant variable\n\n    if (keystone.VERSIONS.active \u003e\u003d 3 and\n            keystone.is_multi_domain_enabled() and\n            not keystone.is_domain_admin(context[\u0027request\u0027])):\n        return False\n\n    return super(Users, self).can_access(context)","commit_id":"f5d0b762679305bd453143446ee0b6b142acc5c9"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"98ec787aabec57466df5f38e3c03e0db6be0be43","unresolved":false,"context_lines":[{"line_number":30,"context_line":"                    (\"identity\", \"identity:list_users\"))"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    def can_access(self, context):"},{"line_number":33,"context_line":"        if keystone.VERSIONS.active \u003c 3:"},{"line_number":34,"context_line":"            return super(Users, self).can_access(context)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"        request \u003d context[\u0027request\u0027]"},{"line_number":37,"context_line":"        if keystone.is_multi_domain_enabled() \\"},{"line_number":38,"context_line":"                and not keystone.is_domain_admin(request):"},{"line_number":39,"context_line":"            return False"},{"line_number":40,"context_line":"        return super(Users, self).can_access(context)"}],"source_content_type":"text/x-python","patch_set":108,"id":"7af24918_c448b28d","line":40,"range":{"start_line":33,"start_character":0,"end_line":40,"end_character":53},"in_reply_to":"7af24918_e4e4eaac","updated":"2016-03-04 17:57:37.000000000","message":"I was thinking about that too.  let me try to clean these up.","commit_id":"f5d0b762679305bd453143446ee0b6b142acc5c9"}],"openstack_dashboard/dashboards/identity/users/tests.py":[{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"2de8d47a64bc91c49146bffe295dc6bd5a76cf8a","unresolved":false,"context_lines":[{"line_number":73,"context_line":"    def test_index_with_domain(self):"},{"line_number":74,"context_line":"        domain \u003d self.domains.get(id\u003d\"1\")"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        token \u003d self.mox.CreateMock(auth_user.Token)"},{"line_number":77,"context_line":"        token_domain \u003d {\"id\": domain.id, \"name\": domain.name}"},{"line_number":78,"context_line":"        token.domain \u003d token_domain"},{"line_number":79,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"da86d52c_45df940c","line":76,"updated":"2015-02-16 16:53:09.000000000","message":"I think we need to change this mock object because this is no longer a Token object.","commit_id":"d18b4efd2ed72ec05f6e94b182369a0324b8b625"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"7900e7c320908a1890369231126940ffe1dd24fe","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            api.keystone.tenant_list("},{"line_number":106,"context_line":"                IgnoreArg(), user\u003dNone).AndReturn("},{"line_number":107,"context_line":"                [self.tenants.list(), False])"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"        api.keystone.user_create(IgnoreArg(),"},{"line_number":110,"context_line":"                                 name\u003duser.name,"},{"line_number":111,"context_line":"                                 email\u003duser.email,"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_89d37e38","line":108,"updated":"2015-04-13 12:23:39.000000000","message":"Having an if statement like this in the tests changes the tests according to which version number is specified by api.keystone.VERSIONS.active and makes the tests incomplete, as depending on the version stored in the settings it will either test one case or the other and never both.\n\nIn order combat this you\u0027ll need have two tests for each test you\u0027ve got with an if VERSIONS.active \u003e\u003d 3, with a mocks to override the version number in each case, so that both are tested.","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"ac33eb452015cff6dbfd02f87ca20af3fbf17e23","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            api.keystone.tenant_list("},{"line_number":106,"context_line":"                IgnoreArg(), user\u003dNone).AndReturn("},{"line_number":107,"context_line":"                [self.tenants.list(), False])"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"        api.keystone.user_create(IgnoreArg(),"},{"line_number":110,"context_line":"                                 name\u003duser.name,"},{"line_number":111,"context_line":"                                 email\u003duser.email,"}],"source_content_type":"text/x-python","patch_set":57,"id":"7aaa499b_309b7774","line":108,"in_reply_to":"7aaa499b_89d37e38","updated":"2015-04-14 18:01:31.000000000","message":"Hello Sam,\n\nI agree with you on this although it might be better to have two sets of settings.py files and run them each instead of duplicating every test that varies based on version.  \n\nWe likely want to do this for other scenarios anyway (aka policy files).  I\u0027ll will revisit this later please remind me if I forget.\n\nThanks,\n\n-Dan","commit_id":"0967cc864ad434834a14ded07d6b54a30942eee0"}],"openstack_dashboard/dashboards/identity/users/views.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        if policy.check(((\"identity\", \"identity:list_users\"),),"},{"line_number":55,"context_line":"                        self.request):"},{"line_number":56,"context_line":"            domain_id \u003d api.keystone.get_effective_domain_id(self.request)"},{"line_number":57,"context_line":"            try:"},{"line_number":58,"context_line":"                users \u003d api.keystone.user_list(self.request,"},{"line_number":59,"context_line":"                                               domain\u003ddomain_id)"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_07cf26b4","line":56,"updated":"2016-02-25 01:01:44.000000000","message":"gratuitous rename again","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"cad469d631ff6c62afa0a8e8bcfff7e7ac0d75a0","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        if policy.check(((\"identity\", \"identity:list_users\"),),"},{"line_number":55,"context_line":"                        self.request):"},{"line_number":56,"context_line":"            domain_id \u003d api.keystone.get_effective_domain_id(self.request)"},{"line_number":57,"context_line":"            try:"},{"line_number":58,"context_line":"                users \u003d api.keystone.user_list(self.request,"},{"line_number":59,"context_line":"                                               domain\u003ddomain_id)"}],"source_content_type":"text/x-python","patch_set":107,"id":"9aed3d3a_7d7cc072","line":56,"in_reply_to":"bae84128_07cf26b4","updated":"2016-02-26 02:21:57.000000000","message":"Done","commit_id":"8866e3df7278289278d73aff49417644878909a0"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":188,"context_line":"        domain_name \u003d \u0027\u0027"},{"line_number":189,"context_line":"        if api.keystone.VERSIONS.active \u003e\u003d 3:"},{"line_number":190,"context_line":"            try:"},{"line_number":191,"context_line":"                if policy.check(((\"identity\", \"identity:get_domain\"),),"},{"line_number":192,"context_line":"                                self.request):"},{"line_number":193,"context_line":"                    domain \u003d api.keystone.domain_get("},{"line_number":194,"context_line":"                        self.request, domain_id)"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_27e18aff","line":191,"updated":"2016-02-25 01:01:44.000000000","message":"I feel like we\u0027ve seen this same code 2-3 times, should probably just be code in api.keystone as a method.","commit_id":"8866e3df7278289278d73aff49417644878909a0"}],"openstack_dashboard/local/local_settings.py.example":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"ff89b884b12c32359276be84e161c32fcd1b371c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- coding: utf-8 -*-"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"import os"},{"line_number":4,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":111,"id":"5aef4532_71d77723","line":1,"updated":"2016-03-08 23:20:28.000000000","message":"why this?","commit_id":"2b846515f388278e2bf8d0198a4f821309e08e69"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"4060170973cb2910cffd765baf890d6e256eaa2d","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- coding: utf-8 -*-"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"import os"},{"line_number":4,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":111,"id":"5aef4532_71c017e1","line":1,"in_reply_to":"5aef4532_31aa0f71","updated":"2016-03-08 23:32:46.000000000","message":"nah, I\u0027m wrong. leave it. didn\u0027t realize it came in with a rebase.","commit_id":"2b846515f388278e2bf8d0198a4f821309e08e69"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"01cf7f3178c2d38e355736c507d12ad2d7a4819b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- coding: utf-8 -*-"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"import os"},{"line_number":4,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":111,"id":"5aef4532_31aa0f71","line":1,"in_reply_to":"5aef4532_71d77723","updated":"2016-03-08 23:24:04.000000000","message":"ah, yeah.  let me rip that out.","commit_id":"2b846515f388278e2bf8d0198a4f821309e08e69"}],"openstack_dashboard/policy.py":[{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"566d1f44b95515dbae3d2745597c18d30288cc21","unresolved":false,"context_lines":[{"line_number":132,"context_line":"    # same for user.domain_id"},{"line_number":133,"context_line":"    if target.get(\u0027user.domain_id\u0027) is None:"},{"line_number":134,"context_line":"        target[\u0027user.domain_id\u0027] \u003d user.user_domain_id"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    credentials \u003d _user_to_credentials(request, user)"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    enforcer \u003d _get_enforcer()"}],"source_content_type":"text/x-python","patch_set":15,"id":"da86d52c_ba7cf873","line":135,"updated":"2015-02-09 19:56:53.000000000","message":"@Dan:  The last 2 entries above the same.  Are we missing something, or is there just one extra?\nAlso, I\u0027m going to clean some of this up with a loop.","commit_id":"8c74ce406cc3f59472c128183620ed5f47c0bf8b"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"2f0142ef13629b618ae8e20facb7ba352e01dd90","unresolved":false,"context_lines":[{"line_number":132,"context_line":"    # same for user.domain_id"},{"line_number":133,"context_line":"    if target.get(\u0027user.domain_id\u0027) is None:"},{"line_number":134,"context_line":"        target[\u0027user.domain_id\u0027] \u003d user.user_domain_id"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    credentials \u003d _user_to_credentials(request, user)"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"    enforcer \u003d _get_enforcer()"}],"source_content_type":"text/x-python","patch_set":15,"id":"da86d52c_4514f49e","line":135,"in_reply_to":"da86d52c_ba7cf873","updated":"2015-02-16 18:06:16.000000000","message":"Yeah, you are correct, it was a bad cut and paste (I do have a few more updates here and will add it to your refactor)","commit_id":"8c74ce406cc3f59472c128183620ed5f47c0bf8b"}],"openstack_dashboard/policy_backend.py":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"972a1b11542445c204745cf70aadd77ff6be2733","unresolved":false,"context_lines":[{"line_number":116,"context_line":"    # same for user_id"},{"line_number":117,"context_line":"    if target.get(\u0027user_id\u0027) is None:"},{"line_number":118,"context_line":"        target[\u0027user_id\u0027] \u003d user.id"},{"line_number":119,"context_line":"    # same for these:"},{"line_number":120,"context_line":"    domain_id_keys \u003d ["},{"line_number":121,"context_line":"        \u0027domain_id\u0027,"},{"line_number":122,"context_line":"        \u0027project.domain_id\u0027,"}],"source_content_type":"text/x-python","patch_set":61,"id":"dac4157f_6c114cac","line":119,"updated":"2015-04-21 00:49:03.000000000","message":"In our effort to centralize the policy engine, this piece of code was moved to Django Openstack Auth(DOA) and is slated for removal at a future point in time. For the time being, you may want to duplicate this code into DOA.","commit_id":"a54650f97a278237829822b07d2b1db75929ee64"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"1fb74764b1377ccdbc2de9d08ebe070c62329643","unresolved":false,"context_lines":[{"line_number":116,"context_line":"    # same for user_id"},{"line_number":117,"context_line":"    if target.get(\u0027user_id\u0027) is None:"},{"line_number":118,"context_line":"        target[\u0027user_id\u0027] \u003d user.id"},{"line_number":119,"context_line":"    # same for these:"},{"line_number":120,"context_line":"    domain_id_keys \u003d ["},{"line_number":121,"context_line":"        \u0027domain_id\u0027,"},{"line_number":122,"context_line":"        \u0027project.domain_id\u0027,"}],"source_content_type":"text/x-python","patch_set":61,"id":"bab921fb_3baaa31a","line":119,"in_reply_to":"dac4157f_6c114cac","updated":"2015-04-22 17:56:23.000000000","message":"thanks Thai!\n\nI\u0027ll work with David to see that we get that into DOA.","commit_id":"a54650f97a278237829822b07d2b1db75929ee64"}],"openstack_dashboard/views.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"f1a170ff3e2757ba64aa6c0c2fd46fe8db8d95e1","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    # Domain Admin, Project Admin will default to identity"},{"line_number":40,"context_line":"    if (user.token.project.get(\u0027id\u0027) is None or"},{"line_number":41,"context_line":"            (user.is_superuser and user.token.project.get(\u0027id\u0027))):"},{"line_number":42,"context_line":"        dashboard \u003d horizon.get_dashboard(\u0027identity\u0027)"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    return dashboard.get_absolute_url()"}],"source_content_type":"text/x-python","patch_set":107,"id":"bae84128_6791d252","line":41,"updated":"2016-02-25 01:01:44.000000000","message":"is_superuser seems old. I think a policy check is probably more accurate?","commit_id":"8866e3df7278289278d73aff49417644878909a0"}],"releasenotes/notes/domains-0581aa42773d5f41.yaml":[{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"5287f8307a805e49ea91ac5f3c34d58d8098fb01","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added support for managing domains and projects when using Keystone v3."},{"line_number":4,"context_line":"    Horizon now maintains a domain scoped token as well as a project scoped"},{"line_number":5,"context_line":"    token for users who have access to a domain and at least one project."},{"line_number":6,"context_line":"  - |"},{"line_number":7,"context_line":"    Domain management supports the following use cases:"},{"line_number":8,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":103,"id":"5a5ae5dd_24fb23c3","line":5,"range":{"start_line":5,"start_character":48,"end_line":5,"end_character":51},"updated":"2016-02-04 17:26:38.000000000","message":"This might be more correct to say \u0027or\u0027. There is an edge case for a Domain Admin that doesn\u0027t have a role on any projects.","commit_id":"570c8464e12b7077b540be7eaf2f5619f2dc880f"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"bdc406faab4c8c3de7745fe336b908740a2cfe72","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - Added support for managing domains and projects when using Keystone v3."},{"line_number":4,"context_line":"    Horizon now maintains a domain scoped token as well as a project scoped"},{"line_number":5,"context_line":"    token for users who have access to a domain and at least one project."},{"line_number":6,"context_line":"  - |"},{"line_number":7,"context_line":"    Domain management supports the following use cases:"},{"line_number":8,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":103,"id":"5a5ae5dd_93dd48e2","line":5,"range":{"start_line":5,"start_character":48,"end_line":5,"end_character":51},"in_reply_to":"5a5ae5dd_24fb23c3","updated":"2016-02-05 17:56:40.000000000","message":"Done.  I tried to clarify the details of this more in the next PS.","commit_id":"570c8464e12b7077b540be7eaf2f5619f2dc880f"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"5287f8307a805e49ea91ac5f3c34d58d8098fb01","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":103,"id":"5a5ae5dd_049ce767","line":20,"updated":"2016-02-04 17:26:38.000000000","message":"* Also doesn\u0027t support hierarchical projects.","commit_id":"570c8464e12b7077b540be7eaf2f5619f2dc880f"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"bdc406faab4c8c3de7745fe336b908740a2cfe72","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":103,"id":"5a5ae5dd_53e350a4","line":20,"in_reply_to":"5a5ae5dd_049ce767","updated":"2016-02-05 17:56:40.000000000","message":"Done","commit_id":"570c8464e12b7077b540be7eaf2f5619f2dc880f"}],"requirements.txt":[{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"056058def33b93a50649462e01e4649edc04a18e","unresolved":false,"context_lines":[{"line_number":60,"context_line":"XStatic-smart-table\u003e\u003d1.4.5.3  # MIT License"},{"line_number":61,"context_line":"XStatic-Spin\u003e\u003d1.2.5.2  # MIT License"},{"line_number":62,"context_line":"XStatic-term.js\u003e\u003d0.0.4 # MIT License"},{"line_number":63,"context_line":"# Required for memcached backed session"},{"line_number":64,"context_line":"#python-memcached"}],"source_content_type":"text/plain","patch_set":40,"id":"9a80dd14_8b889223","line":63,"updated":"2015-03-12 18:19:35.000000000","message":"I know there are a few patches out that need bigger sessions - I\u0027m not sure you should tie this requirements update explicitly to this patch.","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"2b150aba247cd5f90a2e6d9227904ef788d4e119","unresolved":false,"context_lines":[{"line_number":60,"context_line":"XStatic-smart-table\u003e\u003d1.4.5.3  # MIT License"},{"line_number":61,"context_line":"XStatic-Spin\u003e\u003d1.2.5.2  # MIT License"},{"line_number":62,"context_line":"XStatic-term.js\u003e\u003d0.0.4 # MIT License"},{"line_number":63,"context_line":"# Required for memcached backed session"},{"line_number":64,"context_line":"#python-memcached"}],"source_content_type":"text/plain","patch_set":40,"id":"9a80dd14_26def86d","line":63,"in_reply_to":"9a80dd14_8b889223","updated":"2015-03-12 21:46:13.000000000","message":"agreed, I will remove this. maybe it can just be documented :)","commit_id":"62c11b7bbff77674388f0b7f66e940eb438279f7"}]}
