Activity log for bug #1092977

Date Who What changed Old value New value Message
2012-12-21 20:48:00 Zhongyue Luo bug added bug
2012-12-21 22:02:51 OpenStack Infra quantum: status New In Progress
2012-12-21 22:02:51 OpenStack Infra quantum: assignee Zhongyue Luo (zyluo)
2012-12-21 22:09:41 Zhongyue Luo description The _filters function checks twice whether convert_list_to exists in lines 86 and 91. This is hard to understand and not readable. We should assign a callable object to convert_list_to and execute it in one place to help understand the flow. There can be three cases, 1) convert_list_to exists: then just use it directly 2) convert_to exists: the use "lambda values_: [convert_to(x) for x in values_]" as convert_list_to 3) convert_to does not exist: then use "lambda values_: None" as convert_list_to Then, update res only if the return value of convert_list_to(values) is not None. The _filters function checks twice whether convert_list_to exists in lines 86 and 91. This is hard to understand and not intuitive. We should assign a callable object to convert_list_to and execute it in one place to help understand the flow. There can be three cases, 1) convert_list_to exists: then just use it directly 2) convert_to exists: the use "lambda values_: [convert_to(x) for x in values_]" as convert_list_to 3) convert_to does not exist: then use "lambda values_: None" as convert_list_to Then, update res with the return value of convert_list_to(values) if not None or else the original value.
2013-01-04 01:28:19 Zhongyue Luo description The _filters function checks twice whether convert_list_to exists in lines 86 and 91. This is hard to understand and not intuitive. We should assign a callable object to convert_list_to and execute it in one place to help understand the flow. There can be three cases, 1) convert_list_to exists: then just use it directly 2) convert_to exists: the use "lambda values_: [convert_to(x) for x in values_]" as convert_list_to 3) convert_to does not exist: then use "lambda values_: None" as convert_list_to Then, update res with the return value of convert_list_to(values) if not None or else the original value. The _filters function checks twice whether convert_list_to exists in lines 86 and 91. This is hard to understand and not intuitive. We should assign a callable object to convert_list_to and execute it in one place to help understand the flow. There can be three cases, 1) convert_list_to exists: then just use it directly 2) convert_to exists: the use "lambda values_: [convert_to(x) for x in values_]" as convert_list_to 3) convert_to does not exist: then use "lambda values_: None" as convert_list_to Then, update res with the return value of convert_list_to(values) if not None or else update with the original value.
2013-01-13 10:12:00 Salvatore Orlando quantum: importance Undecided Low
2013-01-13 10:55:57 OpenStack Infra quantum: status In Progress Fix Committed
2013-02-17 02:35:17 Akihiro Motoki quantum: milestone grizzly-3
2013-02-21 09:10:20 Thierry Carrez quantum: status Fix Committed Fix Released
2013-04-04 10:20:58 Thierry Carrez quantum: milestone grizzly-3 2013.1