]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Filter projects by 'linkname', not 'name'
authorStephen Finucane <stephen@that.guru>
Thu, 31 Aug 2017 08:48:51 +0000 (09:48 +0100)
committerDaniel Axtens <dja@axtens.net>
Tue, 5 Sep 2017 16:22:28 +0000 (02:22 +1000)
commitb23f206b941694a03bf3d0a94fcbdb4f3d146f85
tree09a41edb3798a8b22f54427e36ddce17ee0be9c0
parente5da62ddd8ff11db3a860df73947edd9e5c519ee
REST: Filter projects by 'linkname', not 'name'

Based on a report on the OVS mailing list, it appears that projects are
being filtered on the 'Project.name' field instead of the
'Project.linkname' field. Correct this and add regression tests to
prevent it happening again.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: 08b2115 ("REST: Allow filtering by both project ID and linkname")
Closes-bug: #117 ("Projects are filtered on the wrong field")
Cc: Daniel Axtens <dja@axtens.net>
[dja: drop mangling of value]
Signed-off-by: Daniel Axtens <dja@axtens.net>
(cherry picked from commit 174de19d41d76f8387027e789e5975fc078f2d08)
patchwork/api/filters.py
patchwork/tests/test_rest_api.py