)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"0e1746d6634745aabcae3e744a1eb7e43edabc84","unresolved":false,"context_lines":[{"line_number":14,"context_line":"it will be restored when the input becomes visible."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I597fc4733ce7312065dba6820495444acf8d8208"},{"line_number":17,"context_line":"Fixes-bug: #1709693"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9f436f4f_bf3dac2d","line":17,"range":{"start_line":17,"start_character":12,"end_line":17,"end_character":19},"updated":"2017-08-19 18:17:09.000000000","message":"I noticed a same bug was already reported as bug 1708601.","commit_id":"7ef02b6853c388fe661da9d3aa69befed5c91263"}],"horizon/static/horizon/js/horizon.forms.js":[{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"46a4ab9072008daf21053df394b98ffafd6e6dd5","unresolved":false,"context_lines":[{"line_number":511,"context_line":"          if(!angular.isDefined(isRequired)){"},{"line_number":512,"context_line":"            $input.data(\"required\", input.required);"},{"line_number":513,"context_line":"          }"},{"line_number":514,"context_line":"          input.required \u003d false;"},{"line_number":515,"context_line":"        } else {"},{"line_number":516,"context_line":"          //If the input is a checkbox no need to replace html for label since it has another structure"},{"line_number":517,"context_line":"          if($input.attr(\u0027type\u0027) !\u003d\u003d \"checkbox\"){"}],"source_content_type":"text/javascript","patch_set":3,"id":"9f436f4f_9b66f8c0","line":514,"updated":"2017-08-15 10:19:18.000000000","message":"Where is input even set? This code is a little baffling.","commit_id":"5c05f47f09e842509b59b9e245e0280a1b60537d"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"bc8045153beba49d721dfafa3a94f850edab4ca6","unresolved":false,"context_lines":[{"line_number":511,"context_line":"          if(!angular.isDefined(isRequired)){"},{"line_number":512,"context_line":"            $input.data(\"required\", input.required);"},{"line_number":513,"context_line":"          }"},{"line_number":514,"context_line":"          input.required \u003d false;"},{"line_number":515,"context_line":"        } else {"},{"line_number":516,"context_line":"          //If the input is a checkbox no need to replace html for label since it has another structure"},{"line_number":517,"context_line":"          if($input.attr(\u0027type\u0027) !\u003d\u003d \"checkbox\"){"}],"source_content_type":"text/javascript","patch_set":3,"id":"9f436f4f_757c5771","line":514,"in_reply_to":"9f436f4f_0b13d567","updated":"2017-08-16 17:42:33.000000000","message":"Ah, I\u0027m being blind, it\u0027s a function parameter. Will re-review code.","commit_id":"5c05f47f09e842509b59b9e245e0280a1b60537d"},{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"d8eb9b1126d214cd60644554e91945c4e1f07aa5","unresolved":false,"context_lines":[{"line_number":511,"context_line":"          if(!angular.isDefined(isRequired)){"},{"line_number":512,"context_line":"            $input.data(\"required\", input.required);"},{"line_number":513,"context_line":"          }"},{"line_number":514,"context_line":"          input.required \u003d false;"},{"line_number":515,"context_line":"        } else {"},{"line_number":516,"context_line":"          //If the input is a checkbox no need to replace html for label since it has another structure"},{"line_number":517,"context_line":"          if($input.attr(\u0027type\u0027) !\u003d\u003d \"checkbox\"){"}],"source_content_type":"text/javascript","patch_set":3,"id":"9f436f4f_0b13d567","line":514,"in_reply_to":"9f436f4f_4b02fd0b","updated":"2017-08-15 13:56:55.000000000","message":"The js error is caused by required input not being visible when the form is submitted. Here is setting the required field of the input to false when the input is hidden. The value is stored in the data field of the input so it will be restored when the input is visible.","commit_id":"5c05f47f09e842509b59b9e245e0280a1b60537d"},{"author":{"_account_id":15209,"name":"Lucas Xu","email":"hanxu@redhat.com","username":"xuh"},"change_message_id":"bf3386f5469c3f6273ec9c9a3c0d5e45aeed085e","unresolved":false,"context_lines":[{"line_number":511,"context_line":"          if(!angular.isDefined(isRequired)){"},{"line_number":512,"context_line":"            $input.data(\"required\", input.required);"},{"line_number":513,"context_line":"          }"},{"line_number":514,"context_line":"          input.required \u003d false;"},{"line_number":515,"context_line":"        } else {"},{"line_number":516,"context_line":"          //If the input is a checkbox no need to replace html for label since it has another structure"},{"line_number":517,"context_line":"          if($input.attr(\u0027type\u0027) !\u003d\u003d \"checkbox\"){"}],"source_content_type":"text/javascript","patch_set":3,"id":"9f436f4f_4b02fd0b","line":514,"in_reply_to":"9f436f4f_9b66f8c0","updated":"2017-08-15 13:25:19.000000000","message":"My interpretation is this \"input\" is an argument in this function. (504) But I am not so sure.","commit_id":"5c05f47f09e842509b59b9e245e0280a1b60537d"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"570a73df4bb86e55dcdef38bec45aec207b1d130","unresolved":false,"context_lines":[{"line_number":504,"context_line":"      function handle_switched_field(index, input){"},{"line_number":505,"context_line":"        var $input \u003d $(input),"},{"line_number":506,"context_line":"          data \u003d $input.data(slug + \"-\" + val),"},{"line_number":507,"context_line":"          isRequired \u003d $input.data(\"isRequired\");"},{"line_number":508,"context_line":""},{"line_number":509,"context_line":"        if (typeof data \u003d\u003d\u003d \"undefined\" || !visible) {"},{"line_number":510,"context_line":"          $input.closest(\u0027.form-group\u0027).hide();"}],"source_content_type":"text/javascript","patch_set":4,"id":"9f436f4f_3f2adce6","line":507,"range":{"start_line":507,"start_character":23,"end_line":507,"end_character":49},"updated":"2017-08-19 18:11:20.000000000","message":"This data has a special meaning to store the original \u0027required\u0027 setting and this is used as read-write variable. I believe you need to add some comment for the purpose (from maintenance perspective)\n\nIn addition, it would be nice if you use a variable name which says that this variable is to keep the original value of \u0027required\u0027. \"savedRequired\"?\n(At least isRequired is not clear enough.)","commit_id":"7ef02b6853c388fe661da9d3aa69befed5c91263"}],"horizon/templates/horizon/common/_workflow.html":[{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"46a4ab9072008daf21053df394b98ffafd6e6dd5","unresolved":false,"context_lines":[{"line_number":3,"context_line":"{% with workflow.get_entry_point as entry_point %}"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"\u003cdiv class\u003d\"workflow {{ layout|join:\u0027 \u0027 }}\" {% if modal %}tabindex\u003d\"-1\"{% endif %} data-backdrop\u003d\"{{ modal_backdrop }}\"\u003e"},{"line_number":6,"context_line":"  \u003cform {{ workflow.attr_string|safe }} action\u003d\"{{ workflow.get_absolute_url }}\" {% if add_to_field %}data-add-to-field\u003d\"{{ add_to_field }}\"{% endif %} method\u003d\"POST\"{% if workflow.multipart %} enctype\u003d\"multipart/form-data\"{% endif %} novalidate\u003e{% csrf_token %}"},{"line_number":7,"context_line":"    {% if REDIRECT_URL %}\u003cinput type\u003d\"hidden\" name\u003d\"{{ workflow.redirect_param_name }}\" value\u003d\"{{ REDIRECT_URL }}\"/\u003e{% endif %}"},{"line_number":8,"context_line":"    \u003cdiv class\u003d\"modal-dialog\"\u003e"},{"line_number":9,"context_line":"      \u003cdiv class\u003d\"modal-content\"\u003e"}],"source_content_type":"text/html","patch_set":3,"id":"9f436f4f_db67e0b6","line":6,"updated":"2017-08-15 10:19:18.000000000","message":"Won\u0027t this globally disable all form submission validation? This is way too heavy handed.","commit_id":"5c05f47f09e842509b59b9e245e0280a1b60537d"},{"author":{"_account_id":15209,"name":"Lucas Xu","email":"hanxu@redhat.com","username":"xuh"},"change_message_id":"bf3386f5469c3f6273ec9c9a3c0d5e45aeed085e","unresolved":false,"context_lines":[{"line_number":3,"context_line":"{% with workflow.get_entry_point as entry_point %}"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"\u003cdiv class\u003d\"workflow {{ layout|join:\u0027 \u0027 }}\" {% if modal %}tabindex\u003d\"-1\"{% endif %} data-backdrop\u003d\"{{ modal_backdrop }}\"\u003e"},{"line_number":6,"context_line":"  \u003cform {{ workflow.attr_string|safe }} action\u003d\"{{ workflow.get_absolute_url }}\" {% if add_to_field %}data-add-to-field\u003d\"{{ add_to_field }}\"{% endif %} method\u003d\"POST\"{% if workflow.multipart %} enctype\u003d\"multipart/form-data\"{% endif %} novalidate\u003e{% csrf_token %}"},{"line_number":7,"context_line":"    {% if REDIRECT_URL %}\u003cinput type\u003d\"hidden\" name\u003d\"{{ workflow.redirect_param_name }}\" value\u003d\"{{ REDIRECT_URL }}\"/\u003e{% endif %}"},{"line_number":8,"context_line":"    \u003cdiv class\u003d\"modal-dialog\"\u003e"},{"line_number":9,"context_line":"      \u003cdiv class\u003d\"modal-content\"\u003e"}],"source_content_type":"text/html","patch_set":3,"id":"9f436f4f_8b1b4571","line":6,"in_reply_to":"9f436f4f_db67e0b6","updated":"2017-08-15 13:25:19.000000000","message":"I believe this would for all forms under \"workflow\" unless we have server validation for every form.","commit_id":"5c05f47f09e842509b59b9e245e0280a1b60537d"}]}
