)]}'
{"openstack_dashboard/api/rest/__init__.py":[{"author":{"_account_id":8686,"name":"Wang Bo","email":"bo.wang@easystack.cn","username":"wangbo"},"change_message_id":"f421314fb431955ab8edfd0b7632ebe99cfc528e","unresolved":false,"context_lines":[{"line_number":31,"context_line":"from . import neutron      #flake8: noqa"},{"line_number":32,"context_line":"from . import nova         #flake8: noqa"},{"line_number":33,"context_line":"from . import policy       #flake8: noqa"},{"line_number":34,"context_line":"from . import heat         #flake8: noqa"}],"source_content_type":"text/x-python","patch_set":78,"id":"7a740942_7d108059","line":34,"updated":"2015-12-14 06:58:39.000000000","message":"why import heat twice?","commit_id":"543ac253bf24560ece8ccc8bd5baca7252ac6bc6"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"8cab7cb885437aec584c9a5403a9981ac541c8de","unresolved":false,"context_lines":[{"line_number":31,"context_line":"from . import neutron      #flake8: noqa"},{"line_number":32,"context_line":"from . import nova         #flake8: noqa"},{"line_number":33,"context_line":"from . import policy       #flake8: noqa"},{"line_number":34,"context_line":"from . import heat         #flake8: noqa"}],"source_content_type":"text/x-python","patch_set":78,"id":"7a740942_70072fca","line":34,"in_reply_to":"7a740942_7d108059","updated":"2015-12-14 14:03:09.000000000","message":"Probably a code merge issue.  Will remove.","commit_id":"543ac253bf24560ece8ccc8bd5baca7252ac6bc6"}],"openstack_dashboard/api/rest/cinder.py":[{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"d284a26a3da0adadc45048fa61c9774ed5de44eb","unresolved":false,"context_lines":[{"line_number":86,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        result \u003d api.cinder.service_list(request)"},{"line_number":89,"context_line":"        return {\u0027services\u0027: [u.to_dict() for u in result]}"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_492192b3","line":89,"updated":"2015-07-27 13:28:19.000000000","message":"To be in line with other similar calls, instead of using \u0027services\u0027 we should use \u0027items\u0027.\n\nAlso, this currently fails with: AttributeError: to_dict","commit_id":"c35cf89ebcd027c2c761427798c5c26492054f1c"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6e9454c1449a7dc765ec1e5c62494f15109eef9c","unresolved":false,"context_lines":[{"line_number":86,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        result \u003d api.cinder.service_list(request)"},{"line_number":89,"context_line":"        return {\u0027services\u0027: [u.to_dict() for u in result]}"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a4dcd0f_2576c83e","line":89,"in_reply_to":"3a50d1a3_492192b3","updated":"2015-08-10 18:31:42.000000000","message":"Done","commit_id":"c35cf89ebcd027c2c761427798c5c26492054f1c"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"992082ec099ea7f2da61be81f29778382680bca6","unresolved":false,"context_lines":[{"line_number":76,"context_line":""},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"@urls.register"},{"line_number":79,"context_line":"class Services(generic.View):"},{"line_number":80,"context_line":"    \"\"\"API for cinder services."},{"line_number":81,"context_line":"    \"\"\""},{"line_number":82,"context_line":"    url_regex \u003d r\u0027cinder/services/$\u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_baca489e","line":79,"updated":"2015-07-29 20:41:09.000000000","message":"test should also be added to: https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/api_tests/cinder_rest_tests.py","commit_id":"11cab2646d85519a30a407eb56a50fd0c6a7223d"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"a6bbbaf213fb37f7700c52c173acde8fb5c076df","unresolved":false,"context_lines":[{"line_number":76,"context_line":""},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"@urls.register"},{"line_number":79,"context_line":"class Services(generic.View):"},{"line_number":80,"context_line":"    \"\"\"API for cinder services."},{"line_number":81,"context_line":"    \"\"\""},{"line_number":82,"context_line":"    url_regex \u003d r\u0027cinder/services/$\u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a4dcd0f_85bf9cfb","line":79,"in_reply_to":"3a50d1a3_baca489e","updated":"2015-08-10 17:35:46.000000000","message":"Done","commit_id":"11cab2646d85519a30a407eb56a50fd0c6a7223d"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"a09b1dd754f1ed072bd7656130c612371b6258c1","unresolved":false,"context_lines":[{"line_number":86,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        result \u003d api.cinder.service_list(request)"},{"line_number":89,"context_line":"        return {\u0027services\u0027: ["},{"line_number":90,"context_line":"            {"},{"line_number":91,"context_line":"                \u0027binary\u0027: u.binary,"},{"line_number":92,"context_line":"                \u0027host\u0027: u.host,"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_1502d4b4","line":89,"updated":"2015-07-31 13:50:57.000000000","message":"I still think this should be \u0027items\u0027 similar to all other such calls.","commit_id":"e703bf57bd8de2bd283848ba7669bd7292eed261"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6509b80ecae03ae79529503a3d331a58a126467c","unresolved":false,"context_lines":[{"line_number":86,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        result \u003d api.cinder.service_list(request)"},{"line_number":89,"context_line":"        return {\u0027services\u0027: ["},{"line_number":90,"context_line":"            {"},{"line_number":91,"context_line":"                \u0027binary\u0027: u.binary,"},{"line_number":92,"context_line":"                \u0027host\u0027: u.host,"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_cb9b7365","line":89,"in_reply_to":"3a50d1a3_1502d4b4","updated":"2015-08-10 18:34:45.000000000","message":"Done","commit_id":"e703bf57bd8de2bd283848ba7669bd7292eed261"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"b6460d36f143ba1325f8fd53afe5475e3771b09a","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    def get(self, request):"},{"line_number":86,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        result \u003d api.cinder.service_list(request)"},{"line_number":89,"context_line":"        return {\u0027items\u0027: ["},{"line_number":90,"context_line":"            {"},{"line_number":91,"context_line":"                \u0027binary\u0027: u.binary,"}],"source_content_type":"text/x-python","patch_set":20,"id":"1a4dcd0f_70f856c5","line":88,"updated":"2015-08-07 22:20:50.000000000","message":"Why is a check not needed for service_enabled (like what is done in heat.py)?","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"ade3102c6786bd57ace9d8c92ddeab4309fafa1c","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    def get(self, request):"},{"line_number":86,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        result \u003d api.cinder.service_list(request)"},{"line_number":89,"context_line":"        return {\u0027items\u0027: ["},{"line_number":90,"context_line":"            {"},{"line_number":91,"context_line":"                \u0027binary\u0027: u.binary,"}],"source_content_type":"text/x-python","patch_set":20,"id":"1a4dcd0f_9f34c14a","line":88,"in_reply_to":"1a4dcd0f_70f856c5","updated":"2015-08-10 21:08:20.000000000","message":"Checked the old APIs and discussed this with Matt Borland. It seems the existing APIs also do not check for availability on these services, though I\u0027m not sure if there is a good justification for that. I\u0027ll leave these as-is for now, but I\u0027m happy to revisit this issue in the future if we encounter issues.","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"1fdd2a516c9725246eab8f6e27f97dd2f3028e1e","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    def get(self, request):"},{"line_number":86,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        result \u003d api.cinder.service_list(request)"},{"line_number":89,"context_line":"        return {\u0027items\u0027: ["},{"line_number":90,"context_line":"            {"},{"line_number":91,"context_line":"                \u0027binary\u0027: u.binary,"}],"source_content_type":"text/x-python","patch_set":22,"id":"1a4dcd0f_579b59c9","line":88,"updated":"2015-08-11 13:44:09.000000000","message":"Wrap, as in other notes, in try/except, ensuring return of at least an empty list.","commit_id":"d627ad9623b2f4a86456b88ab189889a33a689d0"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6c1f7897290607fbff509f0f1e790fe4d920b3ab","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    def get(self, request):"},{"line_number":86,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        result \u003d api.cinder.service_list(request)"},{"line_number":89,"context_line":"        return {\u0027items\u0027: ["},{"line_number":90,"context_line":"            {"},{"line_number":91,"context_line":"                \u0027binary\u0027: u.binary,"}],"source_content_type":"text/x-python","patch_set":22,"id":"1a4dcd0f_dd4699bf","line":88,"in_reply_to":"1a4dcd0f_579b59c9","updated":"2015-08-11 17:40:54.000000000","message":"Done","commit_id":"d627ad9623b2f4a86456b88ab189889a33a689d0"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"bf4f39780e5816a18200420ad67d0b15611f54de","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    def get(self, request):"},{"line_number":86,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        try:"},{"line_number":89,"context_line":"            result \u003d api.cinder.service_list(request)"},{"line_number":90,"context_line":"            return {\u0027items\u0027: ["},{"line_number":91,"context_line":"                {"}],"source_content_type":"text/x-python","patch_set":31,"id":"da20952f_52a35ab2","line":88,"updated":"2015-08-28 18:08:32.000000000","message":"I know Matt Borland suggested we wrap these with a try/except, back in patch-set 22.  I\u0027d like to debate that!\n\nWhy not let any exception from the cinder service-list call bubble up?  If it\u0027s a 405 (or whatever error) why not let the API response reflect that?  Would an empty list be better there?\n\nSince Matt Borland and I sit next to each other, we should celebrity-death-match this!","commit_id":"f60f28228e0707d65c690b59bca55885338528a5"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"1e03aa76bdba719328038e17d1d2ee0f6ce12b1a","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    def get(self, request):"},{"line_number":86,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        try:"},{"line_number":89,"context_line":"            result \u003d api.cinder.service_list(request)"},{"line_number":90,"context_line":"            return {\u0027items\u0027: ["},{"line_number":91,"context_line":"                {"}],"source_content_type":"text/x-python","patch_set":31,"id":"da20952f_ab04b817","line":88,"in_reply_to":"da20952f_52a35ab2","updated":"2015-08-28 21:27:45.000000000","message":"But no!  There\u0027s more to it than that.  We don\u0027t want that error bubbled up in this case.  I\u0027ll follow up on Monday.","commit_id":"f60f28228e0707d65c690b59bca55885338528a5"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"bd0640125105fdabe8c2ce118cb0482348ed9d9a","unresolved":false,"context_lines":[{"line_number":86,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        result \u003d api.cinder.service_list(request)"},{"line_number":89,"context_line":"        return {\u0027items\u0027: ["},{"line_number":90,"context_line":"            {"},{"line_number":91,"context_line":"                \u0027binary\u0027: u.binary,"},{"line_number":92,"context_line":"                \u0027host\u0027: u.host,"}],"source_content_type":"text/x-python","patch_set":42,"id":"9a1a9d01_b17ff413","line":89,"updated":"2015-09-30 18:30:39.000000000","message":"so i have a question here, why not just return the enumerated object directly? as opposed to mapping it to a similar object with identical properties?","commit_id":"b0c1d4d9f9a5f9c0942c7017de93df520c1d5eb7"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"31227a3829de017e8e6e8db69c93df7fb4a66f20","unresolved":false,"context_lines":[{"line_number":86,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        result \u003d api.cinder.service_list(request)"},{"line_number":89,"context_line":"        return {\u0027items\u0027: ["},{"line_number":90,"context_line":"            {"},{"line_number":91,"context_line":"                \u0027binary\u0027: u.binary,"},{"line_number":92,"context_line":"                \u0027host\u0027: u.host,"}],"source_content_type":"text/x-python","patch_set":42,"id":"9a1a9d01_97008e35","line":89,"in_reply_to":"9a1a9d01_9f451744","updated":"2015-10-01 07:46:13.000000000","message":"We possibly cannot use the simplification suggested in keystone.py as the object returned does not have to_dict defined. If there\u0027s a way, will be glad to use.","commit_id":"b0c1d4d9f9a5f9c0942c7017de93df520c1d5eb7"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"2a15b96dcd4417e7d71f0b6b220efec884f1f015","unresolved":false,"context_lines":[{"line_number":86,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        result \u003d api.cinder.service_list(request)"},{"line_number":89,"context_line":"        return {\u0027items\u0027: ["},{"line_number":90,"context_line":"            {"},{"line_number":91,"context_line":"                \u0027binary\u0027: u.binary,"},{"line_number":92,"context_line":"                \u0027host\u0027: u.host,"}],"source_content_type":"text/x-python","patch_set":42,"id":"9a1a9d01_9f451744","line":89,"in_reply_to":"9a1a9d01_b17ff413","updated":"2015-09-30 18:58:27.000000000","message":"We don\u0027t return the enumerated object directly because the object does not contain an id. We generate an id using the index so the items can be displayed in the table.","commit_id":"b0c1d4d9f9a5f9c0942c7017de93df520c1d5eb7"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"e17e417f89763be8ddde339c46a996a8e058c6b0","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    def get(self, request):"},{"line_number":86,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        result \u003d api.cinder.service_list(request)"},{"line_number":89,"context_line":"        return {\u0027items\u0027: ["},{"line_number":90,"context_line":"            {"},{"line_number":91,"context_line":"                \u0027binary\u0027: u.binary,"}],"source_content_type":"text/x-python","patch_set":53,"id":"7a2fa921_58d7d34a","line":88,"updated":"2015-10-08 19:12:12.000000000","message":"this call is technically to a cinder extension, and should be guarded as such, the existing django code call may require a similar change (not in this patch). \n\nhttp://developer.openstack.org/api-ref-blockstorage-v2.html#volume-api-v2-extensions \n\nextension: os-services","commit_id":"209a5889c340608cef250f3b4a6c4c6388e3ea22"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"058082bcfde99970654d8a2cea20cd3549548ea3","unresolved":false,"context_lines":[{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    @rest_utils.ajax()"},{"line_number":87,"context_line":"    def get(self, request):"},{"line_number":88,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":89,"context_line":"        \"\"\""},{"line_number":90,"context_line":"        try:"},{"line_number":91,"context_line":"            result \u003d api.cinder.service_list(request)"}],"source_content_type":"text/x-python","patch_set":55,"id":"7a2fa921_89743068","line":88,"updated":"2015-10-09 02:31:16.000000000","message":"\"Will return HTTP 501 status code if the service_list extension is not supported.\"","commit_id":"3e0107ede17523f46e79a4a2373fbd74ce60fc9e"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"3bb081756fd923d14c4a493667265a1b3777e7b2","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        \"\"\"Get a list of cinder services."},{"line_number":89,"context_line":"        \"\"\""},{"line_number":90,"context_line":"        try:"},{"line_number":91,"context_line":"            result \u003d api.cinder.service_list(request)"},{"line_number":92,"context_line":"            return {\u0027items\u0027: ["},{"line_number":93,"context_line":"                {"},{"line_number":94,"context_line":"                    \u0027binary\u0027: u.binary,"}],"source_content_type":"text/x-python","patch_set":55,"id":"7a2fa921_09eb4014","line":91,"updated":"2015-10-09 02:29:47.000000000","message":"Please wrap the minimal amount of code in the try clause.","commit_id":"3e0107ede17523f46e79a4a2373fbd74ce60fc9e"}],"openstack_dashboard/api/rest/heat.py":[{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"d284a26a3da0adadc45048fa61c9774ed5de44eb","unresolved":false,"context_lines":[{"line_number":26,"context_line":"class Services(generic.View):"},{"line_number":27,"context_line":"    \"\"\"API for heat services."},{"line_number":28,"context_line":"    \"\"\""},{"line_number":29,"context_line":"    url_regex \u003d r\u0027heat/services/$\u0027"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    @rest_utils.ajax()"},{"line_number":32,"context_line":"    def get(self, request):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_a4263bb8","line":29,"updated":"2015-07-27 13:28:19.000000000","message":"This doesn\u0027t seem to register.  Probably need to do something to link this in.\n\nAlso, change to \u0027items.\u0027","commit_id":"c35cf89ebcd027c2c761427798c5c26492054f1c"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6e9454c1449a7dc765ec1e5c62494f15109eef9c","unresolved":false,"context_lines":[{"line_number":26,"context_line":"class Services(generic.View):"},{"line_number":27,"context_line":"    \"\"\"API for heat services."},{"line_number":28,"context_line":"    \"\"\""},{"line_number":29,"context_line":"    url_regex \u003d r\u0027heat/services/$\u0027"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    @rest_utils.ajax()"},{"line_number":32,"context_line":"    def get(self, request):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a4dcd0f_65ca9051","line":29,"in_reply_to":"3a50d1a3_a4263bb8","updated":"2015-08-10 18:31:42.000000000","message":"Done","commit_id":"c35cf89ebcd027c2c761427798c5c26492054f1c"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"1529c84dfcd70105a1766ea5f0fc0b626c90e28f","unresolved":false,"context_lines":[{"line_number":26,"context_line":"class Services(generic.View):"},{"line_number":27,"context_line":"    \"\"\"API for heat services."},{"line_number":28,"context_line":"    \"\"\""},{"line_number":29,"context_line":"    url_regex \u003d r\u0027heat/services/$\u0027"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    @rest_utils.ajax()"},{"line_number":32,"context_line":"    def get(self, request):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_cab91130","line":29,"in_reply_to":"3a50d1a3_a4263bb8","updated":"2015-07-27 13:41:51.000000000","message":"The \u0027items\u0027 comment is just a shadow that that below, sorry. :)","commit_id":"c35cf89ebcd027c2c761427798c5c26492054f1c"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6e9454c1449a7dc765ec1e5c62494f15109eef9c","unresolved":false,"context_lines":[{"line_number":26,"context_line":"class Services(generic.View):"},{"line_number":27,"context_line":"    \"\"\"API for heat services."},{"line_number":28,"context_line":"    \"\"\""},{"line_number":29,"context_line":"    url_regex \u003d r\u0027heat/services/$\u0027"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    @rest_utils.ajax()"},{"line_number":32,"context_line":"    def get(self, request):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a4dcd0f_85c55c3e","line":29,"in_reply_to":"3a50d1a3_cab91130","updated":"2015-08-10 18:31:42.000000000","message":"Done","commit_id":"c35cf89ebcd027c2c761427798c5c26492054f1c"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"6b68e553c4011528d67b9f65b7039a6013cf353b","unresolved":false,"context_lines":[{"line_number":26,"context_line":"class Services(generic.View):"},{"line_number":27,"context_line":"    \"\"\"API for heat services."},{"line_number":28,"context_line":"    \"\"\""},{"line_number":29,"context_line":"    url_regex \u003d r\u0027heat/services/$\u0027"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    @rest_utils.ajax()"},{"line_number":32,"context_line":"    def get(self, request):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_caf111cf","line":29,"in_reply_to":"3a50d1a3_cab91130","updated":"2015-07-27 13:45:32.000000000","message":"You need to add \u0027heat\u0027 to the imports in __init__.py","commit_id":"c35cf89ebcd027c2c761427798c5c26492054f1c"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6e9454c1449a7dc765ec1e5c62494f15109eef9c","unresolved":false,"context_lines":[{"line_number":26,"context_line":"class Services(generic.View):"},{"line_number":27,"context_line":"    \"\"\"API for heat services."},{"line_number":28,"context_line":"    \"\"\""},{"line_number":29,"context_line":"    url_regex \u003d r\u0027heat/services/$\u0027"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"    @rest_utils.ajax()"},{"line_number":32,"context_line":"    def get(self, request):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a4dcd0f_a5e658e6","line":29,"in_reply_to":"3a50d1a3_caf111cf","updated":"2015-08-10 18:31:42.000000000","message":"Done","commit_id":"c35cf89ebcd027c2c761427798c5c26492054f1c"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"6c57730e3e28bf6d3be2af420fc2ea23461cff84","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        The following get parameters may be passed in the GET"},{"line_number":36,"context_line":"        request:"},{"line_number":37,"context_line":"        \"\"\""},{"line_number":38,"context_line":"        result \u003d api.heat.service_list(request)"},{"line_number":39,"context_line":"        return {\u0027services\u0027: [u.to_dict() for u in result]}"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_c47ca7ed","line":38,"updated":"2015-07-27 13:36:44.000000000","message":"Important: please use the logic at the following to limit when this call is made:\nhttp://git.openstack.org/cgit/openstack/horizon/tree/openstack_dashboard/dashboards/admin/info/tabs.py#n112","commit_id":"c35cf89ebcd027c2c761427798c5c26492054f1c"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6e9454c1449a7dc765ec1e5c62494f15109eef9c","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        The following get parameters may be passed in the GET"},{"line_number":36,"context_line":"        request:"},{"line_number":37,"context_line":"        \"\"\""},{"line_number":38,"context_line":"        result \u003d api.heat.service_list(request)"},{"line_number":39,"context_line":"        return {\u0027services\u0027: [u.to_dict() for u in result]}"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a4dcd0f_259328fc","line":38,"in_reply_to":"3a50d1a3_c47ca7ed","updated":"2015-08-10 18:31:42.000000000","message":"Done","commit_id":"c35cf89ebcd027c2c761427798c5c26492054f1c"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"992082ec099ea7f2da61be81f29778382680bca6","unresolved":false,"context_lines":[{"line_number":1,"context_line":""},{"line_number":2,"context_line":"# Copyright 2014, Rackspace, US, Inc."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":5,"context_line":"# you may not use this file except in compliance with the License."}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_57fafd75","line":2,"updated":"2015-07-29 20:41:09.000000000","message":"fix pls","commit_id":"11cab2646d85519a30a407eb56a50fd0c6a7223d"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"a6bbbaf213fb37f7700c52c173acde8fb5c076df","unresolved":false,"context_lines":[{"line_number":1,"context_line":""},{"line_number":2,"context_line":"# Copyright 2014, Rackspace, US, Inc."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":5,"context_line":"# you may not use this file except in compliance with the License."}],"source_content_type":"text/x-python","patch_set":7,"id":"1a4dcd0f_e536a0b3","line":2,"in_reply_to":"3a50d1a3_57fafd75","updated":"2015-08-10 17:35:46.000000000","message":"Done","commit_id":"11cab2646d85519a30a407eb56a50fd0c6a7223d"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"992082ec099ea7f2da61be81f29778382680bca6","unresolved":false,"context_lines":[{"line_number":33,"context_line":"        \"\"\"Get a list of heat services."},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"        The following get parameters may be passed in the GET"},{"line_number":36,"context_line":"        request:"},{"line_number":37,"context_line":"        \"\"\""},{"line_number":38,"context_line":"        result \u003d api.heat.service_list(request)"},{"line_number":39,"context_line":"        return {\u0027services\u0027: [u.to_dict() for u in result]}"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_d72ccd03","line":36,"updated":"2015-07-29 20:41:09.000000000","message":"...","commit_id":"11cab2646d85519a30a407eb56a50fd0c6a7223d"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"a6bbbaf213fb37f7700c52c173acde8fb5c076df","unresolved":false,"context_lines":[{"line_number":33,"context_line":"        \"\"\"Get a list of heat services."},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"        The following get parameters may be passed in the GET"},{"line_number":36,"context_line":"        request:"},{"line_number":37,"context_line":"        \"\"\""},{"line_number":38,"context_line":"        result \u003d api.heat.service_list(request)"},{"line_number":39,"context_line":"        return {\u0027services\u0027: [u.to_dict() for u in result]}"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a4dcd0f_c5436412","line":36,"in_reply_to":"3a50d1a3_d72ccd03","updated":"2015-08-10 17:35:46.000000000","message":"Done","commit_id":"11cab2646d85519a30a407eb56a50fd0c6a7223d"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"a09b1dd754f1ed072bd7656130c612371b6258c1","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#"},{"line_number":2,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":3,"context_line":"# you may not use this file except in compliance with the License."},{"line_number":4,"context_line":"# You may obtain a copy of the License at"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_60c3588b","line":1,"updated":"2015-07-31 13:50:57.000000000","message":"Need to add \u0027heat\u0027 into the __init__.py to make this service active.","commit_id":"e703bf57bd8de2bd283848ba7669bd7292eed261"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6509b80ecae03ae79529503a3d331a58a126467c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#"},{"line_number":2,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":3,"context_line":"# you may not use this file except in compliance with the License."},{"line_number":4,"context_line":"# You may obtain a copy of the License at"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_2bad3788","line":1,"in_reply_to":"3a50d1a3_60c3588b","updated":"2015-08-10 18:34:45.000000000","message":"Done","commit_id":"e703bf57bd8de2bd283848ba7669bd7292eed261"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"a09b1dd754f1ed072bd7656130c612371b6258c1","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        \"\"\"Get a list of heat services."},{"line_number":32,"context_line":"        \"\"\""},{"line_number":33,"context_line":"        result \u003d api.heat.service_list(request)"},{"line_number":34,"context_line":"        return {\u0027services\u0027: [u.to_dict() for u in result]}"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_15197422","line":34,"updated":"2015-07-31 13:50:57.000000000","message":"\u0027items\u0027","commit_id":"e703bf57bd8de2bd283848ba7669bd7292eed261"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6509b80ecae03ae79529503a3d331a58a126467c","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        \"\"\"Get a list of heat services."},{"line_number":32,"context_line":"        \"\"\""},{"line_number":33,"context_line":"        result \u003d api.heat.service_list(request)"},{"line_number":34,"context_line":"        return {\u0027services\u0027: [u.to_dict() for u in result]}"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_6bca5f51","line":34,"in_reply_to":"3a50d1a3_15197422","updated":"2015-08-10 18:34:45.000000000","message":"Done","commit_id":"e703bf57bd8de2bd283848ba7669bd7292eed261"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"1fdd2a516c9725246eab8f6e27f97dd2f3028e1e","unresolved":false,"context_lines":[{"line_number":30,"context_line":"    def get(self, request):"},{"line_number":31,"context_line":"        \"\"\"Get a list of heat services."},{"line_number":32,"context_line":"        \"\"\""},{"line_number":33,"context_line":"        if api.base.is_service_enabled(request, \u0027orchestration\u0027):"},{"line_number":34,"context_line":"            result \u003d api.heat.service_list(request)"},{"line_number":35,"context_line":"            return {\u0027items\u0027: [u.to_dict() for u in result]}"},{"line_number":36,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":22,"id":"1a4dcd0f_b75dfd16","line":33,"updated":"2015-08-11 13:44:09.000000000","message":"Wrap, as in other notes, in try/except, ensuring return of at least an empty list.","commit_id":"d627ad9623b2f4a86456b88ab189889a33a689d0"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6c1f7897290607fbff509f0f1e790fe4d920b3ab","unresolved":false,"context_lines":[{"line_number":30,"context_line":"    def get(self, request):"},{"line_number":31,"context_line":"        \"\"\"Get a list of heat services."},{"line_number":32,"context_line":"        \"\"\""},{"line_number":33,"context_line":"        if api.base.is_service_enabled(request, \u0027orchestration\u0027):"},{"line_number":34,"context_line":"            result \u003d api.heat.service_list(request)"},{"line_number":35,"context_line":"            return {\u0027items\u0027: [u.to_dict() for u in result]}"},{"line_number":36,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":22,"id":"1a4dcd0f_3d3e9d28","line":33,"in_reply_to":"1a4dcd0f_b75dfd16","updated":"2015-08-11 17:40:54.000000000","message":"Done","commit_id":"d627ad9623b2f4a86456b88ab189889a33a689d0"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"bf4f39780e5816a18200420ad67d0b15611f54de","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    def get(self, request):"},{"line_number":49,"context_line":"        \"\"\"Get a list of heat services."},{"line_number":50,"context_line":"        \"\"\""},{"line_number":51,"context_line":"        try:"},{"line_number":52,"context_line":"            if api.base.is_service_enabled(request, \u0027orchestration\u0027):"},{"line_number":53,"context_line":"                result \u003d api.heat.service_list(request)"},{"line_number":54,"context_line":"                return {\u0027items\u0027: [u.to_dict() for u in result]}"}],"source_content_type":"text/x-python","patch_set":31,"id":"da20952f_929d7268","line":51,"updated":"2015-08-28 18:08:32.000000000","message":"Same comment as in cinder.py","commit_id":"f60f28228e0707d65c690b59bca55885338528a5"},{"author":{"_account_id":13805,"name":"Shaoquan Chen","email":"sean.chen2@hp.com","username":"SeanChen"},"change_message_id":"8da6bc61d9808387816002eca49634a66f32806c","unresolved":false,"context_lines":[{"line_number":52,"context_line":"            result \u003d api.heat.service_list(request)"},{"line_number":53,"context_line":"            return {\u0027items\u0027: [u.to_dict() for u in result]}"},{"line_number":54,"context_line":"        else:"},{"line_number":55,"context_line":"            return {\u0027items\u0027: []}"}],"source_content_type":"text/x-python","patch_set":71,"id":"3a29b11f_c0a528a2","line":55,"updated":"2015-10-21 18:34:43.000000000","message":"Am I missing something here? I feel we should return a bad request status code here, rather than silently return a empty list. The same to others.","commit_id":"d8a1c39e91c88a2897bd71c3f950091b9b669057"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"1e87cd52ceb14050927ea59788088066602881d6","unresolved":false,"context_lines":[{"line_number":52,"context_line":"            result \u003d api.heat.service_list(request)"},{"line_number":53,"context_line":"            return {\u0027items\u0027: [u.to_dict() for u in result]}"},{"line_number":54,"context_line":"        else:"},{"line_number":55,"context_line":"            return {\u0027items\u0027: []}"}],"source_content_type":"text/x-python","patch_set":71,"id":"3a29b11f_d56b9683","line":55,"in_reply_to":"3a29b11f_249d09bc","updated":"2015-10-22 06:40:18.000000000","message":"Done","commit_id":"d8a1c39e91c88a2897bd71c3f950091b9b669057"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"9a98ec3c809a39ce0b347f91a7a87e29ca6e9be0","unresolved":false,"context_lines":[{"line_number":52,"context_line":"            result \u003d api.heat.service_list(request)"},{"line_number":53,"context_line":"            return {\u0027items\u0027: [u.to_dict() for u in result]}"},{"line_number":54,"context_line":"        else:"},{"line_number":55,"context_line":"            return {\u0027items\u0027: []}"}],"source_content_type":"text/x-python","patch_set":71,"id":"3a29b11f_e1794383","line":55,"in_reply_to":"3a29b11f_c0a528a2","updated":"2015-10-21 21:24:53.000000000","message":"Should it be \n400 Bad Request\n404 Not Found\n501 Not Implemented\n\n?","commit_id":"d8a1c39e91c88a2897bd71c3f950091b9b669057"},{"author":{"_account_id":13805,"name":"Shaoquan Chen","email":"sean.chen2@hp.com","username":"SeanChen"},"change_message_id":"d503d92bea0fa06a10ad809e3ff58c744e2d251a","unresolved":false,"context_lines":[{"line_number":52,"context_line":"            result \u003d api.heat.service_list(request)"},{"line_number":53,"context_line":"            return {\u0027items\u0027: [u.to_dict() for u in result]}"},{"line_number":54,"context_line":"        else:"},{"line_number":55,"context_line":"            return {\u0027items\u0027: []}"}],"source_content_type":"text/x-python","patch_set":71,"id":"3a29b11f_249d09bc","line":55,"in_reply_to":"3a29b11f_e1794383","updated":"2015-10-21 21:54:16.000000000","message":"Not very sure. but sounds 501 is the best for this case.","commit_id":"d8a1c39e91c88a2897bd71c3f950091b9b669057"}],"openstack_dashboard/api/rest/keystone.py":[{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"a09b1dd754f1ed072bd7656130c612371b6258c1","unresolved":false,"context_lines":[{"line_number":579,"context_line":"            service[\u0027id\u0027] \u003d i"},{"line_number":580,"context_line":"            services.append("},{"line_number":581,"context_line":"                api.keystone.Service(service, request.user.services_region))"},{"line_number":582,"context_line":"        return {\u0027services\u0027: [{"},{"line_number":583,"context_line":"            \u0027name\u0027: u.name,"},{"line_number":584,"context_line":"            \u0027type\u0027: u.type,"},{"line_number":585,"context_line":"            \u0027host\u0027: u.host,"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_3514b0e7","line":582,"updated":"2015-07-31 13:50:57.000000000","message":"\u0027items\u0027","commit_id":"e703bf57bd8de2bd283848ba7669bd7292eed261"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6509b80ecae03ae79529503a3d331a58a126467c","unresolved":false,"context_lines":[{"line_number":579,"context_line":"            service[\u0027id\u0027] \u003d i"},{"line_number":580,"context_line":"            services.append("},{"line_number":581,"context_line":"                api.keystone.Service(service, request.user.services_region))"},{"line_number":582,"context_line":"        return {\u0027services\u0027: [{"},{"line_number":583,"context_line":"            \u0027name\u0027: u.name,"},{"line_number":584,"context_line":"            \u0027type\u0027: u.type,"},{"line_number":585,"context_line":"            \u0027host\u0027: u.host,"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_4bd683f2","line":582,"in_reply_to":"3a50d1a3_3514b0e7","updated":"2015-08-10 18:34:45.000000000","message":"Done","commit_id":"e703bf57bd8de2bd283848ba7669bd7292eed261"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"1fdd2a516c9725246eab8f6e27f97dd2f3028e1e","unresolved":false,"context_lines":[{"line_number":578,"context_line":"        \"\"\"Get a list of keystone services."},{"line_number":579,"context_line":"        \"\"\""},{"line_number":580,"context_line":"        services \u003d []"},{"line_number":581,"context_line":"        for i, service in enumerate(request.user.service_catalog):"},{"line_number":582,"context_line":"            service[\u0027id\u0027] \u003d i"},{"line_number":583,"context_line":"            services.append("},{"line_number":584,"context_line":"                api.keystone.Service(service, request.user.services_region))"}],"source_content_type":"text/x-python","patch_set":22,"id":"1a4dcd0f_d768c9bc","line":581,"updated":"2015-08-11 13:44:09.000000000","message":"Per the admin/info/tabs.py file, probably safest to wrap in a try/except appropriately and ensure returning of empty list either way.","commit_id":"d627ad9623b2f4a86456b88ab189889a33a689d0"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6c1f7897290607fbff509f0f1e790fe4d920b3ab","unresolved":false,"context_lines":[{"line_number":578,"context_line":"        \"\"\"Get a list of keystone services."},{"line_number":579,"context_line":"        \"\"\""},{"line_number":580,"context_line":"        services \u003d []"},{"line_number":581,"context_line":"        for i, service in enumerate(request.user.service_catalog):"},{"line_number":582,"context_line":"            service[\u0027id\u0027] \u003d i"},{"line_number":583,"context_line":"            services.append("},{"line_number":584,"context_line":"                api.keystone.Service(service, request.user.services_region))"}],"source_content_type":"text/x-python","patch_set":22,"id":"1a4dcd0f_1d4161a9","line":581,"in_reply_to":"1a4dcd0f_d768c9bc","updated":"2015-08-11 17:40:54.000000000","message":"Done","commit_id":"d627ad9623b2f4a86456b88ab189889a33a689d0"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"bf4f39780e5816a18200420ad67d0b15611f54de","unresolved":false,"context_lines":[{"line_number":577,"context_line":"    def get(self, request):"},{"line_number":578,"context_line":"        \"\"\"Get a list of keystone services."},{"line_number":579,"context_line":"        \"\"\""},{"line_number":580,"context_line":"        try:"},{"line_number":581,"context_line":"            services \u003d []"},{"line_number":582,"context_line":"            for i, service in enumerate(request.user.service_catalog):"},{"line_number":583,"context_line":"                service[\u0027id\u0027] \u003d i"}],"source_content_type":"text/x-python","patch_set":31,"id":"da20952f_92749236","line":580,"updated":"2015-08-28 18:08:32.000000000","message":"Same comment as in cinder.py","commit_id":"f60f28228e0707d65c690b59bca55885338528a5"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"bd0640125105fdabe8c2ce118cb0482348ed9d9a","unresolved":false,"context_lines":[{"line_number":580,"context_line":"        services \u003d []"},{"line_number":581,"context_line":"        for i, service in enumerate(request.user.service_catalog):"},{"line_number":582,"context_line":"            s1 \u003d api.keystone.Service(service, request.user.services_region)"},{"line_number":583,"context_line":"            service_1 \u003d {"},{"line_number":584,"context_line":"                \u0027name\u0027: s1.name,"},{"line_number":585,"context_line":"                \u0027type\u0027: s1.type,"},{"line_number":586,"context_line":"                \u0027host\u0027: s1.host,"}],"source_content_type":"text/x-python","patch_set":42,"id":"9a1a9d01_51953830","line":583,"updated":"2015-09-30 18:30:39.000000000","message":"same comment here.","commit_id":"b0c1d4d9f9a5f9c0942c7017de93df520c1d5eb7"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"8c790719a2e6dba0aedae19ae7efb332e7c2f29d","unresolved":false,"context_lines":[{"line_number":580,"context_line":"        services \u003d []"},{"line_number":581,"context_line":"        for i, service in enumerate(request.user.service_catalog):"},{"line_number":582,"context_line":"            s1 \u003d api.keystone.Service(service, request.user.services_region)"},{"line_number":583,"context_line":"            service_1 \u003d {"},{"line_number":584,"context_line":"                \u0027name\u0027: s1.name,"},{"line_number":585,"context_line":"                \u0027type\u0027: s1.type,"},{"line_number":586,"context_line":"                \u0027host\u0027: s1.host,"}],"source_content_type":"text/x-python","patch_set":42,"id":"9a1a9d01_6088a471","line":583,"in_reply_to":"9a1a9d01_51953830","updated":"2015-09-30 20:13:12.000000000","message":"Same reasoning as found in cinder.py.","commit_id":"b0c1d4d9f9a5f9c0942c7017de93df520c1d5eb7"},{"author":{"_account_id":17013,"name":"Rajat Vig","email":"rajatv@thoughtworks.com","username":"rajatvig"},"change_message_id":"31227a3829de017e8e6e8db69c93df7fb4a66f20","unresolved":false,"context_lines":[{"line_number":580,"context_line":"        services \u003d []"},{"line_number":581,"context_line":"        for i, service in enumerate(request.user.service_catalog):"},{"line_number":582,"context_line":"            s1 \u003d api.keystone.Service(service, request.user.services_region)"},{"line_number":583,"context_line":"            service_1 \u003d {"},{"line_number":584,"context_line":"                \u0027name\u0027: s1.name,"},{"line_number":585,"context_line":"                \u0027type\u0027: s1.type,"},{"line_number":586,"context_line":"                \u0027host\u0027: s1.host,"}],"source_content_type":"text/x-python","patch_set":42,"id":"9a1a9d01_178ebe2d","line":583,"in_reply_to":"9a1a9d01_593312f6","updated":"2015-10-01 07:46:13.000000000","message":"Done. Thanks for the correction.","commit_id":"b0c1d4d9f9a5f9c0942c7017de93df520c1d5eb7"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"30615131c692767f18e931081484597263b9957e","unresolved":false,"context_lines":[{"line_number":580,"context_line":"        services \u003d []"},{"line_number":581,"context_line":"        for i, service in enumerate(request.user.service_catalog):"},{"line_number":582,"context_line":"            s1 \u003d api.keystone.Service(service, request.user.services_region)"},{"line_number":583,"context_line":"            service_1 \u003d {"},{"line_number":584,"context_line":"                \u0027name\u0027: s1.name,"},{"line_number":585,"context_line":"                \u0027type\u0027: s1.type,"},{"line_number":586,"context_line":"                \u0027host\u0027: s1.host,"}],"source_content_type":"text/x-python","patch_set":42,"id":"9a1a9d01_593312f6","line":583,"in_reply_to":"9a1a9d01_6088a471","updated":"2015-10-01 00:26:56.000000000","message":"Is there a fear that mutating the object coming back from the API layer is dangerous? I guess that could be a reasonable fear, if the API layer ever does caching of results, so the creation of a new object to handle that is reasonable.\n\nOn the other hand, this code is equivalent, and simpler:\n   services.append(dict(s1, id\u003di))","commit_id":"b0c1d4d9f9a5f9c0942c7017de93df520c1d5eb7"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"f79548cc2ada09dac0bf66b82dc7621146d5243e","unresolved":false,"context_lines":[{"line_number":581,"context_line":"        services \u003d []"},{"line_number":582,"context_line":"        for i, service in enumerate(request.user.service_catalog):"},{"line_number":583,"context_line":"            services.append("},{"line_number":584,"context_line":"                dict(api.keystone.Service(service, region).to_dict(), id\u003di)"},{"line_number":585,"context_line":"            )"},{"line_number":586,"context_line":""},{"line_number":587,"context_line":"        return {\u0027items\u0027: services}"}],"source_content_type":"text/x-python","patch_set":44,"id":"9a1a9d01_5ffbe878","line":584,"updated":"2015-10-01 09:48:11.000000000","message":"The to_dict() is not necessary in my testing.","commit_id":"37886c61b60471dd58c1a132ab02e9a7ad078350"}],"openstack_dashboard/api/rest/neutron.py":[{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"6c57730e3e28bf6d3be2af420fc2ea23461cff84","unresolved":false,"context_lines":[{"line_number":146,"context_line":"    def get(self, request):"},{"line_number":147,"context_line":"        \"\"\"Get a list of agents"},{"line_number":148,"context_line":"        \"\"\""},{"line_number":149,"context_line":"        result \u003d api.neutron.agent_list(request, **request.GET)"},{"line_number":150,"context_line":"        return{\u0027items\u0027: [n.to_dict() for n in result]}"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_2440eba4","line":149,"updated":"2015-07-27 13:36:44.000000000","message":"Important: please make note of and use the \u0027allowed\u0027 restriction criteria at:\n\nhttp://git.openstack.org/cgit/openstack/horizon/tree/openstack_dashboard/dashboards/admin/info/tabs.py#n87\n\nThe \u0027allowed\u0027 def provides a way to determine if the request is allowed.  You\u0027ll want to use similar restrictions here.","commit_id":"c35cf89ebcd027c2c761427798c5c26492054f1c"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6e9454c1449a7dc765ec1e5c62494f15109eef9c","unresolved":false,"context_lines":[{"line_number":146,"context_line":"    def get(self, request):"},{"line_number":147,"context_line":"        \"\"\"Get a list of agents"},{"line_number":148,"context_line":"        \"\"\""},{"line_number":149,"context_line":"        result \u003d api.neutron.agent_list(request, **request.GET)"},{"line_number":150,"context_line":"        return{\u0027items\u0027: [n.to_dict() for n in result]}"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a4dcd0f_0ba4fbb6","line":149,"in_reply_to":"3a50d1a3_2440eba4","updated":"2015-08-10 18:31:42.000000000","message":"Done","commit_id":"c35cf89ebcd027c2c761427798c5c26492054f1c"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"a09b1dd754f1ed072bd7656130c612371b6258c1","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        \"\"\"Get a list of agents"},{"line_number":148,"context_line":"        \"\"\""},{"line_number":149,"context_line":"        result \u003d api.neutron.agent_list(request, **request.GET)"},{"line_number":150,"context_line":"        return{\u0027services\u0027: [n.to_dict() for n in result]}"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_b5de803c","line":150,"updated":"2015-07-31 13:50:57.000000000","message":"\u0027items\u0027","commit_id":"e703bf57bd8de2bd283848ba7669bd7292eed261"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6509b80ecae03ae79529503a3d331a58a126467c","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        \"\"\"Get a list of agents"},{"line_number":148,"context_line":"        \"\"\""},{"line_number":149,"context_line":"        result \u003d api.neutron.agent_list(request, **request.GET)"},{"line_number":150,"context_line":"        return{\u0027services\u0027: [n.to_dict() for n in result]}"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_6bf81f7d","line":150,"in_reply_to":"3a50d1a3_b5de803c","updated":"2015-08-10 18:34:45.000000000","message":"Done","commit_id":"e703bf57bd8de2bd283848ba7669bd7292eed261"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"b6460d36f143ba1325f8fd53afe5475e3771b09a","unresolved":false,"context_lines":[{"line_number":140,"context_line":"class Services(generic.View):"},{"line_number":141,"context_line":"    \"\"\"API for Neutron agents"},{"line_number":142,"context_line":"    \"\"\""},{"line_number":143,"context_line":"    url_regex \u003d r\u0027neutron/services/$\u0027"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"    @rest_utils.ajax()"},{"line_number":146,"context_line":"    def get(self, request):"}],"source_content_type":"text/x-python","patch_set":20,"id":"1a4dcd0f_e4234ba6","line":143,"updated":"2015-08-07 22:20:50.000000000","message":"Why neutron/services instead of neutron/agents/?","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"ade3102c6786bd57ace9d8c92ddeab4309fafa1c","unresolved":false,"context_lines":[{"line_number":140,"context_line":"class Services(generic.View):"},{"line_number":141,"context_line":"    \"\"\"API for Neutron agents"},{"line_number":142,"context_line":"    \"\"\""},{"line_number":143,"context_line":"    url_regex \u003d r\u0027neutron/services/$\u0027"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"    @rest_utils.ajax()"},{"line_number":146,"context_line":"    def get(self, request):"}],"source_content_type":"text/x-python","patch_set":20,"id":"1a4dcd0f_ce0b8123","line":143,"in_reply_to":"1a4dcd0f_e4234ba6","updated":"2015-08-10 21:08:20.000000000","message":"Agreed. This change has been made.","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"1fdd2a516c9725246eab8f6e27f97dd2f3028e1e","unresolved":false,"context_lines":[{"line_number":145,"context_line":"    @rest_utils.ajax()"},{"line_number":146,"context_line":"    def get(self, request):"},{"line_number":147,"context_line":"        \"\"\"Get a list of agents"},{"line_number":148,"context_line":"        \"\"\""},{"line_number":149,"context_line":"        if api.base.is_service_enabled(request, \u0027network\u0027) and \\"},{"line_number":150,"context_line":"                api.neutron.is_extension_supported(request, \u0027agent\u0027):"},{"line_number":151,"context_line":"            result \u003d api.neutron.agent_list(request, **request.GET)"}],"source_content_type":"text/x-python","patch_set":22,"id":"1a4dcd0f_574d9970","line":148,"updated":"2015-08-11 13:44:09.000000000","message":"Safer structure, per the admin/info/tabs.py file, which seems to anticipate an Exception in the network call, is to wrap the \"if\" clause in a try/except; outside of that you can return the items (doesn\u0027t need to be in except or an else, can just be at the very end since the code already returns from the if condition).","commit_id":"d627ad9623b2f4a86456b88ab189889a33a689d0"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6c1f7897290607fbff509f0f1e790fe4d920b3ab","unresolved":false,"context_lines":[{"line_number":145,"context_line":"    @rest_utils.ajax()"},{"line_number":146,"context_line":"    def get(self, request):"},{"line_number":147,"context_line":"        \"\"\"Get a list of agents"},{"line_number":148,"context_line":"        \"\"\""},{"line_number":149,"context_line":"        if api.base.is_service_enabled(request, \u0027network\u0027) and \\"},{"line_number":150,"context_line":"                api.neutron.is_extension_supported(request, \u0027agent\u0027):"},{"line_number":151,"context_line":"            result \u003d api.neutron.agent_list(request, **request.GET)"}],"source_content_type":"text/x-python","patch_set":22,"id":"1a4dcd0f_5dfb697b","line":148,"in_reply_to":"1a4dcd0f_574d9970","updated":"2015-08-11 17:40:54.000000000","message":"Done","commit_id":"d627ad9623b2f4a86456b88ab189889a33a689d0"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"bf4f39780e5816a18200420ad67d0b15611f54de","unresolved":false,"context_lines":[{"line_number":148,"context_line":"    def get(self, request):"},{"line_number":149,"context_line":"        \"\"\"Get a list of agents"},{"line_number":150,"context_line":"        \"\"\""},{"line_number":151,"context_line":"        try:"},{"line_number":152,"context_line":"            if api.base.is_service_enabled(request, \u0027network\u0027) and \\"},{"line_number":153,"context_line":"                    api.neutron.is_extension_supported(request, \u0027agent\u0027):"},{"line_number":154,"context_line":"                result \u003d api.neutron.agent_list(request, **request.GET)"}],"source_content_type":"text/x-python","patch_set":31,"id":"da20952f_329ca65c","line":151,"updated":"2015-08-28 18:08:32.000000000","message":"Same comment as in cinder.py","commit_id":"f60f28228e0707d65c690b59bca55885338528a5"}],"openstack_dashboard/api/rest/nova.py":[{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"2ff178a2b7707e27a400361a61b6a2ab1cf05db5","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        request:"},{"line_number":77,"context_line":"        \"\"\""},{"line_number":78,"context_line":"        result \u003d api.nova.service_list(request)"},{"line_number":79,"context_line":"        return {\u0027services\u0027: [u.to_dict() for u in result]}"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"@urls.register"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_96e135d3","line":79,"updated":"2015-07-24 15:23:01.000000000","message":"We should verify exactly how we want this data formatted, to be consistent with other similar calls.","commit_id":"d45fe9d1fd2868e12210bee0546bf7aed192614a"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"884adefea7f1f1d40b51d528f7f2d0ecee624fce","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        request:"},{"line_number":77,"context_line":"        \"\"\""},{"line_number":78,"context_line":"        result \u003d api.nova.service_list(request)"},{"line_number":79,"context_line":"        return {\u0027services\u0027: [u.to_dict() for u in result]}"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"@urls.register"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_819311fa","line":79,"in_reply_to":"3a50d1a3_96e135d3","updated":"2015-08-10 17:35:33.000000000","message":"Done","commit_id":"d45fe9d1fd2868e12210bee0546bf7aed192614a"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"d284a26a3da0adadc45048fa61c9774ed5de44eb","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        request:"},{"line_number":77,"context_line":"        \"\"\""},{"line_number":78,"context_line":"        result \u003d api.nova.service_list(request)"},{"line_number":79,"context_line":"        return {\u0027services\u0027: [u.to_dict() for u in result]}"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"@urls.register"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_a474fb9b","line":79,"updated":"2015-07-27 13:28:19.000000000","message":"Change to \u0027items.\u0027","commit_id":"c35cf89ebcd027c2c761427798c5c26492054f1c"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6e9454c1449a7dc765ec1e5c62494f15109eef9c","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        request:"},{"line_number":77,"context_line":"        \"\"\""},{"line_number":78,"context_line":"        result \u003d api.nova.service_list(request)"},{"line_number":79,"context_line":"        return {\u0027services\u0027: [u.to_dict() for u in result]}"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"@urls.register"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a4dcd0f_2b9f7760","line":79,"in_reply_to":"3a50d1a3_a474fb9b","updated":"2015-08-10 18:31:42.000000000","message":"Done","commit_id":"c35cf89ebcd027c2c761427798c5c26492054f1c"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"a09b1dd754f1ed072bd7656130c612371b6258c1","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        request:"},{"line_number":77,"context_line":"        \"\"\""},{"line_number":78,"context_line":"        result \u003d api.nova.service_list(request)"},{"line_number":79,"context_line":"        return {\u0027services\u0027: [u.to_dict() for u in result]}"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"@urls.register"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_75e1d8fb","line":79,"updated":"2015-07-31 13:50:57.000000000","message":"\u0027items\u0027","commit_id":"e703bf57bd8de2bd283848ba7669bd7292eed261"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6509b80ecae03ae79529503a3d331a58a126467c","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        request:"},{"line_number":77,"context_line":"        \"\"\""},{"line_number":78,"context_line":"        result \u003d api.nova.service_list(request)"},{"line_number":79,"context_line":"        return {\u0027services\u0027: [u.to_dict() for u in result]}"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"@urls.register"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_8bf32b9f","line":79,"in_reply_to":"3a50d1a3_75e1d8fb","updated":"2015-08-10 18:34:45.000000000","message":"Done","commit_id":"e703bf57bd8de2bd283848ba7669bd7292eed261"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"b6460d36f143ba1325f8fd53afe5475e3771b09a","unresolved":false,"context_lines":[{"line_number":73,"context_line":"        \"\"\"Get a list of nova services."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        The following get parameters may be passed in the GET"},{"line_number":76,"context_line":"        request:"},{"line_number":77,"context_line":"        \"\"\""},{"line_number":78,"context_line":"        result \u003d api.nova.service_list(request)"},{"line_number":79,"context_line":"        return {\u0027items\u0027: [u.to_dict() for u in result]}"}],"source_content_type":"text/x-python","patch_set":20,"id":"1a4dcd0f_444a3f57","line":76,"updated":"2015-08-07 22:20:50.000000000","message":"remove GET parameters comment.","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"ade3102c6786bd57ace9d8c92ddeab4309fafa1c","unresolved":false,"context_lines":[{"line_number":73,"context_line":"        \"\"\"Get a list of nova services."},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        The following get parameters may be passed in the GET"},{"line_number":76,"context_line":"        request:"},{"line_number":77,"context_line":"        \"\"\""},{"line_number":78,"context_line":"        result \u003d api.nova.service_list(request)"},{"line_number":79,"context_line":"        return {\u0027items\u0027: [u.to_dict() for u in result]}"}],"source_content_type":"text/x-python","patch_set":20,"id":"1a4dcd0f_ce22a1a3","line":76,"in_reply_to":"1a4dcd0f_444a3f57","updated":"2015-08-10 21:08:20.000000000","message":"Done","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"1fdd2a516c9725246eab8f6e27f97dd2f3028e1e","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    def get(self, request):"},{"line_number":73,"context_line":"        \"\"\"Get a list of nova services."},{"line_number":74,"context_line":"        \"\"\""},{"line_number":75,"context_line":"        result \u003d api.nova.service_list(request)"},{"line_number":76,"context_line":"        return {\u0027items\u0027: [u.to_dict() for u in result]}"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"1a4dcd0f_17a5d102","line":75,"updated":"2015-08-11 13:44:09.000000000","message":"Wrap, as in other notes, in try/except, ensuring return of at least an empty list.","commit_id":"d627ad9623b2f4a86456b88ab189889a33a689d0"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"6c1f7897290607fbff509f0f1e790fe4d920b3ab","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    def get(self, request):"},{"line_number":73,"context_line":"        \"\"\"Get a list of nova services."},{"line_number":74,"context_line":"        \"\"\""},{"line_number":75,"context_line":"        result \u003d api.nova.service_list(request)"},{"line_number":76,"context_line":"        return {\u0027items\u0027: [u.to_dict() for u in result]}"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"1a4dcd0f_bd0aad88","line":75,"in_reply_to":"1a4dcd0f_17a5d102","updated":"2015-08-11 17:40:54.000000000","message":"Done","commit_id":"d627ad9623b2f4a86456b88ab189889a33a689d0"},{"author":{"_account_id":9659,"name":"Matt Wood","email":"matt.wood@hpe.com","username":"woodm1979"},"change_message_id":"bf4f39780e5816a18200420ad67d0b15611f54de","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    def get(self, request):"},{"line_number":73,"context_line":"        \"\"\"Get a list of nova services."},{"line_number":74,"context_line":"        \"\"\""},{"line_number":75,"context_line":"        try:"},{"line_number":76,"context_line":"            result \u003d api.nova.service_list(request)"},{"line_number":77,"context_line":"            return {\u0027items\u0027: [u.to_dict() for u in result]}"},{"line_number":78,"context_line":"        except Exception:"}],"source_content_type":"text/x-python","patch_set":31,"id":"da20952f_72bd3eb6","line":75,"updated":"2015-08-28 18:08:32.000000000","message":"Same comment as in cinder.py","commit_id":"f60f28228e0707d65c690b59bca55885338528a5"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"e17e417f89763be8ddde339c46a996a8e058c6b0","unresolved":false,"context_lines":[{"line_number":73,"context_line":"    def get(self, request):"},{"line_number":74,"context_line":"        \"\"\"Get a list of nova services."},{"line_number":75,"context_line":"        \"\"\""},{"line_number":76,"context_line":"        result \u003d api.nova.service_list(request)"},{"line_number":77,"context_line":"        return {\u0027items\u0027: [u.to_dict() for u in result]}"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":""}],"source_content_type":"text/x-python","patch_set":53,"id":"7a2fa921_b8faa773","line":76,"updated":"2015-10-08 19:12:12.000000000","message":"this is also technically an extension, \"os-services\" and should be guarded as such.","commit_id":"209a5889c340608cef250f3b4a6c4c6388e3ea22"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"058082bcfde99970654d8a2cea20cd3549548ea3","unresolved":false,"context_lines":[{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    @rest_utils.ajax()"},{"line_number":74,"context_line":"    def get(self, request):"},{"line_number":75,"context_line":"        \"\"\"Get a list of nova services."},{"line_number":76,"context_line":"        \"\"\""},{"line_number":77,"context_line":"        try:"},{"line_number":78,"context_line":"            result \u003d api.nova.service_list(request)"}],"source_content_type":"text/x-python","patch_set":55,"id":"7a2fa921_696754b7","line":75,"updated":"2015-10-09 02:31:16.000000000","message":"\"Will return HTTP 501 status code if the service_list extension is not supported.\"","commit_id":"3e0107ede17523f46e79a4a2373fbd74ce60fc9e"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"3bb081756fd923d14c4a493667265a1b3777e7b2","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        \"\"\"Get a list of nova services."},{"line_number":76,"context_line":"        \"\"\""},{"line_number":77,"context_line":"        try:"},{"line_number":78,"context_line":"            result \u003d api.nova.service_list(request)"},{"line_number":79,"context_line":"            return {\u0027items\u0027: [u.to_dict() for u in result]}"},{"line_number":80,"context_line":"        except exceptions.MissingApiExtension:"},{"line_number":81,"context_line":"            raise rest_utils.AjaxError(501, \u0027missing Nova API extension\u0027)"}],"source_content_type":"text/x-python","patch_set":55,"id":"7a2fa921_a9dc8c73","line":78,"updated":"2015-10-09 02:29:47.000000000","message":"Please just wrap the line that can raise the exception in the try clause.","commit_id":"3e0107ede17523f46e79a4a2373fbd74ce60fc9e"}],"openstack_dashboard/static/app/core/openstack-service-api/cinder.service.js":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"b6460d36f143ba1325f8fd53afe5475e3771b09a","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    /**"},{"line_number":88,"context_line":"    * @name horizon.openstack-service-api.cinder.getServices"},{"line_number":89,"context_line":"    * @description"},{"line_number":90,"context_line":"    * Get the list of Cinder services."},{"line_number":91,"context_line":"    *"},{"line_number":92,"context_line":"    * The listing result is an object with property \"services.\" Each item is"}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_a492239e","line":89,"updated":"2015-08-07 22:20:50.000000000","message":"move to @description line","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"ade3102c6786bd57ace9d8c92ddeab4309fafa1c","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    /**"},{"line_number":88,"context_line":"    * @name horizon.openstack-service-api.cinder.getServices"},{"line_number":89,"context_line":"    * @description"},{"line_number":90,"context_line":"    * Get the list of Cinder services."},{"line_number":91,"context_line":"    *"},{"line_number":92,"context_line":"    * The listing result is an object with property \"services.\" Each item is"}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_6e410d39","line":89,"in_reply_to":"1a4dcd0f_a492239e","updated":"2015-08-10 21:08:20.000000000","message":"Done","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"b6460d36f143ba1325f8fd53afe5475e3771b09a","unresolved":false,"context_lines":[{"line_number":89,"context_line":"    * @description"},{"line_number":90,"context_line":"    * Get the list of Cinder services."},{"line_number":91,"context_line":"    *"},{"line_number":92,"context_line":"    * The listing result is an object with property \"services.\" Each item is"},{"line_number":93,"context_line":"    * a service."},{"line_number":94,"context_line":"    */"},{"line_number":95,"context_line":"    this.getServices \u003d function() {"}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_64b5fb2f","line":92,"updated":"2015-08-07 22:20:50.000000000","message":"Use @returns (https://github.com/angular/angular.js/wiki/Writing-AngularJS-Documentation)","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"ade3102c6786bd57ace9d8c92ddeab4309fafa1c","unresolved":false,"context_lines":[{"line_number":89,"context_line":"    * @description"},{"line_number":90,"context_line":"    * Get the list of Cinder services."},{"line_number":91,"context_line":"    *"},{"line_number":92,"context_line":"    * The listing result is an object with property \"services.\" Each item is"},{"line_number":93,"context_line":"    * a service."},{"line_number":94,"context_line":"    */"},{"line_number":95,"context_line":"    this.getServices \u003d function() {"}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_4e469150","line":92,"in_reply_to":"1a4dcd0f_64b5fb2f","updated":"2015-08-10 21:08:20.000000000","message":"Done","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"}],"openstack_dashboard/static/app/core/openstack-service-api/heat.service.js":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"b6460d36f143ba1325f8fd53afe5475e3771b09a","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    /**"},{"line_number":35,"context_line":"     * @name horizon.openstack-service-api.heat.getServices"},{"line_number":36,"context_line":"     * @description"},{"line_number":37,"context_line":"     * Get the list of heat services."},{"line_number":38,"context_line":"     *"},{"line_number":39,"context_line":"     * The listing result is an object with property \"services.\" Each item is"},{"line_number":40,"context_line":"     * a service."}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_9d92d69e","line":37,"updated":"2015-08-07 22:20:50.000000000","message":"move to same line","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"ade3102c6786bd57ace9d8c92ddeab4309fafa1c","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    /**"},{"line_number":35,"context_line":"     * @name horizon.openstack-service-api.heat.getServices"},{"line_number":36,"context_line":"     * @description"},{"line_number":37,"context_line":"     * Get the list of heat services."},{"line_number":38,"context_line":"     *"},{"line_number":39,"context_line":"     * The listing result is an object with property \"services.\" Each item is"},{"line_number":40,"context_line":"     * a service."}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_4e5d3114","line":37,"in_reply_to":"1a4dcd0f_9d92d69e","updated":"2015-08-10 21:08:20.000000000","message":"Done","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"b6460d36f143ba1325f8fd53afe5475e3771b09a","unresolved":false,"context_lines":[{"line_number":35,"context_line":"     * @name horizon.openstack-service-api.heat.getServices"},{"line_number":36,"context_line":"     * @description"},{"line_number":37,"context_line":"     * Get the list of heat services."},{"line_number":38,"context_line":"     *"},{"line_number":39,"context_line":"     * The listing result is an object with property \"services.\" Each item is"},{"line_number":40,"context_line":"     * a service."},{"line_number":41,"context_line":"     */"}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_ddf61ef9","line":38,"updated":"2015-08-07 22:20:50.000000000","message":"Use @returns","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"ade3102c6786bd57ace9d8c92ddeab4309fafa1c","unresolved":false,"context_lines":[{"line_number":35,"context_line":"     * @name horizon.openstack-service-api.heat.getServices"},{"line_number":36,"context_line":"     * @description"},{"line_number":37,"context_line":"     * Get the list of heat services."},{"line_number":38,"context_line":"     *"},{"line_number":39,"context_line":"     * The listing result is an object with property \"services.\" Each item is"},{"line_number":40,"context_line":"     * a service."},{"line_number":41,"context_line":"     */"}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_ee9afdc4","line":38,"in_reply_to":"1a4dcd0f_ddf61ef9","updated":"2015-08-10 21:08:20.000000000","message":"Done","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"}],"openstack_dashboard/static/app/core/openstack-service-api/neutron.service.js":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"b6460d36f143ba1325f8fd53afe5475e3771b09a","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    /**"},{"line_number":36,"context_line":"     * @name horizon.openstack-service-api.neutron.getServices"},{"line_number":37,"context_line":"     * @description"},{"line_number":38,"context_line":"     * Get the list of Neutron services."},{"line_number":39,"context_line":"     *"},{"line_number":40,"context_line":"     * The listing result is an object with property \"services.\" Each item is"}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_fd351aa8","line":37,"updated":"2015-08-07 22:20:50.000000000","message":"use single line","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"ade3102c6786bd57ace9d8c92ddeab4309fafa1c","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    /**"},{"line_number":36,"context_line":"     * @name horizon.openstack-service-api.neutron.getServices"},{"line_number":37,"context_line":"     * @description"},{"line_number":38,"context_line":"     * Get the list of Neutron services."},{"line_number":39,"context_line":"     *"},{"line_number":40,"context_line":"     * The listing result is an object with property \"services.\" Each item is"}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_cea7010a","line":37,"in_reply_to":"1a4dcd0f_fd351aa8","updated":"2015-08-10 21:08:20.000000000","message":"Done","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"b6460d36f143ba1325f8fd53afe5475e3771b09a","unresolved":false,"context_lines":[{"line_number":36,"context_line":"     * @name horizon.openstack-service-api.neutron.getServices"},{"line_number":37,"context_line":"     * @description"},{"line_number":38,"context_line":"     * Get the list of Neutron services."},{"line_number":39,"context_line":"     *"},{"line_number":40,"context_line":"     * The listing result is an object with property \"services.\" Each item is"},{"line_number":41,"context_line":"     * a service."},{"line_number":42,"context_line":"     */"}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_bdc8f2a9","line":39,"updated":"2015-08-07 22:20:50.000000000","message":"@returns","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"ade3102c6786bd57ace9d8c92ddeab4309fafa1c","unresolved":false,"context_lines":[{"line_number":36,"context_line":"     * @name horizon.openstack-service-api.neutron.getServices"},{"line_number":37,"context_line":"     * @description"},{"line_number":38,"context_line":"     * Get the list of Neutron services."},{"line_number":39,"context_line":"     *"},{"line_number":40,"context_line":"     * The listing result is an object with property \"services.\" Each item is"},{"line_number":41,"context_line":"     * a service."},{"line_number":42,"context_line":"     */"}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_6eafcde3","line":39,"in_reply_to":"1a4dcd0f_bdc8f2a9","updated":"2015-08-10 21:08:20.000000000","message":"Done","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"}],"openstack_dashboard/static/app/core/openstack-service-api/nova.service.js":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"b6460d36f143ba1325f8fd53afe5475e3771b09a","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    /**"},{"line_number":36,"context_line":"     * @name horizon.openstack-service-api.nova.getServices"},{"line_number":37,"context_line":"     * @description"},{"line_number":38,"context_line":"     * Get the list of Nova services."},{"line_number":39,"context_line":"     *"},{"line_number":40,"context_line":"     * The listing result is an object with property \"services.\" Each item is"},{"line_number":41,"context_line":"     * a service."}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_3d54e2c8","line":38,"updated":"2015-08-07 22:20:50.000000000","message":"single line","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"ade3102c6786bd57ace9d8c92ddeab4309fafa1c","unresolved":false,"context_lines":[{"line_number":35,"context_line":"    /**"},{"line_number":36,"context_line":"     * @name horizon.openstack-service-api.nova.getServices"},{"line_number":37,"context_line":"     * @description"},{"line_number":38,"context_line":"     * Get the list of Nova services."},{"line_number":39,"context_line":"     *"},{"line_number":40,"context_line":"     * The listing result is an object with property \"services.\" Each item is"},{"line_number":41,"context_line":"     * a service."}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_8e91f99c","line":38,"in_reply_to":"1a4dcd0f_3d54e2c8","updated":"2015-08-10 21:08:20.000000000","message":"Done","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"b6460d36f143ba1325f8fd53afe5475e3771b09a","unresolved":false,"context_lines":[{"line_number":36,"context_line":"     * @name horizon.openstack-service-api.nova.getServices"},{"line_number":37,"context_line":"     * @description"},{"line_number":38,"context_line":"     * Get the list of Nova services."},{"line_number":39,"context_line":"     *"},{"line_number":40,"context_line":"     * The listing result is an object with property \"services.\" Each item is"},{"line_number":41,"context_line":"     * a service."},{"line_number":42,"context_line":"     */"}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_9d47361d","line":39,"updated":"2015-08-07 22:20:50.000000000","message":"@returns","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"ade3102c6786bd57ace9d8c92ddeab4309fafa1c","unresolved":false,"context_lines":[{"line_number":36,"context_line":"     * @name horizon.openstack-service-api.nova.getServices"},{"line_number":37,"context_line":"     * @description"},{"line_number":38,"context_line":"     * Get the list of Nova services."},{"line_number":39,"context_line":"     *"},{"line_number":40,"context_line":"     * The listing result is an object with property \"services.\" Each item is"},{"line_number":41,"context_line":"     * a service."},{"line_number":42,"context_line":"     */"}],"source_content_type":"text/javascript","patch_set":20,"id":"1a4dcd0f_eee8bd18","line":39,"in_reply_to":"1a4dcd0f_9d47361d","updated":"2015-08-10 21:08:20.000000000","message":"Done","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":8686,"name":"Wang Bo","email":"bo.wang@easystack.cn","username":"wangbo"},"change_message_id":"f421314fb431955ab8edfd0b7632ebe99cfc528e","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    function getServices() {"},{"line_number":66,"context_line":"      return apiService.get(\u0027/api/nova/services/\u0027)"},{"line_number":67,"context_line":"        .error(function () {"},{"line_number":68,"context_line":"          toastService.add(\u0027error\u0027, gettext(\u0027Unable to retrieve the services.\u0027));"},{"line_number":69,"context_line":"        });"},{"line_number":70,"context_line":"    }"},{"line_number":71,"context_line":""}],"source_content_type":"text/javascript","patch_set":78,"id":"7a740942_f31edfb9","line":68,"updated":"2015-12-14 06:58:39.000000000","message":"It\u0027s better to add \"nova\" ---\u003e \"Unable to retrieve the nova services\". \n\nUsually we call all services apis \"api/nova/services/  api/cinder/services/  api/neutron/services/ ...\" in system panel page.  If some api failed, reported \"Unable to retrieve the services.\" We can not figure out which one failed.","commit_id":"543ac253bf24560ece8ccc8bd5baca7252ac6bc6"},{"author":{"_account_id":14124,"name":"Matt Borland","email":"matt.borland@hpe.com","username":"mborland"},"change_message_id":"8cab7cb885437aec584c9a5403a9981ac541c8de","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    function getServices() {"},{"line_number":66,"context_line":"      return apiService.get(\u0027/api/nova/services/\u0027)"},{"line_number":67,"context_line":"        .error(function () {"},{"line_number":68,"context_line":"          toastService.add(\u0027error\u0027, gettext(\u0027Unable to retrieve the services.\u0027));"},{"line_number":69,"context_line":"        });"},{"line_number":70,"context_line":"    }"},{"line_number":71,"context_line":""}],"source_content_type":"text/javascript","patch_set":78,"id":"7a740942_702e4f44","line":68,"in_reply_to":"7a740942_f31edfb9","updated":"2015-12-14 14:03:09.000000000","message":"Good point, thanks!","commit_id":"543ac253bf24560ece8ccc8bd5baca7252ac6bc6"}],"openstack_dashboard/static/openstack-service-api/cinder.service.js":[{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"992082ec099ea7f2da61be81f29778382680bca6","unresolved":false,"context_lines":[{"line_number":93,"context_line":"    * The listing result is an object with property \"services.\" Each item is"},{"line_number":94,"context_line":"    * a service."},{"line_number":95,"context_line":"    */"},{"line_number":96,"context_line":"    this.getServices \u003d function() {"},{"line_number":97,"context_line":"        return apiService.get(\u0027/api/cinder/services/\u0027)"},{"line_number":98,"context_line":"            .error(function () {"},{"line_number":99,"context_line":"                toastService.add(\u0027error\u0027, gettext(\u0027Unable to retrieve the services.\u0027));"}],"source_content_type":"text/javascript","patch_set":7,"id":"3a50d1a3_97096586","line":96,"updated":"2015-07-29 20:41:09.000000000","message":"should be 2 space indent instead of 4 :)","commit_id":"11cab2646d85519a30a407eb56a50fd0c6a7223d"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"a6bbbaf213fb37f7700c52c173acde8fb5c076df","unresolved":false,"context_lines":[{"line_number":93,"context_line":"    * The listing result is an object with property \"services.\" Each item is"},{"line_number":94,"context_line":"    * a service."},{"line_number":95,"context_line":"    */"},{"line_number":96,"context_line":"    this.getServices \u003d function() {"},{"line_number":97,"context_line":"        return apiService.get(\u0027/api/cinder/services/\u0027)"},{"line_number":98,"context_line":"            .error(function () {"},{"line_number":99,"context_line":"                toastService.add(\u0027error\u0027, gettext(\u0027Unable to retrieve the services.\u0027));"}],"source_content_type":"text/javascript","patch_set":7,"id":"1a4dcd0f_05086cd8","line":96,"in_reply_to":"3a50d1a3_97096586","updated":"2015-08-10 17:35:46.000000000","message":"Done","commit_id":"11cab2646d85519a30a407eb56a50fd0c6a7223d"}],"openstack_dashboard/test/api_tests/cinder_rest_tests.py":[{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"81e0aa8b7b252562aeaef9542bf009cbca66c727","unresolved":false,"context_lines":[{"line_number":111,"context_line":"                \u0027updated_at\u0027: \u0027updated_at_1\u0027,"},{"line_number":112,"context_line":"                \u0027status\u0027: \u0027status_1\u0027,"},{"line_number":113,"context_line":"                \u0027state\u0027: \u0027state_1\u0027"},{"line_number":114,"context_line":"            }}),"},{"line_number":115,"context_line":"            mock.Mock(**{\u0027to_dict.return_value\u0027: {"},{"line_number":116,"context_line":"                \u0027binary\u0027: \u0027binary_2\u0027,"},{"line_number":117,"context_line":"                \u0027host\u0027: \u0027host_2\u0027,"}],"source_content_type":"text/x-python","patch_set":66,"id":"3a29b11f_91228400","line":114,"updated":"2015-10-20 04:13:54.000000000","message":"This mocking is incorrect - the service_list call returns objects with attributes, and the to_dict() method isn\u0027t actually called. So this data you\u0027re faking is never used. The code being tested ends up just exercising itself using Mock() objects. Ugh. Thank mock for just faking its way through and letting this test pass anyway :(","commit_id":"a70abb0b606f654fcdd4a359e3b6dcce5dc5d2ed"},{"author":{"_account_id":16994,"name":"Dan Siwiec","email":"dan.siwiec@thoughtworks.com","username":"dansiwiec"},"change_message_id":"f881627c48d4744bc9b160c47cdf9839cb8b1948","unresolved":false,"context_lines":[{"line_number":111,"context_line":"                \u0027updated_at\u0027: \u0027updated_at_1\u0027,"},{"line_number":112,"context_line":"                \u0027status\u0027: \u0027status_1\u0027,"},{"line_number":113,"context_line":"                \u0027state\u0027: \u0027state_1\u0027"},{"line_number":114,"context_line":"            }}),"},{"line_number":115,"context_line":"            mock.Mock(**{\u0027to_dict.return_value\u0027: {"},{"line_number":116,"context_line":"                \u0027binary\u0027: \u0027binary_2\u0027,"},{"line_number":117,"context_line":"                \u0027host\u0027: \u0027host_2\u0027,"}],"source_content_type":"text/x-python","patch_set":66,"id":"3a29b11f_7c2c3802","line":114,"in_reply_to":"3a29b11f_91228400","updated":"2015-10-20 18:52:57.000000000","message":"Very valid point. Done","commit_id":"a70abb0b606f654fcdd4a359e3b6dcce5dc5d2ed"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"3c7380f3180940422324c889c52bfb711aecf8ae","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    @mock.patch.object(cinder.api, \u0027cinder\u0027)"},{"line_number":104,"context_line":"    def test_services_get(self, cc):"},{"line_number":105,"context_line":"        request \u003d self.mock_rest_request(**{\u0027GET\u0027: {}})"},{"line_number":106,"context_line":"        cc.service_list.return_value \u003d ["},{"line_number":107,"context_line":"            mock.Mock(**{"},{"line_number":108,"context_line":"                \u0027binary\u0027: \u0027binary_1\u0027,"}],"source_content_type":"text/x-python","patch_set":68,"id":"3a29b11f_5884dd5c","line":105,"updated":"2015-10-21 00:11:29.000000000","message":"I just noticed this here too. Should just be (GET\u003d{}).","commit_id":"2ded961a887b0f9a31fcef28c2d327b21e32edd4"},{"author":{"_account_id":16994,"name":"Dan Siwiec","email":"dan.siwiec@thoughtworks.com","username":"dansiwiec"},"change_message_id":"cd473e740f92cca49433c6fb352dd21a6c0a2b34","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    @mock.patch.object(cinder.api, \u0027cinder\u0027)"},{"line_number":104,"context_line":"    def test_services_get(self, cc):"},{"line_number":105,"context_line":"        request \u003d self.mock_rest_request(**{\u0027GET\u0027: {}})"},{"line_number":106,"context_line":"        cc.service_list.return_value \u003d ["},{"line_number":107,"context_line":"            mock.Mock(**{"},{"line_number":108,"context_line":"                \u0027binary\u0027: \u0027binary_1\u0027,"}],"source_content_type":"text/x-python","patch_set":68,"id":"3a29b11f_d518ab77","line":105,"in_reply_to":"3a29b11f_5884dd5c","updated":"2015-10-21 07:31:31.000000000","message":"Done","commit_id":"2ded961a887b0f9a31fcef28c2d327b21e32edd4"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"3c7380f3180940422324c889c52bfb711aecf8ae","unresolved":false,"context_lines":[{"line_number":111,"context_line":"                \u0027updated_at\u0027: \u0027updated_at_1\u0027,"},{"line_number":112,"context_line":"                \u0027status\u0027: \u0027status_1\u0027,"},{"line_number":113,"context_line":"                \u0027state\u0027: \u0027state_1\u0027"},{"line_number":114,"context_line":"            }),"},{"line_number":115,"context_line":"            mock.Mock(**{"},{"line_number":116,"context_line":"                \u0027binary\u0027: \u0027binary_2\u0027,"},{"line_number":117,"context_line":"                \u0027host\u0027: \u0027host_2\u0027,"}],"source_content_type":"text/x-python","patch_set":68,"id":"3a29b11f_f8ae09e5","line":114,"updated":"2015-10-21 00:11:29.000000000","message":"Man, I hate to be this guy, but ** with a dict of basic strings is just the same as passing in keyword arguments, but it looks a lot messier. The previous incarnation of this code required the ** but this version does not.","commit_id":"2ded961a887b0f9a31fcef28c2d327b21e32edd4"},{"author":{"_account_id":16994,"name":"Dan Siwiec","email":"dan.siwiec@thoughtworks.com","username":"dansiwiec"},"change_message_id":"cd473e740f92cca49433c6fb352dd21a6c0a2b34","unresolved":false,"context_lines":[{"line_number":111,"context_line":"                \u0027updated_at\u0027: \u0027updated_at_1\u0027,"},{"line_number":112,"context_line":"                \u0027status\u0027: \u0027status_1\u0027,"},{"line_number":113,"context_line":"                \u0027state\u0027: \u0027state_1\u0027"},{"line_number":114,"context_line":"            }),"},{"line_number":115,"context_line":"            mock.Mock(**{"},{"line_number":116,"context_line":"                \u0027binary\u0027: \u0027binary_2\u0027,"},{"line_number":117,"context_line":"                \u0027host\u0027: \u0027host_2\u0027,"}],"source_content_type":"text/x-python","patch_set":68,"id":"3a29b11f_7528b786","line":114,"in_reply_to":"3a29b11f_f8ae09e5","updated":"2015-10-21 07:31:31.000000000","message":"Done","commit_id":"2ded961a887b0f9a31fcef28c2d327b21e32edd4"}],"openstack_dashboard/test/api_tests/heat_rest_tests.py":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"b6460d36f143ba1325f8fd53afe5475e3771b09a","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    def test_services_get(self, hc):"},{"line_number":26,"context_line":"        request \u003d self.mock_rest_request(**{\u0027GET\u0027: {}})"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"        api.base.is_service_enabled(request, \u0027orchestration\u0027).AndReturn(True)"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"        hc.service_list.return_value \u003d ["},{"line_number":31,"context_line":"            mock.Mock(**{\u0027to_dict.return_value\u0027: {\u0027id\u0027: \u00271\u0027}}),"}],"source_content_type":"text/x-python","patch_set":20,"id":"1a4dcd0f_5da9ae7a","line":28,"updated":"2015-08-07 22:20:50.000000000","message":"missing test for service_enabled \u003d\u003d False","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"ade3102c6786bd57ace9d8c92ddeab4309fafa1c","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    def test_services_get(self, hc):"},{"line_number":26,"context_line":"        request \u003d self.mock_rest_request(**{\u0027GET\u0027: {}})"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"        api.base.is_service_enabled(request, \u0027orchestration\u0027).AndReturn(True)"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"        hc.service_list.return_value \u003d ["},{"line_number":31,"context_line":"            mock.Mock(**{\u0027to_dict.return_value\u0027: {\u0027id\u0027: \u00271\u0027}}),"}],"source_content_type":"text/x-python","patch_set":20,"id":"1a4dcd0f_6edd8d6f","line":28,"in_reply_to":"1a4dcd0f_5da9ae7a","updated":"2015-08-10 21:08:20.000000000","message":"Done","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"3c7380f3180940422324c889c52bfb711aecf8ae","unresolved":false,"context_lines":[{"line_number":36,"context_line":"    @test.create_stubs({api.base: (\u0027is_service_enabled\u0027,)})"},{"line_number":37,"context_line":"    @mock.patch.object(heat.api, \u0027heat\u0027)"},{"line_number":38,"context_line":"    def test_services_get(self, hc):"},{"line_number":39,"context_line":"        request \u003d self.mock_rest_request(**{\u0027GET\u0027: {}})"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        api.base.is_service_enabled(request, \u0027orchestration\u0027).AndReturn(True)"},{"line_number":42,"context_line":""}],"source_content_type":"text/x-python","patch_set":68,"id":"3a29b11f_b88bb167","line":39,"updated":"2015-10-21 00:11:29.000000000","message":"And here too :/","commit_id":"2ded961a887b0f9a31fcef28c2d327b21e32edd4"},{"author":{"_account_id":16994,"name":"Dan Siwiec","email":"dan.siwiec@thoughtworks.com","username":"dansiwiec"},"change_message_id":"cd473e740f92cca49433c6fb352dd21a6c0a2b34","unresolved":false,"context_lines":[{"line_number":36,"context_line":"    @test.create_stubs({api.base: (\u0027is_service_enabled\u0027,)})"},{"line_number":37,"context_line":"    @mock.patch.object(heat.api, \u0027heat\u0027)"},{"line_number":38,"context_line":"    def test_services_get(self, hc):"},{"line_number":39,"context_line":"        request \u003d self.mock_rest_request(**{\u0027GET\u0027: {}})"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        api.base.is_service_enabled(request, \u0027orchestration\u0027).AndReturn(True)"},{"line_number":42,"context_line":""}],"source_content_type":"text/x-python","patch_set":68,"id":"3a29b11f_351ebf5f","line":39,"in_reply_to":"3a29b11f_b88bb167","updated":"2015-10-21 07:31:31.000000000","message":"Done","commit_id":"2ded961a887b0f9a31fcef28c2d327b21e32edd4"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"3c7380f3180940422324c889c52bfb711aecf8ae","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    @test.create_stubs({api.base: (\u0027is_service_enabled\u0027,)})"},{"line_number":56,"context_line":"    def test_services_get_disabled(self):"},{"line_number":57,"context_line":"        request \u003d self.mock_rest_request(**{\u0027GET\u0027: {}})"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"        api.base.is_service_enabled(request, \u0027orchestration\u0027).AndReturn(False)"},{"line_number":60,"context_line":""}],"source_content_type":"text/x-python","patch_set":68,"id":"3a29b11f_58eb7d13","line":57,"updated":"2015-10-21 00:11:29.000000000","message":"And here too :/","commit_id":"2ded961a887b0f9a31fcef28c2d327b21e32edd4"},{"author":{"_account_id":16994,"name":"Dan Siwiec","email":"dan.siwiec@thoughtworks.com","username":"dansiwiec"},"change_message_id":"cd473e740f92cca49433c6fb352dd21a6c0a2b34","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    @test.create_stubs({api.base: (\u0027is_service_enabled\u0027,)})"},{"line_number":56,"context_line":"    def test_services_get_disabled(self):"},{"line_number":57,"context_line":"        request \u003d self.mock_rest_request(**{\u0027GET\u0027: {}})"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"        api.base.is_service_enabled(request, \u0027orchestration\u0027).AndReturn(False)"},{"line_number":60,"context_line":""}],"source_content_type":"text/x-python","patch_set":68,"id":"3a29b11f_55233ba7","line":57,"in_reply_to":"3a29b11f_58eb7d13","updated":"2015-10-21 07:31:31.000000000","message":"Done","commit_id":"2ded961a887b0f9a31fcef28c2d327b21e32edd4"}],"openstack_dashboard/test/api_tests/keystone_rest_tests.py":[{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"f33dac9fd5e1d4d4f746800227b25f9968025db2","unresolved":false,"context_lines":[{"line_number":348,"context_line":"                                               \u0027spam\u0027)"},{"line_number":349,"context_line":""},{"line_number":350,"context_line":"    #"},{"line_number":351,"context_line":"    # Domazzins"},{"line_number":352,"context_line":"    #"},{"line_number":353,"context_line":"    @mock.patch.object(keystone.api, \u0027keystone\u0027)"},{"line_number":354,"context_line":"    def test_domain_get(self, kc):"}],"source_content_type":"text/x-python","patch_set":47,"id":"7a2fa921_c195c340","line":351,"updated":"2015-10-06 01:46:02.000000000","message":"Oops.","commit_id":"340f95e660ea69a857fdbd3e3ad6eafd930b3724"},{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"4edabeec6e6a56a12cf192711799abd2cf5ec646","unresolved":false,"context_lines":[{"line_number":348,"context_line":"                                               \u0027spam\u0027)"},{"line_number":349,"context_line":""},{"line_number":350,"context_line":"    #"},{"line_number":351,"context_line":"    # Domazzins"},{"line_number":352,"context_line":"    #"},{"line_number":353,"context_line":"    @mock.patch.object(keystone.api, \u0027keystone\u0027)"},{"line_number":354,"context_line":"    def test_domain_get(self, kc):"}],"source_content_type":"text/x-python","patch_set":49,"id":"7a2fa921_f58199fc","line":351,"updated":"2015-10-06 05:23:20.000000000","message":"*cough* this was just fixed...","commit_id":"49493fc0aaeb41d9e5f5b5f181f380711fb5a200"}],"openstack_dashboard/test/api_tests/neutron_rest_tests.py":[{"author":{"_account_id":14307,"name":"Tyr Johanson","email":"tyr@hpe.com","username":"tyr"},"change_message_id":"b6460d36f143ba1325f8fd53afe5475e3771b09a","unresolved":false,"context_lines":[{"line_number":83,"context_line":"        response \u003d neutron.Services().get(request)"},{"line_number":84,"context_line":"        self.assertStatusCode(response, 200)"},{"line_number":85,"context_line":"        client.agent_list.assert_called_once_with("},{"line_number":86,"context_line":"            request, network_id\u003dTEST.api_networks.first().get(\"id\"))"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"class NeutronSubnetsTestCase(test.TestCase):"}],"source_content_type":"text/x-python","patch_set":20,"id":"1a4dcd0f_bd331262","line":86,"updated":"2015-08-07 22:20:50.000000000","message":"also want to test that that \"items\" return is the expected format ( an array of dictionaries )","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"},{"author":{"_account_id":17327,"name":"Kyle Olivo","email":"keolivo@thoughtworks.com","username":"kyleolivo"},"change_message_id":"ade3102c6786bd57ace9d8c92ddeab4309fafa1c","unresolved":false,"context_lines":[{"line_number":83,"context_line":"        response \u003d neutron.Services().get(request)"},{"line_number":84,"context_line":"        self.assertStatusCode(response, 200)"},{"line_number":85,"context_line":"        client.agent_list.assert_called_once_with("},{"line_number":86,"context_line":"            request, network_id\u003dTEST.api_networks.first().get(\"id\"))"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"class NeutronSubnetsTestCase(test.TestCase):"}],"source_content_type":"text/x-python","patch_set":20,"id":"1a4dcd0f_0e74049a","line":86,"in_reply_to":"1a4dcd0f_bd331262","updated":"2015-08-10 21:08:20.000000000","message":"Done","commit_id":"f41450074880b7c9665d2341c6614fd8bd69d027"}],"openstack_dashboard/test/api_tests/nova_rest_tests.py":[{"author":{"_account_id":12071,"name":"Richard Jones","email":"r1chardj0n3s@gmail.com","username":"richard"},"change_message_id":"3c7380f3180940422324c889c52bfb711aecf8ae","unresolved":false,"context_lines":[{"line_number":315,"context_line":""},{"line_number":316,"context_line":"    @mock.patch.object(nova.api, \u0027nova\u0027)"},{"line_number":317,"context_line":"    def test_services_get(self, nc):"},{"line_number":318,"context_line":"        request \u003d self.mock_rest_request(**{\u0027GET\u0027: {}})"},{"line_number":319,"context_line":"        nc.service_list.return_value \u003d ["},{"line_number":320,"context_line":"            mock.Mock(**{\u0027to_dict.return_value\u0027: {\u0027id\u0027: \u00271\u0027}}),"},{"line_number":321,"context_line":"            mock.Mock(**{\u0027to_dict.return_value\u0027: {\u0027id\u0027: \u00272\u0027}})"}],"source_content_type":"text/x-python","patch_set":68,"id":"3a29b11f_d8c6ad99","line":318,"updated":"2015-10-21 00:11:29.000000000","message":"And here :/","commit_id":"2ded961a887b0f9a31fcef28c2d327b21e32edd4"},{"author":{"_account_id":16994,"name":"Dan Siwiec","email":"dan.siwiec@thoughtworks.com","username":"dansiwiec"},"change_message_id":"cd473e740f92cca49433c6fb352dd21a6c0a2b34","unresolved":false,"context_lines":[{"line_number":315,"context_line":""},{"line_number":316,"context_line":"    @mock.patch.object(nova.api, \u0027nova\u0027)"},{"line_number":317,"context_line":"    def test_services_get(self, nc):"},{"line_number":318,"context_line":"        request \u003d self.mock_rest_request(**{\u0027GET\u0027: {}})"},{"line_number":319,"context_line":"        nc.service_list.return_value \u003d ["},{"line_number":320,"context_line":"            mock.Mock(**{\u0027to_dict.return_value\u0027: {\u0027id\u0027: \u00271\u0027}}),"},{"line_number":321,"context_line":"            mock.Mock(**{\u0027to_dict.return_value\u0027: {\u0027id\u0027: \u00272\u0027}})"}],"source_content_type":"text/x-python","patch_set":68,"id":"3a29b11f_b532cff0","line":318,"in_reply_to":"3a29b11f_d8c6ad99","updated":"2015-10-21 07:31:31.000000000","message":"Done","commit_id":"2ded961a887b0f9a31fcef28c2d327b21e32edd4"}]}
