]> 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:04:48 +0000 (02:04 +1000)
commit174de19d41d76f8387027e789e5975fc078f2d08
tree5e67fa9fdd38bdf2de9aa09929898674ab65199a
parentb62c11755c21f2114a6f71aeb21a8c1e18617751
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>
patchwork/api/filters.py
patchwork/tests/test_rest_api.py