diff mbox series

[v1,4/9] settings: Add flag to toggle "Depends-on" parsing

Message ID 20240617221900.156155-5-ahassick@iol.unh.edu
State Rejected
Headers show
Series None | expand

Commit Message

Adam Hassick June 17, 2024, 10:18 p.m. UTC
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@iol.unh.edu>
---
 patchwork/settings/base.py | 3 +++
 patchwork/settings/dev.py  | 2 ++
 2 files changed, 5 insertions(+)

Comments

Stephen Finucane July 12, 2024, 4:06 p.m. UTC | #1
On Mon, 2024-06-17 at 18:18 -0400, Adam Hassick wrote:
> 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@iol.unh.edu>

Not sure what happened here but this looks like a dupe. One to fix if we end up
keeping this patch going into v2 (though I don't think we should).

Stephen

> ---
>  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
diff mbox series

Patch

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