)]}'
{"neutron/tests/unit/db/test_db_base_plugin_v2.py":[{"author":{"_account_id":25618,"name":"Paweł Suder","email":"pawel@suder.info","username":"SuderPawel"},"change_message_id":"5b87995505b7c5eadfbb02c46faf6d8e5d01b426","unresolved":false,"context_lines":[{"line_number":131,"context_line":"                       \u0027DhcpAgentNotifyAPI\u0027).start()"},{"line_number":132,"context_line":"        # Update the plugin"},{"line_number":133,"context_line":"        self.setup_coreplugin(plugin, load_plugins\u003dFalse)"},{"line_number":134,"context_line":"        if isinstance(service_plugins, (list, tuple, set)):"},{"line_number":135,"context_line":"            # Sometimes we needs these test service_plugins to be ordered."},{"line_number":136,"context_line":"            cfg.CONF.set_override(\u0027service_plugins\u0027, service_plugins)"},{"line_number":137,"context_line":"        elif isinstance(service_plugins, dict):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_1b2a1f96","line":134,"range":{"start_line":134,"start_character":53,"end_line":134,"end_character":56},"updated":"2018-12-21 07:17:15.000000000","message":"set is not ordered:\n\nhttps://docs.python.org/2/library/sets.html\nhttps://docs.python.org/3.5/library/stdtypes.html#set-types-set-frozenset","commit_id":"411136c638227cf982e08b7d91c61be88234f9e4"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"4827cf2e32a0a1e3682be01019d105dc55cfe70c","unresolved":false,"context_lines":[{"line_number":131,"context_line":"                       \u0027DhcpAgentNotifyAPI\u0027).start()"},{"line_number":132,"context_line":"        # Update the plugin"},{"line_number":133,"context_line":"        self.setup_coreplugin(plugin, load_plugins\u003dFalse)"},{"line_number":134,"context_line":"        if isinstance(service_plugins, (list, tuple, set)):"},{"line_number":135,"context_line":"            # Sometimes we needs these test service_plugins to be ordered."},{"line_number":136,"context_line":"            cfg.CONF.set_override(\u0027service_plugins\u0027, service_plugins)"},{"line_number":137,"context_line":"        elif isinstance(service_plugins, dict):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_f3a667a8","line":134,"range":{"start_line":134,"start_character":53,"end_line":134,"end_character":56},"in_reply_to":"3f79a3b5_1b2a1f96","updated":"2018-12-21 10:12:52.000000000","message":"Yes, here we just accept these three types of input. The order is set by the user or the language itself. Yes, to make things simple, let\u0027s do not make things complicated here.\n\nI will remove the set type here, so if any test code send a set to this param, the current will silently set nothing for servcie plugin. Does this make sense to you?","commit_id":"411136c638227cf982e08b7d91c61be88234f9e4"},{"author":{"_account_id":25618,"name":"Paweł Suder","email":"pawel@suder.info","username":"SuderPawel"},"change_message_id":"8f2087a191e9a2263a5721f5c92e26e1de07655f","unresolved":false,"context_lines":[{"line_number":131,"context_line":"                       \u0027DhcpAgentNotifyAPI\u0027).start()"},{"line_number":132,"context_line":"        # Update the plugin"},{"line_number":133,"context_line":"        self.setup_coreplugin(plugin, load_plugins\u003dFalse)"},{"line_number":134,"context_line":"        if isinstance(service_plugins, (list, tuple, set)):"},{"line_number":135,"context_line":"            # Sometimes we needs these test service_plugins to be ordered."},{"line_number":136,"context_line":"            cfg.CONF.set_override(\u0027service_plugins\u0027, service_plugins)"},{"line_number":137,"context_line":"        elif isinstance(service_plugins, dict):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f769fc5_5780f18b","line":134,"range":{"start_line":134,"start_character":53,"end_line":134,"end_character":56},"in_reply_to":"3f79a3b5_f3a667a8","updated":"2019-01-02 08:59:20.000000000","message":"During first read I was not sure how comment from L135 was related to L134. set is not ordered.","commit_id":"411136c638227cf982e08b7d91c61be88234f9e4"},{"author":{"_account_id":25618,"name":"Paweł Suder","email":"pawel@suder.info","username":"SuderPawel"},"change_message_id":"5b87995505b7c5eadfbb02c46faf6d8e5d01b426","unresolved":false,"context_lines":[{"line_number":135,"context_line":"            # Sometimes we needs these test service_plugins to be ordered."},{"line_number":136,"context_line":"            cfg.CONF.set_override(\u0027service_plugins\u0027, service_plugins)"},{"line_number":137,"context_line":"        elif isinstance(service_plugins, dict):"},{"line_number":138,"context_line":"            cfg.CONF.set_override(\u0027service_plugins\u0027,"},{"line_number":139,"context_line":"                                  list(service_plugins.values()))"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        cfg.CONF.set_override(\u0027base_mac\u0027, \"12:34:56:78:00:00\")"},{"line_number":142,"context_line":"        cfg.CONF.set_override(\u0027max_dns_nameservers\u0027, 2)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_db082731","line":139,"range":{"start_line":138,"start_character":12,"end_line":139,"end_character":65},"updated":"2018-12-21 07:17:15.000000000","message":"If every time list is needed, is instance could be used to check agains list only to avoid second copy from list to list.\n\nWhat is more, if this is a config option tuple might be more convenient here - tuple will have order and cannot be modified.","commit_id":"411136c638227cf982e08b7d91c61be88234f9e4"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"4827cf2e32a0a1e3682be01019d105dc55cfe70c","unresolved":false,"context_lines":[{"line_number":135,"context_line":"            # Sometimes we needs these test service_plugins to be ordered."},{"line_number":136,"context_line":"            cfg.CONF.set_override(\u0027service_plugins\u0027, service_plugins)"},{"line_number":137,"context_line":"        elif isinstance(service_plugins, dict):"},{"line_number":138,"context_line":"            cfg.CONF.set_override(\u0027service_plugins\u0027,"},{"line_number":139,"context_line":"                                  list(service_plugins.values()))"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        cfg.CONF.set_override(\u0027base_mac\u0027, \"12:34:56:78:00:00\")"},{"line_number":142,"context_line":"        cfg.CONF.set_override(\u0027max_dns_nameservers\u0027, 2)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_f38d0728","line":139,"range":{"start_line":138,"start_character":12,"end_line":139,"end_character":65},"in_reply_to":"3f79a3b5_db082731","updated":"2018-12-21 10:12:52.000000000","message":"Not everytime, this is compatible for current test code, they just use dict now. And the ordered list is, for now, only used for this test:\nhttps://review.openstack.org/#/c/614727/12/neutron/tests/unit/extensions/test_expose_port_forwarding_in_fip.py@77","commit_id":"411136c638227cf982e08b7d91c61be88234f9e4"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"cf5c00edca5aa2540198404c6def5778a81b1d24","unresolved":false,"context_lines":[{"line_number":136,"context_line":"            cfg.CONF.set_override(\u0027service_plugins\u0027, service_plugins)"},{"line_number":137,"context_line":"        elif isinstance(service_plugins, dict):"},{"line_number":138,"context_line":"            cfg.CONF.set_override(\u0027service_plugins\u0027,"},{"line_number":139,"context_line":"                                  list(service_plugins.values()))"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        cfg.CONF.set_override(\u0027base_mac\u0027, \"12:34:56:78:00:00\")"},{"line_number":142,"context_line":"        cfg.CONF.set_override(\u0027max_dns_nameservers\u0027, 2)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1f769fc5_d59aef6c","line":139,"range":{"start_line":139,"start_character":39,"end_line":139,"end_character":63},"updated":"2018-12-24 09:14:59.000000000","message":"I don\u0027t understand this. You are changing the previous behavior for tests passing dicts in the service_plugins variable. You should keep the read of test_lib.test_config because that is supposed to the the job of this variable.","commit_id":"c943a090aedec27f0efd33f10d22fdb87ce9ef7c"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"55cb297a558f87c4db2c527f034752c2e830354b","unresolved":false,"context_lines":[{"line_number":136,"context_line":"            cfg.CONF.set_override(\u0027service_plugins\u0027, service_plugins)"},{"line_number":137,"context_line":"        elif isinstance(service_plugins, dict):"},{"line_number":138,"context_line":"            cfg.CONF.set_override(\u0027service_plugins\u0027,"},{"line_number":139,"context_line":"                                  list(service_plugins.values()))"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        cfg.CONF.set_override(\u0027base_mac\u0027, \"12:34:56:78:00:00\")"},{"line_number":142,"context_line":"        cfg.CONF.set_override(\u0027max_dns_nameservers\u0027, 2)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1f769fc5_8b120158","line":139,"range":{"start_line":139,"start_character":39,"end_line":139,"end_character":63},"in_reply_to":"1f769fc5_d59aef6c","updated":"2018-12-27 14:31:33.000000000","message":"Reset this else back to original style.","commit_id":"c943a090aedec27f0efd33f10d22fdb87ce9ef7c"},{"author":{"_account_id":25618,"name":"Paweł Suder","email":"pawel@suder.info","username":"SuderPawel"},"change_message_id":"8f2087a191e9a2263a5721f5c92e26e1de07655f","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        else:"},{"line_number":138,"context_line":"            cfg.CONF.set_override("},{"line_number":139,"context_line":"                \u0027service_plugins\u0027,"},{"line_number":140,"context_line":"                [test_lib.test_config.get(key, default)"},{"line_number":141,"context_line":"                 for key, default in (service_plugins or {}).items()]"},{"line_number":142,"context_line":"            )"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        cfg.CONF.set_override(\u0027base_mac\u0027, \"12:34:56:78:00:00\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f769fc5_3751b537","line":141,"range":{"start_line":140,"start_character":16,"end_line":141,"end_character":69},"updated":"2019-01-02 08:59:20.000000000","message":"According to comment L135 how order is ensured here?","commit_id":"6dba233648209d5d3fe2cd4af3cd0eeee0e79e0d"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"6b1df058b902d2e5f63403d039012f013a955e6d","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        else:"},{"line_number":138,"context_line":"            cfg.CONF.set_override("},{"line_number":139,"context_line":"                \u0027service_plugins\u0027,"},{"line_number":140,"context_line":"                [test_lib.test_config.get(key, default)"},{"line_number":141,"context_line":"                 for key, default in (service_plugins or {}).items()]"},{"line_number":142,"context_line":"            )"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        cfg.CONF.set_override(\u0027base_mac\u0027, \"12:34:56:78:00:00\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"ffd0ebdf_b5a72a50","line":141,"range":{"start_line":140,"start_character":16,"end_line":141,"end_character":69},"in_reply_to":"1f769fc5_3751b537","updated":"2019-01-03 01:39:26.000000000","message":"This is backwards compatibility, take a look at left side. : )\ntest_config needs to be covered, and Rodolfo\u0027s comment is a good aguement:\nhttps://review.openstack.org/#/c/626538/3/neutron/tests/unit/db/test_db_base_plugin_v2.py@139\nSo I revert this \u0027else\u0027 block back to the original way.","commit_id":"6dba233648209d5d3fe2cd4af3cd0eeee0e79e0d"}]}
