)]}'
{"openstack_dashboard/api/rest/keystone.py":[{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"46260d3bc359a156757a2a045ad2ae3578f17334","unresolved":false,"context_lines":[{"line_number":88,"context_line":"            name\u003drequest.DATA[\u0027name\u0027],"},{"line_number":89,"context_line":"            email\u003drequest.DATA.get(\u0027email\u0027) or None,"},{"line_number":90,"context_line":"            password\u003drequest.DATA.get(\u0027password\u0027),"},{"line_number":91,"context_line":"            project\u003drequest.DATA.get(\u0027project_id\u0027) or None,"},{"line_number":92,"context_line":"            enabled\u003dTrue,"},{"line_number":93,"context_line":"            domain\u003ddomain.id"},{"line_number":94,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_95511cdb","line":91,"updated":"2015-08-27 17:31:30.000000000","message":"Using\nproject\u003drequest.DATA.get(\u0027project_id\u0027, None) \n\nis possibly better","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"74c61d2100a99ccd9022464b63b0f2c8425b1734","unresolved":false,"context_lines":[{"line_number":88,"context_line":"            name\u003drequest.DATA[\u0027name\u0027],"},{"line_number":89,"context_line":"            email\u003drequest.DATA.get(\u0027email\u0027) or None,"},{"line_number":90,"context_line":"            password\u003drequest.DATA.get(\u0027password\u0027),"},{"line_number":91,"context_line":"            project\u003drequest.DATA.get(\u0027project_id\u0027) or None,"},{"line_number":92,"context_line":"            enabled\u003dTrue,"},{"line_number":93,"context_line":"            domain\u003ddomain.id"},{"line_number":94,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":18,"id":"da20952f_b6b1c691","line":91,"in_reply_to":"da20952f_95511cdb","updated":"2015-08-28 19:05:37.000000000","message":"good suggestion","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/users/actions/create.controller.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"e71a79ebdaa3cf40fdfba37fe152ad9bad39ba95","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    $scope.workflow \u003d workflow;"},{"line_number":60,"context_line":"    $scope.$on(\u0027user\u0027, userEventListener);"},{"line_number":61,"context_line":"    $scope.$on(\u0027projects\u0027, projectsEventListener);"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    init();"},{"line_number":64,"context_line":""}],"source_content_type":"text/javascript","patch_set":11,"id":"3a50d1a3_66497fb7","line":61,"updated":"2015-07-30 06:17:21.000000000","message":"Since the steps are intended to be independent, I think this event could be a little more specific on what happened and maybe a little more event sounding. Maybe \"project.selection\"","commit_id":"b7bbf6a106b63df8f16f76380753395c5355966e"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"0b13a235728abca10bbe12085da775e45f6d37ae","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    $scope.workflow \u003d workflow;"},{"line_number":60,"context_line":"    $scope.$on(\u0027user\u0027, userEventListener);"},{"line_number":61,"context_line":"    $scope.$on(\u0027projects\u0027, projectsEventListener);"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    init();"},{"line_number":64,"context_line":""}],"source_content_type":"text/javascript","patch_set":11,"id":"3a50d1a3_4ccd60b6","line":61,"in_reply_to":"3a50d1a3_66497fb7","updated":"2015-07-30 18:50:56.000000000","message":"yeah, i was thinking of \"identity.users.events.project-selected\"","commit_id":"b7bbf6a106b63df8f16f76380753395c5355966e"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/users/actions/create.wizard.controller.js":[{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"482be390b01c987054666c116a3aa23f4f89fd7e","unresolved":false,"context_lines":[{"line_number":76,"context_line":"    //// core functions ////"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    function init() {"},{"line_number":79,"context_line":"      var deferred \u003d $q.defer();"},{"line_number":80,"context_line":"      var apis \u003d {"},{"line_number":81,"context_line":"        rolelist: keystone.getRoles(),"},{"line_number":82,"context_line":"        rolename: settings.getSetting(\u0027OPENSTACK_KEYSTONE_DEFAULT_ROLE\u0027, \u0027_member_\u0027)"}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_072675ba","line":79,"updated":"2015-08-26 20:53:47.000000000","message":"The deferred variable is unused","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"74c61d2100a99ccd9022464b63b0f2c8425b1734","unresolved":false,"context_lines":[{"line_number":76,"context_line":"    //// core functions ////"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    function init() {"},{"line_number":79,"context_line":"      var deferred \u003d $q.defer();"},{"line_number":80,"context_line":"      var apis \u003d {"},{"line_number":81,"context_line":"        rolelist: keystone.getRoles(),"},{"line_number":82,"context_line":"        rolename: settings.getSetting(\u0027OPENSTACK_KEYSTONE_DEFAULT_ROLE\u0027, \u0027_member_\u0027)"}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_d6ac7a37","line":79,"in_reply_to":"da20952f_072675ba","updated":"2015-08-28 19:05:37.000000000","message":"Done","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"482be390b01c987054666c116a3aa23f4f89fd7e","unresolved":false,"context_lines":[{"line_number":107,"context_line":"      if (ctrl.projects.length \u003d\u003d\u003d 0) { return; }"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"      var ajax \u003d [];"},{"line_number":110,"context_line":"      var deferred \u003d $q.defer();"},{"line_number":111,"context_line":"      angular.forEach(ctrl.projects, function forEach(project) {"},{"line_number":112,"context_line":"        ajax.push(keystone.grantRole(project.id, ctrl.defaultRole.id, ctrl.user.id));"},{"line_number":113,"context_line":"      });"}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_e724a1b0","line":110,"updated":"2015-08-26 20:53:47.000000000","message":"ditto","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"74c61d2100a99ccd9022464b63b0f2c8425b1734","unresolved":false,"context_lines":[{"line_number":107,"context_line":"      if (ctrl.projects.length \u003d\u003d\u003d 0) { return; }"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"      var ajax \u003d [];"},{"line_number":110,"context_line":"      var deferred \u003d $q.defer();"},{"line_number":111,"context_line":"      angular.forEach(ctrl.projects, function forEach(project) {"},{"line_number":112,"context_line":"        ajax.push(keystone.grantRole(project.id, ctrl.defaultRole.id, ctrl.user.id));"},{"line_number":113,"context_line":"      });"}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_96a60252","line":110,"in_reply_to":"da20952f_e724a1b0","updated":"2015-08-28 19:05:37.000000000","message":"Done","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/users/actions/delete.action.service.js":[{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"46260d3bc359a156757a2a045ad2ae3578f17334","unresolved":false,"context_lines":[{"line_number":49,"context_line":"      /* eslint-enable max-len */"},{"line_number":50,"context_line":"      submit: gettext(\u0027Delete user\u0027),"},{"line_number":51,"context_line":"      success: gettext(\u0027Deleted users: %s.\u0027),"},{"line_number":52,"context_line":"      error: gettext(\u0027Deleted users: %s.\u0027)"},{"line_number":53,"context_line":"    };"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    var service \u003d {"}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_701ed664","line":52,"updated":"2015-08-27 17:31:30.000000000","message":"The error message needs to be \"Failed to delete users: %s\".\n\nAlso, the messages needs to be different for single user delete vs batch delete.","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"46260d3bc359a156757a2a045ad2ae3578f17334","unresolved":false,"context_lines":[{"line_number":57,"context_line":"      singleDelete: singleDelete,"},{"line_number":58,"context_line":"      batchDelete: batchDelete"},{"line_number":59,"context_line":"    };"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    return service;"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    //////////////"}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_9047ea4a","line":60,"updated":"2015-08-27 17:31:30.000000000","message":"Can the Single Delete and batch delete be segregated in different services?","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"74c61d2100a99ccd9022464b63b0f2c8425b1734","unresolved":false,"context_lines":[{"line_number":57,"context_line":"      singleDelete: singleDelete,"},{"line_number":58,"context_line":"      batchDelete: batchDelete"},{"line_number":59,"context_line":"    };"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    return service;"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    //////////////"}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_d608fa2f","line":60,"in_reply_to":"da20952f_9047ea4a","updated":"2015-08-28 19:05:37.000000000","message":"I think they are similar enough to put into one for now. If you find that you need two in our own code, you can definitely break it up there.","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/users/actions/edit.wizard.controller.js":[{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"46260d3bc359a156757a2a045ad2ae3578f17334","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    $scope.user \u003d ctrl.user;"},{"line_number":61,"context_line":"    /* eslint-enable angular/ng_controller_as */"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    var editWatch \u003d $scope.$on(events.createdUser, onEditUser);"},{"line_number":64,"context_line":"    var selectWatch \u003d $scope.$on(events.selectedProjects, onEditProjects);"},{"line_number":65,"context_line":"    var destroyWatch \u003d $scope.$on(\u0027$destroy\u0027, destroy);"},{"line_number":66,"context_line":""}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_7056d6d3","line":63,"updated":"2015-08-27 17:31:30.000000000","message":"Why is the service binding to createdUser events?","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"74c61d2100a99ccd9022464b63b0f2c8425b1734","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    $scope.user \u003d ctrl.user;"},{"line_number":61,"context_line":"    /* eslint-enable angular/ng_controller_as */"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    var editWatch \u003d $scope.$on(events.createdUser, onEditUser);"},{"line_number":64,"context_line":"    var selectWatch \u003d $scope.$on(events.selectedProjects, onEditProjects);"},{"line_number":65,"context_line":"    var destroyWatch \u003d $scope.$on(\u0027$destroy\u0027, destroy);"},{"line_number":66,"context_line":""}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_76bfaefb","line":63,"in_reply_to":"da20952f_7056d6d3","updated":"2015-08-28 19:05:37.000000000","message":"not sure i understand your question - this is a controller. we\u0027re using events to propagate things upward through the controllers, much like dom event handling. This allows the parent controller to register to an event in a step and handle it however they want. Because we don\u0027t have to mess with the model directly, the steps are decoupled - giving us more re-usability.","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/users/actions/edit.workflow.service.js":[{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"46260d3bc359a156757a2a045ad2ae3578f17334","unresolved":false,"context_lines":[{"line_number":31,"context_line":"   * @name identity.users.edit.workflow"},{"line_number":32,"context_line":"   * @description A workflow for the edit action."},{"line_number":33,"context_line":"   */"},{"line_number":34,"context_line":"  function workflow(gettext, createWorkflow) {"},{"line_number":35,"context_line":"    var workflow \u003d angular.copy(createWorkflow);"},{"line_number":36,"context_line":"    workflow.title \u003d gettext(\"Edit User\");"},{"line_number":37,"context_line":"    workflow.btnText.finish \u003d gettext(\"Edit User\");"}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_30a29eaf","line":34,"updated":"2015-08-27 17:31:30.000000000","message":"I\u0027m not sure if I like inheriting the \"Edit User Workflow\" from the \"Create User Workflow\". It\u0027ll be a lot more explicit to write this out here vs trying to determine by going to createUser.","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"74c61d2100a99ccd9022464b63b0f2c8425b1734","unresolved":false,"context_lines":[{"line_number":31,"context_line":"   * @name identity.users.edit.workflow"},{"line_number":32,"context_line":"   * @description A workflow for the edit action."},{"line_number":33,"context_line":"   */"},{"line_number":34,"context_line":"  function workflow(gettext, createWorkflow) {"},{"line_number":35,"context_line":"    var workflow \u003d angular.copy(createWorkflow);"},{"line_number":36,"context_line":"    workflow.title \u003d gettext(\"Edit User\");"},{"line_number":37,"context_line":"    workflow.btnText.finish \u003d gettext(\"Edit User\");"}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_76f24ed4","line":34,"in_reply_to":"da20952f_30a29eaf","updated":"2015-08-28 19:05:37.000000000","message":"so while i agree with you that it might be easier to just duplicate the workflow from create, i wanted to do this for 2 reasons: 1, to show others how you can inherit from a workflow, something that would be useful for 3rd party plugins and 2, to reduce code duplication, something others have complained about.","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/users/steps/change-password/change-password.controller.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"46ac8cbdc294de71823c48b0bebcbc69a68e8ec2","unresolved":false,"context_lines":[{"line_number":79,"context_line":""},{"line_number":80,"context_line":"      // automatically log the user out if the user changed his/her own password"},{"line_number":81,"context_line":"      if (ctrl.userSession.id \u003d\u003d\u003d $scope.user.id) {"},{"line_number":82,"context_line":"        $window.location.replace(\u0027/auth/logout\u0027);"},{"line_number":83,"context_line":"      }"},{"line_number":84,"context_line":"    }"},{"line_number":85,"context_line":""}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_9d2128b7","line":82,"updated":"2015-08-28 05:40:31.000000000","message":"Should this be prepended with::\n\n$windowProvider.$get().STATIC_URL\n\nOr make use of logout_url?\n\nSee my comments on these patches:\n\nhttps://review.openstack.org/#/c/203832/\n\nhttps://review.openstack.org/#/c/174550/","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"74c61d2100a99ccd9022464b63b0f2c8425b1734","unresolved":false,"context_lines":[{"line_number":79,"context_line":""},{"line_number":80,"context_line":"      // automatically log the user out if the user changed his/her own password"},{"line_number":81,"context_line":"      if (ctrl.userSession.id \u003d\u003d\u003d $scope.user.id) {"},{"line_number":82,"context_line":"        $window.location.replace(\u0027/auth/logout\u0027);"},{"line_number":83,"context_line":"      }"},{"line_number":84,"context_line":"    }"},{"line_number":85,"context_line":""}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_43f62afa","line":82,"in_reply_to":"da20952f_9d2128b7","updated":"2015-08-28 19:05:37.000000000","message":"ah, great reference!","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/users/steps/select-projects/select-projects.table-columns.html":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"e71a79ebdaa3cf40fdfba37fe152ad9bad39ba95","unresolved":false,"context_lines":[{"line_number":1,"context_line":""},{"line_number":2,"context_line":"\u003ctd class\u003d\"rsp-p1\"\u003e{$ item.name $}\u003c/td\u003e"}],"source_content_type":"text/html","patch_set":11,"id":"3a50d1a3_06619b11","line":2,"updated":"2015-07-30 06:17:21.000000000","message":"Assume WIP in trying to get some reuse?","commit_id":"b7bbf6a106b63df8f16f76380753395c5355966e"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"0b13a235728abca10bbe12085da775e45f6d37ae","unresolved":false,"context_lines":[{"line_number":1,"context_line":""},{"line_number":2,"context_line":"\u003ctd class\u003d\"rsp-p1\"\u003e{$ item.name $}\u003c/td\u003e"}],"source_content_type":"text/html","patch_set":11,"id":"3a50d1a3_4c44801a","line":2,"in_reply_to":"3a50d1a3_06619b11","updated":"2015-07-30 18:50:56.000000000","message":"yeah, depends on whether we will use hz-include or just shove it all into one HTML file.","commit_id":"b7bbf6a106b63df8f16f76380753395c5355966e"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/users/steps/select-projects/select-projects.table-headers.html":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"e71a79ebdaa3cf40fdfba37fe152ad9bad39ba95","unresolved":false,"context_lines":[{"line_number":1,"context_line":""},{"line_number":2,"context_line":"\u003cthead\u003e"},{"line_number":3,"context_line":"  \u003ctr ng-show\u003d\"showSearchBar\"\u003e"},{"line_number":4,"context_line":"    \u003cth class\u003d\"search-header\" colspan\u003d\"9\"\u003e"},{"line_number":5,"context_line":"      \u003chz-search-bar group-classes\u003d\"input-group-sm\" icon-classes\u003d\"fa-search\"\u003e"}],"source_content_type":"text/html","patch_set":11,"id":"3a50d1a3_c66ad3ed","line":2,"updated":"2015-07-30 06:17:21.000000000","message":"Assume WIP in trying to get some reuse?","commit_id":"b7bbf6a106b63df8f16f76380753395c5355966e"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/users/table/table-batch-actions.html":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"c3fb3c71c6835de70b84eb7c5402928197504233","unresolved":false,"context_lines":[{"line_number":20,"context_line":"        action-classes\u003d\"\u0027btn btn-default btn-sm btn-danger\u0027\""},{"line_number":21,"context_line":"        disabled\u003d\"numSelected \u003d\u003d\u003d 0\""},{"line_number":22,"context_line":"        callback\u003d\"table.batchActions.deleted.batchDelete\""},{"line_number":23,"context_line":"        item\u003d\"selected\"\u003e"},{"line_number":24,"context_line":"        \u003ci class\u003d\"fa fa-trash-o\"\u003e\u003c/i\u003e"},{"line_number":25,"context_line":"        \u003ctranslate\u003eDelete User\u003c/translate\u003e"},{"line_number":26,"context_line":"      \u003c/action\u003e"}],"source_content_type":"text/html","patch_set":18,"id":"da20952f_80ac5ca1","line":23,"updated":"2015-08-28 06:31:16.000000000","message":"I think the action directive could have some profiles built in where all of the above inputs (except callback) are set.  So instead of specifying ALL of those, you\u0027d just specify something like:\n\nprofile\u003d\"dangerous-table-action\" and it would set all of the above.  That\u0027s a lot of boilerplate.\n\nThoughts? Could be a follow-on cleanup patch.\n\nSame comments here:\n\nhttps://review.openstack.org/#/c/217422/6/openstack_dashboard/static/app/core/images/table/images-table.html","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"74c61d2100a99ccd9022464b63b0f2c8425b1734","unresolved":false,"context_lines":[{"line_number":20,"context_line":"        action-classes\u003d\"\u0027btn btn-default btn-sm btn-danger\u0027\""},{"line_number":21,"context_line":"        disabled\u003d\"numSelected \u003d\u003d\u003d 0\""},{"line_number":22,"context_line":"        callback\u003d\"table.batchActions.deleted.batchDelete\""},{"line_number":23,"context_line":"        item\u003d\"selected\"\u003e"},{"line_number":24,"context_line":"        \u003ci class\u003d\"fa fa-trash-o\"\u003e\u003c/i\u003e"},{"line_number":25,"context_line":"        \u003ctranslate\u003eDelete User\u003c/translate\u003e"},{"line_number":26,"context_line":"      \u003c/action\u003e"}],"source_content_type":"text/html","patch_set":18,"id":"da20952f_033a72cc","line":23,"in_reply_to":"da20952f_80ac5ca1","updated":"2015-08-28 19:05:37.000000000","message":"The issue is that action has isolated scope (rightly so) and requires that we pass in information. numSelect and selected are both from from the hz-table controller, while table.* comes from the table controller. I\u0027m not sure how you can simplify that since action is not aware of the scope outside of itself.\n\nThe only thing that is customizable would be the css.","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/users/table/table.controller.js":[{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"482be390b01c987054666c116a3aa23f4f89fd7e","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        var index \u003d ctrl.users.map(getId).indexOf(id);"},{"line_number":116,"context_line":"        ctrl.users.splice(index, 1);"},{"line_number":117,"context_line":"      }"},{"line_number":118,"context_line":"    }"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    function destroy() {"},{"line_number":121,"context_line":"      createWatcher();"}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_913f2725","line":118,"updated":"2015-08-26 20:53:47.000000000","message":"Would this snippet work better?\n\n      ctrl.users \u003d ctrl.users.filter(filterDeletedUsers);\n\n      function filterDeletedUsers(user) {\n        return userIds.filter(function(deletedUserId) {\n          return deletedUserId \u003d\u003d user.id;\n        }).length \u003d\u003d 0;\n      }","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"74c61d2100a99ccd9022464b63b0f2c8425b1734","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        var index \u003d ctrl.users.map(getId).indexOf(id);"},{"line_number":116,"context_line":"        ctrl.users.splice(index, 1);"},{"line_number":117,"context_line":"      }"},{"line_number":118,"context_line":"    }"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    function destroy() {"},{"line_number":121,"context_line":"      createWatcher();"}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_16a3d250","line":118,"in_reply_to":"da20952f_913f2725","updated":"2015-08-28 19:05:37.000000000","message":"I\u0027m not sure :P you\u0027re essentially also double looping here to find the items containing the the deleted ids in users (the use of two filter functions). Furthermore, you\u0027re not replacing the items in users either.\n\nWhat I\u0027m doing here is pretty similar, it is also double looping (map and indexOf) to find and splice out deleted users. I think the best way would be to write a manual loop, start from the end and loop backwards while splicing. This is more of a syntactic sugar than for performance :P","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"c3fb3c71c6835de70b84eb7c5402928197504233","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        var index \u003d ctrl.users.map(getId).indexOf(id);"},{"line_number":116,"context_line":"        ctrl.users.splice(index, 1);"},{"line_number":117,"context_line":"      }"},{"line_number":118,"context_line":"    }"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    function destroy() {"},{"line_number":121,"context_line":"      createWatcher();"}],"source_content_type":"text/javascript","patch_set":18,"id":"da20952f_409884c0","line":118,"in_reply_to":"da20952f_913f2725","updated":"2015-08-28 06:31:16.000000000","message":"There is an anonymous functions embedded in the above.  Could probably be more generic and called idFilter.  In fact a whole lot of the onDeleteSuccess could be broken out into a common idFilter service so that every table doesn\u0027t have to copy this code and retest it.","commit_id":"c5d54cc854a2896e591d8a818a1143fdc66c374b"}]}
