[PATCH] REST: allow filtering patch by hash

Philippe Pepiot philippe.pepiot at logilab.fr
Fri May 5 01:07:51 AEST 2017


This allow to get related patches for a given hash. For instance this
could be used to find quickly relevant mail threads while looking at a
single applied patch.

Signed-off-by: Philippe Pepiot <philippe.pepiot at logilab.fr>
---
 patchwork/api/filters.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/patchwork/api/filters.py b/patchwork/api/filters.py
index 7c7d742..436895d 100644
--- a/patchwork/api/filters.py
+++ b/patchwork/api/filters.py
@@ -59,7 +59,7 @@ class PatchFilter(FilterSet):
     class Meta:
         model = Patch
         fields = ('project', 'series', 'submitter', 'delegate', 'state',
-                  'archived')
+                  'archived', 'hash')
 
 
 class CheckFilter(TimestampMixin, FilterSet):
-- 
2.1.4


More information about the Patchwork mailing list