)]}'
{"horizon/static/framework/widgets/action-list/actions.directive.js":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ec541ab1f04fc74e6ed5522fddfb53dc19bd8906","unresolved":false,"context_lines":[{"line_number":1,"context_line":"/*"},{"line_number":2,"context_line":" *"},{"line_number":3,"context_line":" * Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":" * you may not use this file except in compliance with the License."}],"source_content_type":"text/javascript","patch_set":3,"id":"7a2fa921_e8e3d403","line":1,"updated":"2015-10-06 22:55:40.000000000","message":"extra line here, or missing company name?","commit_id":"b4c42ead8c21e1be502760ed373c733a44bddaa5"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"e0d35fe0bc63c67d79582ec8952d51472e7c8f81","unresolved":false,"context_lines":[{"line_number":1,"context_line":"/*"},{"line_number":2,"context_line":" *"},{"line_number":3,"context_line":" * Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":4,"context_line":" * you may not use this file except in compliance with the License."}],"source_content_type":"text/javascript","patch_set":3,"id":"7a2fa921_5e03a20d","line":1,"in_reply_to":"7a2fa921_e8e3d403","updated":"2015-10-06 23:01:25.000000000","message":"Done","commit_id":"b4c42ead8c21e1be502760ed373c733a44bddaa5"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ec541ab1f04fc74e6ed5522fddfb53dc19bd8906","unresolved":false,"context_lines":[{"line_number":16,"context_line":"  \u0027use strict\u0027;"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"  angular"},{"line_number":19,"context_line":"    .module(\u0027horizon.framework.widgets.action-list\u0027)"},{"line_number":20,"context_line":"    .directive(\u0027actions\u0027, actions);"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"  actions.$inject \u003d ["}],"source_content_type":"text/javascript","patch_set":3,"id":"7a2fa921_1b453c16","line":19,"updated":"2015-10-06 22:55:40.000000000","message":"At first glance, i thought this was an all encompassing actions directive, but its really only meant for row actions. As such, I would recommend that we rename it to row-actions directive.","commit_id":"b4c42ead8c21e1be502760ed373c733a44bddaa5"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"e0d35fe0bc63c67d79582ec8952d51472e7c8f81","unresolved":false,"context_lines":[{"line_number":16,"context_line":"  \u0027use strict\u0027;"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"  angular"},{"line_number":19,"context_line":"    .module(\u0027horizon.framework.widgets.action-list\u0027)"},{"line_number":20,"context_line":"    .directive(\u0027actions\u0027, actions);"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"  actions.$inject \u003d ["}],"source_content_type":"text/javascript","patch_set":3,"id":"7a2fa921_be3bd6d0","line":19,"in_reply_to":"7a2fa921_1b453c16","updated":"2015-10-06 23:01:25.000000000","message":"It\u0027s for both row and batch actions. I wasn\u0027t sure about the name. \u0027actions\u0027 is very generic and I don\u0027t particularly like it. Will think of alternates.","commit_id":"b4c42ead8c21e1be502760ed373c733a44bddaa5"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ec541ab1f04fc74e6ed5522fddfb53dc19bd8906","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    var directive \u003d {"},{"line_number":33,"context_line":"      link: link,"},{"line_number":34,"context_line":"      restrict: \u0027E\u0027,"},{"line_number":35,"context_line":"      template: \u0027\u0027"},{"line_number":36,"context_line":"    };"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    var cache \u003d $cacheFactory(\u0027actionsTemplateCache\u0027);"}],"source_content_type":"text/javascript","patch_set":3,"id":"7a2fa921_48a208b0","line":35,"updated":"2015-10-06 22:55:40.000000000","message":"is template: \u0027\u0027 needed? why not just remove it?","commit_id":"b4c42ead8c21e1be502760ed373c733a44bddaa5"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ec541ab1f04fc74e6ed5522fddfb53dc19bd8906","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    return directive;"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    function link(scope, element, attrs) {"},{"line_number":43,"context_line":"      var listType \u003d attrs.actionListType;"},{"line_number":44,"context_line":"      var allowedActions \u003d $parse(attrs.allowedActions)(scope);"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"      if (allowedActions.length \u003d\u003d\u003d 0) {"}],"source_content_type":"text/javascript","patch_set":3,"id":"7a2fa921_a8739c14","line":43,"updated":"2015-10-06 22:55:40.000000000","message":"a description of the allowedActions object would be immensely helpful here.","commit_id":"b4c42ead8c21e1be502760ed373c733a44bddaa5"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ec541ab1f04fc74e6ed5522fddfb53dc19bd8906","unresolved":false,"context_lines":[{"line_number":43,"context_line":"      var listType \u003d attrs.actionListType;"},{"line_number":44,"context_line":"      var allowedActions \u003d $parse(attrs.allowedActions)(scope);"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"      if (allowedActions.length \u003d\u003d\u003d 0) {"},{"line_number":47,"context_line":"        return;"},{"line_number":48,"context_line":"      } else {"},{"line_number":49,"context_line":"        var templateFetch \u003d $q.all(allowedActions.map(fetchTemplate));"}],"source_content_type":"text/javascript","patch_set":3,"id":"7a2fa921_fb6e40c8","line":46,"updated":"2015-10-06 22:55:40.000000000","message":"if allowedActions list is empty, then shouldn\u0027t we allow compilation? it just means there are no permissions to check against.","commit_id":"b4c42ead8c21e1be502760ed373c733a44bddaa5"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ec541ab1f04fc74e6ed5522fddfb53dc19bd8906","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        }"},{"line_number":57,"context_line":"      }"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"      function fetchTemplate(actionTemplate) {"},{"line_number":60,"context_line":"        return getTempate(actionTemplate);"},{"line_number":61,"context_line":"      }"},{"line_number":62,"context_line":""}],"source_content_type":"text/javascript","patch_set":3,"id":"7a2fa921_c8cb7852","line":59,"updated":"2015-10-06 22:55:40.000000000","message":"why not just call getTemplate directly?","commit_id":"b4c42ead8c21e1be502760ed373c733a44bddaa5"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"e0d35fe0bc63c67d79582ec8952d51472e7c8f81","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        }"},{"line_number":57,"context_line":"      }"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"      function fetchTemplate(actionTemplate) {"},{"line_number":60,"context_line":"        return getTempate(actionTemplate);"},{"line_number":61,"context_line":"      }"},{"line_number":62,"context_line":""}],"source_content_type":"text/javascript","patch_set":3,"id":"7a2fa921_3e758697","line":59,"in_reply_to":"7a2fa921_c8cb7852","updated":"2015-10-06 23:01:25.000000000","message":"Done","commit_id":"b4c42ead8c21e1be502760ed373c733a44bddaa5"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ec541ab1f04fc74e6ed5522fddfb53dc19bd8906","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        return defered.promise;"},{"line_number":123,"context_line":"      }"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"      $http.get(templateLocation).then(function onHttpGet(response) {"},{"line_number":126,"context_line":"        cache.put(templateLocation, response.data);"},{"line_number":127,"context_line":"        defered.resolve(response.data);"},{"line_number":128,"context_line":"      });"}],"source_content_type":"text/javascript","patch_set":3,"id":"7a2fa921_08e890b3","line":125,"updated":"2015-10-06 22:55:40.000000000","message":"Why not use $templateCache for this kind of things?","commit_id":"b4c42ead8c21e1be502760ed373c733a44bddaa5"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"e0d35fe0bc63c67d79582ec8952d51472e7c8f81","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        return defered.promise;"},{"line_number":123,"context_line":"      }"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"      $http.get(templateLocation).then(function onHttpGet(response) {"},{"line_number":126,"context_line":"        cache.put(templateLocation, response.data);"},{"line_number":127,"context_line":"        defered.resolve(response.data);"},{"line_number":128,"context_line":"      });"}],"source_content_type":"text/javascript","patch_set":3,"id":"7a2fa921_be6996c0","line":125,"in_reply_to":"7a2fa921_08e890b3","updated":"2015-10-06 23:01:25.000000000","message":"I saw it after I\u0027d coded it. Will be using it.","commit_id":"b4c42ead8c21e1be502760ed373c733a44bddaa5"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ed11eded2c1a0a27bf741c043f00a68b69b2c909","unresolved":false,"context_lines":[{"line_number":50,"context_line":"   * if permitted and is rejected if not."},{"line_number":51,"context_line":"   * `callback` is the method to call when the button is clicked."},{"line_number":52,"context_line":"   *"},{"line_number":53,"context_line":"   * `actionListType` can be only be `list` or `dropdown`"},{"line_number":54,"context_line":"   *"},{"line_number":55,"context_line":"   * @restrict E"},{"line_number":56,"context_line":"   * @scope"}],"source_content_type":"text/javascript","patch_set":10,"id":"5a2ca52d_706f36fc","line":53,"updated":"2015-10-16 19:33:50.000000000","message":"actionListType values could be `batchactions` or `rowactions` to make things a bit clearer.","commit_id":"5ecae1a63522b485c32b8ff5948fa973902c1a83"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"189cde72e5429df969c380c4fdd8c9eaa49c3df3","unresolved":false,"context_lines":[{"line_number":50,"context_line":"   * if permitted and is rejected if not."},{"line_number":51,"context_line":"   * `callback` is the method to call when the button is clicked."},{"line_number":52,"context_line":"   *"},{"line_number":53,"context_line":"   * `actionListType` can be only be `list` or `dropdown`"},{"line_number":54,"context_line":"   *"},{"line_number":55,"context_line":"   * @restrict E"},{"line_number":56,"context_line":"   * @scope"}],"source_content_type":"text/javascript","patch_set":10,"id":"3a29b11f_900397b8","line":53,"in_reply_to":"5a2ca52d_706f36fc","updated":"2015-10-19 07:14:13.000000000","message":"Done","commit_id":"5ecae1a63522b485c32b8ff5948fa973902c1a83"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ed11eded2c1a0a27bf741c043f00a68b69b2c909","unresolved":false,"context_lines":[{"line_number":83,"context_line":"      var listType \u003d attrs.actionListType;"},{"line_number":84,"context_line":"      var allowedActions \u003d $parse(attrs.allowedActions)(scope);"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"      getPermittedActions(allowedActions).then(renderPermittedActions);"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"      function renderPermittedActions(permittedActions) {"},{"line_number":89,"context_line":"        if (permittedActions.length \u003d\u003d\u003d 0) {"}],"source_content_type":"text/javascript","patch_set":10,"id":"5a2ca52d_d6f082cb","line":86,"updated":"2015-10-16 19:33:50.000000000","message":"optional, but having ///// here to separate renderPermittedActions would help with reading the code as well. it goes like, in my link function, i look for list type and allowed actions. then check for permissions and render the ones that are permitted. The rest of the code is to support this statement.\n\nOptionally, you can move it out and just pass in element and listType as reference.","commit_id":"5ecae1a63522b485c32b8ff5948fa973902c1a83"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ed11eded2c1a0a27bf741c043f00a68b69b2c909","unresolved":false,"context_lines":[{"line_number":86,"context_line":"      getPermittedActions(allowedActions).then(renderPermittedActions);"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"      function renderPermittedActions(permittedActions) {"},{"line_number":89,"context_line":"        if (permittedActions.length \u003d\u003d\u003d 0) {"},{"line_number":90,"context_line":"          return;"},{"line_number":91,"context_line":"        } else {"},{"line_number":92,"context_line":"          var templateFetch \u003d $q.all(permittedActions.map(getTemplate));"}],"source_content_type":"text/javascript","patch_set":10,"id":"5a2ca52d_d66162d4","line":89,"updated":"2015-10-16 19:33:50.000000000","message":"since length cant be negative, why not just do a if(actions.length \u003e 0){....do something....} ? no need for the awkward return and else clause.","commit_id":"5ecae1a63522b485c32b8ff5948fa973902c1a83"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"189cde72e5429df969c380c4fdd8c9eaa49c3df3","unresolved":false,"context_lines":[{"line_number":86,"context_line":"      getPermittedActions(allowedActions).then(renderPermittedActions);"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"      function renderPermittedActions(permittedActions) {"},{"line_number":89,"context_line":"        if (permittedActions.length \u003d\u003d\u003d 0) {"},{"line_number":90,"context_line":"          return;"},{"line_number":91,"context_line":"        } else {"},{"line_number":92,"context_line":"          var templateFetch \u003d $q.all(permittedActions.map(getTemplate));"}],"source_content_type":"text/javascript","patch_set":10,"id":"3a29b11f_f0920b57","line":89,"in_reply_to":"5a2ca52d_d66162d4","updated":"2015-10-19 07:14:13.000000000","message":"Done","commit_id":"5ecae1a63522b485c32b8ff5948fa973902c1a83"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ed11eded2c1a0a27bf741c043f00a68b69b2c909","unresolved":false,"context_lines":[{"line_number":133,"context_line":"    /**"},{"line_number":134,"context_line":"     * Get the permitted actions from the list of allowed actions"},{"line_number":135,"context_line":"     * by resolving the promises in the permissions object."},{"line_number":136,"context_line":"     */"},{"line_number":137,"context_line":"    function getPermittedActions(allowedActions) {"},{"line_number":138,"context_line":"      var deferred \u003d $q.defer();"},{"line_number":139,"context_line":"      var permittedActions \u003d [];"}],"source_content_type":"text/javascript","patch_set":10,"id":"5a2ca52d_d6bde202","line":136,"updated":"2015-10-16 19:33:50.000000000","message":"move this up to after the link function. this way, its a bit easier to follow code flow.","commit_id":"5ecae1a63522b485c32b8ff5948fa973902c1a83"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ed11eded2c1a0a27bf741c043f00a68b69b2c909","unresolved":false,"context_lines":[{"line_number":143,"context_line":""},{"line_number":144,"context_line":"      return deferred.promise;"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"      function actionPermitted(action) {"},{"line_number":147,"context_line":"        var deferredInner \u003d $q.defer();"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        action.permissions.then("}],"source_content_type":"text/javascript","patch_set":10,"id":"5a2ca52d_760e4e8d","line":146,"updated":"2015-10-16 19:33:50.000000000","message":"ocd nit here... totally optional but i would rewrite this as. It makes it a lot easier to read:\n\n  var deferredInner \u003d $q.defer();\n  action.permissions.then(onSuccess, onError);\n  return deferredInner.promise;\n\n  /////\n\n function onSuccess(){....}\n function onError(){....}","commit_id":"5ecae1a63522b485c32b8ff5948fa973902c1a83"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"189cde72e5429df969c380c4fdd8c9eaa49c3df3","unresolved":false,"context_lines":[{"line_number":143,"context_line":""},{"line_number":144,"context_line":"      return deferred.promise;"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"      function actionPermitted(action) {"},{"line_number":147,"context_line":"        var deferredInner \u003d $q.defer();"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        action.permissions.then("}],"source_content_type":"text/javascript","patch_set":10,"id":"3a29b11f_309e4357","line":146,"in_reply_to":"5a2ca52d_760e4e8d","updated":"2015-10-19 07:14:13.000000000","message":"Done. It does make it easier.","commit_id":"5ecae1a63522b485c32b8ff5948fa973902c1a83"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ed11eded2c1a0a27bf741c043f00a68b69b2c909","unresolved":false,"context_lines":[{"line_number":169,"context_line":"      var actionElement \u003d angular.element(actionTemplate.template);"},{"line_number":170,"context_line":"      actionElement.attr(\u0027callback\u0027, actionTemplate.callback);"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"      var actionListElem \u003d angular.element(\u0027\u003caction-list class\u003d\"btn-addon\"\u003e\u003c/action-list\u003e\u0027);"},{"line_number":173,"context_line":"      actionListElem.append(actionElement);"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"      return $compile(actionListElem)(scope);"}],"source_content_type":"text/javascript","patch_set":10,"id":"5a2ca52d_f6d57ee4","line":172,"updated":"2015-10-16 19:33:50.000000000","message":"what about something like this instead? no need for end tag \u003c/*\u003e\n\n  var actionListElem \u003d angular.element(\u0027\u003caction-list\u003e\u0027);\n  actionListElement.addClass(\u0027btn-addon\u0027);","commit_id":"5ecae1a63522b485c32b8ff5948fa973902c1a83"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ed11eded2c1a0a27bf741c043f00a68b69b2c909","unresolved":false,"context_lines":[{"line_number":181,"context_line":"     * `menu-item` buttons"},{"line_number":182,"context_line":"     */"},{"line_number":183,"context_line":"    function renderList(actionList, splitButton, scope) {"},{"line_number":184,"context_line":"      var actionListElem \u003d angular.element(\u0027\u003caction-list dropdown\u003e\u003c/action-list\u003e\u0027);"},{"line_number":185,"context_line":"      actionListElem.append(splitButton);"},{"line_number":186,"context_line":"      actionListElem.append(getMenu(actionList, scope));"},{"line_number":187,"context_line":"      return actionListElem;"}],"source_content_type":"text/javascript","patch_set":10,"id":"5a2ca52d_16fcba6e","line":184,"updated":"2015-10-16 19:33:50.000000000","message":"same here, use actionListElemen.attr(\u0027dropdown\u0027);","commit_id":"5ecae1a63522b485c32b8ff5948fa973902c1a83"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"189cde72e5429df969c380c4fdd8c9eaa49c3df3","unresolved":false,"context_lines":[{"line_number":181,"context_line":"     * `menu-item` buttons"},{"line_number":182,"context_line":"     */"},{"line_number":183,"context_line":"    function renderList(actionList, splitButton, scope) {"},{"line_number":184,"context_line":"      var actionListElem \u003d angular.element(\u0027\u003caction-list dropdown\u003e\u003c/action-list\u003e\u0027);"},{"line_number":185,"context_line":"      actionListElem.append(splitButton);"},{"line_number":186,"context_line":"      actionListElem.append(getMenu(actionList, scope));"},{"line_number":187,"context_line":"      return actionListElem;"}],"source_content_type":"text/javascript","patch_set":10,"id":"3a29b11f_10e787e5","line":184,"in_reply_to":"5a2ca52d_16fcba6e","updated":"2015-10-19 07:14:13.000000000","message":"Done","commit_id":"5ecae1a63522b485c32b8ff5948fa973902c1a83"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"ed11eded2c1a0a27bf741c043f00a68b69b2c909","unresolved":false,"context_lines":[{"line_number":202,"context_line":"     * Get the HTML for a `menu`"},{"line_number":203,"context_line":"     */"},{"line_number":204,"context_line":"    function getMenu(actionList, scope) {"},{"line_number":205,"context_line":"      var menuElem \u003d angular.element(\u0027\u003cmenu\u003e\u003c/menu\u0027);"},{"line_number":206,"context_line":"      menuElem.append(actionList);"},{"line_number":207,"context_line":"      return menuElem;"},{"line_number":208,"context_line":"    }"}],"source_content_type":"text/javascript","patch_set":10,"id":"5a2ca52d_d6f16296","line":205,"updated":"2015-10-16 19:33:50.000000000","message":"i dont think you need \u003c/menu\u003e (which is missing end \u003e btw).","commit_id":"5ecae1a63522b485c32b8ff5948fa973902c1a83"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"189cde72e5429df969c380c4fdd8c9eaa49c3df3","unresolved":false,"context_lines":[{"line_number":202,"context_line":"     * Get the HTML for a `menu`"},{"line_number":203,"context_line":"     */"},{"line_number":204,"context_line":"    function getMenu(actionList, scope) {"},{"line_number":205,"context_line":"      var menuElem \u003d angular.element(\u0027\u003cmenu\u003e\u003c/menu\u0027);"},{"line_number":206,"context_line":"      menuElem.append(actionList);"},{"line_number":207,"context_line":"      return menuElem;"},{"line_number":208,"context_line":"    }"}],"source_content_type":"text/javascript","patch_set":10,"id":"3a29b11f_70e27bd7","line":205,"in_reply_to":"5a2ca52d_d6f16296","updated":"2015-10-19 07:14:13.000000000","message":"Done","commit_id":"5ecae1a63522b485c32b8ff5948fa973902c1a83"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"cb8b466703990e15ccd56e975f71f50cfbce61d4","unresolved":false,"context_lines":[{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    ////////////////////////////"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    function createContext(scope, element, listType) {"},{"line_number":92,"context_line":"      return {"},{"line_number":93,"context_line":"        renderActions: renderActions"},{"line_number":94,"context_line":"      };"}],"source_content_type":"text/javascript","patch_set":13,"id":"3a29b11f_f4497fd1","line":91,"updated":"2015-10-19 19:27:16.000000000","message":"this looks a lot like a service. you know what I am about to suggest :)","commit_id":"38951e52a33850df815214260420c580fce2c86a"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"9dcc0dab4e98861ce19beb6f3d77754d21ec8913","unresolved":false,"context_lines":[{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    ////////////////////////////"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    function createContext(scope, element, listType) {"},{"line_number":92,"context_line":"      return {"},{"line_number":93,"context_line":"        renderActions: renderActions"},{"line_number":94,"context_line":"      };"}],"source_content_type":"text/javascript","patch_set":13,"id":"3a29b11f_119d1e59","line":91,"in_reply_to":"3a29b11f_f4497fd1","updated":"2015-10-19 22:29:45.000000000","message":"When I did this, I could see the rest of the code as a service though not very clearly.\n\nGot that bit done now.","commit_id":"38951e52a33850df815214260420c580fce2c86a"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"ec1e40973c0ac8f9be04925739f2331df93b9af8","unresolved":false,"context_lines":[{"line_number":54,"context_line":"   * @example"},{"line_number":55,"context_line":"   *"},{"line_number":56,"context_line":"   * $scope.actions \u003d [{"},{"line_number":57,"context_line":"   *   template: \u0027the template to render\u0027,"},{"line_number":58,"context_line":"   *   permissions: policy.ifAllowed({ rules: [[\u0027image\u0027, \u0027delete_image\u0027]] }),"},{"line_number":59,"context_line":"   *   callback: \u0027the method to call\u0027"},{"line_number":60,"context_line":"   * }]"}],"source_content_type":"text/javascript","patch_set":15,"id":"1a26ad4f_33dde914","line":57,"range":{"start_line":57,"start_character":4,"end_line":57,"end_character":7},"updated":"2015-10-28 03:50:35.000000000","message":"I think taking a template is very nice to provide total control and extensibility.\n\nHowever, what I don\u0027t like is that the dependent patches are still providing a template for every single action where those template contents will be 90% the same across panels. It really seems like we could remove additional boilerplate here.\n\nCan we provide an alternative to that where the action has additional input parameters and will use those instead of the template input if template isn\u0027t specified and will just transclude content into one of several pre-defined action templates?\n\ne.g. Input parameters:\n\n type: [delete | create | delete-all]\n input: e.g. item\n name: e.g. gettext(\u0027Delete Image\u0027)\n\n https://review.openstack.org/#/c/231336/4/openstack_dashboard/static/app/core/images/table/create-new-action.html,cm\n\n https://review.openstack.org/#/c/231336/4/openstack_dashboard/static/app/core/images/table/delete-image-action.html,cm\n\n https://review.openstack.org/#/c/231336/4/openstack_dashboard/static/app/core/images/table/delete-images-action.html,cm","commit_id":"663c94e6d6aa3f4aa1b48a194a16dcfa2812da24"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"7882f0f593e6b6d9ca0521a82fdbee8db0ae2aef","unresolved":false,"context_lines":[{"line_number":54,"context_line":"   * @example"},{"line_number":55,"context_line":"   *"},{"line_number":56,"context_line":"   * $scope.actions \u003d [{"},{"line_number":57,"context_line":"   *   template: \u0027the template to render\u0027,"},{"line_number":58,"context_line":"   *   permissions: policy.ifAllowed({ rules: [[\u0027image\u0027, \u0027delete_image\u0027]] }),"},{"line_number":59,"context_line":"   *   callback: \u0027the method to call\u0027"},{"line_number":60,"context_line":"   * }]"}],"source_content_type":"text/javascript","patch_set":15,"id":"1a26ad4f_cac61349","line":57,"in_reply_to":"1a26ad4f_33dde914","updated":"2015-10-29 06:21:09.000000000","message":"Thats a reasonable idea. Have a name and type that resolves to some default icon, but still provide a template field to allow transclusion for maximum customization.","commit_id":"663c94e6d6aa3f4aa1b48a194a16dcfa2812da24"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"c986fb5fa0e52006686b83797e2e23b34a87e2e8","unresolved":false,"context_lines":[{"line_number":54,"context_line":"   * @example"},{"line_number":55,"context_line":"   *"},{"line_number":56,"context_line":"   * $scope.actions \u003d [{"},{"line_number":57,"context_line":"   *   template: \u0027the template to render\u0027,"},{"line_number":58,"context_line":"   *   permissions: policy.ifAllowed({ rules: [[\u0027image\u0027, \u0027delete_image\u0027]] }),"},{"line_number":59,"context_line":"   *   callback: \u0027the method to call\u0027"},{"line_number":60,"context_line":"   * }]"}],"source_content_type":"text/javascript","patch_set":15,"id":"1a26ad4f_c247ca75","line":57,"in_reply_to":"1a26ad4f_cac61349","updated":"2015-10-29 16:15:32.000000000","message":"I got the bits around type, text, input done.\nAlso, I got the bit to add custom action classes if the template for the action is custom.\n\nI\u0027ve also removed the template HTML in favor of what exists in the directive code.","commit_id":"663c94e6d6aa3f4aa1b48a194a16dcfa2812da24"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"6786a017503b6b337115d501e61de053bcc03969","unresolved":false,"context_lines":[{"line_number":40,"context_line":"   *"},{"line_number":41,"context_line":"   * `allowedActions` is a list of allowed actions on the service."},{"line_number":42,"context_line":"   * It\u0027s an array of objects of the form:"},{"line_number":43,"context_line":"   * { template: \u0027template\u0027, permissions: \u003cpromise to determine permissions\u003e, callback: \u0027callback\u0027}"},{"line_number":44,"context_line":"   *"},{"line_number":45,"context_line":"   * `permissions` is expected to be a promise that resolves"},{"line_number":46,"context_line":"   * if permitted and is rejected if not."}],"source_content_type":"text/javascript","patch_set":17,"id":"1a26ad4f_9f5b5f2e","line":43,"range":{"start_line":43,"start_character":97,"end_line":43,"end_character":99},"updated":"2015-10-30 00:07:02.000000000","message":"Doc update.","commit_id":"8a34b51a4eb24923d97ef94eb953ab36c7a7cb9a"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"4db70d4bbde49a05b4ca99c10d484fefebbf8f7a","unresolved":false,"context_lines":[{"line_number":40,"context_line":"   *"},{"line_number":41,"context_line":"   * `allowedActions` is a list of allowed actions on the service."},{"line_number":42,"context_line":"   * It\u0027s an array of objects of the form:"},{"line_number":43,"context_line":"   * { template: \u0027template\u0027, permissions: \u003cpromise to determine permissions\u003e, callback: \u0027callback\u0027}"},{"line_number":44,"context_line":"   *"},{"line_number":45,"context_line":"   * `permissions` is expected to be a promise that resolves"},{"line_number":46,"context_line":"   * if permitted and is rejected if not."}],"source_content_type":"text/javascript","patch_set":17,"id":"fa80f949_e608182b","line":43,"in_reply_to":"1a26ad4f_02e566da","updated":"2015-11-03 16:09:43.000000000","message":"No, just submit a patch to the RST like you normally would.","commit_id":"8a34b51a4eb24923d97ef94eb953ab36c7a7cb9a"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"77a6f82e66061e33746c7c74edc8028cdc481ef4","unresolved":false,"context_lines":[{"line_number":40,"context_line":"   *"},{"line_number":41,"context_line":"   * `allowedActions` is a list of allowed actions on the service."},{"line_number":42,"context_line":"   * It\u0027s an array of objects of the form:"},{"line_number":43,"context_line":"   * { template: \u0027template\u0027, permissions: \u003cpromise to determine permissions\u003e, callback: \u0027callback\u0027}"},{"line_number":44,"context_line":"   *"},{"line_number":45,"context_line":"   * `permissions` is expected to be a promise that resolves"},{"line_number":46,"context_line":"   * if permitted and is rejected if not."}],"source_content_type":"text/javascript","patch_set":17,"id":"1a26ad4f_dff74589","line":43,"range":{"start_line":43,"start_character":97,"end_line":43,"end_character":99},"in_reply_to":"1a26ad4f_9f5b5f2e","updated":"2015-11-02 22:52:16.000000000","message":"I\u0027d really like to see this describe out the logic found in getTemplateUrl here:\n\nhttps://review.openstack.org/#/c/231335/17/horizon/static/framework/widgets/action-list/actions.service.js,cm\n\nThis is a really powerful extensibility capability. Specifically we need to tell people that they can specify their own templateURL (keep example from below), that they can use X types, they they can add new types by simply using the naming pattern, or they can use the default action based on row or batch (table) type. We then should have a rst documentation update patch put as a dependent patch which updates the following file with some information on this facility. Since, we currently don\u0027t have a good doc structure for this level of documentation I\u0027m okay with that being a separate patch that can be hashed out separately.\n\nhttps://github.com/openstack/horizon/blob/master/doc/source/topics/angularjs.rst","commit_id":"8a34b51a4eb24923d97ef94eb953ab36c7a7cb9a"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"c00dd49799853f119fc1d94f133669ab5cf5ec38","unresolved":false,"context_lines":[{"line_number":40,"context_line":"   *"},{"line_number":41,"context_line":"   * `allowedActions` is a list of allowed actions on the service."},{"line_number":42,"context_line":"   * It\u0027s an array of objects of the form:"},{"line_number":43,"context_line":"   * { template: \u0027template\u0027, permissions: \u003cpromise to determine permissions\u003e, callback: \u0027callback\u0027}"},{"line_number":44,"context_line":"   *"},{"line_number":45,"context_line":"   * `permissions` is expected to be a promise that resolves"},{"line_number":46,"context_line":"   * if permitted and is rejected if not."}],"source_content_type":"text/javascript","patch_set":17,"id":"1a26ad4f_02e566da","line":43,"in_reply_to":"1a26ad4f_dff74589","updated":"2015-11-02 23:43:40.000000000","message":"Have updated the documentation. Added a more complete example.\n\nFor the update of the documentation, I\u0027ll start on a patch. Is there a process to it?","commit_id":"8a34b51a4eb24923d97ef94eb953ab36c7a7cb9a"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"6786a017503b6b337115d501e61de053bcc03969","unresolved":false,"context_lines":[{"line_number":54,"context_line":"   * @example"},{"line_number":55,"context_line":"   *"},{"line_number":56,"context_line":"   * $scope.actions \u003d [{"},{"line_number":57,"context_line":"   *   template: \u0027the template to render\u0027,"},{"line_number":58,"context_line":"   *   permissions: policy.ifAllowed({ rules: [[\u0027image\u0027, \u0027delete_image\u0027]] }),"},{"line_number":59,"context_line":"   *   callback: \u0027the method to call\u0027"},{"line_number":60,"context_line":"   * }]"}],"source_content_type":"text/javascript","patch_set":17,"id":"1a26ad4f_9b08542f","line":57,"range":{"start_line":57,"start_character":7,"end_line":57,"end_character":15},"updated":"2015-10-30 00:07:02.000000000","message":"This doc needs to be updated right?","commit_id":"8a34b51a4eb24923d97ef94eb953ab36c7a7cb9a"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"c00dd49799853f119fc1d94f133669ab5cf5ec38","unresolved":false,"context_lines":[{"line_number":54,"context_line":"   * @example"},{"line_number":55,"context_line":"   *"},{"line_number":56,"context_line":"   * $scope.actions \u003d [{"},{"line_number":57,"context_line":"   *   template: \u0027the template to render\u0027,"},{"line_number":58,"context_line":"   *   permissions: policy.ifAllowed({ rules: [[\u0027image\u0027, \u0027delete_image\u0027]] }),"},{"line_number":59,"context_line":"   *   callback: \u0027the method to call\u0027"},{"line_number":60,"context_line":"   * }]"}],"source_content_type":"text/javascript","patch_set":17,"id":"1a26ad4f_a2bfd2a8","line":57,"in_reply_to":"1a26ad4f_9b08542f","updated":"2015-11-02 23:43:40.000000000","message":"Done","commit_id":"8a34b51a4eb24923d97ef94eb953ab36c7a7cb9a"}],"horizon/static/framework/widgets/action-list/actions.directive.spec.js":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"cb8b466703990e15ccd56e975f71f50cfbce61d4","unresolved":false,"context_lines":[{"line_number":18,"context_line":"    var $scope, $compile, $q, $httpBackend, basePath, batchMarkup, rowMarkup;"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"    /*eslint-disable max-len */"},{"line_number":21,"context_line":"    var createActionMarkup \u003d"},{"line_number":22,"context_line":"          \u0027\u003caction action-classes\u003d\"\\\u0027btn btn-default btn-sm\\\u0027\"\u003e\u0027 +"},{"line_number":23,"context_line":"          \u0027\u003cspan class\u003d\"fa fa-user-plus\"\u003e\u003ctranslate\u003eCreate Image\u003c/translate\u003e\u003c/span\u003e\u0027 +"},{"line_number":24,"context_line":"          \u0027\u003c/action\u003e\u0027;"}],"source_content_type":"text/javascript","patch_set":13,"id":"3a29b11f_5475d3c8","line":21,"updated":"2015-10-19 19:27:16.000000000","message":"Why are some templates using fetch and some are using the stub method?\n\nAlthough I would not suggest this for large examples, in this case, you can shove all of your mocks into one template and assign an ID to each. Then i your beforeEach, evaluate the template using angular.element once and extract the mocks via find.","commit_id":"38951e52a33850df815214260420c580fce2c86a"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"9dcc0dab4e98861ce19beb6f3d77754d21ec8913","unresolved":false,"context_lines":[{"line_number":18,"context_line":"    var $scope, $compile, $q, $httpBackend, basePath, batchMarkup, rowMarkup;"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"    /*eslint-disable max-len */"},{"line_number":21,"context_line":"    var createActionMarkup \u003d"},{"line_number":22,"context_line":"          \u0027\u003caction action-classes\u003d\"\\\u0027btn btn-default btn-sm\\\u0027\"\u003e\u0027 +"},{"line_number":23,"context_line":"          \u0027\u003cspan class\u003d\"fa fa-user-plus\"\u003e\u003ctranslate\u003eCreate Image\u003c/translate\u003e\u003c/span\u003e\u0027 +"},{"line_number":24,"context_line":"          \u0027\u003c/action\u003e\u0027;"}],"source_content_type":"text/javascript","patch_set":13,"id":"3a29b11f_f65898fc","line":21,"in_reply_to":"3a29b11f_5475d3c8","updated":"2015-10-19 22:29:45.000000000","message":"Nice catch. The stubTemplate and templateCache remained cause of an earlier way of doing things.\n\nI\u0027ve got that bit now cleaned up better.","commit_id":"38951e52a33850df815214260420c580fce2c86a"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"8bea69db663dc274ff240eb07cf78b9643ad94c8","unresolved":false,"context_lines":[{"line_number":14,"context_line":"(function () {"},{"line_number":15,"context_line":"  \u0027use strict\u0027;"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"  describe(\u0027actions directive\u0027, function () {"},{"line_number":18,"context_line":"    var $scope, $compile, $q, $templateCache, basePath;"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"    beforeEach(module(\u0027templates\u0027));"}],"source_content_type":"text/javascript","patch_set":14,"id":"3a29b11f_b815f1e5","line":17,"updated":"2015-10-21 00:20:14.000000000","message":"I understand that the service and directive are pretty closely related here, so maybe having a single spec file would suffice. Now that I am thinking about it a bit more, a directive is responsible for rendering, while services are more for utility things (although we are stretching its definition a bit these days due to the need for extensibility). Lets have a few others weigh in on this. Should the service be a part of the directive? or are is it ok to have rendering logic inside a service?\n\nIf we end up with a directive and service, I think there should be 2 spec files: one for the directive, and one for the service. actions.directive.spec.js should check that it forwards the call to actionsService and passes in the correct parameters. The tests you have here should move into actions.service.spec.js","commit_id":"9661c5e692ba539da0cd592f3cae17ad7bc4c902"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"77a6f82e66061e33746c7c74edc8028cdc481ef4","unresolved":false,"context_lines":[{"line_number":222,"context_line":"      };"},{"line_number":223,"context_line":"    }"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"    function permittedActionWithTemplate(template, text, item) {"},{"line_number":226,"context_line":"      return {"},{"line_number":227,"context_line":"        template: {"},{"line_number":228,"context_line":"          type: template,"}],"source_content_type":"text/javascript","patch_set":17,"id":"1a26ad4f_ff96c13c","line":225,"updated":"2015-11-02 22:52:16.000000000","message":"rename function input \"template\" to \"type\" or \"templateType\" for readability.","commit_id":"8a34b51a4eb24923d97ef94eb953ab36c7a7cb9a"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"c00dd49799853f119fc1d94f133669ab5cf5ec38","unresolved":false,"context_lines":[{"line_number":222,"context_line":"      };"},{"line_number":223,"context_line":"    }"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"    function permittedActionWithTemplate(template, text, item) {"},{"line_number":226,"context_line":"      return {"},{"line_number":227,"context_line":"        template: {"},{"line_number":228,"context_line":"          type: template,"}],"source_content_type":"text/javascript","patch_set":17,"id":"1a26ad4f_3fbe7965","line":225,"in_reply_to":"1a26ad4f_ff96c13c","updated":"2015-11-02 23:43:40.000000000","message":"Nice catch. I initially didn\u0027t add the \"type\" bits so this spec was named wrong.\nFixed now. I renamed the other methods to be more specific","commit_id":"8a34b51a4eb24923d97ef94eb953ab36c7a7cb9a"}],"horizon/static/framework/widgets/action-list/actions.service.js":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"8bea69db663dc274ff240eb07cf78b9643ad94c8","unresolved":false,"context_lines":[{"line_number":48,"context_line":"       * Get the permitted actions from the list of allowed actions"},{"line_number":49,"context_line":"       * by resolving the promises in the permissions object."},{"line_number":50,"context_line":"       */"},{"line_number":51,"context_line":"      function getPermittedActions(allowedActions) {"},{"line_number":52,"context_line":"        var deferred \u003d $q.defer();"},{"line_number":53,"context_line":"        var permittedActions \u003d [];"},{"line_number":54,"context_line":"        var promises \u003d allowedActions.map(actionPermitted);"}],"source_content_type":"text/javascript","patch_set":14,"id":"3a29b11f_981b5573","line":51,"updated":"2015-10-21 00:20:14.000000000","message":"Pattern is extremely similar to the delete service. https://review.openstack.org/#/c/234408/8/horizon/static/framework/widgets/modal/delete-modal.service.js resolveAll method. Ok with it for now, but consider putting this into a utility service for reuse?","commit_id":"9661c5e692ba539da0cd592f3cae17ad7bc4c902"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"77a6f82e66061e33746c7c74edc8028cdc481ef4","unresolved":false,"context_lines":[{"line_number":203,"context_line":"        } else if (angular.isDefined(action.template.type)) {"},{"line_number":204,"context_line":"          return basePath + \u0027action-list/actions-\u0027 + action.template.type + \u0027.template.html\u0027;"},{"line_number":205,"context_line":"        } else {"},{"line_number":206,"context_line":"          return basePath + \u0027action-list/actions-\u0027 + listType  + \u0027.template.html\u0027;"},{"line_number":207,"context_line":"        }"},{"line_number":208,"context_line":"      }"},{"line_number":209,"context_line":""}],"source_content_type":"text/javascript","patch_set":17,"id":"1a26ad4f_3fa3d9b3","line":206,"updated":"2015-11-02 22:52:16.000000000","message":"I had to dig back kind of far to figure out what listType meant.  An inline comment here just saying that the listType is either row or batch and comes in via the directive actions-list-type attr would be helpful for code readability.","commit_id":"8a34b51a4eb24923d97ef94eb953ab36c7a7cb9a"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"c00dd49799853f119fc1d94f133669ab5cf5ec38","unresolved":false,"context_lines":[{"line_number":203,"context_line":"        } else if (angular.isDefined(action.template.type)) {"},{"line_number":204,"context_line":"          return basePath + \u0027action-list/actions-\u0027 + action.template.type + \u0027.template.html\u0027;"},{"line_number":205,"context_line":"        } else {"},{"line_number":206,"context_line":"          return basePath + \u0027action-list/actions-\u0027 + listType  + \u0027.template.html\u0027;"},{"line_number":207,"context_line":"        }"},{"line_number":208,"context_line":"      }"},{"line_number":209,"context_line":""}],"source_content_type":"text/javascript","patch_set":17,"id":"1a26ad4f_dfdae5e7","line":206,"in_reply_to":"1a26ad4f_3fa3d9b3","updated":"2015-11-02 23:43:40.000000000","message":"Done","commit_id":"8a34b51a4eb24923d97ef94eb953ab36c7a7cb9a"}]}
