[PATCH] REST: Disable control for filtering patches by series in web view

Daniel Axtens dja at axtens.net
Sat May 12 03:00:44 AEST 2018


As with the events view, creating and rendering the control for
filtering patches by series creates a massive slowdown. It's a little
sad not to be able to do this in the web UI as filtering patches
by series does make sense, but hopefully people figure out you can
still do it, just not from the web view.

Cc: Stephen Finucane <stephen at that.guru>
Signed-off-by: Daniel Axtens <dja at axtens.net>
---
 patchwork/api/filters.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/patchwork/api/filters.py b/patchwork/api/filters.py
index 7e818954639a..12136aeed427 100644
--- a/patchwork/api/filters.py
+++ b/patchwork/api/filters.py
@@ -179,7 +179,9 @@ class CoverLetterFilterSet(TimestampMixin, FilterSet):
 class PatchFilterSet(TimestampMixin, FilterSet):
 
     project = ProjectFilter(queryset=Project.objects.all())
-    series = BaseFilter(queryset=Series.objects.all())
+    # As with events, disable filtering on series.
+    series = BaseFilter(queryset=Series.objects.all(),
+                        widget=MultipleHiddenInput)
     submitter = PersonFilter(queryset=Person.objects.all())
     delegate = UserFilter(queryset=User.objects.all())
     state = StateFilter(queryset=State.objects.all())
-- 
2.17.0



More information about the Patchwork mailing list