)]}'
{"horizon/static/framework/util/filters/filters.js":[{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"ec03b0fb3cfe89243a650f9eac6bf644f6a775b1","unresolved":false,"context_lines":[{"line_number":153,"context_line":""},{"line_number":154,"context_line":"  /**"},{"line_number":155,"context_line":"   * @ngdoc filter"},{"line_number":156,"context_line":"   * @name decode"},{"line_number":157,"context_line":"   * @description"},{"line_number":158,"context_line":"   * Returns values based on key and given mapping.  If key doesn\u0027t exist"},{"line_number":159,"context_line":"   * in given mapping, return key.  This is useful when translations for"}],"source_content_type":"text/javascript","patch_set":1,"id":"5a5ae5dd_ebdafc77","line":156,"updated":"2016-02-03 16:27:43.000000000","message":"Add params defs here","commit_id":"b57f0f19ab0c8d6db2257668ff83d9b2d65ad49e"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"ec03b0fb3cfe89243a650f9eac6bf644f6a775b1","unresolved":false,"context_lines":[{"line_number":156,"context_line":"   * @name decode"},{"line_number":157,"context_line":"   * @description"},{"line_number":158,"context_line":"   * Returns values based on key and given mapping.  If key doesn\u0027t exist"},{"line_number":159,"context_line":"   * in given mapping, return key.  This is useful when translations for"},{"line_number":160,"context_line":"   * codes are present."},{"line_number":161,"context_line":"   */"},{"line_number":162,"context_line":"  function decodeFilter() {"}],"source_content_type":"text/javascript","patch_set":1,"id":"5a5ae5dd_4b3790b0","line":159,"range":{"start_line":159,"start_character":23,"end_line":159,"end_character":33},"updated":"2016-02-03 16:27:43.000000000","message":"change this to be more accurate with changes.","commit_id":"b57f0f19ab0c8d6db2257668ff83d9b2d65ad49e"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"c832cea8976d186be0411264128467b337b8af3c","unresolved":false,"context_lines":[{"line_number":157,"context_line":"   * @ngdoc filter"},{"line_number":158,"context_line":"   * @name decode"},{"line_number":159,"context_line":"   * @description"},{"line_number":160,"context_line":"   * Returns values based on key and given mapping.  If key doesn\u0027t exist"},{"line_number":161,"context_line":"   * in the given mapping and a default function or value is given, use the"},{"line_number":162,"context_line":"   * default; otherwise just return the original value.  If the default"},{"line_number":163,"context_line":"   * is a function the value is passed to the function and the result is"}],"source_content_type":"text/javascript","patch_set":3,"id":"7af24918_57ea2410","line":160,"updated":"2016-03-02 18:30:49.000000000","message":"It is quite confusing understanding this, the terms used are not consistent. For example, key is is actually input below. Furthermore, it says here that if default is not a function, the default is returned. Line 177 does not reflect this statement, we are instead using def as the key and if that does not exist returning input.","commit_id":"3382bcb59d291a785efdefa5a5c60e5e5b9ff65d"}],"horizon/static/framework/util/filters/filters.spec.js":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"c832cea8976d186be0411264128467b337b8af3c","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        expect(decodeFilter(\u0027PRESENT\u0027, {\u0027PRESENT\u0027: false})).toBe(false);"},{"line_number":203,"context_line":"      });"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"      it(\"Returns input when key is not present and no default\", function () {"},{"line_number":206,"context_line":"        expect(decodeFilter(\u0027NOT_PRESENT\u0027, {\u0027PRESENT\u0027: \u0027Here\u0027})).toBe(\u0027NOT_PRESENT\u0027);"},{"line_number":207,"context_line":"      });"},{"line_number":208,"context_line":""}],"source_content_type":"text/javascript","patch_set":3,"id":"7af24918_370958de","line":205,"updated":"2016-03-02 18:30:49.000000000","message":"Again, we are using key and input loosely here, which makes it harder to follow.","commit_id":"3382bcb59d291a785efdefa5a5c60e5e5b9ff65d"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"c832cea8976d186be0411264128467b337b8af3c","unresolved":false,"context_lines":[{"line_number":206,"context_line":"        expect(decodeFilter(\u0027NOT_PRESENT\u0027, {\u0027PRESENT\u0027: \u0027Here\u0027})).toBe(\u0027NOT_PRESENT\u0027);"},{"line_number":207,"context_line":"      });"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"      it(\"Returns translated default when key is not present but default is\", function () {"},{"line_number":210,"context_line":"        expect(decodeFilter(\u0027WHATWHAT\u0027, {\u0027PRESENT\u0027: \u0027Here\u0027, \u0027NONE\u0027: \u0027None\u0027},"},{"line_number":211,"context_line":"          \u0027NONE\u0027)).toBe(\u0027None\u0027);"},{"line_number":212,"context_line":"      });"}],"source_content_type":"text/javascript","patch_set":3,"id":"7af24918_57d4e41e","line":209,"updated":"2016-03-02 18:30:49.000000000","message":"We mentioned translated default but the example does not show this. Either remove the translated word or use gettext as an example.","commit_id":"3382bcb59d291a785efdefa5a5c60e5e5b9ff65d"}]}
