)]}'
{"tacker_horizon/openstack_dashboard/dashboards/nfv/vnfcatalog/forms.py":[{"author":{"_account_id":20873,"name":"Laszlo Hegedus","email":"hegedues.laszlo@gmail.com","username":"laszloh"},"change_message_id":"085f0a0ea65846c15088570bb392b97ea54c7143","unresolved":false,"context_lines":[{"line_number":63,"context_line":"        toscal_file \u003d data.get(\u0027toscal_file\u0027, None)"},{"line_number":64,"context_line":"        toscal_raw \u003d data.get(\u0027direct_input\u0027, None)"},{"line_number":65,"context_line":"        source_type \u003d data.get(\"source_type\")"},{"line_number":66,"context_line":"        if source_type \u003d\u003d \"file\" and not toscal_file:"},{"line_number":67,"context_line":"            raise ValidationError("},{"line_number":68,"context_line":"                _(\"No TOSCA Template File selected.\"))"},{"line_number":69,"context_line":"        if source_type \u003d\u003d \"raw\" and not toscal_raw:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3aaa91ec_08d16657","line":66,"range":{"start_line":66,"start_character":37,"end_line":66,"end_character":52},"updated":"2016-06-30 12:12:09.000000000","message":"I think\n\n  toscal_file is None\n\nwould make this more readable.","commit_id":"c551f1b843f7f45726c485b7c838ad78b8296d4f"},{"author":{"_account_id":20873,"name":"Laszlo Hegedus","email":"hegedues.laszlo@gmail.com","username":"laszloh"},"change_message_id":"085f0a0ea65846c15088570bb392b97ea54c7143","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        if source_type \u003d\u003d \"file\" and not toscal_file:"},{"line_number":67,"context_line":"            raise ValidationError("},{"line_number":68,"context_line":"                _(\"No TOSCA Template File selected.\"))"},{"line_number":69,"context_line":"        if source_type \u003d\u003d \"raw\" and not toscal_raw:"},{"line_number":70,"context_line":"            raise ValidationError("},{"line_number":71,"context_line":"                _(\"No direct input specified.\"))"},{"line_number":72,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":2,"id":"3aaa91ec_483ece8b","line":69,"range":{"start_line":69,"start_character":36,"end_line":69,"end_character":50},"updated":"2016-06-30 12:12:09.000000000","message":"Same as above,\n\n  toscal_raw is None\n\nis more readable in my opinion.","commit_id":"c551f1b843f7f45726c485b7c838ad78b8296d4f"},{"author":{"_account_id":20986,"name":"Manikantha Srinivas Tadi","email":"manikantha.tadi@gmail.com","username":"mtadi"},"change_message_id":"f940b6b6fc9950735c2e82dccb7eda8b58801e9e","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        source_type \u003d data.get(\"source_type\")"},{"line_number":66,"context_line":"        if source_type \u003d\u003d \"file\" and toscal_file is None:"},{"line_number":67,"context_line":"            raise ValidationError("},{"line_number":68,"context_line":"                _(\"No TOSCA Template File selected.\"))"},{"line_number":69,"context_line":"        if source_type \u003d\u003d \"raw\" and toscal_raw is None:"},{"line_number":70,"context_line":"            raise ValidationError("},{"line_number":71,"context_line":"                _(\"No direct input specified.\"))"}],"source_content_type":"text/x-python","patch_set":3,"id":"dada55a8_66d9ac83","line":68,"updated":"2016-07-19 07:14:16.000000000","message":"do we need camel case ?","commit_id":"87f1d1f5f80c63888037b8046347dc1ab4e2c702"},{"author":{"_account_id":20986,"name":"Manikantha Srinivas Tadi","email":"manikantha.tadi@gmail.com","username":"mtadi"},"change_message_id":"777cb78415d64025f6eb847aaf7ded6186de73f3","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        source_type \u003d data.get(\"source_type\")"},{"line_number":66,"context_line":"        if source_type \u003d\u003d \"file\" and toscal_file is None:"},{"line_number":67,"context_line":"            raise ValidationError("},{"line_number":68,"context_line":"                _(\"No TOSCA Template File selected.\"))"},{"line_number":69,"context_line":"        if source_type \u003d\u003d \"raw\" and toscal_raw is None:"},{"line_number":70,"context_line":"            raise ValidationError("},{"line_number":71,"context_line":"                _(\"No direct input specified.\"))"}],"source_content_type":"text/x-python","patch_set":3,"id":"dada55a8_6765e0b3","line":68,"in_reply_to":"dada55a8_278c887e","updated":"2016-07-20 11:01:53.000000000","message":"Atleast, You can make the statement look like \"No TOSCA template file selected.\" to be inline with others.","commit_id":"87f1d1f5f80c63888037b8046347dc1ab4e2c702"},{"author":{"_account_id":9631,"name":"sajuptpm","email":"sajuptpm@gmail.com","username":"sajuptpm"},"change_message_id":"4c749dc9c5f8c70830819e717df86c52353474c0","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        source_type \u003d data.get(\"source_type\")"},{"line_number":66,"context_line":"        if source_type \u003d\u003d \"file\" and toscal_file is None:"},{"line_number":67,"context_line":"            raise ValidationError("},{"line_number":68,"context_line":"                _(\"No TOSCA Template File selected.\"))"},{"line_number":69,"context_line":"        if source_type \u003d\u003d \"raw\" and toscal_raw is None:"},{"line_number":70,"context_line":"            raise ValidationError("},{"line_number":71,"context_line":"                _(\"No direct input specified.\"))"}],"source_content_type":"text/x-python","patch_set":3,"id":"dada55a8_278c887e","line":68,"in_reply_to":"dada55a8_66d9ac83","updated":"2016-07-20 10:59:49.000000000","message":"Hi Manikantha,\n\nWe already using camel case (TOSCA) in multiple place.\nI think its ok. Should I replace it ?\n\nExample:\n\nhttps://github.com/openstack/tacker-horizon/blob/master/tacker_horizon/openstack_dashboard/dashboards/nfv/vnfcatalog/forms.py#L99\n\nhttps://github.com/openstack/tacker-horizon/blob/master/tacker_horizon/openstack_dashboard/dashboards/nfv/vnfcatalog/forms.py#L41","commit_id":"87f1d1f5f80c63888037b8046347dc1ab4e2c702"},{"author":{"_account_id":9631,"name":"sajuptpm","email":"sajuptpm@gmail.com","username":"sajuptpm"},"change_message_id":"60ed6ec710fffa8fabc070cef7e508151d9538c8","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        source_type \u003d data.get(\"source_type\")"},{"line_number":66,"context_line":"        if source_type \u003d\u003d \"file\" and toscal_file is None:"},{"line_number":67,"context_line":"            raise ValidationError("},{"line_number":68,"context_line":"                _(\"No TOSCA Template File selected.\"))"},{"line_number":69,"context_line":"        if source_type \u003d\u003d \"raw\" and toscal_raw is None:"},{"line_number":70,"context_line":"            raise ValidationError("},{"line_number":71,"context_line":"                _(\"No direct input specified.\"))"}],"source_content_type":"text/x-python","patch_set":3,"id":"dada55a8_135ee143","line":68,"in_reply_to":"dada55a8_6765e0b3","updated":"2016-07-20 13:37:23.000000000","message":"done","commit_id":"87f1d1f5f80c63888037b8046347dc1ab4e2c702"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"9528c000feb0a4d53fc378b4e9ecd44bc82a48b7","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        if source_type \u003d\u003d \"file\" and toscal_file is None:"},{"line_number":67,"context_line":"            raise ValidationError("},{"line_number":68,"context_line":"                _(\"No TOSCA template file selected.\"))"},{"line_number":69,"context_line":"        if source_type \u003d\u003d \"raw\" and toscal_raw is None:"},{"line_number":70,"context_line":"            raise ValidationError("},{"line_number":71,"context_line":"                _(\"No direct input specified.\"))"},{"line_number":72,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_dd2d59a9","line":69,"range":{"start_line":69,"start_character":50,"end_line":69,"end_character":54},"updated":"2016-07-20 23:20:42.000000000","message":"this can be empty, so handle both conditions None and empty for file and raw source_type","commit_id":"45771fc4f4b1316f7567dc7b680782fe153dc64c"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"5541b13e428c9be730d37c37292381362ed1a69a","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        if source_type \u003d\u003d \"file\" and toscal_file is None:"},{"line_number":67,"context_line":"            raise ValidationError("},{"line_number":68,"context_line":"                _(\"No TOSCA template file selected.\"))"},{"line_number":69,"context_line":"        if source_type \u003d\u003d \"raw\" and toscal_raw is None:"},{"line_number":70,"context_line":"            raise ValidationError("},{"line_number":71,"context_line":"                _(\"No direct input specified.\"))"},{"line_number":72,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_7fb34e98","line":69,"range":{"start_line":69,"start_character":50,"end_line":69,"end_character":54},"in_reply_to":"dada55a8_0762f209","updated":"2016-07-21 19:04:50.000000000","message":"empty file with no content will result in toscal_file \u003d\u0027\u0027 . Only if key is not found, None is returned.\n\nFor direct input, i tested this patch with no direct input, it did not raise the ValidationError.","commit_id":"45771fc4f4b1316f7567dc7b680782fe153dc64c"},{"author":{"_account_id":9631,"name":"sajuptpm","email":"sajuptpm@gmail.com","username":"sajuptpm"},"change_message_id":"2d1cd08a62a2c911ca14e02ee01adb0d3f958e8c","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        if source_type \u003d\u003d \"file\" and toscal_file is None:"},{"line_number":67,"context_line":"            raise ValidationError("},{"line_number":68,"context_line":"                _(\"No TOSCA template file selected.\"))"},{"line_number":69,"context_line":"        if source_type \u003d\u003d \"raw\" and toscal_raw is None:"},{"line_number":70,"context_line":"            raise ValidationError("},{"line_number":71,"context_line":"                _(\"No direct input specified.\"))"},{"line_number":72,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_47206af7","line":69,"range":{"start_line":69,"start_character":50,"end_line":69,"end_character":54},"in_reply_to":"dada55a8_dd2d59a9","updated":"2016-07-21 07:24:26.000000000","message":"this can\u0027t be empty. I have checked it when making changes based on the comments in patch set 2. Please check the comments in patch set 2.","commit_id":"45771fc4f4b1316f7567dc7b680782fe153dc64c"},{"author":{"_account_id":9631,"name":"sajuptpm","email":"sajuptpm@gmail.com","username":"sajuptpm"},"change_message_id":"5dddbc2bb17b4fbb16de467e76441960fc0e1fca","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        if source_type \u003d\u003d \"file\" and toscal_file is None:"},{"line_number":67,"context_line":"            raise ValidationError("},{"line_number":68,"context_line":"                _(\"No TOSCA template file selected.\"))"},{"line_number":69,"context_line":"        if source_type \u003d\u003d \"raw\" and toscal_raw is None:"},{"line_number":70,"context_line":"            raise ValidationError("},{"line_number":71,"context_line":"                _(\"No direct input specified.\"))"},{"line_number":72,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_0762f209","line":69,"range":{"start_line":69,"start_character":50,"end_line":69,"end_character":54},"in_reply_to":"dada55a8_dd2d59a9","updated":"2016-07-21 07:28:52.000000000","message":"toscal_file \u003d data.get(\u0027toscal_file\u0027, None)\ntoscal_raw \u003d data.get(\u0027direct_input\u0027, None)\n\nwe are using \"get\" method of dict (data), that will return None by default on keyerror..","commit_id":"45771fc4f4b1316f7567dc7b680782fe153dc64c"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"87be48a6c31b9bac4aa8bf970a5879259e0f9625","unresolved":false,"context_lines":[{"line_number":63,"context_line":"        toscal_file \u003d data.get(\u0027toscal_file\u0027, None)"},{"line_number":64,"context_line":"        toscal_raw \u003d data.get(\u0027direct_input\u0027, None)"},{"line_number":65,"context_line":"        source_type \u003d data.get(\"source_type\")"},{"line_number":66,"context_line":"        if source_type \u003d\u003d \"file\" and toscal_file is None:"},{"line_number":67,"context_line":"            raise ValidationError("},{"line_number":68,"context_line":"                _(\"No TOSCA template file selected.\"))"},{"line_number":69,"context_line":"        if source_type \u003d\u003d \"raw\" and toscal_raw is None:"}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_7f0fce36","line":66,"range":{"start_line":66,"start_character":37,"end_line":66,"end_character":56},"updated":"2016-07-21 19:17:30.000000000","message":"this does not check the \u0027\u0027 value. better to have this check:\nnot toscal_file","commit_id":"e4008a80a94eeeac20c18ae20e1244d7621af0fd"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"87be48a6c31b9bac4aa8bf970a5879259e0f9625","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        if source_type \u003d\u003d \"file\" and toscal_file is None:"},{"line_number":67,"context_line":"            raise ValidationError("},{"line_number":68,"context_line":"                _(\"No TOSCA template file selected.\"))"},{"line_number":69,"context_line":"        if source_type \u003d\u003d \"raw\" and toscal_raw is None:"},{"line_number":70,"context_line":"            raise ValidationError("},{"line_number":71,"context_line":"                _(\"No direct input specified.\"))"},{"line_number":72,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_9f00c203","line":69,"range":{"start_line":69,"start_character":36,"end_line":69,"end_character":54},"updated":"2016-07-21 19:17:30.000000000","message":"not toscal_row","commit_id":"e4008a80a94eeeac20c18ae20e1244d7621af0fd"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"87be48a6c31b9bac4aa8bf970a5879259e0f9625","unresolved":false,"context_lines":[{"line_number":67,"context_line":"            raise ValidationError("},{"line_number":68,"context_line":"                _(\"No TOSCA template file selected.\"))"},{"line_number":69,"context_line":"        if source_type \u003d\u003d \"raw\" and toscal_raw is None:"},{"line_number":70,"context_line":"            raise ValidationError("},{"line_number":71,"context_line":"                _(\"No direct input specified.\"))"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"        if toscal_file and not toscal_file.name.endswith((\u0027.yaml\u0027, \u0027.csar\u0027)):"},{"line_number":74,"context_line":"            raise ValidationError(_(\"Only .yaml or .csar file uploads \\"}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_3aa7240c","line":71,"range":{"start_line":70,"start_character":18,"end_line":71,"end_character":48},"updated":"2016-07-21 19:17:30.000000000","message":"tested this patch for toscal_raw as no input. this validation error was never raised and direct_input key was \u0027\u0027 . kindly check.","commit_id":"e4008a80a94eeeac20c18ae20e1244d7621af0fd"}]}
