[evolvis-commits] r7930: [ Patch #644 ] Stats: missing rotate_activity.php, generate artifact st?==?UTF-8?Q?ats↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 15:53:15 CET 2011


Author: mirabilos
Date: 2011-02-24 15:53:14 +0100 (Thu, 24 Feb 2011)
New Revision: 7930

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/cronjobs/stats/include/stats_projects.inc
   trunk/gforge_base/evolvisforge-5.1/gforge/debian/changelog
   trunk/gforge_base/evolvisforge-5.1/gforge/debian/rules
Log:
[ Patch #644 ] Stats: missing rotate_activity.php, generate artifact stats


Modified: trunk/gforge_base/evolvisforge-5.1/gforge/cronjobs/stats/include/stats_projects.inc
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/cronjobs/stats/include/stats_projects.inc	2011-02-24 14:53:13 UTC (rev 7929)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/cronjobs/stats/include/stats_projects.inc	2011-02-24 14:53:14 UTC (rev 7930)
@@ -38,14 +38,14 @@
 	r.count AS release_count,
 	fmcount.count AS msg_posted,
 	fucount.count AS msg_uniq_auth,
---	obug.count AS bugs_opened,
---	cbug.count AS bugs_closed,
---	osupport.count AS support_opened,
---	csupport.count AS support_closed,
---	opatches.count AS patches_opened,
---	cpatches.count AS patches_closed,
---	oartifact.count AS artifacts_opened,
---	cartifact.count AS artifacts_closed,
+	obug.count AS bugs_opened,
+	cbug.count AS bugs_closed,
+	osupport.count AS support_opened,
+	csupport.count AS support_closed,
+	opatches.count AS patches_opened,
+	cpatches.count AS patches_closed,
+	oartifact.count AS artifacts_opened,
+	cartifact.count AS artifacts_closed,
 	otask.count AS tasks_opened,
 	ctask.count AS tasks_closed,
 	helpr.count AS help_requests
@@ -94,112 +94,112 @@
 --
 --	Create tmp table of groups and opened bugs
 --
---LEFT JOIN (
---	SELECT agl.group_id,count(*) AS count
---	FROM artifact_group_list agl,artifact a
---	WHERE
---		a.open_date > '$day_begin'
---		AND a.open_date < '$day_end'
---		AND a.group_artifact_id=agl.group_artifact_id
---		AND agl.datatype='1'
---	GROUP BY agl.group_id
---	) obug USING (group_id)
+LEFT JOIN (
+	SELECT agl.group_id,count(*) AS count
+	FROM artifact_group_list agl,artifact a
+	WHERE
+		a.open_date > '$day_begin'
+		AND a.open_date < '$day_end'
+		AND a.group_artifact_id=agl.group_artifact_id
+		AND agl.datatype='1'
+	GROUP BY agl.group_id
+	) obug USING (group_id)
 
 --
 --	Create tmp table of groups and closed bugs
 --
---LEFT JOIN (
---	SELECT agl.group_id,count(*) AS count
---	FROM artifact_group_list agl,artifact a
---	WHERE
---		a.close_date > '$day_begin'
---		AND a.close_date < '$day_end'
---		AND a.group_artifact_id=agl.group_artifact_id
---		AND agl.datatype='1'
---	GROUP BY agl.group_id
---	) cbug USING (group_id)
+LEFT JOIN (
+	SELECT agl.group_id,count(*) AS count
+	FROM artifact_group_list agl,artifact a
+	WHERE
+		a.close_date > '$day_begin'
+		AND a.close_date < '$day_end'
+		AND a.group_artifact_id=agl.group_artifact_id
+		AND agl.datatype='1'
+	GROUP BY agl.group_id
+	) cbug USING (group_id)
 
 --
 --	Create tmp table of groups and opened support
 --
---LEFT JOIN (
---	SELECT agl.group_id,count(*) AS count
---	FROM artifact_group_list agl,artifact a
---	WHERE
---		a.open_date > '$day_begin'
---		AND a.open_date < '$day_end'
---		AND a.group_artifact_id=agl.group_artifact_id
---		AND agl.datatype='2'
---	GROUP BY agl.group_id
---	) osupport USING (group_id)
+LEFT JOIN (
+	SELECT agl.group_id,count(*) AS count
+	FROM artifact_group_list agl,artifact a
+	WHERE
+		a.open_date > '$day_begin'
+		AND a.open_date < '$day_end'
+		AND a.group_artifact_id=agl.group_artifact_id
+		AND agl.datatype='2'
+	GROUP BY agl.group_id
+	) osupport USING (group_id)
 
 --
 --	Create tmp table of groups and closed support
 --
---LEFT JOIN (
---	SELECT agl.group_id,count(*) AS count
---	FROM artifact_group_list agl,artifact a
---	WHERE
---		a.close_date > '$day_begin'
---		AND a.close_date < '$day_end'
---		AND a.group_artifact_id=agl.group_artifact_id
---		AND agl.datatype='2'
---	GROUP BY agl.group_id
---	) csupport USING (group_id)
+LEFT JOIN (
+	SELECT agl.group_id,count(*) AS count
+	FROM artifact_group_list agl,artifact a
+	WHERE
+		a.close_date > '$day_begin'
+		AND a.close_date < '$day_end'
+		AND a.group_artifact_id=agl.group_artifact_id
+		AND agl.datatype='2'
+	GROUP BY agl.group_id
+	) csupport USING (group_id)
 
 --
 --	Create tmp table of groups and opened patches
 --
---LEFT JOIN (
---	SELECT agl.group_id,count(*) AS count
---	FROM artifact_group_list agl,artifact a
---	WHERE
---		a.open_date > '$day_begin'
---		AND a.open_date < '$day_end'
---		AND a.group_artifact_id=agl.group_artifact_id
---		AND agl.datatype='3'
---	GROUP BY agl.group_id
---	) opatches USING (group_id)
+LEFT JOIN (
+	SELECT agl.group_id,count(*) AS count
+	FROM artifact_group_list agl,artifact a
+	WHERE
+		a.open_date > '$day_begin'
+		AND a.open_date < '$day_end'
+		AND a.group_artifact_id=agl.group_artifact_id
+		AND agl.datatype='3'
+	GROUP BY agl.group_id
+	) opatches USING (group_id)
 
 --
 --	Create tmp table of groups and closed patches
 --
---LEFT JOIN (
---	SELECT agl.group_id,count(*) AS count
---	FROM artifact_group_list agl,artifact a
---	WHERE
---		a.close_date > '$day_begin'
---		AND a.close_date < '$day_end'
---		AND a.group_artifact_id=agl.group_artifact_id
---		AND agl.datatype='3'
---	GROUP BY agl.group_id
---	) cpatches USING (group_id)
+LEFT JOIN (
+	SELECT agl.group_id,count(*) AS count
+	FROM artifact_group_list agl,artifact a
+	WHERE
+		a.close_date > '$day_begin'
+		AND a.close_date < '$day_end'
+		AND a.group_artifact_id=agl.group_artifact_id
+		AND agl.datatype='3'
+	GROUP BY agl.group_id
+	) cpatches USING (group_id)
 
 --
 --	Create tmp table of groups and opened total artifacts
 --
---LEFT JOIN (
---	SELECT agl.group_id,count(*) AS count
---	FROM artifact_group_list agl,artifact a
---	WHERE
---		a.open_date > '$day_begin'
---		AND a.open_date < '$day_end'
---		AND a.group_artifact_id=agl.group_artifact_id
---	GROUP BY agl.group_id
---	) oartifact USING (group_id)
+LEFT JOIN (
+	SELECT agl.group_id,count(*) AS count
+	FROM artifact_group_list agl,artifact a
+	WHERE
+		a.open_date > '$day_begin'
+		AND a.open_date < '$day_end'
+		AND a.group_artifact_id=agl.group_artifact_id
+	GROUP BY agl.group_id
+	) oartifact USING (group_id)
 
 --
 --	Create tmp table of groups and closed total artifacts
 --
---LEFT JOIN (
---	SELECT agl.group_id,count(*) AS count
---	FROM artifact_group_list agl,artifact a
---	WHERE
---		a.close_date > '$day_begin'
---		AND a.close_date < '$day_end'
---		AND a.group_artifact_id=agl.group_artifact_id
---	GROUP BY agl.group_id
---	) cartifact USING (group_id)
+LEFT JOIN (
+	SELECT agl.group_id,count(*) AS count
+	FROM artifact_group_list agl,artifact a
+	WHERE
+		a.close_date > '$day_begin'
+		AND a.close_date < '$day_end'
+		AND a.group_artifact_id=agl.group_artifact_id
+	GROUP BY agl.group_id
+	) cartifact USING (group_id)
 
 --
 --	Create tmp table of groups that opened tasks
@@ -248,14 +248,14 @@
 release_count > 0 
 OR msg_posted > 0
 OR msg_uniq_auth > 0
---OR bugs_opened > 0
---OR bugs_closed > 0
---OR support_opened > 0
---OR support_closed > 0
---OR patches_opened > 0
---OR patches_closed > 0
---OR artifacts_opened > 0
---OR artifacts_closed > 0
+OR bugs_opened > 0
+OR bugs_closed > 0
+OR support_opened > 0
+OR support_closed > 0
+OR patches_opened > 0
+OR patches_closed > 0
+OR artifacts_opened > 0
+OR artifacts_closed > 0
 OR tasks_opened > 0
 OR tasks_closed > 0
 OR help_requests > 0;";

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/debian/changelog
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/debian/changelog	2011-02-24 14:53:13 UTC (rev 7929)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/debian/changelog	2011-02-24 14:53:14 UTC (rev 7930)
@@ -111,14 +111,16 @@
     bug_dump.php and patch_dump.php
   * [Christian] Added the supposed userIsAdmin() function in Group class
     used in bug_dump.php and patch_dump.php
-  * [Christian] Made some change in bug_dump.php and patch_dump.php to
-    make them work (partially), this need actually to manually create two
-    views since in 2.6 patch and bug tables don't exist, scripts creating
-    views are view_bug.sql and view_patch.sql.
+  * [Christian] Made some change in bug_dump.php and patch_dump.php to make
+    them work (partially), this need actually to manually create two views since in 2.6
+    patch and bug tables don't exist, scripts creating views are view_bug.sql and
+    view_patch.sql.
   * [Roland] Make HTTPS harder to leave, and make it the default in links
     sent as e-mails (should fix Savannah bug #1401).
+  * [Christian] applied paddington patch #644 missing rotate_activity.php,
+    generate artifact stats
 
- -- Roland Mas <lolando at debian.org>  Sun, 10 Nov 2002 19:52:49 +0100
+ -- Christian Bayle <bayle at debian.org>  Mon, 11 Nov 2002 16:36:57 +0100
 
 sourceforge (2.6-0+13) experimental; urgency=low
 

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/debian/rules
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/debian/rules	2011-02-24 14:53:13 UTC (rev 7929)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/debian/rules	2011-02-24 14:53:14 UTC (rev 7930)
@@ -103,6 +103,7 @@
 	install -m 755 cronjobs/stats/download/stats_sum.pl $(CURDIR)/debian/sourceforge-db-postgresql/usr/lib/sourceforge/bin/
 	install -m 755 cronjobs/stats/subdomains/stats_projects_logparse.pl $(CURDIR)/debian/sourceforge-db-postgresql/usr/lib/sourceforge/bin/
 	install -m 755 cronjobs/vacuum.php $(CURDIR)/debian/sourceforge-db-postgresql/usr/lib/sourceforge/bin/
+	install -m 755 cronjobs/rotate_activity.php $(CURDIR)/debian/sourceforge-db-postgresql/usr/lib/sourceforge/bin/
 	install -m 755 cronjobs/stats/include/stats_site.inc $(CURDIR)/debian/sourceforge-db-postgresql/usr/lib/sourceforge/lib/
 	install -m 755 cronjobs/stats/include/stats_projects.inc $(CURDIR)/debian/sourceforge-db-postgresql/usr/lib/sourceforge/lib/
 	install utils/underworld-root/db_top_groups_calc.pl $(CURDIR)/debian/sourceforge-db-postgresql/usr/lib/sourceforge/bin/db_top_groups_calc.pl



More information about the evolvis-commits mailing list