← Back to team overview

arsenal-devel team mailing list archive

[Merge] lp:~jpds/arsenal/css-subscribed into lp:arsenal

 

Jonathan Davies has proposed merging lp:~jpds/arsenal/css-subscribed into lp:arsenal.

Requested reviews:
  Brad Figg (brad-figg): code

For more details, see:
https://code.launchpad.net/~jpds/arsenal/css-subscribed/+merge/98529

This branch allows one to specify a subscriber field to JSON files. Only bugs with that subscriber will be thus listed.
-- 
https://code.launchpad.net/~jpds/arsenal/css-subscribed/+merge/98529
Your team arsenal-devel is subscribed to branch lp:arsenal.
=== modified file 'reports/cbd'
--- reports/cbd	2012-03-13 20:58:18 +0000
+++ reports/cbd	2012-03-20 22:14:22 +0000
@@ -309,6 +309,12 @@
         Dbg.verbose('search: reporters: \'%s\'\n' % ','.join(reporters))
 
         try:
+            subscriber = search_criteria['subscriber']
+        except KeyError:
+            subscriber = ''
+        Dbg.verbose('search: subscriber: \'%s\'\n' % subscriber)
+
+        try:
             assignees = search_criteria['assignees']
         except KeyError:
             assignees = ''
@@ -318,13 +324,19 @@
             print('You must choose either assignees or reporters not both!')
             exit(1)
 
+        if subscriber:
+            search_subscriber = self.lp.launchpad.people[subscriber]
+        else:
+            search_subscriber = ''
+
         Dbg.leave("CollectBugData.distro_tasks_search")
         if reporters != '':
             tasks = []
             for reporter in reporters:
                 search_reporter = self.lp.launchpad.people[reporter]
                 if search_reporter.is_team is False:
-                    for task in distro.search_tasks(tags=search_tags,
+                    for task in distro.search_tasks(bug_subscriber=search_subscriber,
+                        tags=search_tags,
                         tags_combinator=search_tags_combinator,
                         status=search_status, bug_reporter=search_reporter,
                         modified_since=last_run_time):
@@ -333,7 +345,9 @@
                     for participant in search_reporter.participants:
                         if participant.is_team:
                             continue
-                        for task in distro.search_tasks(tags=search_tags,
+                        for task in distro.search_tasks(
+                            bug_subscriber=search_subscriber,
+                            tags=search_tags,
                             tags_combinator=search_tags_combinator,
                             status=search_status, bug_reporter=participant,
                             modified_since=last_run_time):
@@ -344,7 +358,9 @@
             for assignee in assignees:
                 search_assignee = self.lp.launchpad.people[assignee]
                 if search_assignee.is_team is False:
-                    for task in distro.search_tasks(tags=search_tags,
+                    for task in distro.search_tasks(
+                        bug_subscriber=search_subscriber,
+                        tags=search_tags,
                         tags_combinator=search_tags_combinator,
                         status=search_status, assignee=search_assignee,
                         modified_since=last_run_time):
@@ -353,14 +369,18 @@
                     for participant in search_assignee.participants:
                         if participant.is_team:
                             continue
-                        for task in distro.search_tasks(tags=search_tags,
+                        for task in distro.search_tasks(
+                            bug_subscriber=search_subscriber,
+                            tags=search_tags,
                             tags_combinator=search_tags_combinator,
                             status=search_status, assignee=participant,
                             modified_since=last_run_time):
                             tasks.append(task)
             return tasks
         else:
-            return distro.search_tasks(tags=search_tags,
+            return distro.search_tasks(
+                bug_subscriber=search_subscriber,
+                tags=search_tags,
                 tags_combinator=search_tags_combinator, status=search_status,
                 modified_since=last_run_time)
 

=== added file 'reports/rls-mgr/rls-mgr-p-css-tracking.json'
--- reports/rls-mgr/rls-mgr-p-css-tracking.json	1970-01-01 00:00:00 +0000
+++ reports/rls-mgr/rls-mgr-p-css-tracking.json	2012-03-20 22:14:22 +0000
@@ -0,0 +1,31 @@
+{
+    "launchpad_config": {
+        "launchpad_client_name": "rls-mgr-reports", 
+        "read_only": false
+    }, 
+    "search_criteria": [
+        {
+            "distribution": "ubuntu", 
+            "series": [
+                "precise", 
+                "NONE"
+            ], 
+            "status": [
+                "New", 
+                "Confirmed", 
+                "Triaged", 
+                "Incomplete", 
+                "Incomplete (with response)", 
+                "Incomplete (without response)", 
+                "In Progress", 
+                "Fix Committed"
+            ], 
+            "subscriber": "canonical-support", 
+            "tags": [
+                "rls-mgr-p-tracking"
+            ]
+        }
+    ], 
+    "tasks": {}, 
+    "update_timestamp": "Tuesday, 20. March 2012 21:08 UTC"
+}


Follow ups