[PATCH] distgit: ignore forks when syncing pagure to bugzilla (#6593)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
I wrote:
> I don't know if it's related, but I appear to be listed as
> the default assignee for mock bugs in bugzilla.  I am not
> even a co-maintainer of mock though.  This looks like it
> could be a combination of the bug(s) which included forks in
> various queries for maintainers and the bugzilla sync
> script.
> 
> I filed https://pagure.io/fedora-infrastructure/issue/6593
> for this.

I also attached this patch to the ticket, but in case it's
easier to review here, I'll include it.  I could be way off
on this, so it definitely needs checked by those who know
pagure/distgit. :)

 roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 b/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2
index cf6c411e8..16c23b1e8 100644
--- a/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2
+++ b/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2
@@ -694,11 +694,13 @@ if __name__ == '__main__':
     poc_url = PAGURE_DIST_GIT_URL + '/extras/pagure_poc.json'
     if DEBUG:
         print("Querying %r for points of contact." % poc_url)
-    pagure_namespace_to_poc = session.get(poc_url, timeout=120).json()
+    pagure_namespace_to_poc = session.get(
+        poc_url, params={'fork': False}, timeout=120).json()
     cc_url = PAGURE_DIST_GIT_URL + '/extras/pagure_bz.json'
     if DEBUG:
         print("Querying %r for initial cc list." % cc_url)
-    pagure_namespace_to_cc = session.get(cc_url, timeout=120).json()
+    pagure_namespace_to_cc = session.get(
+        cc_url, params={'fork': False}, timeout=120).json()
·
     # Combine and collapse those two into a single list:
     pagure_projects = []
--·
2.15.1

-- 
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A fool's brain digests philosophy into folly, science into
superstition, and art into pedantry.  Hence University education.
    -- George Bernard Shaw
_______________________________________________
infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux