[PATCH v1 4/9] settings: Add flag disable "Depends-on" parsing

Adam Hassick ahassick at iol.unh.edu
Tue Jun 18 08:18:50 AEST 2024


Some operators of Patchwork instances may not want to allow series
dependencies. By providing this setting, these operators may disable
this behavior on their instance.

Signed-off-by: Adam Hassick <ahassick at iol.unh.edu>
---
 patchwork/settings/base.py | 3 +++
 patchwork/settings/dev.py  | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/patchwork/settings/base.py b/patchwork/settings/base.py
index dccab6c..8b05d57 100644
--- a/patchwork/settings/base.py
+++ b/patchwork/settings/base.py
@@ -263,6 +263,9 @@ ENABLE_XMLRPC = False
 # Set to True to enable the Patchwork REST API
 ENABLE_REST_API = True
 
+# Set to True to enable parsing "Depends-on" tags.
+ENABLE_DEPENDS_ON_PARSING = False
+
 REST_RESULTS_PER_PAGE = 30
 MAX_REST_RESULTS_PER_PAGE = 250
 
diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py
index 75c4b34..3688b24 100644
--- a/patchwork/settings/dev.py
+++ b/patchwork/settings/dev.py
@@ -80,3 +80,5 @@ if dbbackup:
 ENABLE_XMLRPC = True
 
 ENABLE_REST_API = True
+
+ENABLE_DEPENDS_ON_PARSING = True
-- 
2.45.2



More information about the Patchwork mailing list