Description of problem: Seems that TestPlan.update() does not support providing status (is_active) by Boolean as mentioned in the documentation: +-------------------------+----------------+ | Field | Type | +-------------------------+----------------+ | name | String | | type | Integer | | product | Integer | | default_product_version | Integer | | parent | Integer | | is_active | Boolean | | env_group | Integer | +-------------------------+----------------+ When I fetch the test plan, the value is correctly Boolean: > TestPlan.get(289) > > {'attachment': [], > 'author': 'psplicha', > 'author_id': 2117, > 'case': [12516, 35267, 46490, 51362, 35269], > 'component': [], > 'create_date': '2008-10-22 09:08:38', > 'default_product_version': '5.6', > 'env_group': [], > 'extra_link': '', > 'is_active': True, > 'name': 'name1', > 'owner': 'psplicha', > 'owner_id': 2117, > 'parent': None, > 'parent_id': None, > 'plan_id': 289, > 'product': 'Red Hat Enterprise Linux 5', > 'product_id': 61, > 'tag': [973], > 'type': 'Function', > 'type_id': 3} But when I try to update I get the following: > TestPlan.update(289, {'is_active': True}) > [['is_active', 'Select a valid choice. True is not one of the available choices.']] This worked fine before, marking as regression. Could you please fix this soon? Thanks. Version-Release number of selected component (if applicable): Nitrate 3.7.0
Could we get this fixed in 3.8.0?
(In reply to comment #1) > Could we get this fixed in 3.8.0? Now 'is_active' accept 0 or 1, 0: Archived 1: Active (Default 0). 3.8.0 will change to False/True. Thanks.
*** Bug 740558 has been marked as a duplicate of this bug. ***
Verify 3.8.0-1 on stage --->Fail Verify steps: 1.TestPlan.get(6868) 2.TestPlan.update(6868, {'is_active': False}) 3.TestPlan.update(6868, {'is_active': True}) Actual result: > TestPlan.update(6868, {'is_active': False}) > [['is_active', 'Select a valid choice. False is not one of the available choices.']] > TestPlan.update(6868, {'is_active': True}) > [['is_active', 'Select a valid choice. True is not one of the available choices.']] expect result: it should work fine.
Verify 3.8.0-2 on stage --->Fail Verify steps: 1.TestPlan.get(6868) 2.TestPlan.update(6868, {'is_active': False}) 3.TestPlan.update(6868, {'is_active': True}) Actual result: > TestPlan.update(6868, {'is_active': False}) > [['is_active', 'Select a valid choice. False is not one of the available choices.']] > TestPlan.update(6868, {'is_active': True}) > [['is_active', 'Select a valid choice. True is not one of the available choices.']] expect result: it should work fine.
This bug raise because the patch not yet merge in source code. Please re-confirm in 3.8.0-3 release.
Verify 3.8.0-2 on stage --->PASS Verify steps: 1.TestPlan.get(6868) 2.TestPlan.update(6868, {'is_active': False}) 3.TestPlan.update(6868, {'is_active': True}) Actual result: work well now