)]}'
{"openstack_dashboard/dashboards/admin/info/tables.py":[{"author":{"_account_id":12355,"name":"Vlad Okhrimenko","email":"vokhrimenko@mirantis.com","username":"vokhrimenko"},"change_message_id":"dea7e85e26dbdaaafe17a24433c7c1df2576a1eb","unresolved":false,"context_lines":[{"line_number":191,"context_line":"    filter_field \u003d \u0027type\u0027"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"    def filter(self, table, services, filter_string):"},{"line_number":194,"context_line":"        q \u003d filter_string.lower()"},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"        def comp(service):"},{"line_number":197,"context_line":"            attr \u003d getattr(service, self.filter_field, \u0027\u0027)"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba7be1f8_29b882e4","line":194,"updated":"2015-02-24 16:58:34.000000000","message":"(nit) It\u0027s not good name for the variable","commit_id":"7a07783fec09e184b6254cbcab7663965ebbfbb2"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"436c331cf887a6168b40de3edbc4dedc4150325f","unresolved":false,"context_lines":[{"line_number":191,"context_line":"    filter_field \u003d \u0027type\u0027"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"    def filter(self, table, services, filter_string):"},{"line_number":194,"context_line":"        q \u003d filter_string.lower()"},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"        def comp(service):"},{"line_number":197,"context_line":"            attr \u003d getattr(service, self.filter_field, \u0027\u0027)"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba7be1f8_6ad0a91f","line":194,"in_reply_to":"ba7be1f8_29b882e4","updated":"2015-02-24 17:37:03.000000000","message":"IMO, its fine to go with this naming. \nkindly refer filters being used in other horizon tables.","commit_id":"7a07783fec09e184b6254cbcab7663965ebbfbb2"},{"author":{"_account_id":12355,"name":"Vlad Okhrimenko","email":"vokhrimenko@mirantis.com","username":"vokhrimenko"},"change_message_id":"dea7e85e26dbdaaafe17a24433c7c1df2576a1eb","unresolved":false,"context_lines":[{"line_number":203,"context_line":""},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"class HeatServiceTable(tables.DataTable):"},{"line_number":206,"context_line":"    # hostname | binary | engine_id | host | topic | updated_at | status"},{"line_number":207,"context_line":"    hostname \u003d tables.Column(\u0027hostname\u0027, verbose_name\u003d_(\u0027Hostname\u0027))"},{"line_number":208,"context_line":"    binary \u003d tables.Column(\"binary\", verbose_name\u003d_(\u0027Name\u0027))"},{"line_number":209,"context_line":"    engine_id \u003d tables.Column(\u0027engine_id\u0027, verbose_name\u003d_(\u0027Engine Id\u0027))"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba7be1f8_09dc9e45","line":206,"updated":"2015-02-24 16:58:34.000000000","message":"Why does this string need ?","commit_id":"7a07783fec09e184b6254cbcab7663965ebbfbb2"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"436c331cf887a6168b40de3edbc4dedc4150325f","unresolved":false,"context_lines":[{"line_number":203,"context_line":""},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"class HeatServiceTable(tables.DataTable):"},{"line_number":206,"context_line":"    # hostname | binary | engine_id | host | topic | updated_at | status"},{"line_number":207,"context_line":"    hostname \u003d tables.Column(\u0027hostname\u0027, verbose_name\u003d_(\u0027Hostname\u0027))"},{"line_number":208,"context_line":"    binary \u003d tables.Column(\"binary\", verbose_name\u003d_(\u0027Name\u0027))"},{"line_number":209,"context_line":"    engine_id \u003d tables.Column(\u0027engine_id\u0027, verbose_name\u003d_(\u0027Engine Id\u0027))"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba7be1f8_cabfd5a8","line":206,"in_reply_to":"ba7be1f8_09dc9e45","updated":"2015-02-24 17:37:03.000000000","message":"It gives the feel of how the table will look like","commit_id":"7a07783fec09e184b6254cbcab7663965ebbfbb2"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"fa8113f09d8094e4261bec6fd37c85056ced1481","unresolved":false,"context_lines":[{"line_number":203,"context_line":""},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"class HeatServiceTable(tables.DataTable):"},{"line_number":206,"context_line":"    # hostname | binary | engine_id | host | topic | updated_at | status"},{"line_number":207,"context_line":"    hostname \u003d tables.Column(\u0027hostname\u0027, verbose_name\u003d_(\u0027Hostname\u0027))"},{"line_number":208,"context_line":"    binary \u003d tables.Column(\"binary\", verbose_name\u003d_(\u0027Name\u0027))"},{"line_number":209,"context_line":"    engine_id \u003d tables.Column(\u0027engine_id\u0027, verbose_name\u003d_(\u0027Engine Id\u0027))"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba7be1f8_f084865f","line":206,"in_reply_to":"ba7be1f8_cabfd5a8","updated":"2015-02-24 17:51:08.000000000","message":"hmm yeah, this is not that helpful. \n\nThe column displayed can be easily derived from the list below","commit_id":"7a07783fec09e184b6254cbcab7663965ebbfbb2"}],"openstack_dashboard/dashboards/admin/info/tabs.py":[{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"ba8e525d82c1ed4a6df9b73279886b9455f91647","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        try:"},{"line_number":121,"context_line":"            services \u003d heat.service_list(self.tab_group.request)"},{"line_number":122,"context_line":"        except Exception:"},{"line_number":123,"context_line":"            msg \u003d _(\u0027Unable to get Orchestration engine details.\u0027)"},{"line_number":124,"context_line":"            exceptions.check_message([\"Connection\", \"refused\"], msg)"},{"line_number":125,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":126,"context_line":"            services \u003d []"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba7be1f8_ec35bcf7","line":123,"updated":"2015-02-24 00:04:16.000000000","message":"Should the msg be something like \"Unable to get orchestration services list.\"?","commit_id":"2fd3ab2c49a03cc83591f5da2c347594c0e755f2"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"dcec8e934a1d9c18184ddb60766f8e1b3a4cdf6a","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        try:"},{"line_number":121,"context_line":"            services \u003d heat.service_list(self.tab_group.request)"},{"line_number":122,"context_line":"        except Exception:"},{"line_number":123,"context_line":"            msg \u003d _(\u0027Unable to get Orchestration engine details.\u0027)"},{"line_number":124,"context_line":"            exceptions.check_message([\"Connection\", \"refused\"], msg)"},{"line_number":125,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":126,"context_line":"            services \u003d []"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba7be1f8_a48cb480","line":123,"in_reply_to":"ba7be1f8_ec35bcf7","updated":"2015-02-24 04:08:21.000000000","message":"Yes. Thanks. I will change \u0027engine\u0027 to \u0027service\u0027.","commit_id":"2fd3ab2c49a03cc83591f5da2c347594c0e755f2"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"cb0ce7e820ddc7c7030d55bd7a900f1d15d03e02","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        try:"},{"line_number":121,"context_line":"            services \u003d heat.service_list(self.tab_group.request)"},{"line_number":122,"context_line":"        except Exception:"},{"line_number":123,"context_line":"            msg \u003d _(\u0027Unable to get Orchestration service details.\u0027)"},{"line_number":124,"context_line":"            exceptions.check_message([\"Connection\", \"refused\"], msg)"},{"line_number":125,"context_line":"            exceptions.handle(self.request, msg)"},{"line_number":126,"context_line":"            services \u003d []"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba7be1f8_138a046a","line":123,"updated":"2015-02-24 18:17:27.000000000","message":"\"details\" -\u003e \"list\" ?  It might be more accurate, similar to be msg used for the other tabs","commit_id":"7a07783fec09e184b6254cbcab7663965ebbfbb2"}],"openstack_dashboard/dashboards/admin/info/tests.py":[{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"ba8e525d82c1ed4a6df9b73279886b9455f91647","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    @test.create_stubs({api.base: (\u0027is_service_enabled\u0027,),"},{"line_number":29,"context_line":"                        api.nova: (\u0027service_list\u0027,),"},{"line_number":30,"context_line":"                        api.neutron: (\u0027agent_list\u0027, \u0027is_extension_supported\u0027),"},{"line_number":31,"context_line":"                        api.cinder: (\u0027service_list\u0027,)})"},{"line_number":32,"context_line":"    def test_index(self):"},{"line_number":33,"context_line":"        services \u003d self.services.list()"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba7be1f8_6c21ccb3","line":30,"updated":"2015-02-24 00:04:16.000000000","message":"Hmm this should have been failing since the call to api.heat didn\u0027t got mocked, can you add the call here too?","commit_id":"2fd3ab2c49a03cc83591f5da2c347594c0e755f2"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"ba8e525d82c1ed4a6df9b73279886b9455f91647","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    @test.create_stubs({api.base: (\u0027is_service_enabled\u0027,),"},{"line_number":29,"context_line":"                        api.nova: (\u0027service_list\u0027,),"},{"line_number":30,"context_line":"                        api.neutron: (\u0027agent_list\u0027, \u0027is_extension_supported\u0027),"},{"line_number":31,"context_line":"                        api.cinder: (\u0027service_list\u0027,)})"},{"line_number":32,"context_line":"    def test_index(self):"},{"line_number":33,"context_line":"        services \u003d self.services.list()"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba7be1f8_e72795b4","line":30,"updated":"2015-02-24 00:04:16.000000000","message":"hmm this should have been failing since the call to api.heat didn\u0027t got mocked, can you you it here too\n\nBetter yet, we could refactor the code, since we are using the same sets of mock and data for the three test methods.","commit_id":"2fd3ab2c49a03cc83591f5da2c347594c0e755f2"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"dcec8e934a1d9c18184ddb60766f8e1b3a4cdf6a","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    @test.create_stubs({api.base: (\u0027is_service_enabled\u0027,),"},{"line_number":29,"context_line":"                        api.nova: (\u0027service_list\u0027,),"},{"line_number":30,"context_line":"                        api.neutron: (\u0027agent_list\u0027, \u0027is_extension_supported\u0027),"},{"line_number":31,"context_line":"                        api.cinder: (\u0027service_list\u0027,)})"},{"line_number":32,"context_line":"    def test_index(self):"},{"line_number":33,"context_line":"        services \u003d self.services.list()"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba7be1f8_6492bca0","line":30,"in_reply_to":"ba7be1f8_e72795b4","updated":"2015-02-24 04:08:21.000000000","message":"Sure. Thanks. I wanted to do the refactoring the code as test methods are repeated, but was hesitant to do that because, the first two test cases are not related to this patch completely. \n\nThanks for suggesting to refactor. I will summit a another patch with updated code with one test case to cover all 4 tabs in the System info panel.","commit_id":"2fd3ab2c49a03cc83591f5da2c347594c0e755f2"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"ba8e525d82c1ed4a6df9b73279886b9455f91647","unresolved":false,"context_lines":[{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    @test.create_stubs({api.base: (\u0027is_service_enabled\u0027,),"},{"line_number":74,"context_line":"                        api.cinder: (\u0027service_list\u0027,),"},{"line_number":75,"context_line":"                        api.nova: (\u0027service_list\u0027,),"},{"line_number":76,"context_line":"                        api.neutron: (\u0027agent_list\u0027, \u0027is_extension_supported\u0027)})"},{"line_number":77,"context_line":"    def test_cinder_services_index(self):"},{"line_number":78,"context_line":"        cinder_services \u003d self.cinder_services.list()"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba7be1f8_27228da4","line":75,"updated":"2015-02-24 00:04:16.000000000","message":"same here","commit_id":"2fd3ab2c49a03cc83591f5da2c347594c0e755f2"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"ba8e525d82c1ed4a6df9b73279886b9455f91647","unresolved":false,"context_lines":[{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    @test.create_stubs({api.base: (\u0027is_service_enabled\u0027,),"},{"line_number":74,"context_line":"                        api.cinder: (\u0027service_list\u0027,),"},{"line_number":75,"context_line":"                        api.nova: (\u0027service_list\u0027,),"},{"line_number":76,"context_line":"                        api.neutron: (\u0027agent_list\u0027, \u0027is_extension_supported\u0027)})"},{"line_number":77,"context_line":"    def test_cinder_services_index(self):"},{"line_number":78,"context_line":"        cinder_services \u003d self.cinder_services.list()"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba7be1f8_8c30c002","line":75,"updated":"2015-02-24 00:04:16.000000000","message":"same here","commit_id":"2fd3ab2c49a03cc83591f5da2c347594c0e755f2"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"cb0ce7e820ddc7c7030d55bd7a900f1d15d03e02","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        api.heat.service_list(IsA(http.HttpRequest)).\\"},{"line_number":51,"context_line":"            AndReturn(heat_services)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        self.mox.ReplayAll()"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        res \u003d self.client.get(INDEX_URL)"},{"line_number":56,"context_line":"        self.assertTemplateUsed(res, \u0027admin/info/index.html\u0027)"}],"source_content_type":"text/x-python","patch_set":4,"id":"ba7be1f8_53e1dcfc","line":53,"updated":"2015-02-24 18:17:27.000000000","message":"not the refactor I was looking for, combining all three test into one makes the test harder to isolate if it fails.\n\nI was thinking of something like\n\n\n@test .. mock\ndef _base_test_index(self):\n.. data mock\n\n\ndef test_index(self):\ncall the base here\n\ndef test_cinder_services_index(self):\ncall the base here\n\n\ndef test_heat_services_index(self):\ncall the base here","commit_id":"7a07783fec09e184b6254cbcab7663965ebbfbb2"}]}
