Skip to content
Merged

5.1.1 #297

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ jobs:
#
- name: Download test packages
run: |
wget -O ${HOSTNAME}_nginx-1.26.0-1.el7.ngx.x86_64.rpm https://packages.repomanager.net/repo/rpm/ci-test/7/prod/packages/x86_64/nginx-1.26.0-1.el7.ngx.x86_64.rpm
wget -O ${HOSTNAME}_nginx-1.26.0-1.el7.ngx.x86_64.rpm https://packages.repomanager.net/repo/rpm/ci-test/8/prod/packages/x86_64/nginx-1.26.0-1.el7.ngx.x86_64.rpm
wget -O ${HOSTNAME}_nginx_1.26.0-1~bookworm_amd64.deb https://packages.repomanager.net/repo/deb/ci-test/bookworm/main/prod/pool/main/nginx_1.26.0-1~bookworm_amd64.deb


#
# Run tests as admin user
#
Expand Down
2 changes: 1 addition & 1 deletion www/controllers/Layout/Tab/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public static function render()
}

\Controllers\Layout\Container\Render::render('settings/settings');
\Controllers\Layout\Container\Render::render('settings/users');
\Controllers\Layout\Container\Render::render('settings/right-section');
}
}
2 changes: 1 addition & 1 deletion www/controllers/Layout/Tab/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public static function render()

\Controllers\Layout\Container\Render::render('status/health');
\Controllers\Layout\Container\Render::render('status/service');
\Controllers\Layout\Container\Render::render('status/overview');
\Controllers\Layout\Container\Render::render('status/monitoring');
}
}
1 change: 1 addition & 0 deletions www/controllers/Service/Unit/Statistic.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Controllers\Service\Unit;

use Exception;
use DateTime;

class Statistic extends \Controllers\Service\Service
{
Expand Down
4 changes: 2 additions & 2 deletions www/models/Repo/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function listByGroup(string $groupName) : array
LEFT JOIN repos_env
ON repos_env.Id_snap = repos_snap.Id
WHERE repos_snap.Status = 'active' AND repos.Id NOT IN (SELECT Id_repo FROM group_members)
ORDER BY repos.Name ASC, repos.Releasever ASC, repos.Dist ASC, repos.Section ASC, repos_snap.Date DESC");
ORDER BY repos.Name ASC, repos.Releasever ASC, repos.Dist ASC, repos.Section ASC, repos_snap.Date DESC, repos_env.Env ASC");
} else {
$stmt = $this->db->prepare("SELECT DISTINCT
repos.Id AS repoId,
Expand Down Expand Up @@ -124,7 +124,7 @@ public function listByGroup(string $groupName) : array
ON groups.Id = group_members.Id_group
WHERE groups.Name = :groupname
AND repos_snap.Status = 'active'
ORDER BY repos.Name ASC, repos.Releasever ASC, repos.Dist ASC, repos.Section ASC, repos_snap.Date DESC");
ORDER BY repos.Name ASC, repos.Releasever ASC, repos.Dist ASC, repos.Section ASC, repos_snap.Date DESC, repos_env.Env ASC");
$stmt->bindValue(':groupname', $groupName);
$result = $stmt->execute();
}
Expand Down
4 changes: 3 additions & 1 deletion www/public/resources/js/events/settings/debug-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ $(document).on('click','#debug-mode-btn',function () {
true,
// Print error alert:
true
);
).then(function () {
mycontainer.reload('header/debug-mode');
});
});
2 changes: 1 addition & 1 deletion www/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.1.0
5.1.1
5 changes: 1 addition & 4 deletions www/views/includes/containers/header/debug-mode.inc.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<article class="reloadable-container" container="header/debug-mode">
<?php
/**
* Debug mode
*/
if (DEBUG_MODE) : ?>
<section class="section-main">
<div class="div-generic-blue">
Expand All @@ -13,7 +10,7 @@

<?php
if (!empty($_POST)) {
echo '<br>POST data:</h6>';
echo '<h6>POST data</h6>';
echo '<pre class="codeblock copy">';
print_r($_POST);
echo '</pre>';
Expand Down
18 changes: 18 additions & 0 deletions www/views/includes/containers/settings/debug-mode.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div class="reloadable-container" container="settings/debug-mode">
<?php
if (IS_ADMIN) : ?>
<div>
<h3>DEBUG MODE</h3>
<div class="div-generic-blue">
<h6 class="margin-top-0">ENABLE DEBUG MODE</h6>
<p class="note">Debug mode will display additional information on the interface.</p>

<label class="onoff-switch-label">
<input id="debug-mode-btn" class="onoff-switch-input" type="checkbox" value="true" <?php echo DEBUG_MODE === true ? 'checked' : ''; ?>>
<span class="onoff-switch-slider"></span>
</label>
</div>
</div>
<?php
endif ?>
</div>
6 changes: 6 additions & 0 deletions www/views/includes/containers/settings/right-section.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<section class="section-right reloadable-container" container="settings/right-section">
<?php
\Controllers\Layout\Container\Render::render('settings/users');
\Controllers\Layout\Container\Render::render('settings/debug-mode');
\Controllers\Layout\Container\Render::render('settings/status'); ?>
</section>
6 changes: 6 additions & 0 deletions www/views/includes/containers/settings/status.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="reloadable-container" container="settings/status">
<div>
<h3 class="margin-bottom-10">STATUS & MONITORING</h3>
<a href="/status"><img src="/assets/icons/external-link.svg" class="icon icon-medium mediumopacity" title="Access status page" /></a>
</div>
</div>
20 changes: 2 additions & 18 deletions www/views/includes/containers/settings/users.inc.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<section class="section-right reloadable-container" container="settings/health">
<div class="reloadable-container" container="settings/users">
<?php
/**
* Those sections are only accessible to super-administrator user
*/
if (IS_ADMIN) : ?>
<h3>USERS</h3>

Expand Down Expand Up @@ -90,19 +87,6 @@
<?php
endif ?>
</div>

<div>
<h3>DEBUG MODE</h3>
<div class="div-generic-blue">
<h6 class="margin-top-0">ENABLE DEBUG MODE</h6>
<p class="note">Debug mode will display additional information on the interface.</p>

<label class="onoff-switch-label">
<input id="debug-mode-btn" class="onoff-switch-input" type="checkbox" value="true" <?php echo DEBUG_MODE === true ? 'checked' : ''; ?>>
<span class="onoff-switch-slider"></span>
</label>
</div>
</div>
<?php
endif ?>
</section>
</div>
2 changes: 1 addition & 1 deletion www/views/includes/containers/status/health.inc.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<section class="section-main">
<section id="health" class="section-main reloadable-container" container="settings/health">
<h3>DATABASES HEALTH</h3>

<div class="div-generic-blue">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<section id="system-monitoring" class="section-main">
<section id="system-monitoring" class="section-main reloadable-container" container="status/monitoring">
<h3 class="margin-bottom-5">SYSTEM MONITORING</h3>
<p class="note margin-bottom-15">Overview of system resource usage (last hour).</p>

Expand Down
2 changes: 1 addition & 1 deletion www/views/includes/containers/status/service.inc.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<section class="section-main">
<section id="service-units" class="section-main reloadable-container" container="status/service">
<h3>SERVICE UNITS</h3>

<div class="div-generic-blue grid grid-rfr-1-4 row-gap-30 column-gap-20">
Expand Down