UI: Hide stable builds #5

Merged
Pablo Vazquez merged 2 commits from pablovazquez/blender-buildbot-www:ui-hide-stable-builds into develop 2024-06-27 19:41:34 +02:00
Showing only changes of commit 34a5ac3898 - Show all commits

View File

@ -122,6 +122,8 @@ class BuildsRenderer {
$build_configuration = $build->build_configuration; $build_configuration = $build->build_configuration;
$branch = $build->branch; $branch = $build->branch;
$patch = $build->patch; $patch = $build->patch;
$is_release_stable = BuildReleaseCycle::STABLE == $build->release_cycle;
$is_release_candidate = BuildReleaseCycle::CANDIDATE == $build->release_cycle;
if (!isVisibleBuild($build)) { if (!isVisibleBuild($build)) {
continue; continue;
@ -153,14 +155,7 @@ class BuildsRenderer {
$analytics_event_os = $browser_platform; $analytics_event_os = $browser_platform;
$analytics_classes = 'plausible-event-name=' . $analytics_event_name . ' plausible-event-os=' . $analytics_event_os . ' plausible-event-build=' . $analytics_event_build . ''; $analytics_classes = 'plausible-event-name=' . $analytics_event_name . ' plausible-event-os=' . $analytics_event_os . ' plausible-event-build=' . $analytics_event_build . '';
$needs_hidden = in_array($file_extension, array("sha256")); $needs_hidden = (in_array($file_extension, array("msi", "msix", "sha256")) or ($is_release_stable) or ($is_release_candidate));
$env_id = getEnvId();
if (in_array($env_id, array("UATEST", "PROD"))) {
if (BuildReleaseCycle::STABLE != $build->release_cycle) {
$needs_hidden = in_array($file_extension, array("msi", "msix", "sha256"));
}
}
$display_style = ""; $display_style = "";
if ($needs_hidden) if ($needs_hidden)