)]}'
{"tackerclient/shell.py":[{"author":{"_account_id":12455,"name":"bharaththiruveedula","email":"bharath_ves@hotmail.com","username":"bharaththiruveedula"},"change_message_id":"4c8a79da7be710621b803fd57278bc4a1fd5c7c9","unresolved":false,"context_lines":[{"line_number":125,"context_line":"    \u0027vim-list\u0027: vim.ListVIM,"},{"line_number":126,"context_line":"    \u0027vim-show\u0027: vim.ShowVIM,"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    \u0027events-list\u0027: events.ListResourceEvents,"},{"line_number":129,"context_line":"    \u0027event-show\u0027: events.ShowEvent,"},{"line_number":130,"context_line":"    \u0027vnf-events-list\u0027: events.ListVNFEvents,"},{"line_number":131,"context_line":"    \u0027vim-events-list\u0027: events.ListVIMEvents,"},{"line_number":132,"context_line":"    \u0027vnfd-events-list\u0027: events.ListVNFDEvents,"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"}"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9ad45d7e_9916f9ef","line":132,"range":{"start_line":128,"start_character":0,"end_line":132,"end_character":46},"updated":"2016-08-12 13:29:42.000000000","message":"You might have already discussed this issue, but can you let me know why we need these many *-events-list? Can\u0027t we pass --resource-type\u003d\"VNF/VNFD/VIM\"? And we have same API endpoint. I couldn\u0027t see any differences in the way we output the result. Let me know if I miss something?","commit_id":"08478c3be1fefea4a6604db83fe25b4788ea0ec4"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"b6256605d2b8f8230461797432d2ea2bc3a76b58","unresolved":false,"context_lines":[{"line_number":125,"context_line":"    \u0027vim-list\u0027: vim.ListVIM,"},{"line_number":126,"context_line":"    \u0027vim-show\u0027: vim.ShowVIM,"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    \u0027events-list\u0027: events.ListResourceEvents,"},{"line_number":129,"context_line":"    \u0027event-show\u0027: events.ShowEvent,"},{"line_number":130,"context_line":"    \u0027vnf-events-list\u0027: events.ListVNFEvents,"},{"line_number":131,"context_line":"    \u0027vim-events-list\u0027: events.ListVIMEvents,"},{"line_number":132,"context_line":"    \u0027vnfd-events-list\u0027: events.ListVNFDEvents,"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"}"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3ac371cc_63037574","line":132,"range":{"start_line":128,"start_character":0,"end_line":132,"end_character":46},"in_reply_to":"3ac371cc_368396ce","updated":"2016-08-15 15:26:10.000000000","message":"Sridhar, we support something like 1) vnf-events-list that lists all VNF events 2) vnf-events-list --resource-id \u003cvnf-id\u003e that lists all events for a  specific VNF given the UUID","commit_id":"08478c3be1fefea4a6604db83fe25b4788ea0ec4"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"74443c4bc1e6c04b99bab9e8efb7377007b3e89a","unresolved":false,"context_lines":[{"line_number":129,"context_line":"    \u0027event-show\u0027: events.ShowEvent,"},{"line_number":130,"context_line":"    \u0027vnf-events-list\u0027: events.ListVNFEvents,"},{"line_number":131,"context_line":"    \u0027vim-events-list\u0027: events.ListVIMEvents,"},{"line_number":132,"context_line":"    \u0027vnfd-events-list\u0027: events.ListVNFDEvents,"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"}"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3ac371cc_e21e1f62","line":132,"in_reply_to":"3ac371cc_63037574","updated":"2016-08-16 17:23:21.000000000","message":"Sounds good","commit_id":"08478c3be1fefea4a6604db83fe25b4788ea0ec4"},{"author":{"_account_id":12455,"name":"bharaththiruveedula","email":"bharath_ves@hotmail.com","username":"bharaththiruveedula"},"change_message_id":"b8e73b583978512383e9c6313850e828bf920acc","unresolved":false,"context_lines":[{"line_number":125,"context_line":"    \u0027vim-list\u0027: vim.ListVIM,"},{"line_number":126,"context_line":"    \u0027vim-show\u0027: vim.ShowVIM,"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    \u0027events-list\u0027: events.ListResourceEvents,"},{"line_number":129,"context_line":"    \u0027event-show\u0027: events.ShowEvent,"},{"line_number":130,"context_line":"    \u0027vnf-events-list\u0027: events.ListVNFEvents,"},{"line_number":131,"context_line":"    \u0027vim-events-list\u0027: events.ListVIMEvents,"},{"line_number":132,"context_line":"    \u0027vnfd-events-list\u0027: events.ListVNFDEvents,"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"}"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9ad45d7e_7136b1e8","line":132,"range":{"start_line":128,"start_character":0,"end_line":132,"end_character":46},"in_reply_to":"9ad45d7e_1825daad","updated":"2016-08-12 16:14:00.000000000","message":"Okay, but at the end Sridhar says \"same argument for other resources like VIM (and others coming up like NSD, VNFFG).\", so I thought why we need multiple endpoints. I think Sridhar\u0027s concern is about the UX part.","commit_id":"08478c3be1fefea4a6604db83fe25b4788ea0ec4"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"d80ddd4d41dae39d8fb0b81833f49af8aec5ce21","unresolved":false,"context_lines":[{"line_number":125,"context_line":"    \u0027vim-list\u0027: vim.ListVIM,"},{"line_number":126,"context_line":"    \u0027vim-show\u0027: vim.ShowVIM,"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    \u0027events-list\u0027: events.ListResourceEvents,"},{"line_number":129,"context_line":"    \u0027event-show\u0027: events.ShowEvent,"},{"line_number":130,"context_line":"    \u0027vnf-events-list\u0027: events.ListVNFEvents,"},{"line_number":131,"context_line":"    \u0027vim-events-list\u0027: events.ListVIMEvents,"},{"line_number":132,"context_line":"    \u0027vnfd-events-list\u0027: events.ListVNFDEvents,"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"}"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3ac371cc_368396ce","line":132,"range":{"start_line":128,"start_character":0,"end_line":132,"end_character":46},"in_reply_to":"9ad45d7e_29cb2d20","updated":"2016-08-15 04:33:27.000000000","message":"Thanks for bringing this up, as something important got missed. Yes, my suggestion was more towards UX. However, vnf-events-list SHOULD take a VNF name/uuid. Without that, I agree it is pretty much events-list --resource-type\u003dvnf.\n\nVish - my understanding from the diffs, we only support showing all vnf events and not all the events originating from a specific long running vnf ?\n\nOn the subject of having same bankend API for call events related things, i think what we have is reasonable for this initial iteration. We can introduce resource specific API events in the future if there is demand from the user community.","commit_id":"08478c3be1fefea4a6604db83fe25b4788ea0ec4"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"b33dfbf6309b76f4b38461110c067676e8892a50","unresolved":false,"context_lines":[{"line_number":125,"context_line":"    \u0027vim-list\u0027: vim.ListVIM,"},{"line_number":126,"context_line":"    \u0027vim-show\u0027: vim.ShowVIM,"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    \u0027events-list\u0027: events.ListResourceEvents,"},{"line_number":129,"context_line":"    \u0027event-show\u0027: events.ShowEvent,"},{"line_number":130,"context_line":"    \u0027vnf-events-list\u0027: events.ListVNFEvents,"},{"line_number":131,"context_line":"    \u0027vim-events-list\u0027: events.ListVIMEvents,"},{"line_number":132,"context_line":"    \u0027vnfd-events-list\u0027: events.ListVNFDEvents,"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"}"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9ad45d7e_29cb2d20","line":132,"range":{"start_line":128,"start_character":0,"end_line":132,"end_character":46},"in_reply_to":"9ad45d7e_7136b1e8","updated":"2016-08-12 17:54:33.000000000","message":"From my investigation of the tacker cli framework, Having to support commads such as vnf-events-list, vim-events-list, vnfd-events-list and also getting the display right, requires having a mapping function that looks like above.\nAlso see how those functions are implemented at https://review.openstack.org/#/c/349722/7/tackerclient/tacker/v1_0/events/events.py\nIdeally, I would have all the commands map to a single mapping function by providing filters such as \nvnf-events-list: events.ListResourceEvents?resource_type\u003dvnf that I am unable to do in our framework. I support your point and would like to collaborate if you have ideas on reducing the number of multiple endpoints. Lets chat on IRC if you have ideas to share. Thanks","commit_id":"08478c3be1fefea4a6604db83fe25b4788ea0ec4"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"ec0afc208569b50f27733ad7897d3000017e2e30","unresolved":false,"context_lines":[{"line_number":125,"context_line":"    \u0027vim-list\u0027: vim.ListVIM,"},{"line_number":126,"context_line":"    \u0027vim-show\u0027: vim.ShowVIM,"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    \u0027events-list\u0027: events.ListResourceEvents,"},{"line_number":129,"context_line":"    \u0027event-show\u0027: events.ShowEvent,"},{"line_number":130,"context_line":"    \u0027vnf-events-list\u0027: events.ListVNFEvents,"},{"line_number":131,"context_line":"    \u0027vim-events-list\u0027: events.ListVIMEvents,"},{"line_number":132,"context_line":"    \u0027vnfd-events-list\u0027: events.ListVNFDEvents,"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"}"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9ad45d7e_1825daad","line":132,"range":{"start_line":128,"start_character":0,"end_line":132,"end_character":46},"in_reply_to":"9ad45d7e_9916f9ef","updated":"2016-08-12 15:30:55.000000000","message":"Your point is valid, Sridhar felt that we need to bring the event capability of resources to the forefront by having commands such as vnf-event-list, vim-events-list and vnfd-events-list at one of the IRC weekly meeting.\nAlso, Refer https://review.openstack.org/#/c/321370/5/specs/newton/event_logging.rst@64\n\nWhat you are saying can still be done such as \"events-list --resource-type vnf|vnfd|vim\". What the implementation provides is a way to do vnf-events-list --resource-id \u003cid\u003e without having to give the --resource-type","commit_id":"08478c3be1fefea4a6604db83fe25b4788ea0ec4"}],"tackerclient/tacker/v1_0/__init__.py":[{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"024b62cdd1fa8c8766854455443a695d683c8373","unresolved":false,"context_lines":[{"line_number":49,"context_line":"def find_resourceid_by_id(client, resource, resource_id):"},{"line_number":50,"context_line":"    resource_plural \u003d _get_resource_plural(resource, client)"},{"line_number":51,"context_line":"    obj_lister \u003d getattr(client, \"list_%s\" % resource_plural)"},{"line_number":52,"context_line":"    # perform search by id only if we are passing a valid UUID"},{"line_number":53,"context_line":"    if resource \u003d\u003d \u0027event\u0027 and resource_id.isdigit() and resource_id !\u003d 0:"},{"line_number":54,"context_line":"        match \u003d True"},{"line_number":55,"context_line":"    else:"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_9170b009","line":52,"range":{"start_line":52,"start_character":4,"end_line":52,"end_character":62},"updated":"2016-08-07 23:46:59.000000000","message":"Please re-write this comment as it is not valid anymore","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"ab5e68f88005e5df3b29f772b0afa21a94875225","unresolved":false,"context_lines":[{"line_number":49,"context_line":"def find_resourceid_by_id(client, resource, resource_id):"},{"line_number":50,"context_line":"    resource_plural \u003d _get_resource_plural(resource, client)"},{"line_number":51,"context_line":"    obj_lister \u003d getattr(client, \"list_%s\" % resource_plural)"},{"line_number":52,"context_line":"    # perform search by id only if we are passing a valid UUID"},{"line_number":53,"context_line":"    if resource \u003d\u003d \u0027event\u0027 and resource_id.isdigit() and resource_id !\u003d 0:"},{"line_number":54,"context_line":"        match \u003d True"},{"line_number":55,"context_line":"    else:"}],"source_content_type":"text/x-python","patch_set":6,"id":"9ad45d7e_6898fbc0","line":52,"range":{"start_line":52,"start_character":4,"end_line":52,"end_character":62},"in_reply_to":"bacf61ea_9170b009","updated":"2016-08-10 23:14:23.000000000","message":"Will do as part of next patchset upload","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"024b62cdd1fa8c8766854455443a695d683c8373","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    resource_plural \u003d _get_resource_plural(resource, client)"},{"line_number":51,"context_line":"    obj_lister \u003d getattr(client, \"list_%s\" % resource_plural)"},{"line_number":52,"context_line":"    # perform search by id only if we are passing a valid UUID"},{"line_number":53,"context_line":"    if resource \u003d\u003d \u0027event\u0027 and resource_id.isdigit() and resource_id !\u003d 0:"},{"line_number":54,"context_line":"        match \u003d True"},{"line_number":55,"context_line":"    else:"},{"line_number":56,"context_line":"        match \u003d re.match(UUID_PATTERN, resource_id)"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_f1c80c24","line":53,"range":{"start_line":53,"start_character":57,"end_line":53,"end_character":73},"updated":"2016-08-07 23:46:59.000000000","message":"why resource_id \u003d\u003d 0 is invalid ?\n\nAlso, for better code flow I\u0027d structure the code similar to L56 like\n\nif resource \u003d\u003d \u0027event\u0027:\n    match \u003d resource_id.isdigit() and resource_id !\u003d 0\nelse:\n    match \u003d re.match(UUID_PATTERN, resource_id)","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"ab5e68f88005e5df3b29f772b0afa21a94875225","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    resource_plural \u003d _get_resource_plural(resource, client)"},{"line_number":51,"context_line":"    obj_lister \u003d getattr(client, \"list_%s\" % resource_plural)"},{"line_number":52,"context_line":"    # perform search by id only if we are passing a valid UUID"},{"line_number":53,"context_line":"    if resource \u003d\u003d \u0027event\u0027 and resource_id.isdigit() and resource_id !\u003d 0:"},{"line_number":54,"context_line":"        match \u003d True"},{"line_number":55,"context_line":"    else:"},{"line_number":56,"context_line":"        match \u003d re.match(UUID_PATTERN, resource_id)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9ad45d7e_68e91be6","line":53,"range":{"start_line":53,"start_character":57,"end_line":53,"end_character":73},"in_reply_to":"9ad45d7e_6a4040a6","updated":"2016-08-10 23:14:23.000000000","message":"KanagarajM, event ids start from 1 and not 0.","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"ab5e68f88005e5df3b29f772b0afa21a94875225","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    resource_plural \u003d _get_resource_plural(resource, client)"},{"line_number":51,"context_line":"    obj_lister \u003d getattr(client, \"list_%s\" % resource_plural)"},{"line_number":52,"context_line":"    # perform search by id only if we are passing a valid UUID"},{"line_number":53,"context_line":"    if resource \u003d\u003d \u0027event\u0027 and resource_id.isdigit() and resource_id !\u003d 0:"},{"line_number":54,"context_line":"        match \u003d True"},{"line_number":55,"context_line":"    else:"},{"line_number":56,"context_line":"        match \u003d re.match(UUID_PATTERN, resource_id)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9ad45d7e_a80153b1","line":53,"range":{"start_line":53,"start_character":57,"end_line":53,"end_character":73},"in_reply_to":"bacf61ea_f1c80c24","updated":"2016-08-10 23:14:23.000000000","message":"The resource in this case is an event object and resource_id is the event id, event ids start from 1 and zero is not a valid event id.\nGood suggestion on the code refactor, will implement.","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"4bfeefa79b2da6f964ccfd0ad51645c6e01080e0","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    resource_plural \u003d _get_resource_plural(resource, client)"},{"line_number":51,"context_line":"    obj_lister \u003d getattr(client, \"list_%s\" % resource_plural)"},{"line_number":52,"context_line":"    # perform search by id only if we are passing a valid UUID"},{"line_number":53,"context_line":"    if resource \u003d\u003d \u0027event\u0027 and resource_id.isdigit() and resource_id !\u003d 0:"},{"line_number":54,"context_line":"        match \u003d True"},{"line_number":55,"context_line":"    else:"},{"line_number":56,"context_line":"        match \u003d re.match(UUID_PATTERN, resource_id)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9ad45d7e_6a4040a6","line":53,"range":{"start_line":53,"start_character":57,"end_line":53,"end_character":73},"in_reply_to":"bacf61ea_f1c80c24","updated":"2016-08-09 16:25:40.000000000","message":"one more, resource_id\u003e0, and shall we make the starting index as 1 count. as 0 sometimes misleads","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":12455,"name":"bharaththiruveedula","email":"bharath_ves@hotmail.com","username":"bharaththiruveedula"},"change_message_id":"4c8a79da7be710621b803fd57278bc4a1fd5c7c9","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    resource_plural \u003d _get_resource_plural(resource, client)"},{"line_number":51,"context_line":"    obj_lister \u003d getattr(client, \"list_%s\" % resource_plural)"},{"line_number":52,"context_line":"    if resource \u003d\u003d \u0027event\u0027:"},{"line_number":53,"context_line":"        match \u003d resource_id.isdigit() and resource_id !\u003d 0"},{"line_number":54,"context_line":"    else:"},{"line_number":55,"context_line":"        match \u003d re.match(UUID_PATTERN, resource_id)"},{"line_number":56,"context_line":"    collection \u003d resource_plural"}],"source_content_type":"text/x-python","patch_set":7,"id":"9ad45d7e_9c51c7db","line":53,"range":{"start_line":53,"start_character":42,"end_line":53,"end_character":58},"updated":"2016-08-12 13:29:42.000000000","message":"nit: resource_id \u003e 0?","commit_id":"08478c3be1fefea4a6604db83fe25b4788ea0ec4"},{"author":{"_account_id":12455,"name":"bharaththiruveedula","email":"bharath_ves@hotmail.com","username":"bharaththiruveedula"},"change_message_id":"b8e73b583978512383e9c6313850e828bf920acc","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    resource_plural \u003d _get_resource_plural(resource, client)"},{"line_number":51,"context_line":"    obj_lister \u003d getattr(client, \"list_%s\" % resource_plural)"},{"line_number":52,"context_line":"    if resource \u003d\u003d \u0027event\u0027:"},{"line_number":53,"context_line":"        match \u003d resource_id.isdigit() and resource_id !\u003d 0"},{"line_number":54,"context_line":"    else:"},{"line_number":55,"context_line":"        match \u003d re.match(UUID_PATTERN, resource_id)"},{"line_number":56,"context_line":"    collection \u003d resource_plural"}],"source_content_type":"text/x-python","patch_set":7,"id":"9ad45d7e_16d2cb34","line":53,"range":{"start_line":53,"start_character":42,"end_line":53,"end_character":58},"in_reply_to":"9ad45d7e_734a3e29","updated":"2016-08-12 16:14:00.000000000","message":"Yup, you are right, thanks for clarifying","commit_id":"08478c3be1fefea4a6604db83fe25b4788ea0ec4"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"ec0afc208569b50f27733ad7897d3000017e2e30","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    resource_plural \u003d _get_resource_plural(resource, client)"},{"line_number":51,"context_line":"    obj_lister \u003d getattr(client, \"list_%s\" % resource_plural)"},{"line_number":52,"context_line":"    if resource \u003d\u003d \u0027event\u0027:"},{"line_number":53,"context_line":"        match \u003d resource_id.isdigit() and resource_id !\u003d 0"},{"line_number":54,"context_line":"    else:"},{"line_number":55,"context_line":"        match \u003d re.match(UUID_PATTERN, resource_id)"},{"line_number":56,"context_line":"    collection \u003d resource_plural"}],"source_content_type":"text/x-python","patch_set":7,"id":"9ad45d7e_734a3e29","line":53,"range":{"start_line":53,"start_character":42,"end_line":53,"end_character":58},"in_reply_to":"9ad45d7e_9c51c7db","updated":"2016-08-12 15:30:55.000000000","message":"isdigit() ensures that the object is a positive number including zero. In case of events, event id has to be a number that is positive and cannot be zero.\nI believe that (resource_id.isdigit() and resource_id !\u003d 0) is equivalent to (resource_id.isdigit() and resource_id \u003e 0)...is this not true?","commit_id":"08478c3be1fefea4a6604db83fe25b4788ea0ec4"}],"tackerclient/tacker/v1_0/events/events.py":[{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"024b62cdd1fa8c8766854455443a695d683c8373","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    resource \u003d \"vnf_event\""},{"line_number":35,"context_line":"    list_columns \u003d [\u0027id\u0027, \u0027resource_type\u0027, \u0027resource_id\u0027,"},{"line_number":36,"context_line":"                    \u0027resource_state\u0027, \u0027event_type\u0027,"},{"line_number":37,"context_line":"                    \u0027timestamp\u0027, \u0027event_details\u0027]"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"class ListVNFDEvents(tackerV10.ListCommand):"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_f687b3b2","line":37,"range":{"start_line":37,"start_character":34,"end_line":37,"end_character":47},"updated":"2016-08-07 23:46:59.000000000","message":"Given event_details of JSON type, shouldn\u0027t this be \"unpacked\" before getting display ?","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"ab5e68f88005e5df3b29f772b0afa21a94875225","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    resource \u003d \"vnf_event\""},{"line_number":35,"context_line":"    list_columns \u003d [\u0027id\u0027, \u0027resource_type\u0027, \u0027resource_id\u0027,"},{"line_number":36,"context_line":"                    \u0027resource_state\u0027, \u0027event_type\u0027,"},{"line_number":37,"context_line":"                    \u0027timestamp\u0027, \u0027event_details\u0027]"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"class ListVNFDEvents(tackerV10.ListCommand):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9ad45d7e_3f7916c9","line":37,"range":{"start_line":37,"start_character":34,"end_line":37,"end_character":47},"in_reply_to":"bacf61ea_f687b3b2","updated":"2016-08-10 23:14:23.000000000","message":"Currently, the display is showing up fine on Horizon, let me double check though.","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"220856639bedc291907708da899ff8abba048ca1","unresolved":false,"context_lines":[{"line_number":28,"context_line":"                    \u0027timestamp\u0027, \u0027event_details\u0027]"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"class ListVNFEvents(tackerV10.ListCommand):"},{"line_number":32,"context_line":"    \"\"\"List events that belong to a given VNF.\"\"\""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    resource \u003d \"vnf_event\""}],"source_content_type":"text/x-python","patch_set":7,"id":"3ac371cc_8845a918","line":31,"range":{"start_line":31,"start_character":20,"end_line":31,"end_character":41},"updated":"2016-08-16 17:29:28.000000000","message":"can you inherit from ListResourceEvents and override resource variable. you do not need to have list_columns duplicated as they are same for cll classes here","commit_id":"08478c3be1fefea4a6604db83fe25b4788ea0ec4"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"3dacfc1eeef92b2e08afdd664207fe6317bac896","unresolved":false,"context_lines":[{"line_number":28,"context_line":"                    \u0027timestamp\u0027, \u0027event_details\u0027]"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"class ListVNFEvents(tackerV10.ListCommand):"},{"line_number":32,"context_line":"    \"\"\"List events that belong to a given VNF.\"\"\""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    resource \u003d \"vnf_event\""}],"source_content_type":"text/x-python","patch_set":7,"id":"3ac371cc_9fcaf66c","line":31,"range":{"start_line":31,"start_character":20,"end_line":31,"end_character":41},"in_reply_to":"3ac371cc_8845a918","updated":"2016-08-16 20:41:58.000000000","message":"Great suggestion, Thanks","commit_id":"08478c3be1fefea4a6604db83fe25b4788ea0ec4"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"fef8a26df3e7be0e18ccdf27474baf1cf33001f7","unresolved":false,"context_lines":[{"line_number":28,"context_line":"                    \u0027timestamp\u0027, \u0027event_details\u0027]"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"class ListVNFEvents(tackerV10.ListCommand):"},{"line_number":32,"context_line":"    \"\"\"List events that belong to a given VNF.\"\"\""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    resource \u003d \"vnf_event\""}],"source_content_type":"text/x-python","patch_set":7,"id":"3ac371cc_c2c5b58e","line":31,"range":{"start_line":31,"start_character":20,"end_line":31,"end_character":41},"in_reply_to":"3ac371cc_9fcaf66c","updated":"2016-08-16 20:57:32.000000000","message":"+1","commit_id":"08478c3be1fefea4a6604db83fe25b4788ea0ec4"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"220856639bedc291907708da899ff8abba048ca1","unresolved":false,"context_lines":[{"line_number":37,"context_line":"                    \u0027timestamp\u0027, \u0027event_details\u0027]"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"class ListVNFDEvents(tackerV10.ListCommand):"},{"line_number":41,"context_line":"    \"\"\"List events that belong to a given VNFD.\"\"\""},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    resource \u003d \"vnfd_event\""}],"source_content_type":"text/x-python","patch_set":7,"id":"3ac371cc_e8737d7e","line":40,"range":{"start_line":40,"start_character":21,"end_line":40,"end_character":42},"updated":"2016-08-16 17:29:28.000000000","message":"same as L31","commit_id":"08478c3be1fefea4a6604db83fe25b4788ea0ec4"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"220856639bedc291907708da899ff8abba048ca1","unresolved":false,"context_lines":[{"line_number":46,"context_line":"                    \u0027timestamp\u0027, \u0027event_details\u0027]"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"class ListVIMEvents(tackerV10.ListCommand):"},{"line_number":50,"context_line":"    \"\"\"List events that belong to a given VIM.\"\"\""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    resource \u003d \"vim_event\""}],"source_content_type":"text/x-python","patch_set":7,"id":"3ac371cc_e8fa5dbc","line":49,"range":{"start_line":49,"start_character":20,"end_line":49,"end_character":42},"updated":"2016-08-16 17:29:28.000000000","message":"same as L31","commit_id":"08478c3be1fefea4a6604db83fe25b4788ea0ec4"}],"tackerclient/tests/unit/test_cli10_event.py":[{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"4bfeefa79b2da6f964ccfd0ad51645c6e01080e0","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"class CLITestV10EventJSON(test_cli10.CLITestV10Base):"},{"line_number":33,"context_line":"    _EVT_RESOURCE \u003d \u0027event\u0027"},{"line_number":34,"context_line":"    _EVT_RESOURCES \u003d \u0027events\u0027"},{"line_number":35,"context_line":"    _VNF_EVT_RESOURCE \u003d \"vnf_event\""},{"line_number":36,"context_line":"    _VNF_EVT_RESOURCES \u003d \"vnf_events\""},{"line_number":37,"context_line":"    _VNFD_EVT_RESOURCE \u003d \"vnfd_event\""}],"source_content_type":"text/x-python","patch_set":6,"id":"9ad45d7e_4dabd6d6","line":34,"updated":"2016-08-09 16:25:40.000000000","message":"is ok to make \u003d _EVT_RESOURCE + \u0027s\u0027, and other also here","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"ab5e68f88005e5df3b29f772b0afa21a94875225","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"class CLITestV10EventJSON(test_cli10.CLITestV10Base):"},{"line_number":33,"context_line":"    _EVT_RESOURCE \u003d \u0027event\u0027"},{"line_number":34,"context_line":"    _EVT_RESOURCES \u003d \u0027events\u0027"},{"line_number":35,"context_line":"    _VNF_EVT_RESOURCE \u003d \"vnf_event\""},{"line_number":36,"context_line":"    _VNF_EVT_RESOURCES \u003d \"vnf_events\""},{"line_number":37,"context_line":"    _VNFD_EVT_RESOURCE \u003d \"vnfd_event\""}],"source_content_type":"text/x-python","patch_set":6,"id":"9ad45d7e_522fa187","line":34,"in_reply_to":"9ad45d7e_4dabd6d6","updated":"2016-08-10 23:14:23.000000000","message":"Yes, I could do that, is that how its done in other projects as well?","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"4bfeefa79b2da6f964ccfd0ad51645c6e01080e0","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def setUp(self):"},{"line_number":43,"context_line":"        plurals \u003d {\u0027events\u0027: \u0027event\u0027, \u0027vnf_events\u0027: \u0027vnf_event\u0027,"},{"line_number":44,"context_line":"                   \u0027vnfd_events\u0027: \u0027vnfd_event\u0027, \u0027vim_events\u0027: \u0027vim_event\u0027}"},{"line_number":45,"context_line":"        super(CLITestV10EventJSON, self).setUp(plurals\u003dplurals)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def test_list_events(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9ad45d7e_6dfa1abf","line":44,"updated":"2016-08-09 16:25:40.000000000","message":"kindly make use of above comments here","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"ab5e68f88005e5df3b29f772b0afa21a94875225","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def setUp(self):"},{"line_number":43,"context_line":"        plurals \u003d {\u0027events\u0027: \u0027event\u0027, \u0027vnf_events\u0027: \u0027vnf_event\u0027,"},{"line_number":44,"context_line":"                   \u0027vnfd_events\u0027: \u0027vnfd_event\u0027, \u0027vim_events\u0027: \u0027vim_event\u0027}"},{"line_number":45,"context_line":"        super(CLITestV10EventJSON, self).setUp(plurals\u003dplurals)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def test_list_events(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9ad45d7e_d259d136","line":44,"in_reply_to":"9ad45d7e_6dfa1abf","updated":"2016-08-10 23:14:23.000000000","message":"Good suggestion, will do","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"024b62cdd1fa8c8766854455443a695d683c8373","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    def test_list_events_pagination(self):"},{"line_number":52,"context_line":"        cmd \u003d events.ListResourceEvents(test_cli10.MyApp(sys.stdout), None)"},{"line_number":53,"context_line":"        self._test_list_resources(self._EVT_RESOURCES, cmd, True)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def test_show_event_id(self):"},{"line_number":56,"context_line":"        cmd \u003d events.ShowEvent(test_cli10.MyApp(sys.stdout), None)"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_d4edf625","line":53,"range":{"start_line":53,"start_character":13,"end_line":53,"end_character":33},"updated":"2016-08-07 23:46:59.000000000","message":"This should use _test_list_resources_with_pagination() variant.\n\n[1] https://github.com/openstack/python-tackerclient/blob/master/tackerclient/tests/unit/test_cli10.py#L372","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"ab5e68f88005e5df3b29f772b0afa21a94875225","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    def test_list_events_pagination(self):"},{"line_number":52,"context_line":"        cmd \u003d events.ListResourceEvents(test_cli10.MyApp(sys.stdout), None)"},{"line_number":53,"context_line":"        self._test_list_resources(self._EVT_RESOURCES, cmd, True)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def test_show_event_id(self):"},{"line_number":56,"context_line":"        cmd \u003d events.ShowEvent(test_cli10.MyApp(sys.stdout), None)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9ad45d7e_72490560","line":53,"range":{"start_line":53,"start_character":13,"end_line":53,"end_character":33},"in_reply_to":"bacf61ea_d4edf625","updated":"2016-08-10 23:14:23.000000000","message":"Will take a look at the link and change appropriately, Thanks","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"}],"tackerclient/v1_0/client.py":[{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"024b62cdd1fa8c8766854455443a695d683c8373","unresolved":false,"context_lines":[{"line_number":446,"context_line":"    def list_events(self, retrieve_all\u003dTrue, **_params):"},{"line_number":447,"context_line":"        events \u003d self.list(\u0027events\u0027, self.events_path, retrieve_all,"},{"line_number":448,"context_line":"                           **_params)"},{"line_number":449,"context_line":"        _logger.debug(\"list_events -\u003e events \u003d %s\", events)"},{"line_number":450,"context_line":"        return events"},{"line_number":451,"context_line":""},{"line_number":452,"context_line":"    @APIParamsCall"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_54e4660b","line":449,"range":{"start_line":449,"start_character":8,"end_line":449,"end_character":59},"updated":"2016-08-07 23:46:59.000000000","message":"Seems like a temp debug added for development. Are you planning to remove this in your final patchset ?","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"01a43755e5565ee568d7930a2f15dfdee92efe23","unresolved":false,"context_lines":[{"line_number":446,"context_line":"    def list_events(self, retrieve_all\u003dTrue, **_params):"},{"line_number":447,"context_line":"        events \u003d self.list(\u0027events\u0027, self.events_path, retrieve_all,"},{"line_number":448,"context_line":"                           **_params)"},{"line_number":449,"context_line":"        _logger.debug(\"list_events -\u003e events \u003d %s\", events)"},{"line_number":450,"context_line":"        return events"},{"line_number":451,"context_line":""},{"line_number":452,"context_line":"    @APIParamsCall"}],"source_content_type":"text/x-python","patch_set":6,"id":"9ad45d7e_a1ac848c","line":449,"range":{"start_line":449,"start_character":8,"end_line":449,"end_character":59},"in_reply_to":"bacf61ea_54e4660b","updated":"2016-08-12 02:18:24.000000000","message":"Yes, will be removed from here and other places below as well","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"024b62cdd1fa8c8766854455443a695d683c8373","unresolved":false,"context_lines":[{"line_number":451,"context_line":""},{"line_number":452,"context_line":"    @APIParamsCall"},{"line_number":453,"context_line":"    def list_vnf_events(self, retrieve_all\u003dTrue, **_params):"},{"line_number":454,"context_line":"        _params[\u0027resource_type\u0027] \u003d \u0027VNF\u0027"},{"line_number":455,"context_line":"        _logger.debug(\"_params \u003d %s\", _params)"},{"line_number":456,"context_line":"        events \u003d self.list(\u0027events\u0027, self.events_path, retrieve_all,"},{"line_number":457,"context_line":"                           **_params)"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_f4d47a20","line":454,"range":{"start_line":454,"start_character":36,"end_line":454,"end_character":39},"updated":"2016-08-07 23:46:59.000000000","message":"This is probably an API side comment. I\u0027d suggest use lower case \"resource_type\" like \u0027vnf\u0027, \u0027vnfd\u0027, \u0027vim\u0027, etc.","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"01a43755e5565ee568d7930a2f15dfdee92efe23","unresolved":false,"context_lines":[{"line_number":451,"context_line":""},{"line_number":452,"context_line":"    @APIParamsCall"},{"line_number":453,"context_line":"    def list_vnf_events(self, retrieve_all\u003dTrue, **_params):"},{"line_number":454,"context_line":"        _params[\u0027resource_type\u0027] \u003d \u0027VNF\u0027"},{"line_number":455,"context_line":"        _logger.debug(\"_params \u003d %s\", _params)"},{"line_number":456,"context_line":"        events \u003d self.list(\u0027events\u0027, self.events_path, retrieve_all,"},{"line_number":457,"context_line":"                           **_params)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9ad45d7e_61cd6c65","line":454,"range":{"start_line":454,"start_character":36,"end_line":454,"end_character":39},"in_reply_to":"bacf61ea_f4d47a20","updated":"2016-08-12 02:18:24.000000000","message":"Ok","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"4bfeefa79b2da6f964ccfd0ad51645c6e01080e0","unresolved":false,"context_lines":[{"line_number":469,"context_line":"        vnfd_events \u003d {}"},{"line_number":470,"context_line":"        vnfd_events[\u0027vnfd_events\u0027] \u003d events[\u0027events\u0027]"},{"line_number":471,"context_line":"        _logger.debug(\"list_vnfd_events -\u003e events \u003d %s\", vnfd_events)"},{"line_number":472,"context_line":"        return vnfd_events"},{"line_number":473,"context_line":""},{"line_number":474,"context_line":"    @APIParamsCall"},{"line_number":475,"context_line":"    def list_vim_events(self, retrieve_all\u003dTrue, **_params):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9ad45d7e_eddd6a15","line":472,"updated":"2016-08-09 16:25:40.000000000","message":"can you please make use of method defined at line 453 for all kind of event list methods here. i believe only the resource_type would be differing across the methods","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"},{"author":{"_account_id":12525,"name":"vishwanath jayaraman","email":"vishwanathj@hotmail.com","username":"vish"},"change_message_id":"01a43755e5565ee568d7930a2f15dfdee92efe23","unresolved":false,"context_lines":[{"line_number":469,"context_line":"        vnfd_events \u003d {}"},{"line_number":470,"context_line":"        vnfd_events[\u0027vnfd_events\u0027] \u003d events[\u0027events\u0027]"},{"line_number":471,"context_line":"        _logger.debug(\"list_vnfd_events -\u003e events \u003d %s\", vnfd_events)"},{"line_number":472,"context_line":"        return vnfd_events"},{"line_number":473,"context_line":""},{"line_number":474,"context_line":"    @APIParamsCall"},{"line_number":475,"context_line":"    def list_vim_events(self, retrieve_all\u003dTrue, **_params):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9ad45d7e_019bd066","line":472,"in_reply_to":"9ad45d7e_eddd6a15","updated":"2016-08-12 02:18:24.000000000","message":"Its just not the resource_type, the return structure will be different as well","commit_id":"f644061efa81d0603713419e3af2cf2ae6977de3"}]}
