)]}'
{"tacker/db/exceptions.py":[{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"ad5a7da7a260f0e02bfd7bcf7d6a31f61b1511fe","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":9,"id":"ffe62b97_1646d77d","updated":"2017-03-24 22:46:42.000000000","message":"Why new file under tacker/db ? Did you consider adding this into tacker/common/exceptions.py ?","commit_id":"887ca2fca4191a60c55d849395eeda3f7834e572"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"28a1a56a5e122036e60ed58eb9a63af324e1384b","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":9,"id":"ffe62b97_a2f5a1cd","in_reply_to":"ffe62b97_1646d77d","updated":"2017-03-25 02:11:44.000000000","message":"Hi Sridhar, I added here as this is very specific to the Db.\ni will add it in common exception as i overlooked them as under nfvo as nfvo also had exceptions.\n\nThanks.","commit_id":"887ca2fca4191a60c55d849395eeda3f7834e572"}],"tacker/nfvo/nfvo_plugin.py":[{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"32a9cb0f58f50b1664cae17678c1146ec3b6da07","unresolved":false,"context_lines":[{"line_number":111,"context_line":"        vim_obj \u003d vim[\u0027vim\u0027]"},{"line_number":112,"context_line":"        name \u003d vim_obj[\u0027name\u0027]"},{"line_number":113,"context_line":"        if self._get_by_name(context, nfvo_db.Vim, name):"},{"line_number":114,"context_line":"            raise exceptions.DuplicateResourceName(resource\u003d\u0027VIM\u0027, name\u003dname)"},{"line_number":115,"context_line":"        vim_type \u003d vim_obj[\u0027type\u0027]"},{"line_number":116,"context_line":"        vim_obj[\u0027id\u0027] \u003d str(uuid.uuid4())"},{"line_number":117,"context_line":"        vim_obj[\u0027status\u0027] \u003d \u0027PENDING\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba2be162_77f8484a","side":"PARENT","line":114,"range":{"start_line":114,"start_character":18,"end_line":114,"end_character":77},"updated":"2017-03-02 04:22:22.000000000","message":"we need to deal with the exception in DB module. when duplicate entry is inserted or updated, the db will raise the exception.\n\n\ncan you have a test:\n\ninsert into the db with a name,\nand then use our API to insert with the same name entry.","commit_id":"4ebbb029f0ace0b3f4998a030743dcea3b1f376a"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"9412ab5216657ecff6c6b0943ffd5eced3defdae","unresolved":false,"context_lines":[{"line_number":111,"context_line":"        vim_obj \u003d vim[\u0027vim\u0027]"},{"line_number":112,"context_line":"        name \u003d vim_obj[\u0027name\u0027]"},{"line_number":113,"context_line":"        if self._get_by_name(context, nfvo_db.Vim, name):"},{"line_number":114,"context_line":"            raise exceptions.DuplicateResourceName(resource\u003d\u0027VIM\u0027, name\u003dname)"},{"line_number":115,"context_line":"        vim_type \u003d vim_obj[\u0027type\u0027]"},{"line_number":116,"context_line":"        vim_obj[\u0027id\u0027] \u003d str(uuid.uuid4())"},{"line_number":117,"context_line":"        vim_obj[\u0027status\u0027] \u003d \u0027PENDING\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba2be162_4c965a4d","side":"PARENT","line":114,"range":{"start_line":114,"start_character":18,"end_line":114,"end_character":77},"in_reply_to":"ba2be162_77f8484a","updated":"2017-03-02 05:03:59.000000000","message":"yeah ! need to add test cases and exception needs to be moved to db layer.","commit_id":"4ebbb029f0ace0b3f4998a030743dcea3b1f376a"}]}
