)]}'
{"openstack_dashboard/dashboards/identity/static/dashboard/identity/projects/projects.scss":[{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"f393328d150741d71dfcf796abc1dd5055e9e399","unresolved":false,"context_lines":[{"line_number":1,"context_line":"table[ng-controller\u003d\"IdentityProjectsTableController as tableCtrl\"] {"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"  .detail-expanded .row {"},{"line_number":4,"context_line":"    background: none;"},{"line_number":5,"context_line":"    padding-left: 2em;"},{"line_number":6,"context_line":"  }"},{"line_number":7,"context_line":"}"}],"source_content_type":"text/x-scss","patch_set":17,"id":"fa80f949_d8b1a102","line":4,"updated":"2015-11-06 16:56:37.000000000","message":"Pull this value from the theme in _variables.scss","commit_id":"eb4fd0ac4f7fa673586f929bd600b6901104faa0"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/projects/table/projects-table-footer.html":[{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"4c5a2d48763f7262e4faec420b2fa6c03ceda558","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  and navigation controls."},{"line_number":4,"context_line":"--\u003e"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"\u003ctd colspan\u003d\"100\"\u003e"},{"line_number":7,"context_line":"  \u003cspan class\u003d\"display\"\u003e{$ tableCtrl.displayedProjects.length | itemCount $}\u003c/span\u003e"},{"line_number":8,"context_line":"  \u003cdiv st-pagination\u003d\"\" st-items-per-page\u003d\"10\" st-displayed-pages\u003d\"10\"\u003e\u003c/div\u003e"},{"line_number":9,"context_line":"\u003c/td\u003e"}],"source_content_type":"text/html","patch_set":10,"id":"9a1a9d01_71807c8b","line":6,"updated":"2015-09-30 18:33:08.000000000","message":"After combining the table fragments (as mentioned by Thai), we can use: \n\n\u003ctfoot hz-table-footer items\u003d\"table.iusers\"\u003e\u003c/tfoot\u003e \n\nhttps://review.openstack.org/#/c/207631/","commit_id":"5365b2589def4d4f28d62eb87e0aa9c37b4251c3"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/projects/table/projects-table.controller.js":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"e338798679f2dc9c4d892c51d0068d8b849c8c35","unresolved":false,"context_lines":[{"line_number":16,"context_line":"  \u0027use strict\u0027;"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"  /**"},{"line_number":19,"context_line":"   * @ngdoc IdentityProjectsTableController"},{"line_number":20,"context_line":"   * @ng-controller"},{"line_number":21,"context_line":"   * @description"},{"line_number":22,"context_line":"   * Controller for the Identity Projects table."}],"source_content_type":"text/javascript","patch_set":7,"id":"1a4dcd0f_ac9a4f12","line":19,"updated":"2015-08-12 15:56:35.000000000","message":"should be\n  @ndoc controller\n  @name IdentityProjectsTableController","commit_id":"50bc6171b671b05458a0447a70b301b7805d81f6"},{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"4d9f9d0eafca0c1b6f7362a4c2ea179f72defaa7","unresolved":false,"context_lines":[{"line_number":16,"context_line":"  \u0027use strict\u0027;"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"  /**"},{"line_number":19,"context_line":"   * @ngdoc IdentityProjectsTableController"},{"line_number":20,"context_line":"   * @ng-controller"},{"line_number":21,"context_line":"   * @description"},{"line_number":22,"context_line":"   * Controller for the Identity Projects table."}],"source_content_type":"text/javascript","patch_set":7,"id":"1a4dcd0f_2dd10f30","line":19,"in_reply_to":"1a4dcd0f_ac9a4f12","updated":"2015-08-13 21:42:53.000000000","message":"Done","commit_id":"50bc6171b671b05458a0447a70b301b7805d81f6"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"e338798679f2dc9c4d892c51d0068d8b849c8c35","unresolved":false,"context_lines":[{"line_number":81,"context_line":"    function userSessionSuccess(response) {"},{"line_number":82,"context_line":"      var rules \u003d {rules: [[\u0027identity\u0027, \u0027identity:list_user_projects\u0027]]};"},{"line_number":83,"context_line":"      ctrl.userSession \u003d response.data;"},{"line_number":84,"context_line":"      policy.check(rules).then(policyListUserProjectsSuccess);"},{"line_number":85,"context_line":"    }"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    // Attemps to list projects from the currently authenticated user"}],"source_content_type":"text/javascript","patch_set":7,"id":"1a4dcd0f_37c8c854","line":84,"updated":"2015-08-12 15:56:35.000000000","message":"You do not need to get user session before checking policy, the policy API uses the session on the python side to figure out who you are. I think policy check should be the first thing you do. Refer to this example: https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/identity/static/dashboard/identity/users/table/table.controller.js#L57","commit_id":"50bc6171b671b05458a0447a70b301b7805d81f6"},{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"4d9f9d0eafca0c1b6f7362a4c2ea179f72defaa7","unresolved":false,"context_lines":[{"line_number":81,"context_line":"    function userSessionSuccess(response) {"},{"line_number":82,"context_line":"      var rules \u003d {rules: [[\u0027identity\u0027, \u0027identity:list_user_projects\u0027]]};"},{"line_number":83,"context_line":"      ctrl.userSession \u003d response.data;"},{"line_number":84,"context_line":"      policy.check(rules).then(policyListUserProjectsSuccess);"},{"line_number":85,"context_line":"    }"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    // Attemps to list projects from the currently authenticated user"}],"source_content_type":"text/javascript","patch_set":7,"id":"1a4dcd0f_8d15c3e6","line":84,"in_reply_to":"1a4dcd0f_37c8c854","updated":"2015-08-13 21:42:53.000000000","message":"yeah,  I actually get the user session before checking policy because the user id is needed for retrieving the user\u0027s projects.","commit_id":"50bc6171b671b05458a0447a70b301b7805d81f6"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"e338798679f2dc9c4d892c51d0068d8b849c8c35","unresolved":false,"context_lines":[{"line_number":88,"context_line":"    function policyListUserProjectsSuccess(response) {"},{"line_number":89,"context_line":"      if (response.data.allowed) {"},{"line_number":90,"context_line":"        var params \u003d {user_id: ctrl.userSession.id, admin: false};"},{"line_number":91,"context_line":"        keystone.getProjects(params).then(listUserProjectsSuccess);"},{"line_number":92,"context_line":"      } else {"},{"line_number":93,"context_line":"        var msg \u003d gettext(\u0027Insufficient privilege level to view project information.\u0027);"},{"line_number":94,"context_line":"        toast.add(\u0027info\u0027, msg);"}],"source_content_type":"text/javascript","patch_set":7,"id":"1a4dcd0f_77b73085","line":91,"updated":"2015-08-12 15:56:35.000000000","message":"You can batch these ajax calls into one using $q after your policy check, but keep the handlers as separate functions. \n\nexample:\n  var deferred \u003d $q.defer();\n  var apis \u003d { roles:keystoneAPI.getRoles(), session:keystoneAPI.getCurrentUserSession() };\n  $q.all(apis).then(function success(response){\n    roleHandler(response.roles);\n    sessionHandler(response.session);\n  });\n\nTake a look at the init method in https://review.openstack.org/#/c/202315/12/openstack_dashboard/dashboards/identity/static/dashboard/identity/users/actions/create.controller.js for another example.","commit_id":"50bc6171b671b05458a0447a70b301b7805d81f6"},{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"4d9f9d0eafca0c1b6f7362a4c2ea179f72defaa7","unresolved":false,"context_lines":[{"line_number":88,"context_line":"    function policyListUserProjectsSuccess(response) {"},{"line_number":89,"context_line":"      if (response.data.allowed) {"},{"line_number":90,"context_line":"        var params \u003d {user_id: ctrl.userSession.id, admin: false};"},{"line_number":91,"context_line":"        keystone.getProjects(params).then(listUserProjectsSuccess);"},{"line_number":92,"context_line":"      } else {"},{"line_number":93,"context_line":"        var msg \u003d gettext(\u0027Insufficient privilege level to view project information.\u0027);"},{"line_number":94,"context_line":"        toast.add(\u0027info\u0027, msg);"}],"source_content_type":"text/javascript","patch_set":7,"id":"1a4dcd0f_ade51f0b","line":91,"in_reply_to":"1a4dcd0f_77b73085","updated":"2015-08-13 21:42:53.000000000","message":"that\u0027s cool, thanks!","commit_id":"50bc6171b671b05458a0447a70b301b7805d81f6"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"4c5a2d48763f7262e4faec420b2fa6c03ceda558","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    }"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"    function setKeystoneV3Enabled(response) {"},{"line_number":75,"context_line":"      if (response.data.version \u003e\u003d 3) {"},{"line_number":76,"context_line":"        ctrl.keystoneV3Enabled \u003d true;"},{"line_number":77,"context_line":"      }"},{"line_number":78,"context_line":"    }"}],"source_content_type":"text/javascript","patch_set":10,"id":"9a1a9d01_511e9870","line":75,"updated":"2015-09-30 18:33:08.000000000","message":"we also have a REST call that get the keystone version. :)","commit_id":"5365b2589def4d4f28d62eb87e0aa9c37b4251c3"},{"author":{"_account_id":6763,"name":"jingliuqing","email":"jing.liuqing@99cloud.net","username":"jing"},"change_message_id":"4c678f56413500a4edd0be6cefc0eb25702ab4f8","unresolved":false,"context_lines":[{"line_number":80,"context_line":"      ctrl.userSession \u003d response.data;"},{"line_number":81,"context_line":"    }"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    // Attemps to get projects from the currently authenticated user"},{"line_number":84,"context_line":"    function getProjects(response) {"},{"line_number":85,"context_line":"      if (response.data.allowed) {"},{"line_number":86,"context_line":"        var params \u003d {user_id: ctrl.userSession.id, admin: false};"}],"source_content_type":"text/javascript","patch_set":13,"id":"5a2ca52d_cc48a130","line":83,"updated":"2015-10-13 15:03:56.000000000","message":"current","commit_id":"89c7017b8600258ca87403a88cfdc05e3e23e248"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"4a2dca8083356ab0e1a8bc2e7e96ac3651351618","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    ////////////////////////////////"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    function init() {"},{"line_number":52,"context_line":"      var deferred \u003d $q.defer();"},{"line_number":53,"context_line":"      var rules \u003d {rules: [[\u0027identity\u0027, \u0027identity:list_user_projects\u0027]]};"},{"line_number":54,"context_line":"      var calls \u003d {"},{"line_number":55,"context_line":"        keystone: keystone.getVersion(),"}],"source_content_type":"text/javascript","patch_set":15,"id":"1a26ad4f_204eb196","line":52,"updated":"2015-10-29 22:28:07.000000000","message":"Unused variable","commit_id":"b4797f9d3b6dac1606e3854caf78178946f77ac3"},{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"96597d6b5db525d0b266d40f820b9f8d4e315edd","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    ////////////////////////////////"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    function init() {"},{"line_number":52,"context_line":"      var deferred \u003d $q.defer();"},{"line_number":53,"context_line":"      var rules \u003d {rules: [[\u0027identity\u0027, \u0027identity:list_user_projects\u0027]]};"},{"line_number":54,"context_line":"      var calls \u003d {"},{"line_number":55,"context_line":"        keystone: keystone.getVersion(),"}],"source_content_type":"text/javascript","patch_set":15,"id":"fa80f949_7bd77e23","line":52,"in_reply_to":"1a26ad4f_204eb196","updated":"2015-11-05 20:30:12.000000000","message":"Done","commit_id":"b4797f9d3b6dac1606e3854caf78178946f77ac3"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"4a2dca8083356ab0e1a8bc2e7e96ac3651351618","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        session: keystone.getCurrentUserSession()"},{"line_number":58,"context_line":"      };"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"      $q.all(calls).then(initCallsSuccess);"},{"line_number":61,"context_line":"    }"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    function initCallsSuccess(response) {"}],"source_content_type":"text/javascript","patch_set":15,"id":"1a26ad4f_8026a5cc","line":60,"updated":"2015-10-29 22:28:07.000000000","message":"I don\u0027t think you need all the 3 calls chained with $q as they serve different areas in the UI.","commit_id":"b4797f9d3b6dac1606e3854caf78178946f77ac3"},{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"96597d6b5db525d0b266d40f820b9f8d4e315edd","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        session: keystone.getCurrentUserSession()"},{"line_number":58,"context_line":"      };"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"      $q.all(calls).then(initCallsSuccess);"},{"line_number":61,"context_line":"    }"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    function initCallsSuccess(response) {"}],"source_content_type":"text/javascript","patch_set":15,"id":"fa80f949_9bf3429e","line":60,"in_reply_to":"1a26ad4f_8026a5cc","updated":"2015-11-05 20:30:12.000000000","message":"actually, this was a suggestion of Thai\u0027s from an earlier revision (https://review.openstack.org/#/c/199567/7/openstack_dashboard/dashboards/identity/static/dashboard/identity/projects/table/projects-table.controller.js) and I think it makes sense since all of these calls need to be resolved for the panel index view to work properly.\n\nalso, it seems that angular batch requests are kind of a concern: https://etherpad.openstack.org/p/mitaka-horizon-priorities ;-)","commit_id":"b4797f9d3b6dac1606e3854caf78178946f77ac3"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"4a2dca8083356ab0e1a8bc2e7e96ac3651351618","unresolved":false,"context_lines":[{"line_number":63,"context_line":"    function initCallsSuccess(response) {"},{"line_number":64,"context_line":"      setKeystoneV3Enabled(response.keystone);"},{"line_number":65,"context_line":"      setUserSession(response.session);"},{"line_number":66,"context_line":"      getProjects(response.policy);"},{"line_number":67,"context_line":"    }"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    function setKeystoneV3Enabled(response) {"}],"source_content_type":"text/javascript","patch_set":15,"id":"1a26ad4f_6054a920","line":66,"updated":"2015-10-29 22:28:07.000000000","message":"The project fetch based on the policy check is confusing and leads to a call for getting User Projects only to be discarded if the User is allowed all projects.\n\nMaybe you could check the both the policies upfront and then only make the appropriate call and assign ctrl.projects.\n\nThat way you can also possibly get rid of the ctrl.userProjects","commit_id":"b4797f9d3b6dac1606e3854caf78178946f77ac3"},{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"96597d6b5db525d0b266d40f820b9f8d4e315edd","unresolved":false,"context_lines":[{"line_number":63,"context_line":"    function initCallsSuccess(response) {"},{"line_number":64,"context_line":"      setKeystoneV3Enabled(response.keystone);"},{"line_number":65,"context_line":"      setUserSession(response.session);"},{"line_number":66,"context_line":"      getProjects(response.policy);"},{"line_number":67,"context_line":"    }"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    function setKeystoneV3Enabled(response) {"}],"source_content_type":"text/javascript","patch_set":15,"id":"fa80f949_1bd2f2d2","line":66,"in_reply_to":"1a26ad4f_6054a920","updated":"2015-11-05 20:30:12.000000000","message":"I was cheating a little bit here because the user projects will be needed for the panel workflows, but I\u0027m removing this for now based on your suggestion ^^","commit_id":"b4797f9d3b6dac1606e3854caf78178946f77ac3"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"4a2dca8083356ab0e1a8bc2e7e96ac3651351618","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        keystone.getProjects(params).then(setUserProjects);"},{"line_number":83,"context_line":"      } else {"},{"line_number":84,"context_line":"        var msg \u003d gettext(\u0027Insufficient privilege level to view project information.\u0027);"},{"line_number":85,"context_line":"        toast.add(\u0027info\u0027, msg);"},{"line_number":86,"context_line":"      }"},{"line_number":87,"context_line":"    }"},{"line_number":88,"context_line":""}],"source_content_type":"text/javascript","patch_set":15,"id":"1a26ad4f_203551f6","line":85,"updated":"2015-10-29 22:28:07.000000000","message":"Is there a warn in toast?","commit_id":"b4797f9d3b6dac1606e3854caf78178946f77ac3"},{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"96597d6b5db525d0b266d40f820b9f8d4e315edd","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        keystone.getProjects(params).then(setUserProjects);"},{"line_number":83,"context_line":"      } else {"},{"line_number":84,"context_line":"        var msg \u003d gettext(\u0027Insufficient privilege level to view project information.\u0027);"},{"line_number":85,"context_line":"        toast.add(\u0027info\u0027, msg);"},{"line_number":86,"context_line":"      }"},{"line_number":87,"context_line":"    }"},{"line_number":88,"context_line":""}],"source_content_type":"text/javascript","patch_set":15,"id":"fa80f949_5bbdda66","line":85,"in_reply_to":"1a26ad4f_203551f6","updated":"2015-11-05 20:30:12.000000000","message":"yes, there is: https://github.com/openstack/horizon/blob/master/horizon/static/framework/widgets/toast/toast.service.js#L56\n\ni\u0027m using \u0027info\u0027 for consistency. please, refer to https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/identity/projects/views.py#L108","commit_id":"b4797f9d3b6dac1606e3854caf78178946f77ac3"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"4a2dca8083356ab0e1a8bc2e7e96ac3651351618","unresolved":false,"context_lines":[{"line_number":96,"context_line":"      if (response.data.allowed) {"},{"line_number":97,"context_line":"        keystone.getProjects().then(listAllProjects);"},{"line_number":98,"context_line":"      } else {"},{"line_number":99,"context_line":"        ctrl.projects \u003d ctrl.userProjects;"},{"line_number":100,"context_line":"      }"},{"line_number":101,"context_line":"    }"},{"line_number":102,"context_line":""}],"source_content_type":"text/javascript","patch_set":15,"id":"1a26ad4f_00eff587","line":99,"updated":"2015-10-29 22:28:07.000000000","message":"the Else part of the if clause isn\u0027t tested.","commit_id":"b4797f9d3b6dac1606e3854caf78178946f77ac3"},{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"96597d6b5db525d0b266d40f820b9f8d4e315edd","unresolved":false,"context_lines":[{"line_number":96,"context_line":"      if (response.data.allowed) {"},{"line_number":97,"context_line":"        keystone.getProjects().then(listAllProjects);"},{"line_number":98,"context_line":"      } else {"},{"line_number":99,"context_line":"        ctrl.projects \u003d ctrl.userProjects;"},{"line_number":100,"context_line":"      }"},{"line_number":101,"context_line":"    }"},{"line_number":102,"context_line":""}],"source_content_type":"text/javascript","patch_set":15,"id":"fa80f949_7bc0dee0","line":99,"in_reply_to":"1a26ad4f_00eff587","updated":"2015-11-05 20:30:12.000000000","message":"Done","commit_id":"b4797f9d3b6dac1606e3854caf78178946f77ac3"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/projects/table/projects-table.html":[{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"4a2dca8083356ab0e1a8bc2e7e96ac3651351618","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"      \u003ctd class\u003d\"rsp-p1\"\u003e{$ project.name $}\u003c/td\u003e"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"      \u003ctd class\u003d\"rsp-p2\"\u003e{$ project.description || \u0027-\u0027 $}\u003c/td\u003e"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"      \u003ctd class\u003d\"rsp-p1\"\u003e{$ project.id $}\u003c/td\u003e"},{"line_number":52,"context_line":""}],"source_content_type":"text/html","patch_set":15,"id":"1a26ad4f_608fc9cc","line":49,"updated":"2015-10-29 22:28:07.000000000","message":"Could you instead use the noValue filter?","commit_id":"b4797f9d3b6dac1606e3854caf78178946f77ac3"},{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"96597d6b5db525d0b266d40f820b9f8d4e315edd","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"      \u003ctd class\u003d\"rsp-p1\"\u003e{$ project.name $}\u003c/td\u003e"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"      \u003ctd class\u003d\"rsp-p2\"\u003e{$ project.description || \u0027-\u0027 $}\u003c/td\u003e"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"      \u003ctd class\u003d\"rsp-p1\"\u003e{$ project.id $}\u003c/td\u003e"},{"line_number":52,"context_line":""}],"source_content_type":"text/html","patch_set":15,"id":"fa80f949_3bba566f","line":49,"in_reply_to":"1a26ad4f_608fc9cc","updated":"2015-11-05 20:30:12.000000000","message":"Done","commit_id":"b4797f9d3b6dac1606e3854caf78178946f77ac3"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"4a2dca8083356ab0e1a8bc2e7e96ac3651351618","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        \u003cdiv class\u003d\"row\"\u003e"},{"line_number":62,"context_line":"          \u003cspan class\u003d\"rsp-alt-2\"\u003e"},{"line_number":63,"context_line":"            \u003cdl class\u003d\"col-md-2\""},{"line_number":64,"context_line":"                ng-if\u003d\"tableCtrl.keystoneV3Enabled \u0026\u0026 tableCtrl.userSession.is_superuser\"\u003e"},{"line_number":65,"context_line":"                \u003cdt translate\u003eDomain ID\u003c/dt\u003e"},{"line_number":66,"context_line":"                \u003cdd\u003e{$ project.domain_id $}\u003c/dd\u003e"},{"line_number":67,"context_line":"            \u003c/dl\u003e"}],"source_content_type":"text/html","patch_set":15,"id":"1a26ad4f_607d89b0","line":64,"updated":"2015-10-29 22:28:07.000000000","message":"The condition uses a boolean and a variable check on an object.\n\nMight be better to abstract the details to a single controller method or express both conditions here.","commit_id":"b4797f9d3b6dac1606e3854caf78178946f77ac3"},{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"96597d6b5db525d0b266d40f820b9f8d4e315edd","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        \u003cdiv class\u003d\"row\"\u003e"},{"line_number":62,"context_line":"          \u003cspan class\u003d\"rsp-alt-2\"\u003e"},{"line_number":63,"context_line":"            \u003cdl class\u003d\"col-md-2\""},{"line_number":64,"context_line":"                ng-if\u003d\"tableCtrl.keystoneV3Enabled \u0026\u0026 tableCtrl.userSession.is_superuser\"\u003e"},{"line_number":65,"context_line":"                \u003cdt translate\u003eDomain ID\u003c/dt\u003e"},{"line_number":66,"context_line":"                \u003cdd\u003e{$ project.domain_id $}\u003c/dd\u003e"},{"line_number":67,"context_line":"            \u003c/dl\u003e"}],"source_content_type":"text/html","patch_set":15,"id":"fa80f949_bee39432","line":64,"in_reply_to":"1a26ad4f_607d89b0","updated":"2015-11-05 20:30:12.000000000","message":"I prefer doing this check here. By \"express both conditions\" do you mean comparing their values to true and then check the conjunction? is this really necessary?","commit_id":"b4797f9d3b6dac1606e3854caf78178946f77ac3"},{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"b4371bc53fc05508c98f6aad3d48d313a1310963","unresolved":false,"context_lines":[{"line_number":41,"context_line":"      \u003c/td\u003e"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"      \u003ctd class\u003d\"expander\"\u003e"},{"line_number":44,"context_line":"        \u003ci class\u003d\"fa fa-chevron-right\" hz-expand-detail duration\u003d\"200\"\u003e\u003c/i\u003e"},{"line_number":45,"context_line":"      \u003c/td\u003e"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"      \u003ctd class\u003d\"rsp-p1\"\u003e{$ project.name $}\u003c/td\u003e"}],"source_content_type":"text/html","patch_set":16,"id":"fa80f949_027cba1d","line":44,"updated":"2015-11-05 22:35:17.000000000","message":"\u003cspan\u003e please","commit_id":"205a161d3867ed7521c1851b819c37a819e303f6"},{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"5dff88cc2d51a8b00dd01df0171ea67acf1437c5","unresolved":false,"context_lines":[{"line_number":41,"context_line":"      \u003c/td\u003e"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"      \u003ctd class\u003d\"expander\"\u003e"},{"line_number":44,"context_line":"        \u003ci class\u003d\"fa fa-chevron-right\" hz-expand-detail duration\u003d\"200\"\u003e\u003c/i\u003e"},{"line_number":45,"context_line":"      \u003c/td\u003e"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"      \u003ctd class\u003d\"rsp-p1\"\u003e{$ project.name $}\u003c/td\u003e"}],"source_content_type":"text/html","patch_set":16,"id":"fa80f949_a6cda5b8","line":44,"in_reply_to":"fa80f949_027cba1d","updated":"2015-11-06 14:04:51.000000000","message":"Done","commit_id":"205a161d3867ed7521c1851b819c37a819e303f6"},{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"b4371bc53fc05508c98f6aad3d48d313a1310963","unresolved":false,"context_lines":[{"line_number":51,"context_line":"      \u003ctd class\u003d\"rsp-p1\"\u003e{$ project.id $}\u003c/td\u003e"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"      \u003ctd class\u003d\"rsp-p2 text-center\"\u003e"},{"line_number":54,"context_line":"        \u003ci ng-show\u003d\"project.enabled\" class\u003d\"fa fa-check text-success\"\u003e\u003c/i\u003e"},{"line_number":55,"context_line":"        \u003ci ng-hide\u003d\"project.enabled\" class\u003d\"fa fa-times text-danger\"\u003e\u003c/i\u003e"},{"line_number":56,"context_line":"      \u003c/td\u003e"},{"line_number":57,"context_line":"    \u003c/tr\u003e"}],"source_content_type":"text/html","patch_set":16,"id":"fa80f949_c271d245","line":54,"updated":"2015-11-05 22:35:17.000000000","message":"\u003cspan\u003e","commit_id":"205a161d3867ed7521c1851b819c37a819e303f6"},{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"5dff88cc2d51a8b00dd01df0171ea67acf1437c5","unresolved":false,"context_lines":[{"line_number":51,"context_line":"      \u003ctd class\u003d\"rsp-p1\"\u003e{$ project.id $}\u003c/td\u003e"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"      \u003ctd class\u003d\"rsp-p2 text-center\"\u003e"},{"line_number":54,"context_line":"        \u003ci ng-show\u003d\"project.enabled\" class\u003d\"fa fa-check text-success\"\u003e\u003c/i\u003e"},{"line_number":55,"context_line":"        \u003ci ng-hide\u003d\"project.enabled\" class\u003d\"fa fa-times text-danger\"\u003e\u003c/i\u003e"},{"line_number":56,"context_line":"      \u003c/td\u003e"},{"line_number":57,"context_line":"    \u003c/tr\u003e"}],"source_content_type":"text/html","patch_set":16,"id":"fa80f949_06bd9101","line":54,"in_reply_to":"fa80f949_c271d245","updated":"2015-11-06 14:04:51.000000000","message":"Done","commit_id":"205a161d3867ed7521c1851b819c37a819e303f6"},{"author":{"_account_id":11778,"name":"Diana Whitten","email":"hurgleburgler@gmail.com","username":"hurgleburgler"},"change_message_id":"b4371bc53fc05508c98f6aad3d48d313a1310963","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"      \u003ctd class\u003d\"rsp-p2 text-center\"\u003e"},{"line_number":54,"context_line":"        \u003ci ng-show\u003d\"project.enabled\" class\u003d\"fa fa-check text-success\"\u003e\u003c/i\u003e"},{"line_number":55,"context_line":"        \u003ci ng-hide\u003d\"project.enabled\" class\u003d\"fa fa-times text-danger\"\u003e\u003c/i\u003e"},{"line_number":56,"context_line":"      \u003c/td\u003e"},{"line_number":57,"context_line":"    \u003c/tr\u003e"},{"line_number":58,"context_line":""}],"source_content_type":"text/html","patch_set":16,"id":"fa80f949_82966a3d","line":55,"updated":"2015-11-05 22:35:17.000000000","message":"\u003cspan\u003e","commit_id":"205a161d3867ed7521c1851b819c37a819e303f6"},{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"5dff88cc2d51a8b00dd01df0171ea67acf1437c5","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"      \u003ctd class\u003d\"rsp-p2 text-center\"\u003e"},{"line_number":54,"context_line":"        \u003ci ng-show\u003d\"project.enabled\" class\u003d\"fa fa-check text-success\"\u003e\u003c/i\u003e"},{"line_number":55,"context_line":"        \u003ci ng-hide\u003d\"project.enabled\" class\u003d\"fa fa-times text-danger\"\u003e\u003c/i\u003e"},{"line_number":56,"context_line":"      \u003c/td\u003e"},{"line_number":57,"context_line":"    \u003c/tr\u003e"},{"line_number":58,"context_line":""}],"source_content_type":"text/html","patch_set":16,"id":"fa80f949_c639c9a5","line":55,"in_reply_to":"fa80f949_82966a3d","updated":"2015-11-06 14:04:51.000000000","message":"Done","commit_id":"205a161d3867ed7521c1851b819c37a819e303f6"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/projects/table/table.controller.js":[{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"efd1cdda7aaae009e3383e07de97e1062655acfa","unresolved":false,"context_lines":[{"line_number":72,"context_line":"          ctrl.currentUser \u003d response.data;"},{"line_number":73,"context_line":"          // pauloewerton: This is going to change, used for tests only."},{"line_number":74,"context_line":"          // Should use authorized_tenants from session."},{"line_number":75,"context_line":"          return keystone.getProjects({user_id: ctrl.currentUser.id});"},{"line_number":76,"context_line":"        },"},{"line_number":77,"context_line":"        function() {"},{"line_number":78,"context_line":"          return $q.reject();"}],"source_content_type":"text/javascript","patch_set":1,"id":"ba3cc151_21bc28ba","line":75,"updated":"2015-07-08 15:50:50.000000000","message":"note to self: actually, when tenant_list is called with the current user id, authorized_tenants is returned.","commit_id":"6750d2fff9dd5c53ebc93ee427c2b040ceeef142"}],"openstack_dashboard/dashboards/identity/static/dashboard/identity/projects/table/table.controller.spec.js":[{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"cdb0a2cdd617b72c1bd170ebc1e8109ed392839b","unresolved":false,"context_lines":[{"line_number":16,"context_line":"  \u0027use strict\u0027;"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"  describe(\u0027Identity projects table controller\u0027, function() {"},{"line_number":19,"context_line":"    var ctrl, polAPI, keyAPI, controller;"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"    var fakePass \u003d {allowed: true};"},{"line_number":22,"context_line":"    var fakePolicy \u003d function() {"}],"source_content_type":"text/javascript","patch_set":2,"id":"ba3cc151_e2082993","line":19,"updated":"2015-07-09 23:06:23.000000000","message":"- spell out whole word please :) policyAPI, keystoneAPI\n- why is there ctrl and controller?  can we use one?","commit_id":"ea2f34777b7b5e32c39fab281cf7bd9f3e1674ab"},{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"b46bb5c6c267645a08967fa6b0cf50bc84f7a397","unresolved":false,"context_lines":[{"line_number":16,"context_line":"  \u0027use strict\u0027;"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"  describe(\u0027Identity projects table controller\u0027, function() {"},{"line_number":19,"context_line":"    var ctrl, polAPI, keyAPI, controller;"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"    var fakePass \u003d {allowed: true};"},{"line_number":22,"context_line":"    var fakePolicy \u003d function() {"}],"source_content_type":"text/javascript","patch_set":2,"id":"9a41bdd9_8f1b381b","line":19,"in_reply_to":"ba3cc151_e2082993","updated":"2015-07-13 15:46:13.000000000","message":"Done","commit_id":"ea2f34777b7b5e32c39fab281cf7bd9f3e1674ab"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"cdb0a2cdd617b72c1bd170ebc1e8109ed392839b","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    }));"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    it(\u0027should retrieve current user session\u0027, function() {"},{"line_number":78,"context_line":"      ctrl \u003d controller(\u0027IdentityProjectsTableController\u0027);"},{"line_number":79,"context_line":"      expect(keyAPI.getCurrentUserSession).toHaveBeenCalled();"},{"line_number":80,"context_line":"      expect(ctrl.userSession).toEqual(fakeUser);"},{"line_number":81,"context_line":"    });"}],"source_content_type":"text/javascript","patch_set":2,"id":"ba3cc151_a20c6193","line":78,"updated":"2015-07-09 23:06:23.000000000","message":"ctrl \u003d controller(\u0027IdentityProjectsTableController\u0027); -- can we move this into beforeEach, since each of the test functions uses it?","commit_id":"ea2f34777b7b5e32c39fab281cf7bd9f3e1674ab"},{"author":{"_account_id":15742,"name":"Paulo Ewerton Gomes Fragoso","email":"pauloewerton@lsd.ufcg.edu.br","username":"pauloewerton"},"change_message_id":"b46bb5c6c267645a08967fa6b0cf50bc84f7a397","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    }));"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    it(\u0027should retrieve current user session\u0027, function() {"},{"line_number":78,"context_line":"      ctrl \u003d controller(\u0027IdentityProjectsTableController\u0027);"},{"line_number":79,"context_line":"      expect(keyAPI.getCurrentUserSession).toHaveBeenCalled();"},{"line_number":80,"context_line":"      expect(ctrl.userSession).toEqual(fakeUser);"},{"line_number":81,"context_line":"    });"}],"source_content_type":"text/javascript","patch_set":2,"id":"9a41bdd9_6fbef4d5","line":78,"in_reply_to":"ba3cc151_a20c6193","updated":"2015-07-13 15:46:13.000000000","message":"yeah, this is duplicate code but moving it to a beforeEach would break the it blocks that need to set fakePass.allowed before the controller is created","commit_id":"ea2f34777b7b5e32c39fab281cf7bd9f3e1674ab"}]}
