)]}'
{"horizon/static/framework/widgets/magic-search/hz-magic-search-bar.directive.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"f43def6cde8f7f97caadd5993eff64c724a129b2","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        cancel: gettext(\u0027Cancel\u0027),"},{"line_number":105,"context_line":"        prompt: gettext(\u0027Click here for filters.\u0027),"},{"line_number":106,"context_line":"        remove: gettext(\u0027Remove\u0027),"},{"line_number":107,"context_line":"        text: gettext(\u0027In current results\u0027)"},{"line_number":108,"context_line":"      };"},{"line_number":109,"context_line":"      scope.filterStrings \u003d scope.filterStrings || defaultFilterStrings;"},{"line_number":110,"context_line":"      scope.clientFullTextSearch \u003d angular.isDefined(scope.clientFullTextSearch)"}],"source_content_type":"text/javascript","patch_set":4,"id":"9a1a9d01_d1ad5a9c","line":107,"updated":"2015-10-03 01:58:50.000000000","message":"We need to change the text here as well.  I\u0027m thinking something like \"Full text search\"","commit_id":"668247b16404641aaad1e5699352ff761c7e447c"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"7ca5dc0c7fd3c01727fdfadbc725a5c2fc324233","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        cancel: gettext(\u0027Cancel\u0027),"},{"line_number":105,"context_line":"        prompt: gettext(\u0027Click here for filters.\u0027),"},{"line_number":106,"context_line":"        remove: gettext(\u0027Remove\u0027),"},{"line_number":107,"context_line":"        text: gettext(\u0027In current results\u0027)"},{"line_number":108,"context_line":"      };"},{"line_number":109,"context_line":"      scope.filterStrings \u003d scope.filterStrings || defaultFilterStrings;"},{"line_number":110,"context_line":"      scope.clientFullTextSearch \u003d angular.isDefined(scope.clientFullTextSearch)"}],"source_content_type":"text/javascript","patch_set":4,"id":"9a1a9d01_f7b96eed","line":107,"in_reply_to":"9a1a9d01_54e05896","updated":"2015-10-03 05:36:02.000000000","message":"I think what you did makes sense. Varying it.","commit_id":"668247b16404641aaad1e5699352ff761c7e447c"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"232f3465f0889582bb991440a8b7208d65dcd776","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        cancel: gettext(\u0027Cancel\u0027),"},{"line_number":105,"context_line":"        prompt: gettext(\u0027Click here for filters.\u0027),"},{"line_number":106,"context_line":"        remove: gettext(\u0027Remove\u0027),"},{"line_number":107,"context_line":"        text: gettext(\u0027In current results\u0027)"},{"line_number":108,"context_line":"      };"},{"line_number":109,"context_line":"      scope.filterStrings \u003d scope.filterStrings || defaultFilterStrings;"},{"line_number":110,"context_line":"      scope.clientFullTextSearch \u003d angular.isDefined(scope.clientFullTextSearch)"}],"source_content_type":"text/javascript","patch_set":4,"id":"9a1a9d01_54e05896","line":107,"in_reply_to":"9a1a9d01_d1ad5a9c","updated":"2015-10-03 04:34:40.000000000","message":"Should it vary if server is client or server side?\nFor now, I\u0027m varying it.","commit_id":"668247b16404641aaad1e5699352ff761c7e447c"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"53a3f18dc1d73b2017f3ae4831a15da494281274","unresolved":false,"context_lines":[{"line_number":26,"context_line":"   * @element"},{"line_number":27,"context_line":"   * @param {object} filterFacets Facets allowed for searching"},{"line_number":28,"context_line":"   * @param {object\u003d} filterStrings Help content shown in search bar"},{"line_number":29,"context_line":"   * @param {object\u003d} clientFullTextSearch if full text search is to be done on the client"},{"line_number":30,"context_line":"   * @description"},{"line_number":31,"context_line":"   * The `magicSearchBar` directive provides a template for a"},{"line_number":32,"context_line":"   * client side faceted search that utilizes Smart-Table\u0027s"}],"source_content_type":"text/javascript","patch_set":11,"id":"da6ed579_2b38fd9f","line":29,"updated":"2016-01-13 01:08:25.000000000","message":"isn\u0027t it a boolean?","commit_id":"f6c373e0d9c8fd63a86d3ae32256539ab35f7d49"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"3fe6ec57d4263430a1509a7862c6cbd74540d118","unresolved":false,"context_lines":[{"line_number":26,"context_line":"   * @element"},{"line_number":27,"context_line":"   * @param {object} filterFacets Facets allowed for searching"},{"line_number":28,"context_line":"   * @param {object\u003d} filterStrings Help content shown in search bar"},{"line_number":29,"context_line":"   * @param {object\u003d} clientFullTextSearch if full text search is to be done on the client"},{"line_number":30,"context_line":"   * @description"},{"line_number":31,"context_line":"   * The `magicSearchBar` directive provides a template for a"},{"line_number":32,"context_line":"   * client side faceted search that utilizes Smart-Table\u0027s"}],"source_content_type":"text/javascript","patch_set":11,"id":"da6ed579_ca9b2d71","line":29,"in_reply_to":"da6ed579_2b38fd9f","updated":"2016-01-13 17:53:25.000000000","message":"Done","commit_id":"f6c373e0d9c8fd63a86d3ae32256539ab35f7d49"}],"horizon/static/framework/widgets/magic-search/hz-magic-search-bar.directive.spec.js":[{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"53a3f18dc1d73b2017f3ae4831a15da494281274","unresolved":false,"context_lines":[{"line_number":162,"context_line":"                   \u0027 \u003c/tr\u003e\u0027 +"},{"line_number":163,"context_line":"                   \u0027\u003c/thead\u003e\u0027 +"},{"line_number":164,"context_line":"                   \u0027\u003ctbody\u003e\u003c/tbody\u003e\u0027 +"},{"line_number":165,"context_line":"                   \u0027\u003c/table\u003e\u0027;"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"      var $element \u003d $compile(angular.element(markup))($scope);"},{"line_number":168,"context_line":"      $scope.$apply();"}],"source_content_type":"text/javascript","patch_set":11,"id":"da6ed579_e058c4fc","line":165,"range":{"start_line":165,"start_character":27,"end_line":165,"end_character":30},"updated":"2016-01-13 01:08:25.000000000","message":"to avoid repeating the markup so many times. you can do something like this: \n\nhttps://github.com/openstack/horizon/blob/master/horizon/static/framework/util/promise-toggle/hz-promise-toggle.directive.spec.js#L25-L33","commit_id":"f6c373e0d9c8fd63a86d3ae32256539ab35f7d49"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"3fe6ec57d4263430a1509a7862c6cbd74540d118","unresolved":false,"context_lines":[{"line_number":162,"context_line":"                   \u0027 \u003c/tr\u003e\u0027 +"},{"line_number":163,"context_line":"                   \u0027\u003c/thead\u003e\u0027 +"},{"line_number":164,"context_line":"                   \u0027\u003ctbody\u003e\u003c/tbody\u003e\u0027 +"},{"line_number":165,"context_line":"                   \u0027\u003c/table\u003e\u0027;"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"      var $element \u003d $compile(angular.element(markup))($scope);"},{"line_number":168,"context_line":"      $scope.$apply();"}],"source_content_type":"text/javascript","patch_set":11,"id":"da6ed579_9516baa5","line":165,"range":{"start_line":165,"start_character":27,"end_line":165,"end_character":30},"in_reply_to":"da6ed579_e058c4fc","updated":"2016-01-13 17:53:25.000000000","message":"Done","commit_id":"f6c373e0d9c8fd63a86d3ae32256539ab35f7d49"}],"horizon/static/framework/widgets/magic-search/st-magic-search.directive.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"2bdc214a2c805b83668de4c0e9b5cb66d1648fe7","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"      function setServerTextSearch(scope, text) {"},{"line_number":82,"context_line":"        var currentServerSearchParams \u003d angular.copy(scope.currentServerSearchParams);"},{"line_number":83,"context_line":"        currentServerSearchParams.queryString \u003d text + \u0027*\u0027;"},{"line_number":84,"context_line":"        checkAndEmit(scope, currentServerSearchParams);"},{"line_number":85,"context_line":"      }"},{"line_number":86,"context_line":""}],"source_content_type":"text/javascript","patch_set":5,"id":"7a2fa921_6dc68769","line":83,"updated":"2015-10-08 22:29:29.000000000","message":"Please do not add * to the query String coming from stServerTextSearch.  This should be up to the code consuming the text to decide wether or not to do that.","commit_id":"0e043961136126c5c5ab72f19552af53bcf43eed"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"9f778b869797f105fa71e1b0b13661135d0775cb","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"      function setServerTextSearch(scope, text) {"},{"line_number":82,"context_line":"        var currentServerSearchParams \u003d angular.copy(scope.currentServerSearchParams);"},{"line_number":83,"context_line":"        currentServerSearchParams.queryString \u003d text + \u0027*\u0027;"},{"line_number":84,"context_line":"        checkAndEmit(scope, currentServerSearchParams);"},{"line_number":85,"context_line":"      }"},{"line_number":86,"context_line":""}],"source_content_type":"text/javascript","patch_set":5,"id":"7a2fa921_f4c9c626","line":83,"in_reply_to":"7a2fa921_6dc68769","updated":"2015-10-10 06:30:37.000000000","message":"Will do.","commit_id":"0e043961136126c5c5ab72f19552af53bcf43eed"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"2bdc214a2c805b83668de4c0e9b5cb66d1648fe7","unresolved":false,"context_lines":[{"line_number":81,"context_line":"      function setServerTextSearch(scope, text) {"},{"line_number":82,"context_line":"        var currentServerSearchParams \u003d angular.copy(scope.currentServerSearchParams);"},{"line_number":83,"context_line":"        currentServerSearchParams.queryString \u003d text + \u0027*\u0027;"},{"line_number":84,"context_line":"        checkAndEmit(scope, currentServerSearchParams);"},{"line_number":85,"context_line":"      }"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"      function checkAndEmit(scope, serverSearchParams) {"}],"source_content_type":"text/javascript","patch_set":5,"id":"7a2fa921_bfc36688","line":84,"updated":"2015-10-08 22:29:29.000000000","message":"Can you add another param to the object coming through indicating which field changed?  It makes a difference to how I handle the event for timeout purposes.  I found myself having to add code tracking the last queryString and magicSearchQuery and trying to decide which one changed. Maybe a boolean.\n\n currentServerSearchParams.queryStringChanged\u003dtrue\n\nRight now I\u0027m doing this: \n\n if (!angular.equals(searchData.queryString, searchData.lastQueryString))\n   ...","commit_id":"0e043961136126c5c5ab72f19552af53bcf43eed"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"9f778b869797f105fa71e1b0b13661135d0775cb","unresolved":false,"context_lines":[{"line_number":81,"context_line":"      function setServerTextSearch(scope, text) {"},{"line_number":82,"context_line":"        var currentServerSearchParams \u003d angular.copy(scope.currentServerSearchParams);"},{"line_number":83,"context_line":"        currentServerSearchParams.queryString \u003d text + \u0027*\u0027;"},{"line_number":84,"context_line":"        checkAndEmit(scope, currentServerSearchParams);"},{"line_number":85,"context_line":"      }"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"      function checkAndEmit(scope, serverSearchParams) {"}],"source_content_type":"text/javascript","patch_set":5,"id":"7a2fa921_f4f0e668","line":84,"in_reply_to":"7a2fa921_54143ae7","updated":"2015-10-10 06:30:37.000000000","message":"That\u0027s quite an interesting observation. I was mostly reliant on object equality thus far.\n\nMagic Search does have this nasty habit of throwing up events for empty strings and key movements. \n\nI\u0027ll try and make this event emit a little more stricter and more verbose as to what changed","commit_id":"0e043961136126c5c5ab72f19552af53bcf43eed"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"5564ca2646e9350ed071607cff3f6d748a8da822","unresolved":false,"context_lines":[{"line_number":81,"context_line":"      function setServerTextSearch(scope, text) {"},{"line_number":82,"context_line":"        var currentServerSearchParams \u003d angular.copy(scope.currentServerSearchParams);"},{"line_number":83,"context_line":"        currentServerSearchParams.queryString \u003d text + \u0027*\u0027;"},{"line_number":84,"context_line":"        checkAndEmit(scope, currentServerSearchParams);"},{"line_number":85,"context_line":"      }"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"      function checkAndEmit(scope, serverSearchParams) {"}],"source_content_type":"text/javascript","patch_set":5,"id":"7a2fa921_54143ae7","line":84,"in_reply_to":"7a2fa921_bfc36688","updated":"2015-10-10 06:17:26.000000000","message":"I have determined that I can\u0027t just check string equality. This event gets fired every single time you click or even move your cursor in the text box.\n\nI\u0027m having to keep both variables and check to see if things really changed.  It would be much more ideal to not fire the event at all if neither the magicSearchQuery or queryString changed.\n\nSee:\n\nhttps://review.openstack.org/#/c/227036/12..13/openstack_dashboard/dashboards/project/static/dashboard/project/search/table/search-table.controller.js","commit_id":"0e043961136126c5c5ab72f19552af53bcf43eed"}]}
