#4245 Allow turning on issue tracking for only some namespaces
Merged by pingou. Opened by pingou.
namespace_issue  into  master

Download 4245.patch

This commit allows turning on issue tracking for only some namespaces
specified in the configuration file.
This way, on src.fp.o we can enable issue tracking in pagure for the
tests namespace without enabling it for the rpms namespace (for example)
since the issues for the rpms namespace are meant to be tracked in
bugzilla.redhat.com

Fixes https://pagure.io/pagure/issue/4244

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

rebased onto 7fba973a44235fc68bc3bd9d78cc424b807f3c6b

rebased onto 6c95cb39120c0430b18a7d96e0820e2ee6b2b052

rebased onto 7aa79f7988d534430d3c74e804f4711ffeae8747

pretty please pagure-ci rebuild

rebased onto 445d66f0b4310eb9273ec7abfac7ea6319edce78

pretty please pagure-ci rebuild

LGTM, but I think we need to add some doc for the new config key ENABLE_TICKETS_NAMESPACE

Good catch, I'll add this :)

rebased onto cd4df4e668359469ec29e055624ae929fa1d14ed

Here is the blob added to the documentation:

--- a/doc/configuration.rst    
+++ b/doc/configuration.rst    
@@ -999,6 +999,20 @@ for all the projects hosted on this pagure instance.
 Defaults to: ``True``
+ENABLE_TICKETS_NAMESPACE
+~~~~~~~~~~~~~~~~~~~~~~~~
+
+This configuration key allows to restrict the namespace in which the ticketing
+system is enabled.
+So if your pagure instance has ``ENABLE_TICKETS`` as ``True`` and sets
+``ENABLE_TICKETS_NAMESPACE`` to ``['tests', 'infra']`` only the projects opened
+in these two namespaces will have the ticketing system enabled. All the other
+namespaces will not.
+
+
+Defaults to: ``[]``
+
+

:thumbsup:

Thanks! :)

Pull-Request has been merged by pingou

Metadata