Message ID | 20240617221900.156155-5-ahassick@iol.unh.edu |
---|---|
State | Rejected |
Headers | show |
Series | None | expand |
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 --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
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(+)