Bug 1129606 - [xmlrpc]Invoke TestPlan.filter to filter plan via 'Text', system will return multiple duplicate plans.
Summary: [xmlrpc]Invoke TestPlan.filter to filter plan via 'Text', system will return ...
Keywords:
Status: NEW
Alias: None
Product: TCMS
Classification: Other
Component: XMLRPC
Version: Devel
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Yang Ren
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-13 10:34 UTC by yangqiu
Modified: 2018-07-04 21:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description yangqiu 2014-08-13 10:34:38 UTC
Description of problem:
as summary.

Version-Release number of selected component (if applicable):
v3.8.10-1 on devel server.

How reproducible:
100%

Steps to Reproduce:
1.There is a plan has multiple test version.
2.Invoke TestPlan.filter to filter plan via 'Text' like:
n.TestPlan.filter({'plan_id':10207,'text__in': [20997,20998,20996]})
3.Check the filter result.

Actual results:
system returns only one plan.

Expected results:
system returns three duplicate plan.

Additional info:

In [60]: n.TestPlan.filter({'plan_id':10207,'text__in': [20997,20998,20996]})
Out[60]: 
[{'attachment': [],
  'author': 'qiyang',
  'author_id': 4239,
  'case': [],
  'component': [],
  'create_date': '2014-08-13 18:16:05',
  'env_group': [],
  'extra_link': None,
  'is_active': False,
  'name': 'qiyang test plan a',
  'owner': None,
  'owner_id': None,
  'parent': None,
  'parent_id': None,
  'plan_id': 10207,
  'product': 'qiyang test product',
  'product_id': 343,
  'product_version': 'qiyang-product-version-2',
  'product_version_id': 1479,
  'tag': [],
  'type': 'Unit',
  'type_id': 1},
 {'attachment': [],
  'author': 'qiyang',
  'author_id': 4239,
  'case': [],
  'component': [],
  'create_date': '2014-08-13 18:16:05',
  'env_group': [],
  'extra_link': None,
  'is_active': False,
  'name': 'qiyang test plan a',
  'owner': None,
  'owner_id': None,
  'parent': None,
  'parent_id': None,
  'plan_id': 10207,
  'product': 'qiyang test product',
  'product_id': 343,
  'product_version': 'qiyang-product-version-2',
  'product_version_id': 1479,
  'tag': [],
  'type': 'Unit',
  'type_id': 1},
 {'attachment': [],
  'author': 'qiyang',
  'author_id': 4239,
  'case': [],
  'component': [],
  'create_date': '2014-08-13 18:16:05',
  'env_group': [],
  'extra_link': None,
  'is_active': False,
  'name': 'qiyang test plan a',
  'owner': None,
  'owner_id': None,
  'parent': None,
  'parent_id': None,
  'plan_id': 10207,
  'product': 'qiyang test product',
  'product_id': 343,
  'product_version': 'qiyang-product-version-2',
  'product_version_id': 1479,
  'tag': [],
  'type': 'Unit',
  'type_id': 1}]


Note You need to log in before you can comment on or make changes to this bug.