)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4264,"name":"Matthias Runge","email":"mrunge@redhat.com","username":"mrunge"},"change_message_id":"75431c2a4a5bf815d10a26999ef1d19f7bacc20e","unresolved":false,"context_lines":[{"line_number":3,"context_line":"AuthorDate: 2015-07-08 09:31:04 +0430"},{"line_number":4,"context_line":"Commit:     hossein zabolzadeh \u003czabolzadeh@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-07-08 06:38:42 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implements: blueprint project-disabling-warning"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Deleting currently logged-in project renders the environment inoperable."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"ba3cc151_2bf7428c","line":6,"updated":"2015-07-08 07:25:47.000000000","message":"You need a commit title other than Implements: blueprint....\n\nAnd that must be the first line of your commit message,","commit_id":"1636e7a94822c5d201a74360e1b65915f4d24795"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"eb781d4017560df4df3bd61abb07ba9478d1a32b","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Restricts user to delete currently logged-in project"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Implements: blueprint project-disabling-warning"},{"line_number":10,"context_line":"Deleting currently logged-in project renders the environment inoperable."},{"line_number":11,"context_line":"This blueprint, restricts this operation."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"ba3cc151_58cfd67e","line":9,"updated":"2015-07-08 18:20:10.000000000","message":"Move this down next paragraph. I think what you\u0027re doing here is more of a bug than a bp.","commit_id":"3e5a5fd9756cba689799f6de1a0069871c6b4b76"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"dc1d57240c02a0bca6c7b6dce51dca4365ffc64e","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Parent:     84aae880 (Merge \"Improving readability for Horizon top module structure\")"},{"line_number":2,"context_line":"Author:     stack \u003czabolzadeh@gmail.com\u003e"},{"line_number":3,"context_line":"AuthorDate: 2015-07-08 09:31:04 +0430"},{"line_number":4,"context_line":"Commit:     hossein zabolzadeh \u003czabolzadeh@gmail.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"ba3cc151_c3714146","line":1,"updated":"2015-07-10 16:56:52.000000000","message":"There\u0027s a 80 char limit on the commit message. also need to move the \"Implements: blueprint\" line after the description (see other patches).","commit_id":"1e0f0323019daef90422babe86c55f36ede3134b"}],"openstack_dashboard/dashboards/identity/projects/tables.py":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"eb781d4017560df4df3bd61abb07ba9478d1a32b","unresolved":false,"context_lines":[{"line_number":161,"context_line":""},{"line_number":162,"context_line":"    def delete(self, request, obj_id):"},{"line_number":163,"context_line":"        # Restrict project owner to delete currently logged-in"},{"line_number":164,"context_line":"        # project, which have destructive effects on horizon UI"},{"line_number":165,"context_line":"        current_project \u003d request.user.project_id"},{"line_number":166,"context_line":"        if obj_id \u003d\u003d current_project:"},{"line_number":167,"context_line":"            messages.warning(request, _(\"You can\u0027t delete your\""}],"source_content_type":"text/x-python","patch_set":7,"id":"ba3cc151_d88f6621","line":164,"updated":"2015-07-08 18:20:10.000000000","message":"Maybe consider rewording to \"Prevents project owner from deleting currently logged-in project\" no need to mention the destructive effects, that should be obvious :P","commit_id":"3e5a5fd9756cba689799f6de1a0069871c6b4b76"},{"author":{"_account_id":9188,"name":"Liang Bo","email":"liang.bo@99cloud.net","username":"LiangBo"},"change_message_id":"8c7921f87b0202fb45ca7a377c7d55b59bb9d7f1","unresolved":false,"context_lines":[{"line_number":16,"context_line":"from django.utils.http import urlencode"},{"line_number":17,"context_line":"from django.utils.translation import ugettext_lazy as _"},{"line_number":18,"context_line":"from django.utils.translation import ungettext_lazy"},{"line_number":19,"context_line":"from horizon import messages"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"from openstack_auth import utils as auth_utils"},{"line_number":22,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_e78022c2","line":19,"updated":"2015-07-10 11:56:51.000000000","message":"put this line after \"from horizon import forms\" would be nicer ;)","commit_id":"86427db230d92981d7d21716364e0954c1ba5189"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"848e5083808db8c025b3bafba5c565cbbf1f05f4","unresolved":false,"context_lines":[{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    policy_rules \u003d ((\"identity\", \"identity:delete_project\"),)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def allowed(self, request, project):"},{"line_number":157,"context_line":"        return api.keystone.keystone_can_edit_project()"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"    def delete(self, request, obj_id):"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_79e7e712","line":156,"updated":"2015-07-11 04:56:41.000000000","message":"I\u0027m not sure you\u0027d want to but I think hide the button if the project \u003d\u003d request.user.project_id.","commit_id":"b203f5e683d7f0843e71a9e04de6e5d376ae334e"},{"author":{"_account_id":4264,"name":"Matthias Runge","email":"mrunge@redhat.com","username":"mrunge"},"change_message_id":"10a9530884a7556a78e92c7657a5351cfc8bb9d3","unresolved":false,"context_lines":[{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    policy_rules \u003d ((\"identity\", \"identity:delete_project\"),)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def allowed(self, request, project):"},{"line_number":157,"context_line":"        return api.keystone.keystone_can_edit_project()"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"    def delete(self, request, obj_id):"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_e989c0cb","line":156,"in_reply_to":"9a41bdd9_79028740","updated":"2015-07-13 07:12:47.000000000","message":"I like the suggestion to hide the button, if it leads to issues. Nevertheless you need to have the check there, too.","commit_id":"b203f5e683d7f0843e71a9e04de6e5d376ae334e"},{"author":{"_account_id":13641,"name":"hossein zabolzadeh","email":"zabolzadeh@gmail.com","username":"mzoorikh"},"change_message_id":"6e524e70b16f105534abc49c5235cfb3f8ed0204","unresolved":false,"context_lines":[{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    policy_rules \u003d ((\"identity\", \"identity:delete_project\"),)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def allowed(self, request, project):"},{"line_number":157,"context_line":"        return api.keystone.keystone_can_edit_project()"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"    def delete(self, request, obj_id):"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_79028740","line":156,"in_reply_to":"9a41bdd9_79e7e712","updated":"2015-07-11 07:37:46.000000000","message":"Thanks for your suggestion. But hiding this button leaves a question unanswered on user\u0027s mind: \"Why I can not delete this project?\". Also in delete batch action, its need to pop a warning message and must be handled in delete action.","commit_id":"b203f5e683d7f0843e71a9e04de6e5d376ae334e"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"4f2b9a21f1c9fe5727a5f3bbf03c6ade1997b9b7","unresolved":false,"context_lines":[{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    policy_rules \u003d ((\"identity\", \"identity:delete_project\"),)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def allowed(self, request, project):"},{"line_number":157,"context_line":"        return api.keystone.keystone_can_edit_project()"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"    def delete(self, request, obj_id):"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_d9653cb5","line":156,"in_reply_to":"9a41bdd9_835507fb","updated":"2015-07-14 23:40:34.000000000","message":"I\u0027m ok with #2, your original implementation :)","commit_id":"b203f5e683d7f0843e71a9e04de6e5d376ae334e"},{"author":{"_account_id":13641,"name":"hossein zabolzadeh","email":"zabolzadeh@gmail.com","username":"mzoorikh"},"change_message_id":"07d5debef7a13783cc4092e20e857387b0a429c9","unresolved":false,"context_lines":[{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    policy_rules \u003d ((\"identity\", \"identity:delete_project\"),)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def allowed(self, request, project):"},{"line_number":157,"context_line":"        return api.keystone.keystone_can_edit_project()"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"    def delete(self, request, obj_id):"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_13afca7d","line":156,"in_reply_to":"9a41bdd9_d9653cb5","updated":"2015-07-25 18:48:56.000000000","message":"What do you think Matthias Runge?","commit_id":"b203f5e683d7f0843e71a9e04de6e5d376ae334e"},{"author":{"_account_id":13641,"name":"hossein zabolzadeh","email":"zabolzadeh@gmail.com","username":"mzoorikh"},"change_message_id":"e46774a7cc6cf2c365b895d404f43689b7d7c6fb","unresolved":false,"context_lines":[{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    policy_rules \u003d ((\"identity\", \"identity:delete_project\"),)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def allowed(self, request, project):"},{"line_number":157,"context_line":"        return api.keystone.keystone_can_edit_project()"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"    def delete(self, request, obj_id):"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_835507fb","line":156,"in_reply_to":"9a41bdd9_e989c0cb","updated":"2015-07-14 22:41:14.000000000","message":"If I hide delete button, then user does not have permision to delete current project, so when he/she uses batch delete action, then \u0027You are not allowed to delete project: \u0027 error message is shown that in this case the warning message I wrote \u0027Deleting the current project is not permitted\u0027 is not shown. This is an issue in hiding the button.\n\nPlease decide which way to go:\n1- Hide delete button, and show error message(You are not allowed to delete project) to user when he deletes the current project via batch delete action:\n2- Show delete button, but warn user with this warning message: \u0027Deleting the current project is not permitted\u0027.\n\nI select way #2. What is your opinion?","commit_id":"b203f5e683d7f0843e71a9e04de6e5d376ae334e"},{"author":{"_account_id":13641,"name":"hossein zabolzadeh","email":"zabolzadeh@gmail.com","username":"mzoorikh"},"change_message_id":"8a6da3b1d7bb97482482b141976ebcea4b938045","unresolved":false,"context_lines":[{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    policy_rules \u003d ((\"identity\", \"identity:delete_project\"),)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def allowed(self, request, project):"},{"line_number":157,"context_line":"        return api.keystone.keystone_can_edit_project()"},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"    def delete(self, request, obj_id):"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_6be33a34","line":156,"in_reply_to":"9a41bdd9_e989c0cb","updated":"2015-07-13 20:52:36.000000000","message":"Thanks mRunge for your comments.\nI am currently working on the followings:\n1- Hide the button\n2- Change the message to \"Deleting the current project is not permitted.\"","commit_id":"b203f5e683d7f0843e71a9e04de6e5d376ae334e"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"848e5083808db8c025b3bafba5c565cbbf1f05f4","unresolved":false,"context_lines":[{"line_number":162,"context_line":"        current_project \u003d request.user.project_id"},{"line_number":163,"context_line":"        if obj_id \u003d\u003d current_project:"},{"line_number":164,"context_line":"            messages.warning(request, _(\"You can\u0027t delete your \""},{"line_number":165,"context_line":"                                        \"currently logged-in project\"))"},{"line_number":166,"context_line":"            raise exceptions.RecoverableError(self)"},{"line_number":167,"context_line":"        else:"},{"line_number":168,"context_line":"            api.keystone.tenant_delete(request, obj_id)"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_f90457c7","line":165,"updated":"2015-07-11 04:56:41.000000000","message":"The message might read better like this? \n\n\"Deleting the current project is not permitted.\"","commit_id":"b203f5e683d7f0843e71a9e04de6e5d376ae334e"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"c467c2ebe35aa70e82d21fa65b90cedfc8ace238","unresolved":false,"context_lines":[{"line_number":162,"context_line":"        current_project \u003d request.user.project_id"},{"line_number":163,"context_line":"        if obj_id \u003d\u003d current_project:"},{"line_number":164,"context_line":"            messages.warning(request, _(\"You can\u0027t delete your \""},{"line_number":165,"context_line":"                                        \"currently logged-in project\"))"},{"line_number":166,"context_line":"            raise exceptions.RecoverableError(self)"},{"line_number":167,"context_line":"        else:"},{"line_number":168,"context_line":"            api.keystone.tenant_delete(request, obj_id)"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_962c239a","line":165,"in_reply_to":"9a41bdd9_09d984f3","updated":"2015-07-15 22:55:33.000000000","message":"Why is this not just a danger action? that pops up a confirmation dialog when used?  I may actually want to delete my own project depending on my environment.  E.g., I am done clouding, it\u0027s too hard :)","commit_id":"b203f5e683d7f0843e71a9e04de6e5d376ae334e"},{"author":{"_account_id":13641,"name":"hossein zabolzadeh","email":"zabolzadeh@gmail.com","username":"mzoorikh"},"change_message_id":"07d5debef7a13783cc4092e20e857387b0a429c9","unresolved":false,"context_lines":[{"line_number":162,"context_line":"        current_project \u003d request.user.project_id"},{"line_number":163,"context_line":"        if obj_id \u003d\u003d current_project:"},{"line_number":164,"context_line":"            messages.warning(request, _(\"You can\u0027t delete your \""},{"line_number":165,"context_line":"                                        \"currently logged-in project\"))"},{"line_number":166,"context_line":"            raise exceptions.RecoverableError(self)"},{"line_number":167,"context_line":"        else:"},{"line_number":168,"context_line":"            api.keystone.tenant_delete(request, obj_id)"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_e284bfd3","line":165,"in_reply_to":"9a41bdd9_962c239a","updated":"2015-07-25 18:48:56.000000000","message":"@David:\nConsider this sutation: When an administrator, inadvertently delete \"admin\" project, via batch delete action, he clicks on the \"yes\" button at confirmation dialog with full consent. But the dashboard environment goes unstable after delete action. How he can recover his project in this case? Also he hadn\u0027t access over controller machine in order to create an admin project via CLI. What about this case?","commit_id":"b203f5e683d7f0843e71a9e04de6e5d376ae334e"},{"author":{"_account_id":13641,"name":"hossein zabolzadeh","email":"zabolzadeh@gmail.com","username":"mzoorikh"},"change_message_id":"6e524e70b16f105534abc49c5235cfb3f8ed0204","unresolved":false,"context_lines":[{"line_number":162,"context_line":"        current_project \u003d request.user.project_id"},{"line_number":163,"context_line":"        if obj_id \u003d\u003d current_project:"},{"line_number":164,"context_line":"            messages.warning(request, _(\"You can\u0027t delete your \""},{"line_number":165,"context_line":"                                        \"currently logged-in project\"))"},{"line_number":166,"context_line":"            raise exceptions.RecoverableError(self)"},{"line_number":167,"context_line":"        else:"},{"line_number":168,"context_line":"            api.keystone.tenant_delete(request, obj_id)"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_7977e7d4","line":165,"in_reply_to":"9a41bdd9_f90457c7","updated":"2015-07-11 07:37:46.000000000","message":"Again thanks for your comments. I have some feedbacks from openstack users that \"current project\" term doesn\u0027t give a good sense and they didn\u0027t know what project it refered to. But \"Currently logged-in project\" is more better and meaningful.","commit_id":"b203f5e683d7f0843e71a9e04de6e5d376ae334e"},{"author":{"_account_id":4264,"name":"Matthias Runge","email":"mrunge@redhat.com","username":"mrunge"},"change_message_id":"10a9530884a7556a78e92c7657a5351cfc8bb9d3","unresolved":false,"context_lines":[{"line_number":162,"context_line":"        current_project \u003d request.user.project_id"},{"line_number":163,"context_line":"        if obj_id \u003d\u003d current_project:"},{"line_number":164,"context_line":"            messages.warning(request, _(\"You can\u0027t delete your \""},{"line_number":165,"context_line":"                                        \"currently logged-in project\"))"},{"line_number":166,"context_line":"            raise exceptions.RecoverableError(self)"},{"line_number":167,"context_line":"        else:"},{"line_number":168,"context_line":"            api.keystone.tenant_delete(request, obj_id)"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_09d984f3","line":165,"in_reply_to":"9a41bdd9_f90457c7","updated":"2015-07-13 07:12:47.000000000","message":"Hmm, it is actually permitted, but leads to *interesting results*-","commit_id":"b203f5e683d7f0843e71a9e04de6e5d376ae334e"}],"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":"848e5083808db8c025b3bafba5c565cbbf1f05f4","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        self.assertEqual(list(res.context[\u0027messages\u0027])[0].message,"},{"line_number":106,"context_line":"                         u\"You can\u0027t delete your \""},{"line_number":107,"context_line":"                         u\"currently logged-in project\")"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"class ProjectsViewNonAdminTests(test.TestCase):"},{"line_number":111,"context_line":"    @override_settings(POLICY_CHECK_FUNCTION\u003dpolicy_backend.check)"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_f9b9b7ed","line":108,"updated":"2015-07-11 04:56:41.000000000","message":"Message could change here too.","commit_id":"b203f5e683d7f0843e71a9e04de6e5d376ae334e"},{"author":{"_account_id":13641,"name":"hossein zabolzadeh","email":"zabolzadeh@gmail.com","username":"mzoorikh"},"change_message_id":"6e524e70b16f105534abc49c5235cfb3f8ed0204","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        self.assertEqual(list(res.context[\u0027messages\u0027])[0].message,"},{"line_number":106,"context_line":"                         u\"You can\u0027t delete your \""},{"line_number":107,"context_line":"                         u\"currently logged-in project\")"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"class ProjectsViewNonAdminTests(test.TestCase):"},{"line_number":111,"context_line":"    @override_settings(POLICY_CHECK_FUNCTION\u003dpolicy_backend.check)"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a41bdd9_597ea3af","line":108,"in_reply_to":"9a41bdd9_f9b9b7ed","updated":"2015-07-11 07:37:46.000000000","message":"See my previous comment at tables.py.","commit_id":"b203f5e683d7f0843e71a9e04de6e5d376ae334e"}]}
