diff --git a/app/Models/Project.php b/app/Models/Project.php index 7c1ea84a4e..33ce72898c 100644 --- a/app/Models/Project.php +++ b/app/Models/Project.php @@ -42,7 +42,6 @@ * @property int $uploadquota Maximum sum of uploaded file sizes (in bytes) * @property int $uploadquotagb Maximum sum of uploaded file sizes (in GiB) * @property bool $showcoveragecode - * @property bool $sharelabelfilters * @property bool $authenticatesubmissions * @property ?string $ldapfilter * @property ?string $banner @@ -90,7 +89,6 @@ class Project extends Model 'uploadquota', 'uploadquotagb', 'showcoveragecode', - 'sharelabelfilters', 'authenticatesubmissions', 'ldapfilter', 'banner', @@ -109,7 +107,6 @@ class Project extends Model 'displaylabels' => 'boolean', 'coveragethreshold' => 'integer', 'showcoveragecode' => 'boolean', - 'sharelabelfilters' => 'boolean', 'authenticatesubmissions' => 'boolean', ]; diff --git a/app/cdash/app/Controller/Api/Index.php b/app/cdash/app/Controller/Api/Index.php index 280feb7318..ce7bdf9235 100644 --- a/app/cdash/app/Controller/Api/Index.php +++ b/app/cdash/app/Controller/Api/Index.php @@ -1350,7 +1350,7 @@ public function checkForSubProjectFilters(): void } } unset($filters); - if ($filter_on_labels && $this->project->ShareLabelFilters) { + if ($filter_on_labels) { $this->shareLabelFilters = true; $this->labelIds = get_label_ids_from_filterdata($this->filterdata); } diff --git a/app/cdash/app/Model/Project.php b/app/cdash/app/Model/Project.php index a41e32897e..e288400b1a 100644 --- a/app/cdash/app/Model/Project.php +++ b/app/cdash/app/Model/Project.php @@ -69,7 +69,6 @@ class Project public $EmailMaxItems = 5; public $EmailMaxChars = 255; public $DisplayLabels = 0; - public $ShareLabelFilters = 0; public $AuthenticateSubmissions = 0; public $ShowCoverageCode = 0; public $AutoremoveTimeframe = 0; @@ -126,7 +125,6 @@ public function Save(): bool 'emailbrokensubmission' => filter_var($this->EmailBrokenSubmission, FILTER_VALIDATE_BOOLEAN), 'emailredundantfailures' => filter_var($this->EmailRedundantFailures, FILTER_VALIDATE_BOOLEAN), 'displaylabels' => filter_var($this->DisplayLabels, FILTER_VALIDATE_BOOLEAN), - 'sharelabelfilters' => filter_var($this->ShareLabelFilters, FILTER_VALIDATE_BOOLEAN), 'authenticatesubmissions' => filter_var($this->AuthenticateSubmissions, FILTER_VALIDATE_BOOLEAN), 'showcoveragecode' => filter_var($this->ShowCoverageCode, FILTER_VALIDATE_BOOLEAN), 'autoremovetimeframe' => (int) $this->AutoremoveTimeframe, @@ -206,7 +204,6 @@ public function Fill(): void $this->EmailBrokenSubmission = (int) $project->emailbrokensubmission; $this->EmailRedundantFailures = (int) $project->emailredundantfailures; $this->DisplayLabels = $project->displaylabels; - $this->ShareLabelFilters = $project->sharelabelfilters; $this->AuthenticateSubmissions = $project->authenticatesubmissions; $this->ShowCoverageCode = $project->showcoveragecode; $this->AutoremoveTimeframe = $project->autoremovetimeframe; diff --git a/app/cdash/public/api/v1/index.php b/app/cdash/public/api/v1/index.php index 02aa3bbbb3..793a3c2683 100644 --- a/app/cdash/public/api/v1/index.php +++ b/app/cdash/public/api/v1/index.php @@ -236,7 +236,6 @@ $response['filterurl'] = get_filterurl(); $controller->checkForSubProjectFilters(); -$response['sharelabelfilters'] = $controller->shareLabelFilters; $response['testfilters'] = $controller->subProjectTestFilters; $build_data = $controller->getDailyBuilds(); diff --git a/app/cdash/tests/test_actualtrilinossubmission.php b/app/cdash/tests/test_actualtrilinossubmission.php index 00ee5f0eaf..f3028ed96b 100644 --- a/app/cdash/tests/test_actualtrilinossubmission.php +++ b/app/cdash/tests/test_actualtrilinossubmission.php @@ -25,7 +25,7 @@ public function createProjectWithName($project) 'EmailBrokenSubmission' => '1', 'DisplayLabels' => '1', 'NightlyTime' => '21:00:00 America/New_York', - 'ShareLabelFilters' => '1']; + ]; return $this->createProject($settings); } diff --git a/app/cdash/tests/test_filtertestlabels.php b/app/cdash/tests/test_filtertestlabels.php index 280ec10d93..40bf12ae5a 100644 --- a/app/cdash/tests/test_filtertestlabels.php +++ b/app/cdash/tests/test_filtertestlabels.php @@ -28,10 +28,6 @@ public function testFilterLabels() return 1; } - // Turn this option on. - pdo_query("UPDATE project SET sharelabelfilters=TRUE - WHERE name='EmailProjectExample'"); - // Get the buildid that we just created so we can delete it later. $buildids = []; $buildid_results = pdo_query( @@ -91,10 +87,6 @@ public function testFilterLabels() // Delete the build DatabaseCleanupUtils::removeBuild($buildid); - // Turn the option back off. - pdo_query("UPDATE project SET sharelabelfilters=FALSE - WHERE name='EmailProjectExample'"); - if (!$success) { $this->fail($error_msg); return 1; diff --git a/database/migrations/2026_05_13_223707_drop_project_sharelabelfilters_column.php b/database/migrations/2026_05_13_223707_drop_project_sharelabelfilters_column.php new file mode 100644 index 0000000000..bcce6a353c --- /dev/null +++ b/database/migrations/2026_05_13_223707_drop_project_sharelabelfilters_column.php @@ -0,0 +1,15 @@ + 0, 'normal': build.test.notrun == 0}">