Skip to content

Commit

Permalink
better content stats
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Apr 22, 2020
1 parent ea1e4ed commit 6829e20
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
6 changes: 4 additions & 2 deletions classes/contentstatsgatherer.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ static function gather()
'Binary files (content)' => array( 'table' => 'ezbinaryfile' ),
'Image files (content)' => array( 'table' => 'ezimagefile' ),
'Media files (content)' => array( 'table' => 'ezmedia' ),
'Maximum versions per object' => array( 'sql' => 'SELECT MAX(tot) AS NUM FROM ( SELECT count(*) AS tot FROM ezcontentobject_version GROUP BY contentobject_id ) versions' ),
//'Maximum versions per object' => array( 'sql' => 'SELECT MAX(tot) AS NUM FROM ( SELECT count(*) AS tot FROM ezcontentobject_version GROUP BY contentobject_id ) versions' ),
'Maximum archived versions per object' => array( 'sql' => 'SELECT MAX(tot) AS NUM FROM ( SELECT count(*) AS tot FROM ezcontentobject_version WHERE status IN (0, 5) GROUP BY contentobject_id ) versions' ),
'Maximum draft versions per object' => array( 'sql' => 'SELECT MAX(tot) AS NUM FROM ( SELECT count(*) AS tot FROM ezcontentobject_version WHERE status = 3 GROUP BY contentobject_id ) versions' ),
'Maximum children per node' => array( 'sql' => 'SELECT MAX(tot) AS NUM FROM ( SELECT count(*) AS tot FROM ezcontentobject_tree GROUP BY parent_node_id ) nodes' ),
'Maximum nodes per object' => array( 'sql' => 'SELECT MAX(tot) AS NUM FROM ( SELECT count(*) AS tot FROM ezcontentobject_tree GROUP BY contentobject_id ) nodes' ),
'Maximum incoming relations to an object' => array( 'sql' => 'SELECT MAX(tot) AS NUM FROM ( SELECT count(*) AS tot FROM ezcontentobject_link GROUP BY to_contentobject_id ) links', 'nvl' => 0 ),
'Maximum outgoing relations from an object' => array( 'sql' => 'SELECT MAX(tot) AS NUM FROM ( SELECT count(*) AS tot FROM ezcontentobject_link GROUP BY from_contentobject_id ) links', 'nvl' => 0 ),
'Maximum outgoing relations from an object' => array( 'sql' => 'SELECT MAX(tot) AS NUM FROM ( SELECT count(*) AS tot FROM ezcontentobject_link GROUP BY from_contentobject_id, from_contentobject_version ) links', 'nvl' => 0 ),
);

$db = eZDB::instance();
Expand Down
5 changes: 5 additions & 0 deletions doc/changelogs/CHANGELOG-0.9.14-to-0.9.15
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Changes from 0.9.14 to 0.9.15 - released 2020/4/22

Improved: in content stats page separate number of archived versions from number of draft versions

Fixed: in content stats page, the number of outgoing links was overestimated
2 changes: 1 addition & 1 deletion extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<software>
<metadata>
<name>ggsysinfo</name>
<version>0.9.14</version>
<version>0.9.15</version>
<copyright>Copyright (C) 2008-2020 Gaetano Giunta</copyright>
<license>GNU General Public License v2.0</license>
</metadata>
Expand Down
2 changes: 1 addition & 1 deletion ezinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class ggsysinfoInfo
static function info()
{
return array( 'Name' => "<a href=\"http://projects.ez.no/ggsysinfo\">ggsysinfo</a>",
'Version' => "0.9.14",
'Version' => "0.9.15",
'Copyright' => "Copyright (C) 2008-2020 Gaetano Giunta",
'License' => "GNU General Public License v2.0"
);
Expand Down

0 comments on commit 6829e20

Please sign in to comment.