]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Exclude filters added in later version
authorStephen Finucane <stephen@that.guru>
Sat, 30 Nov 2019 16:24:36 +0000 (16:24 +0000)
committerStephen Finucane <stephen@that.guru>
Sat, 30 Nov 2019 16:40:08 +0000 (16:40 +0000)
commite53d7985a15a90617d653645d1bb0c2693b73ff6
tree3ca836fa4f3a643852926297e5878ce36c9f06bd
parentd380219e4dd5e963f7b2b3fb421cd033e70ac5a8
REST: Exclude filters added in later version

If a person requests API version 1.1, they should get the exact same
behavior regardless of the base Patchwork version. We already do this
for fields in the output, so now extend this to filters in the
querystring.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Cc: Daniel Axtens <dja@axtens.net>
patchwork/api/filters.py
patchwork/tests/api/test_patch.py