[icinga-checkins] icinga.org: icingaweb2-module-director/master: GeneratedConfigTable: remove obsolete table

git at icinga.org git at icinga.org
Sun Feb 28 17:12:41 CET 2016


Module: icingaweb2-module-director
Branch: master
Commit: c0422d70122ed1cc2d7f7029f3dfae7aa2978c2e
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=c0422d70122ed1cc2d7f7029f3dfae7aa2978c2e

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sun Feb 28 17:01:10 2016 +0100

GeneratedConfigTable: remove obsolete table

refs #11054

---

 application/tables/GeneratedConfigTable.php |   60 ---------------------------
 1 file changed, 60 deletions(-)

diff --git a/application/tables/GeneratedConfigTable.php b/application/tables/GeneratedConfigTable.php
deleted file mode 100644
index a23793b..0000000
--- a/application/tables/GeneratedConfigTable.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-namespace Icinga\Module\Director\Tables;
-
-use Icinga\Module\Director\Web\Table\QuickTable;
-
-class GeneratedConfigTable extends QuickTable
-{
-    public function getColumns()
-    {
-        $columns = array(
-            'checksum'            => 'LOWER(HEX(c.checksum))',
-            'duration'            => "c.duration || 'ms'",
-            'files'               => 'COUNT(cf.file_checksum)',
-            'last_related_change' => 'l.change_time',
-            'activity_log_id'     => 'l.id'
-        );
-
-        if ($this->connection->getDbType() === 'pgsql') {
-            $columns['checksum'] = "LOWER(ENCODE(c.checksum, 'hex'))";
-        }
-
-        return $columns;
-    }
-
-    protected function getActionUrl($row)
-    {
-        return $this->url('director/config/show', array('checksum' => $row->checksum));
-    }
-
-    public function getTitles()
-    {
-        $view = $this->view();
-        return array(
-            'checksum' => $view->translate('Checksum'),
-            'duration' => $view->translate('Duration'),
-            'last_related_change' => $view->translate('Last related change'),
-        );
-    }
-
-    public function getBaseQuery()
-    {
-        $db = $this->connection()->getConnection();
-
-        $query = $db->select()->from(
-            array('l' => 'director_activity_log'),
-            array()
-        )->joinRight(
-            array('c' => 'director_generated_config'),
-            'c.last_activity_checksum = l.checksum',
-            array()
-        )->joinLeft(
-            array('cf' => 'director_generated_config_file'),
-            'cf.config_checksum = c.checksum',
-            array()
-        )->group('c.checksum')->group('l.id')->order('l.change_time DESC');
-
-        return $query;
-    }
-}



More information about the icinga-checkins mailing list